1 line
855 KiB
JavaScript
1 line
855 KiB
JavaScript
"use strict";(self.webpackChunkdjango_vue_lyadmin_pro=self.webpackChunkdjango_vue_lyadmin_pro||[]).push([[219],{23306:function(e,t,n){n.r(t),n.d(t,{Axis:function(){return i._0},ChartView:function(){return i.OZ},ComponentModel:function(){return i.jT},ComponentView:function(){return i.bR},List:function(){return i.B8},Model:function(){return i.Kx},PRIORITY:function(){return i.FQ},SeriesModel:function(){return i.rP},color:function(){return i.yW},connect:function(){return i.Ng},dataTool:function(){return i.p5},dependencies:function(){return i.El},disConnect:function(){return i.zm},disconnect:function(){return i.Zf},dispose:function(){return i.AS},env:function(){return i._K},extendChartView:function(){return i.yX},extendComponentModel:function(){return i.rt},extendComponentView:function(){return i.NO},extendSeriesModel:function(){return i.NA},format:function(){return i.GP},getCoordinateSystemDimensions:function(){return i.Bo},getInstanceByDom:function(){return i.FP},getInstanceById:function(){return i.aQ},getMap:function(){return i.ZB},graphic:function(){return i.fA},helper:function(){return i.dw},init:function(){return i.Ts},innerDrawElementOnCanvas:function(){return i.UU},matrix:function(){return i.UP},number:function(){return i.ai},parseGeoJSON:function(){return i.l3},parseGeoJson:function(){return i.zI},registerAction:function(){return i.OH},registerCoordinateSystem:function(){return i.pX},registerLayout:function(){return i.Oh},registerLoading:function(){return i.Ej},registerLocale:function(){return i.E},registerMap:function(){return i.mz},registerPostInit:function(){return i.cf},registerPostUpdate:function(){return i.tb},registerPreprocessor:function(){return i.lP},registerProcessor:function(){return i.qg},registerTheme:function(){return i.bf},registerTransform:function(){return i.iY},registerUpdateLifecycle:function(){return i.xV},registerVisual:function(){return i.AF},setCanvasCreator:function(){return i.vV},setPlatformAPI:function(){return i.Gs},throttle:function(){return i.nF},time:function(){return i.kB},use:function(){return i.Yx},util:function(){return i.ZS},vector:function(){return i.i1},version:function(){return i.rE},zrUtil:function(){return i.F_},zrender:function(){return i.nd}});var i=n(73800)},35401:function(e,t,n){n.r(t),n.d(t,{Axis:function(){return r._0},ChartView:function(){return r.OZ},ComponentModel:function(){return r.jT},ComponentView:function(){return r.bR},List:function(){return r.B8},Model:function(){return r.Kx},PRIORITY:function(){return r.FQ},SeriesModel:function(){return r.rP},color:function(){return r.yW},connect:function(){return r.Ng},dataTool:function(){return r.p5},dependencies:function(){return r.El},disConnect:function(){return r.zm},disconnect:function(){return r.Zf},dispose:function(){return r.AS},env:function(){return r._K},extendChartView:function(){return r.yX},extendComponentModel:function(){return r.rt},extendComponentView:function(){return r.NO},extendSeriesModel:function(){return r.NA},format:function(){return r.GP},getCoordinateSystemDimensions:function(){return r.Bo},getInstanceByDom:function(){return r.FP},getInstanceById:function(){return r.aQ},getMap:function(){return r.ZB},graphic:function(){return r.fA},helper:function(){return r.dw},init:function(){return r.Ts},innerDrawElementOnCanvas:function(){return r.UU},matrix:function(){return r.UP},number:function(){return r.ai},parseGeoJSON:function(){return r.l3},parseGeoJson:function(){return r.zI},registerAction:function(){return r.OH},registerCoordinateSystem:function(){return r.pX},registerLayout:function(){return r.Oh},registerLoading:function(){return r.Ej},registerLocale:function(){return r.E},registerMap:function(){return r.mz},registerPostInit:function(){return r.cf},registerPostUpdate:function(){return r.tb},registerPreprocessor:function(){return r.lP},registerProcessor:function(){return r.qg},registerTheme:function(){return r.bf},registerTransform:function(){return r.iY},registerUpdateLifecycle:function(){return r.xV},registerVisual:function(){return r.AF},setCanvasCreator:function(){return r.vV},setPlatformAPI:function(){return r.Gs},throttle:function(){return r.nF},time:function(){return r.kB},use:function(){return r.Yx},util:function(){return r.ZS},vector:function(){return r.i1},version:function(){return r.rE},zrUtil:function(){return r.F_},zrender:function(){return r.nd}});var i=n(22212),r=n(73800),o=n(81493),a=n(25298),s=n(39922),l=n(3757),u=n(67475),c=n(81353),h=n(93398),d=n(44397),p=n(91600),f=n(23891),g=2*Math.PI,y=Math.PI/180;function m(e,t){return h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v(e,t){var n=m(e,t),i=e.get("center"),r=e.get("radius");d.isArray(r)||(r=[0,r]);var o,a,s=(0,c.lo)(n.width,t.getWidth()),l=(0,c.lo)(n.height,t.getHeight()),u=Math.min(s,l),h=(0,c.lo)(r[0],u/2),p=(0,c.lo)(r[1],u/2),f=e.coordinateSystem;if(f){var g=f.dataToPoint(i);o=g[0]||0,a=g[1]||0}else d.isArray(i)||(i=[i,i]),o=(0,c.lo)(i[0],s)+n.x,a=(0,c.lo)(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:p}}function x(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=m(e,n),o=v(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-e.get("startAngle")*y,d=e.get("endAngle"),f=e.get("padAngle")*y;d="auto"===d?h-g:-d*y;var x=e.get("minAngle")*y+f,b=0;t.each(i,(function(e){!isNaN(e)&&b++}));var S=t.getSum(i),w=Math.PI/(S||b)*2,M=e.get("clockwise"),A=e.get("roseType"),I=e.get("stillShowZeroSum"),C=t.getDataExtent(i);C[0]=0;var T=M?1:-1,D=[h,d],L=T*f/2;(0,p.q)(D,!M),h=D[0],d=D[1];var k=_(e);k.startAngle=h,k.endAngle=d,k.clockwise=M;var O=Math.abs(d-h),P=O,N=0,R=h;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:a,cy:s,r0:u,r:A?NaN:l});else{(i="area"!==A?0===S&&I?w:e*w:O/b)<x?(i=x,P-=x):N+=e;var r=R+T*i,o=0,h=0;f>i?h=o=R+T*i/2:(o=R+L,h=r-L),t.setItemLayout(n,{angle:i,startAngle:o,endAngle:h,clockwise:M,cx:a,cy:s,r0:u,r:A?(0,c.Cb)(e,C,[u,l]):l}),R=r}})),P<g&&b)if(P<=.001){var E=O/b;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=E;var r=0,o=0;E<f?o=r=h+T*(n+.5)*E:(r=h+T*n*E+L,o=h+T*(n+1)*E-L),i.startAngle=r,i.endAngle=o}}))}else w=P/N,R=h,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===x?x:e*w,o=0,a=0;r<f?a=o=R+T*r/2:(o=R+L,a=R+T*r-L),i.startAngle=o,i.endAngle=a,R+=T*r}}))}))}var _=(0,f.$r)();function b(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var S=n(33590),w=n(5995),M=n(67329),A=n(47034),I=n(24675),C=n(47658),T=n(47223),D=(n(44114),n(86391)),L=n(97792),k=n(7844),O=Math.PI/180;function P(e,t,n,i,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}(0,k.Xe)(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}(e)}function p(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),p=t+(d+l.len2)*r,f=p-l.label.x;N(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function N(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function R(e){return"center"===e.position}var E=n(53269),V=n(72109),z=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new w.Ay;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return(0,S.C6)(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=(0,d.extend)((0,V.i)(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(M.LW(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,M.LW(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),M.LW(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,M.oi(r,{shape:{endAngle:l.endAngle}},o,t))}else(0,M.ap)(r),M.oi(r,{shape:u},o,t);r.useStyle(e.getItemVisual(t,"style")),(0,C.Mx)(r,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),f=Math.cos(h)*p,g=Math.sin(h)*p,y=a.getShallow("cursor");y&&r.attr("cursor",y),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=(0,d.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},(0,V.i)(s.getModel("itemStyle"),l)),(0,d.extend)(r.ensureState("select"),{x:f,y:g,shape:(0,V.i)(a.getModel(["select","itemStyle"]),l)}),(0,d.extend)(r.ensureState("blur"),{shape:(0,V.i)(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&(0,d.extend)(m.ensureState("select"),{x:f,y:g}),(0,d.extend)(v.ensureState("select"),{x:f,y:g}),(0,C.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;(0,E.qM)(i,(0,E.lx)(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new A.A,this.setTextGuideLine(h)),(0,L.eR)(this,(0,L.rv)(r),{stroke:s,opacity:(0,d.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},t}(I.A),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var h=_(e),p=new I.A({shape:(0,d.extend)(v(e,n),h)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,s.add(p)}o.diff(a).add((function(e){var t=new z(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);M.t5(n,e,t)})).execute(),function(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*O,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,p=s.y,f=s.height;function g(e){e.ignore=!0}i.each((function(e){var s=i.getItemGraphicEl(e),p=s.shape,f=s.getTextContent(),y=s.getTextGuideLine(),m=i.getItemModel(e),v=m.getModel("label"),x=v.get("position")||m.get(["emphasis","label","position"]),_=v.get("distanceToLabelLine"),b=v.get("alignTo"),S=(0,c.lo)(v.get("edgeDistance"),u),w=v.get("bleedMargin"),M=m.getModel("labelLine"),A=M.get("length");A=(0,c.lo)(A,u);var I=M.get("length2");if(I=(0,c.lo)(I,u),Math.abs(p.endAngle-p.startAngle)<a)return(0,d.each)(f.states,g),f.ignore=!0,void(y&&((0,d.each)(y.states,g),y.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(f)){var C,T,L,k,O=(p.startAngle+p.endAngle)/2,P=Math.cos(O),N=Math.sin(O);t=p.cx,n=p.cy;var R="inside"===x||"inner"===x;if("center"===x)C=p.cx,T=p.cy,k="center";else{var E=(R?(p.r+p.r0)/2*P:p.r*P)+t,V=(R?(p.r+p.r0)/2*N:p.r*N)+n;if(C=E+3*P,T=V+3*N,!R){var z=E+P*(A+l-p.r),B=V+N*(A+l-p.r),G=z+(P<0?-1:1)*I;C="edge"===b?P<0?h+S:h+u-S:G+(P<0?-_:_),T=B,L=[[E,V],[z,B],[G,B]]}k=R?"center":"edge"===b?P>0?"right":"left":P>0?"left":"right"}var F=Math.PI,H=0,W=v.get("rotate");if((0,d.isNumber)(W))H=W*(F/180);else if("center"===x)H=0;else if("radial"===W||!0===W)H=P<0?-O+F:-O;else if("tangential"===W&&"outside"!==x&&"outer"!==x){var Y=Math.atan2(P,N);Y<0&&(Y=2*F+Y),N>0&&(Y=F+Y),H=Y-F}if(o=!!H,f.x=C,f.y=T,f.rotation=H,f.setStyle({verticalAlign:"middle"}),R){f.setStyle({align:k});var U=f.states.select;U&&(U.x+=f.x,U.y+=f.y)}else{var X=f.getBoundingRect().clone();X.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,r.push({label:f,labelLine:y,position:x,len:A,len2:I,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new D.A(P,N),linePoints:L,textAlign:k,labelDistance:_,labelAlignTo:b,edgeDistance:S,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:R})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;R(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(d=0;d<e.length;d++)if(!R(y=e[d])&&y.linePoints){if(null!=y.labelStyleWidth)continue;p=y.label;var f,g=y.linePoints;f="edge"===y.labelAlignTo?p.x<t?g[2][0]-y.labelDistance-a-y.edgeDistance:a+r-y.edgeDistance-g[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?p.x<t?c-a-y.bleedMargin:a+r-h-y.bleedMargin:p.x<t?p.x-a-y.bleedMargin:a+r-p.x-y.bleedMargin,y.targetTextWidth=f,N(y,f)}for(P(u,t,n,i,1,0,o,0,s,h),P(l,t,n,i,-1,0,o,0,s,c),d=0;d<e.length;d++){var y;if(!R(y=e[d])&&y.linePoints){p=y.label,g=y.linePoints;var m="edge"===y.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,_=p.style.backgroundColor?0:x,b=y.rect.width+_,S=g[1][0]-g[2][0];m?p.x<t?g[2][0]=a+y.edgeDistance+b+y.labelDistance:g[2][0]=a+r-y.edgeDistance-b-y.labelDistance:(p.x<t?g[2][0]=p.x+y.labelDistance:g[2][0]=p.x-y.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=p.y}}}(r,t,n,l,u,f,h,p);for(var y=0;y<r.length;y++){var m=r[y],v=m.label,x=m.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),_&&((0,d.each)(v.states,g),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(x){var S=m.linePoints;_||!S?((0,d.each)(x.states,g),x.ignore=!0):((0,L.YI)(S,m.minTurnAngle),(0,L.QK)(S,m.surfaceNormal,m.maxSurfaceAngle),x.setShape({points:S}),v.__hostTarget.textGuideLineConfig={anchor:new D.A(S[0][0],S[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="pie",t}(T.A),G=B,F=n(34122),H=n(70213);function W(e,t,n){t=(0,d.isArray)(t)&&{coordDimensions:t}||(0,d.extend)({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=(0,F.A)(i,t).dimensions,o=new H.A(r,e);return o.initData(i,n),o}var Y=n(15334),U=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),X=n(97130),Z=f.$r(),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,S.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new U(d.bind(this.getData,this),d.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return W(this,{coordDimensions:["value"],encodeDefaulter:d.curry(Y.ln,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=Z(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=(0,c.kM)(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=r[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){f.M5(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.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}(X.A),q=j,$=n(43503),K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,$.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(X.A),J=K,Q=n(86189),ee=(n(16573),n(78100),n(77936),n(37467),n(44732),n(79577),n(39295)),te=n(6731),ne=n(27989),ie=n(51756),re=n(98565),oe=function(){},ae=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new oe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}e=this._rect=new ee.A(a-r/2,s-o/2,l-a+r,u-s+o)}return e},t}(te.Ay),se=function(){function e(){this.group=new ne.A}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new ae({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=(0,ie.v5)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=(0,re.z)(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),le=se,ue=n(26945),ce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=(0,ue.A)("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new le:new Q.A,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(T.A),he=ce,de=n(14892);function pe(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();d.each(r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=fe(r)?r:ge(i)}))})),t.each((function(e){var r=d.find(n[e],(function(e){return fe(e)}))||ge(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function fe(e){return!isNaN(e[0])&&!isNaN(e[1])}function ge(e){return[e.cx,e.cy]}function ye(e){var t=e.polar;if(t){d.isArray(t)||(t=[t]);var n=[];d.each(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],d.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}d.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var me=n(3966),ve=n(90118),xe=n(43359),_e=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=ie.xU(e.getItemVisual(t,"symbolSize")),r=ie.v5(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function l(t,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,t[l]?(u.setPosition(t[l]),me[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},e,o)):u.setPosition(n[l]),i.add(u))}}function u(e){return d.map(e,(function(e){return[i.cx,i.cy]}))}o.diff(a).add((function(t){var n=o.getItemLayout(t);if(n){var i=new ve.A,r=new A.A,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),M.LW(i,a,e,t),M.LW(r,a,e,t);var s=new ne.A,c=new ne.A;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,o,t,!1),(0,M.ap)(s),(0,M.ap)(r),M.oi(r,c,e),M.oi(s,c,e),o.setItemGraphicEl(t,i))})).remove((function(e){r.remove(a.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;r.add(e),i.useStyle(d.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,C.Mx)(i,n,"lineStyle"),(0,C.Mx)(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,d.each(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&h})),a.useStyle(d.defaults(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof xe.Ay){var i=e.style;e.useStyle(d.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=d.clone(f);var r=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==r||isNaN(r))&&(r=""),(0,E.qM)(e,(0,E.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),(0,C.Lm)(e,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(T.A),be=_e,Se=n(81838),we=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,S.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new U(d.bind(this.getData,this),d.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return W(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=(0,Se.aw)(this,e);return(0,Se.Qx)("section",{header:a,sortBlocks:!0,blocks:d.map(r,(function(t){var n=i.get(i.mapDimension(t.dim),e);return(0,Se.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(d.map(n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(X.A),Me=we,Ae=n(91833),Ie=n(99713),Ce=n(59831),Te=n(75640),De=Ae.A.value;function Le(e,t){return d.defaults({show:t},e)}var ke=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=d.map(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=d.defaults({color:h.color},a));var f=d.merge(d.clone(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(d.isString(l)){var g=f.name;f.name=l.replace("{value}",null!=g?g:"")}else d.isFunction(l)&&(f.name=l(f.name,f));var y=new Ie.A(f,null,this.ecModel);return d.mixin(y,Ce.L.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:d.merge({lineStyle:{color:"#bbb"}},De.axisLine),axisLabel:Le(De.axisLabel,!1),axisTick:Le(De.axisTick,!1),splitLine:Le(De.splitLine,!0),splitArea:Le(De.splitArea,!0),indicator:[]},t}(Te.A),Oe=ke,Pe=n(32855),Ne=n(1350),Re=n(70532),Ee=n(43484),Ve=["axisLine","axisTickLabel","axisName"],ze=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=d.map(n,(function(e){var n=e.model.get("showName")?e.name:"";return new Pe.A(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));d.each(i,(function(e){d.each(Ve,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=d.isArray(c)?c:[c],f=d.isArray(h)?h:[h],g=[],y=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,x=t.cy,_=0;_<m.length;_++)l&&g[D(g,p,_)].push(new Ne.A({shape:{cx:v,cy:x,r:m[_].coord}})),u&&_<m.length-1&&y[D(y,f,_)].push(new Re.A({shape:{cx:v,cy:x,r0:m[_].coord,r:m[_+1].coord}}));else{var b,S=d.map(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),d.map(i,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(_=0;_<=b;_++){for(var M=[],I=0;I<n.length;I++)M.push(S[I][_]);M[0]&&M.push(M[0].slice()),l&&g[D(g,p,_)].push(new A.A({shape:{points:M}})),u&&w&&y[D(y,f,_-1)].push(new ve.A({shape:{points:M.concat(w)}})),w=M.slice().reverse()}}var C=a.getLineStyle(),T=s.getAreaStyle();d.each(y,(function(e,t){this.group.add(me.mergePath(e,{style:d.defaults({stroke:"none",fill:f[t%f.length]},T),silent:!0}))}),this),d.each(g,(function(e,t){this.group.add(me.mergePath(e,{style:d.defaults({fill:"none",stroke:p[t%p.length]},C),silent:!0}))}),this)}function D(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(Ee.A),Be=ze,Ge=n(33055),Fe=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,S.C6)(t,e),t}(Ge.A),He=n(49299),We=n(18303),Ye=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=(0,d.map)(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new Fe(n,new He.A);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=c.lo(n[0],i),this.cy=c.lo(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");((0,d.isString)(a)||(0,d.isNumber)(a))&&(a=[0,a]),this.r0=c.lo(a[0],o),this.r=c.lo(a[1],o),(0,d.each)(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;(0,d.each)(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();(0,d.each)(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new He.A;o.setExtent(0,r),o.setInterval(1),(0,d.each)(n,(function(e,t){(0,We.m)(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),Ue=Ye;function Xe(e){e.registerCoordinateSystem("radar",Ue),e.registerComponentModel(Oe),e.registerComponentView(Be),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}var Ze=n(91654),je=n(76293),qe=n(23083);function $e(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(je.ds(i.event),Ke(e,t,n,i,r))}function Ke(e,t,n,i,r){r.isAvailableBehavior=(0,d.bind)(Je,null,n,i),e.trigger(t,r)}function Je(e,t,n){var i=n[e];return!e||i&&(!(0,d.isString)(i)||t.event[i+"Key"])}var Qe=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=(0,d.bind)(n._mousedownHandler,n),r=(0,d.bind)(n._mousemoveHandler,n),o=(0,d.bind)(n._mouseupHandler,n),a=(0,d.bind)(n._mousewheelHandler,n),s=(0,d.bind)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=(0,d.defaults)((0,d.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return(0,S.C6)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!je.W5(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Je("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!qe.Ck(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&je.ds(e.event),Ke(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){je.W5(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Je("zoomOnMouseWheel",e,this._opt),n=Je("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1;$e(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);$e(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){qe.Ck(this._zr,"globalPan")||$e(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Ze.A);function et(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function tt(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}for(var nt=n(5734),it=n(63946),rt=n(44089),ot=n(65859),at=n(67858),st=n(12681),lt=(0,d.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),ut=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=(0,d.createHashMap)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=(0,at.h)(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=(0,d.createHashMap)();return(0,d.each)(e,(function(e){if(null==e.namedFrom){var i=new st.U5(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{n=(t=e&&(0,rt.cM)(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,(0,d.assert)(null!=n)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var i=new ne.A;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var p=n.getBoundingRect();null==l&&(l=p.x,c=p.width),null==u&&(u=p.y,h=p.height)}s=this._boundingRect=new ee.A(l,u,c,h)}if(a){var f=(0,rt.ps)(a,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new ot.A({shape:s.plain()}));var g=[];return(0,d.each)(t.named,(function(e){var t;null!=lt.get(e.svgNodeTagLower)&&(g.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:i,boundingRect:s,named:g}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}(),ct=n(44291),ht=[126,25],dt="南海诸岛",pt=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],ft=0;ft<pt.length;ft++)for(var gt=0;gt<pt[ft].length;gt++)pt[ft][gt][0]/=10.5,pt[ft][gt][1]/=-14,pt[ft][gt][0]+=ht[0],pt[ft][gt][1]+=ht[1];var yt={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},mt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],vt=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=(0,d.createHashMap)(),this._mapName=e,this._specialAreas=n,this._geoJSON=(i=t,(0,d.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:xt(i)})}var r=(0,d.createHashMap)(),o=[];return(0,d.each)(n.regions,(function(t){var n=t.name;e&&(0,d.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new ee.A(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?(0,ct.A)(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===dt)return;t.push(new st.cn(dt,d.map(pt,(function(e){return{type:"polygon",exterior:e}})),ht))}}(n,t),(0,d.each)(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=yt[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:mt[0]})}(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function xt(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}var _t=(0,d.createHashMap)(),bt={registerMap:function(e,t,n){if(t.svg){var i=new ut(e,t.svg);_t.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t,i=new vt(e,r,n),_t.set(e,i)}},getGeoResource:function(e){return _t.get(e)},getMapForUser:function(e){var t=_t.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=_t.get(e);if(i)return i.load(t,n)}},St=n(40909),wt=n(78711),Mt=n(42348),At=["rect","circle","line","ellipse","polygon","polyline","path"],It=d.createHashMap(At),Ct=d.createHashMap(At.concat(["g"])),Tt=d.createHashMap(At.concat(["g"])),Dt=(0,f.$r)();function Lt(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function kt(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Ot=function(){function e(e){var t=new ne.A;this.uid=(0,St.$Q)("ec_map_draw"),this._controller=new Qe(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ne.A),t.add(this._svgGroup=new ne.A)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):M.oi(u,d,e);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=d.createHashMap(),n=d.createHashMap(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}function h(e){return{shape:{points:c(e)}}}i.removeAll(),d.each(e.geo.regions,(function(r){var c=r.name,p=t.get(c),f=n.get(c)||{},g=f.dataIdx,y=f.regionModel;p||(p=t.set(c,new ne.A),i.add(p),g=a?a.indexOfName(c):null,y=e.isGeo?o.getRegionModel(c):a?a.getItemModel(g):null,n.set(c,{dataIdx:g,regionModel:y}));var m=[],v=[];d.each(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=zt(t,l)),d.each(t,(function(e){m.push(new ve.A(h(e)))}))}else{var n=e.points;l&&(n=zt(n,l,!0)),d.each(n,(function(e){v.push(new A.A(h(e)))}))}}));var x=u(r.getCenter(),s&&s.project);function _(t,n){if(t.length){var i=new it.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});p.add(i),Pt(e,i,g,y),Nt(e,i,c,y,o,g,x),n&&(kt(i),d.each(i.states,kt))}}_(m),_(v,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;Rt(e,t,i,s,o,a),Et(e,t,i,s,o),Vt(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=d.createHashMap(),r=!1;d.each(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=It.get(s)&&l instanceof Mt.Ay&&Pt(e,l,u,c),l instanceof Mt.Ay&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom||(null!=Tt.get(s)&&Nt(e,l,n,c,o,u,null),Rt(e,l,n,c,o,u),Et(e,l,n,c,o),null!=Ct.get(s)&&("self"===Vt(e,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){(0,C.DW)(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=bt.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=bt.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,et(o,e.dx,e.dy),n.dispatchAction(d.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,tt(o,e.scale,e.originX,e.originY),n.dispatchAction(d.extend(s(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!(0,nt.I)(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=Dt(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function Pt(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Lt(r),u=Lt(o),c=Lt(s),h=Lt(a),d=e.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=(0,wt.w)(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=h,(0,C.DW)(t)}function Nt(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,E.qM)(t,(0,E.lx)(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=t.getTextContent();if(f&&(Dt(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Rt(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):(0,re.z)(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Et(e,t,n,i,r){e.data||me.setTooltipConfig({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function Vt(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return(0,C.Lm)(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&(0,C.ml)(t,r,n),a}function zt(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),d.each(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var Bt=Ot,Gt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id)(o=this._mapDraw)&&r.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new Bt(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Ne.A({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:C.CA+1)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);(0,E.qM)(l,(0,E.lx)(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){(0,C.Pk)(l,e)}}r.add(l)}}}))},t.type="map",t}(T.A),Ft=Gt,Ht=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e){for(var t=W(this,{coordDimensions:["value"],encodeDefaulter:d.curry(Y.ln,this)}),n=d.createHashMap(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}var s=bt.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return d.each(s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return(0,Se.Qx)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,Se.Qx)("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=(0,ie.v5)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(X.A),Wt=Ht;function Yt(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),d.each(t,(function(e,t){for(var n,i,r,o=(n=d.map(e,(function(e){return e.getData()})),i=e[0].get("mapValueCalculation"),r={},d.each(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var i="ec-"+e.getName(n);r[i]=r[i]||[],isNaN(t)||r[i].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var o="ec-"+n[0].getName(t),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c<u;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?a/u:a}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]}))}function Ut(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};d.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var Xt=n(79006),Zt=n(3944),jt=n(55957),qt=Xt.applyTransform,$t=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new jt.Ay,n._rawTransformable=new jt.Ay,n.name=t,n}return(0,S.C6)(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new ee.A(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new ee.A(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new ee.A(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[(0,c.lo)(e[0],t.getWidth()),(0,c.lo)(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Xt.applyTransform([],i,e),n=Xt.applyTransform([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Zt.copy(this.transform||(this.transform=[]),t.transform||Zt.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Zt.invert(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new jt.Ay;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?qt(n,e,i):Xt.copy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?qt([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=Kt(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Kt(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(jt.Ay);function Kt(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Jt=$t,Qt={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},en=["lng","lat"],tn=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=en,r.type="geo",r._nameCoordMap=d.createHashMap(),r.map=n;var o,a=i.projection,s=bt.load(n,i.nameMap,i.nameProperty),l=bt.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=Qt[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var h=0;h<u.length;h++){var p=u[h].getBoundingRect(a);(o=o||p.clone()).union(p)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:d.retrieve2(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return(0,S.C6)(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new ee.A(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(d.isString(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=nn(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=nn(t);return i===this?i.pointToData(n):null},t}(Jt);function nn(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",f.US).models[0]||{}).coordinateSystem:null}d.mixin(tn,Jt);var rn=tn;function on(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var d=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,h=o.project([e+s*c,t+l*c]);Xt.min(i,i,h),Xt.max(r,r,h)}};d(a,s,l,s),d(l,s,l,u),d(l,u,a,u),d(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}}var p,f,g,y=this.getBoundingRect(),m=e.get("layoutCenter"),v=e.get("layoutSize"),x=t.getWidth(),_=t.getHeight(),b=y.width/y.height*this.aspectScale,S=!1;if(m&&v&&(p=[c.lo(m[0],x),c.lo(m[1],_)],f=c.lo(v,Math.min(x,_)),isNaN(p[0])||isNaN(p[1])||isNaN(f)||(S=!0)),S)g={},b>1?(g.width=f,g.height=f/b):(g.height=f,g.width=f*b),g.y=p[1]-g.height/2,g.x=p[0]-g.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,g=h.dV(w,{width:x,height:_})}this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var an=function(){function e(){this.dimensions=en}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new rn(o+r,o,d.extend({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=on,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),d.each(r,(function(e,r){var o=d.map(e,(function(e){return e.get("nameMap")})),a=new rn(r,r,d.extend({nameMap:d.mergeAll(o)},i(e[0])));a.zoomLimit=d.retrieve.apply(null,d.map(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=on,a.resize(e[0],t),d.each(e,(function(e){e.coordinateSystem=a,function(e,t){d.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=d.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=bt.load(t,n,i);return d.each(s.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r},e}(),sn=new an,ln=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t,n){var i=bt.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),f.M5(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=sn.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=d.reduce(t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new Ie.A(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),d.createHashMap()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ie.A(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return d.isFunction(i)?(r.status=t,i(r)):d.isString(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Te.A),un=ln;function cn(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function hn(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(cn(e,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),h=(t.originY-e.y)*(a-1);e.x-=c,e.y-=h,e.updateTransform(),e.setCenter(cn(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var dn=n(92174),pn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Bt(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;(0,dn.R)(e.target,(function(e){return null!=(t=(0,re.z)(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=(0,re.z)(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ee.A),fn=pn;function gn(e,t,n){bt.registerMap(e,t,n)}function yn(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;(0,d.each)(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var a=[];(0,d.each)(i,(function(e,t){i[t]&&a.push(t)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",sn),e.registerComponentModel(un),e.registerComponentView(fn),e.registerImpl("registerMap",gn),e.registerImpl("getMap",(function(e){return bt.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=hn(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&(0,d.each)(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}var mn=n(94278),vn=n(53863);function xn(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){for(var t=e.children,n=t.length,i=0,r=0;--n>=0;){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=Mn(s),o=An(o),s&&o;){r=Mn(r),a=An(a),r.hierNode.ancestor=e;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(Cn(In(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!Mn(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!An(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function _n(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function bn(e){return arguments.length?e:Tn}function Sn(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function wn(e,t){return h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Mn(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function An(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function In(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Cn(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function Tn(e,t){return e.parentNode===t.parentNode?1:2}var Dn=n(87166),Ln=function(){this.parentPoint=[],this.childPoints=[]},kn=function(e){function t(t){return e.call(this,t)||this}return(0,S.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ln},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=(0,c.lo)(t.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*h,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var p=1;p<i-1;p++){var f=n[p];e.moveTo(f[0],f[1]),d[l]=f[l],e.lineTo(d[0],d[1])}},t}(te.Ay),On=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new ne.A,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this._controller=new Qe(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup;"radial"===e.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add((function(t){Pn(i,t)&&Nn(i,t,null,o,e)})).update((function(t,n){var r=a.getItemGraphicEl(n);Pn(i,t)?Nn(i,t,r,o,e):r&&Vn(a,n,r,o,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&Vn(a,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];Dn.Cr(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new Jt;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!(0,nt.I)(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){et(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){tt(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(T.A);function Pn(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Nn(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=e.getItemGraphicEl(h.dataIndex),f=h.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,y=a.getLayout();o?((n=new vn.A(e,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=y.rawX,n.__radialRawY=y.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,M.oi(n,{x:y.x,y:y.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],x=v.getLayout(),_=v.children.length,b=void 0,S=void 0;if(y.x===x.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[_-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[_-1].getLayout().y)/2};(b=Math.atan2(w.y-x.y,w.x-x.x))<0&&(b=2*Math.PI+b),(S=w.x<x.x)&&(b-=Math.PI)}else(b=Math.atan2(y.y-x.y,y.x-x.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(S=y.x<x.x)&&(b-=Math.PI):(S=y.x>x.x)||(b-=Math.PI);var A=S?"left":"right",I=s.getModel("label"),T=I.get("rotate"),D=T*(Math.PI/180),L=m.getTextContent();L&&(m.setTextConfig({position:I.get("position")||A,rotation:null==T?-b:D,origin:"center"}),L.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),O="relative"===k?d.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():null;O&&((0,re.z)(n).focus=O),function(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),h=e.getOrient(),p=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(y||(y=i.__edge=new mn.A({shape:zn(c,h,p,r,r)})),M.oi(y,{shape:zn(c,h,p,o,a)},e));else if("polyline"===u&&"orthogonal"===c&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],x=0;x<m.length;x++){var _=m[x].getLayout();v.push([_.x,_.y])}y||(y=i.__edge=new kn({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:f}})),M.oi(y,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}y&&("polyline"!==u||t.isExpand)&&(y.useStyle(d.defaults({strokeNoScale:!0,fill:null},g)),(0,C.Mx)(y,l,"lineStyle"),(0,C.DW)(y),s.add(y))}(r,a,c,n,g,f,y,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===C.zX||(0,C.Pk)(n.__edge,t)}})}function Rn(e,t,n,i,r){var o=En(t.tree.root,e),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===h?M.Nz(c,{shape:zn(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===i.get("layout")&&M.Nz(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function En(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Vn(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=En(e.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};M.Nz(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(t){Rn(t,e,i,r,s)})),Rn(o,e,i,r,s)}function zn(e,t,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===e){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=Sn(u,h),f=Sn(u,h+(d-h)*n),g=Sn(c,d+(h-d)*n),y=Sn(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Bn=On,Gn=(0,f.$r)();function Fn(e,t){if(Gn(this).mainData===this){var n=(0,d.extend)({},Gn(this).datas);n[this.dataType]=t,Xn(t,n,e)}else Zn(t,this.dataType,Gn(this).mainData,e);return t}function Hn(e,t){return e.struct&&e.struct.update(),t}function Wn(e,t){return(0,d.each)(Gn(t).datas,(function(n,i){n!==t&&Zn(n.cloneShallow(),i,t,e)})),t}function Yn(e){var t=Gn(this).mainData;return null==e||null==t?t:Gn(t).datas[e]}function Un(){var e=Gn(this).mainData;return null==e?[{data:e}]:(0,d.map)((0,d.keys)(Gn(e).datas),(function(t){return{type:t,data:Gn(e).datas[t]}}))}function Xn(e,t,n){Gn(e).datas={},(0,d.each)(t,(function(t,i){Zn(t,i,e,n)}))}function Zn(e,t,n,i){Gn(n).datas[t]=e,Gn(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=Yn,e.getLinkedDataAll=Un}var jn=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Xn(t,n,e),(0,d.each)(n,(function(n){(0,d.each)(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,(0,d.curry)(Fn,e))}))})),t.wrapMethod("cloneShallow",(0,d.curry)(Wn,e)),(0,d.each)(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,(0,d.curry)(Hn,e))})),(0,d.assert)(n[t.dataType]===t)},qn=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){d.isFunction(e)&&(n=t,t=e,e=null),e=e||{},d.isString(e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),$n=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;!function e(t,n){var i=t.value;a=Math.max(a,d.isArray(i)?i.length:1),o.push(t);var s=new qn((0,f.vS)(t.name,""),r);n?function(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}(s,n):r.root=s,r._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)e(l[u],s)}(t),r.root.updateDepthAndHeight(0);var s=(0,F.A)(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new H.A(s,n);return l.initData(o),i&&i(l),jn({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},e}(),Kn=$n;function Jn(e,t,n){if(e&&d.indexOf(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(d.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function Qn(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function ei(e,t){var n=Qn(e);return d.indexOf(n,t)>=0}function ti(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Ie.A(n,this,this.ecModel),r=Kn.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))})),o=0;r.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,Se.Qx)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ti(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(X.A),ii=ni;function ri(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function oi(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=wn(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=bn((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=bn());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[t];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(e,t,n){for(var i,r=[e],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)t(i,n)}(l,xn,a),s.hierNode.modifier=-l.hierNode.prelim,ri(l,_n);var u=l,c=l,h=l;ri(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),ri(l,(function(e){y=(e.getLayout().x+p)*f,m=(e.depth-1)*g;var t=Sn(y,m);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:m},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),ri(l,(function(e){m=(e.getLayout().x+p)*g,y="LR"===v?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),ri(l,(function(e){y=(e.getLayout().x+p)*f,m="TB"===v?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:y,y:m},!0)})))}}}(e,t)}))}function ai(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");(0,d.extend)(i,n)}))}))}var si=["treemapZoomToNode","treemapRender","treemapMove"],li=n(26410);function ui(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var i=t;i&&i.depth>1;)i=i.parentNode;var r=(0,li.x)(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",r)}))}var ci=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};hi(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Ie.A({itemStyle:r},this,t);i=e.levels=function(e,t){var n,i,r=(0,f.qB)(t.get("color")),o=(0,f.qB)(t.get(["aria","decal","decals"]));if(r){e=e||[],d.each(e,(function(e){var t=new Ie.A(e),r=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=e[0]||(e[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),e}}(i,t);var a=d.map(i||[],(function(e){return new Ie.A(e,o,t)}),this),s=Kn.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return(0,Se.Qx)("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ti(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},d.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=d.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){ui(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(X.A);function hi(e){var t=0;d.each(e.children,(function(e){hi(e);var n=e.value;d.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;d.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),d.isArray(e.value)?e.value[0]=n:e.value=n}var di=ci,pi=n(30756),fi=function(){function e(e){this.group=new ne.A,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,i),h.m$(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=(0,f.vS)(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=h.HU(t.pos,t.box),p=t.totalWidth,f=t.renderList,g=i.getModel("itemStyle").getItemStyle(),y=f.length-1;y>=0;y--){var m=f[y],v=m.node,x=m.width,_=m.text;p>c.width&&(p-=x-l,x=l,_=null);var b=new ve.A({shape:{points:gi(s,0,x,u,y===f.length-1,0===y)},style:(0,d.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new w.Ay({style:(0,E.VB)(r,{text:_})}),textConfig:{position:"inside"},z2:1e4*C.CA,onclick:(0,d.curry)(a,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=(0,E.VB)(o,{text:_}),b.ensureState("emphasis").style=g,(0,C.Lm)(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),yi(b,e,v),s+=x+8}},e.prototype.remove=function(){this.group.removeAll()},e}();function gi(e,t,n,i,r,o){var a=[[r?e:e-5,t],[e+n,t],[e+n,t+i],[r?e:e-5,t+i]];return!o&&a.splice(2,0,[e+n+5,t+i/2]),!r&&a.push([e,t+i/2]),a}function yi(e,t,n){(0,re.z)(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ti(n,t)}}var mi=fi,vi=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}(),xi=n(57587),_i=n(81111),bi=ne.A,Si=ot.A,wi="label",Mi="upperLabel",Ai=10*C.CA,Ii=2*C.CA,Ci=3*C.CA,Ti=(0,xi.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Di=function(e){var t=Ti(e);return t.stroke=t.fill=t.lineWidth=null,t},Li=(0,f.$r)(),ki=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,d.indexOf)(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=Jn(i,["treemapZoomToNode","treemapRootToNode"],e),a=i&&i.type,s=e.layoutInfo,l=!this._oldTree,u=this._storage,c="treemapRootToNode"===a&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(s),p=e.get("animation"),f=this._doRender(h,e,c);!p||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?f.renderFinally():this._doAnimation(h,f,e,c),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new bi,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(e,i,r,u){return function(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=e.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var g=c.width,y=c.height,m=c.borderWidth,v=c.invisible,x=a.getRawIndex(),_=s&&s.getRawIndex(),b=a.viewChildren,S=c.upperHeight,w=b&&b.length,M=p.getModel("itemStyle"),A=p.getModel(["emphasis","itemStyle"]),I=p.getModel(["blur","itemStyle"]),T=p.getModel(["select","itemStyle"]),D=M.get("borderRadius")||0,L=H("nodeGroup",bi);if(L){if(l.add(L),L.x=c.x||0,L.y=c.y||0,L.markRedraw(),Li(L).nodeWidth=g,Li(L).nodeHeight=y,c.isAboveViewRoot)return L;var k=H("background",Si,u,Ii);k&&function(t,n,i){var r=(0,re.z)(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:g,height:y,r:D}),v)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Di(M);l.fill=s;var u=Ti(A);u.fill=A.get("borderColor");var c=Ti(I);c.fill=I.get("borderColor");var h=Ti(T);if(h.fill=T.get("borderColor"),i){var d=g-2*m;G(n,s,o.opacity,{x:m,y:0,width:d,height:S})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,C.DW)(n)}t.add(n)}(L,k,w&&c.upperLabelHeight);var O=p.getModel("emphasis"),P=O.get("focus"),N=O.get("blurScope"),R=O.get("disabled"),V="ancestor"===P?a.getAncestorsIndices():"descendant"===P?a.getDescendantIndices():P;if(w)(0,C.u6)(L)&&(0,C.ix)(L,!1),k&&((0,C.ix)(k,!R),h.setItemGraphicEl(a.dataIndex,k),(0,C.gR)(k,V,N));else{var z=H("content",Si,u,Ci);z&&function(t,n){var i=(0,re.z)(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(g-2*m,0),o=Math.max(y-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:D}),v)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=Di(M);u.fill=l,u.decal=s.decal;var c=Ti(A),h=Ti(I),d=Ti(T);G(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,(0,C.DW)(n)}t.add(n)}(L,z),k.disableMorphing=!0,k&&(0,C.u6)(k)&&(0,C.ix)(k,!1),(0,C.ix)(L,!R),h.setItemGraphicEl(a.dataIndex,L),(0,C.gR)(L,V,N)}return L}}}function B(e){!e.invisible&&o.push(e)}function G(t,n,i,r){var o=p.getModel(r?Mi:wi),s=(0,f.vS)(p.get("name"),null),l=o.getShallow("show");(0,E.qM)(t,(0,E.lx)(p,r?Mi:wi),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var h=u.style,g=(0,d.normalizeCssArray)(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-g[1]-g[3],0),n=Math.max((r?r.height:t.shape.height)-g[0]-g[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,r,c);var y=u.getState("emphasis");F(y?y.style:null,r,c)}}function F(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function H(e,o,s,l){var u=null!=_&&n[e][_],c=r[e];return u?(n[e][_]=null,function(e,t){var n=e[x]={};t instanceof bi?(n.oldX=t.x,n.oldY=t.y):n.oldShape=(0,d.extend)({},t.shape)}(c,u)):v||((u=new o)instanceof Mt.Ay&&(u.z2=function(e,t){return e*Ai+t}(s,l)),function(e,t){var n=e[x]={},o=a.parentNode,s=t instanceof ne.A;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(c,u)),t[e][x]=u}}(t,a,s,n,o,l,e,i,r,u)}!function e(t,n,i,r,o){function a(e){return e.getId()}function s(a,s){var l=null!=a?t[a]:null,c=null!=s?n[s]:null,h=u(l,c,i,o);h&&e(l&&l.viewChildren||[],c&&c.viewChildren||[],h,r,o+1)}r?(n=t,(0,d.each)(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new pi.A(n,t,a,a).add(s).update(s).remove((0,d.curry)(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&(0,d.each)(e,(function(e,n){var i=t[n];(0,d.each)(e,(function(e){e&&(i.push(e),Li(e).willDelete=!0)}))})),t}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var h=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===h.width&&p.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){(0,d.each)(c,(function(e){(0,d.each)(e,(function(e){e.parent&&e.parent.remove(e)}))})),(0,d.each)(l,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,d.isFunction)(r)?0:r)||0,s=((0,d.isFunction)(o)?null:o)||"cubicOut",l=new vi;(0,d.each)(t.willDeleteEls,(function(e,t){(0,d.each)(e,(function(e,n){if(!e.invisible){var r,o=e.parent,u=Li(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),(0,d.each)(this._storage,(function(e,n){(0,d.each)(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof ne.A?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=(0,d.extend)({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished((0,d.bind)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||((t=this._controller=new Qe(e.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",(0,d.bind)(this._onPan,this)),t.on("zoom",(0,d.bind)(this._onZoom,this)));var i=new ee.A(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,i=e.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new ee.A(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var c=a.min||0,h=a.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var f=Zt.create();Zt.translate(f,f,[-t,-n]),Zt.scale(f,f,[d,d]),Zt.translate(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,_i.JW)(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new mi(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(ei(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(T.A),Oi=ki,Pi=n(78987),Ni=d.each,Ri=d.isObject,Ei=-1,Vi=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=d.clone(t);this.type=i,this.mappingMethod=n,this._normalizeData=Zi[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(zi(r),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,d.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Ni(t,(function(e,t){n[e]=t})),!d.isArray(i)){var r=[];d.isObject(i)?Ni(i,(function(e,t){var i=n[t];r[null!=i?i:Ei]=e})):r[Ei]=i,i=Xi(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}(r):zi(r,!0):(d.assert("linear"!==n||r.dataExtent),zi(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return d.bind(this._normalizeData,this)},e.listVisualTypes=function(){return d.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){d.isObject(e)?d.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=d.isArray(t)?[]:d.isObject(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Ni(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(d.isArray(e))e=e.slice();else{if(!Ri(e))return[];var t=[];Ni(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||d.isString(s)&&s===e+"")return o;n&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(ji(c[1],e,u[1]))return o}else if(u[1]===1/0){if(ji(c[0],u[0],e))return o}else if(ji(c[0],u[0],e)&&ji(c[1],e,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:Fi("color"),getColorMapper:function(){var e=this.option;return d.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Hi.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=Pi.fastLerp(t,e.parsedVisual,i),r?i:Pi.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Pi.stringify(Pi.fastLerp(e,this.option.parsedVisual),"rgba")},category:Hi,piecewise:function(e,t){var n=Ui.call(this,t);return null==n&&(n=Pi.stringify(Pi.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:Wi}},colorHue:Bi((function(e,t){return Pi.modifyHSL(e,t)})),colorSaturation:Bi((function(e,t){return Pi.modifyHSL(e,null,t)})),colorLightness:Bi((function(e,t){return Pi.modifyHSL(e,null,null,t)})),colorAlpha:Bi((function(e,t){return Pi.modifyAlpha(e,t)})),decal:{applyVisual:Fi("decal"),_normalizedToVisual:{linear:null,category:Hi,piecewise:null,fixed:null}},opacity:{applyVisual:Fi("opacity"),_normalizedToVisual:Yi([0,1])},liftZ:{applyVisual:Fi("liftZ"),_normalizedToVisual:{linear:Wi,category:Wi,piecewise:Wi,fixed:Wi}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:Gi,category:Hi,piecewise:function(e,t){var n=Ui.call(this,t);return null==n&&(n=Gi.call(this,e)),n},fixed:Wi}},symbolSize:{applyVisual:Fi("symbolSize"),_normalizedToVisual:Yi([0,1])}},e}();function zi(e,t){var n=e.visual,i=[];d.isObject(n)?Ni(n,(function(e){i.push(e)})):null!=n&&i.push(n),t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),Xi(e,i)}function Bi(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:Yi([0,1])}}function Gi(e){var t=this.option.visual;return t[Math.round((0,c.Cb)(e,[0,1],[0,t.length-1],!0))]||{}}function Fi(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function Hi(e){var t=this.option.visual;return t[this.option.loop&&e!==Ei?e%t.length:e]}function Wi(){return this.option.visual[0]}function Yi(e){return{linear:function(t){return(0,c.Cb)(t,e,this.option.visual,!0)},category:Hi,piecewise:function(t,n){var i=Ui.call(this,n);return null==i&&(i=(0,c.Cb)(t,e,this.option.visual,!0)),i},fixed:Wi}}function Ui(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=n[Vi.findPieceIndex(e,n)];if(i&&i.visual)return i.visual[this.type]}}function Xi(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=d.map(t,(function(e){return Pi.parse(e)||[0,0,0,1]}))),t}var Zi={linear:function(e){return(0,c.Cb)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Vi.findPieceIndex(e,t,!0);if(null!=n)return(0,c.Cb)(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Ei:t},fixed:d.noop};function ji(e,t,n){return e?t<=n:t<n}var qi=Vi,$i=(0,f.$r)(),Ki={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||Ji(t,{},e.getViewRoot().getAncestors(),e)}};function Ji(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),u=function(e,t,n){var i=(0,d.extend)({},t),r=n.designatedVisualItemStyle;return(0,d.each)(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,t,i),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),p=l.get("borderColorSaturation");null!=p&&(h=function(e,t){return null!=t?(0,Pi.modifyHSL)(t,null,null,e):null}(p,s=Qi(u))),c.stroke=h;var f=e.viewChildren;if(f&&f.length){var g=function(e,t,n,i,r,o){if(o&&o.length){var a=tr(t,"color")||null!=r.color&&"none"!==r.color&&(tr(t,"colorAlpha")||tr(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new qi(h);return $i(d).drColorMappingBy=c,d}}}(0,r,o,0,u,f);(0,d.each)(f,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=function(e,t,n,i,r,o){var a=(0,d.extend)({},t);if(r){var s=r.type,l="color"===s&&$i(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,e,t,g,i);Ji(e,o,n,i)}}))}else s=Qi(u),c.fill=s}}function Qi(e){var t=er(e,"color");if(t){var n=er(e,"colorAlpha"),i=er(e,"colorSaturation");return i&&(t=(0,Pi.modifyHSL)(t,null,null,i)),n&&(t=(0,Pi.modifyAlpha)(t,n)),t}}function er(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function tr(e,t){var n=e.get(t);return(0,d.isArray)(n)&&n.length?{name:t,range:n}:null}var nr=Math.max,ir=Math.min,rr=d.retrieve,or=d.each,ar=["itemStyle","borderWidth"],sr=["itemStyle","gapWidth"],lr=["upperLabel","show"],ur=["upperLabel","height"],cr={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=h.dV(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=(0,c.lo)(rr(s.width,l[0]),r),p=(0,c.lo)(rr(s.height,l[1]),o),f=i&&i.type,g=Jn(i,["treemapZoomToNode","treemapRootToNode"],e),y="treemapRender"===f||"treemapMove"===f?i.rootRect:null,m=e.getViewRoot(),v=Qn(m);if("treemapMove"!==f){var x="treemapZoomToNode"===f?function(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*e.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,d=o.children,p=0,f=d.length;p<f;p++)h+=d[p].getValue();var g=a.getValue();if(0===g)return s;u*=h/g;var y=o.getModel(),m=y.get(ar);(u+=4*m*m+(3*m+Math.max(m,gr(y)))*Math.pow(u,.5))>c.Is&&(u=c.Is),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[i*v,r*v]}(e,g,m,u,p):y?[y.width,y.height]:[u,p],_=a.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var b={squareRatio:a.squareRatio,sort:_,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var S={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};m.setLayout(S),hr(m,b,!1,0),S=m.getLayout(),or(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(d.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},S))}))}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,y,g),!0),e.setLayoutInfo(s),fr(w,new ee.A(-s.x,-s.y,r,o),v,m,0)}};function hr(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(ar),u=s.get(sr)/2,c=gr(s),h=Math.max(l,c),p=l-u,f=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var g=(r=nr(r-2*p,0))*(o=nr(o-p-f,0)),y=function(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];a=d.filter(a,(function(e){return!e.isRemoved()})),function(e,t){t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}))}(a,s);var u=function(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],or(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=function(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*n;a[c].setLayout({area:p})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}(e,s,g,t,n,i);if(y.length){var m={x:p,y:f,width:r,height:o},v=ir(r,o),x=1/0,_=[];_.area=0;for(var b=0,S=y.length;b<S;){var w=y[b];_.push(w),_.area+=w.getLayout().area;var M=dr(_,v,t.squareRatio);M<=x?(b++,x=M):(_.area-=_.pop().getLayout().area,pr(_,v,m,u,!1),v=ir(m.width,m.height),_.length=_.area=0,x=1/0)}if(_.length&&pr(_,v,m,u,!0),!n){var A=s.get("childrenVisibleMin");null!=A&&g<A&&(n=!0)}for(b=0,S=y.length;b<S;b++)hr(y[b],t,n,i+1)}}}function dr(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?nr(u*i/l,l/(u*r)):1/0}function pr(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=nr(c-2*i,0),m=n[s[o]]+n[l[o]]-u,v=h===d-1||m<g?m:g,x=f[l[o]]=nr(v-2*i,0);f[s[a]]=n[s[a]]+ir(i,y/2),f[s[o]]=u+ir(i,x/2),u+=v,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function fr(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new ee.A(t.x-o.x,t.y-o.y,t.width,t.height);or(e.viewChildren||[],(function(e){fr(e,l,n,i,r+1)}))}}function gr(e){return e.get(lr)?e.get(ur):0}function yr(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){(0,d.isNumber)(n)&&(n=r[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}))}function mr(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){(0,d.isString)(t)&&(t=r["ec-"+t]);var o=n.getItemVisual(t,"style"),a=i.ensureUniqueItemVisual(e,"style");(0,d.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(e,s[l],n.getItemVisual(t,s[l]))}}))}))}function vr(e){return e instanceof Array||(e=[e,e]),e}function xr(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=vr(e.get("edgeSymbol")),r=vr(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=vr(i.getShallow("symbol",!0)),a=vr(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch((0,d.extend)(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style"),l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var _r="--\x3e",br=function(e){return e.get("autoCurveness")||null},Sr=function(e,t){var n=br(e),i=20,r=[];if(d.isNumber(n))i=n;else if(d.isArray(n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},wr=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(_r)},Mr=function(e){var t=e.split(_r);return[t[0],t[2],t[1]].join(_r)},Ar=function(e,t){var n=wr(e.node1,e.node2,t);return t.__edgeMap[n]},Ir=function(e,t){return Cr(wr(e.node1,e.node2,t),t)+Cr(wr(e.node2,e.node1,t),t)},Cr=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Tr(e,t,n,i){var r=br(t),o=d.isArray(r);if(!r)return null;var a=Ar(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=Ir(e,t);Sr(t,u),e.lineStyle=e.lineStyle||{};var c=wr(e.node1,e.node2,t),h=t.__curvenessList,p=o||u%2?0:1;if(a.isForward)return h[p+s];var f=Mr(c),g=Cr(f,t),y=h[s+g+p];return i?o?r&&0===r[0]?(g+p)%2?y:-y:((g%2?0:1)+p)%2?y:-y:(g+p)%2?y:-y:h[s+g+p]}function Dr(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),Lr(n,e)}}function Lr(e,t){e.eachEdge((function(e,n){var i=d.retrieve3(e.getModel().get(["lineStyle","curveness"]),-Tr(e,t,n,!0),0),r=Xt.clone(e.node1.getLayout()),o=Xt.clone(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)}))}function kr(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];(0,d.each)(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}Lr(i.graph,e)}else t&&"none"!==t||Dr(e)}))}function Or(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function Pr(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Nr=Math.PI,Rr=[];function Er(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var p=r.pointToData(i),f=p[0],g=p[1],y=[f-l,g-u];Xt.normalize(y,y),Xt.scale(y,y,c),n.setLayout([l+y[0],u+y[1]],!0),zr(n,e.get(["circular","rotateLabel"]),l,u)}Vr[t](e,s,a,c,l,u,h),s.eachEdge((function(t,n){var i,r=d.retrieve3(t.getModel().get(["lineStyle","curveness"]),Tr(t,e,n),0),o=Xt.clone(t.node1.getLayout()),a=Xt.clone(t.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),u*r+c*(1-r)]),t.setLayout([o,a,i])}))}}}var Vr={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;Rr.length=a;var l=Or(e);t.eachNode((function(e){var t=Pr(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=Nr/2),Rr[e.dataIndex]=n,s+=2*n}));var u=(2*Nr-s)/a/2,c=0;t.eachNode((function(e){var t=u+Rr[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t}))}};function zr(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");d.extend(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function Br(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Er(e,"symbolSize")}))}var Gr=Xt.scaleAndAdd;function Fr(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Er(e,"value"):Dr(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),h=a.get("repulsion"),p=a.get("edgeLength"),f=d.isArray(h)?h:[h,h],g=d.isArray(p)?p:[p,p];g=[g[1],g[0]];var y=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=(0,c.Cb)(e,l,f);return isNaN(i)&&(i=(f[0]+f[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),m=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=(0,c.Cb)(t,u,g);isNaN(o)&&(o=(g[0]+g[1])/2);var a=r.getModel(),s=d.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Tr(r,e,n,!0),0);return{n1:y[r.node1.dataIndex],n2:y[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),x=function(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=Xt.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Xt.clone(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Xt.sub(t,c.p,s.p);var h=Xt.len(t)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),Xt.normalize(t,t),!s.fixed&&Gr(s.p,s.p,t,f*h*g),!c.fixed&&Gr(c.p,c.p,t,-(1-f)*h*g)}}for(o=0;o<n;o++)(x=i[o]).fixed||(Xt.sub(t,l,x.p),Gr(x.p,x.p,t,u*g));for(o=0;o<n;o++){s=i[o];for(var y=o+1;y<n;y++){c=i[y],Xt.sub(t,c.p,s.p),0===(h=Xt.len(t))&&(Xt.set(t,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&Gr(s.pp,s.pp,t,m),!c.fixed&&Gr(c.pp,c.pp,t,-m)}}var v=[];for(o=0;o<n;o++){var x;(x=i[o]).fixed||(Xt.sub(v,x.p,x.pp),Gr(x.p,x.p,v,g),Xt.copy(x.pp,x.p))}var _=(g*=.992)<.01;p&&p(i,r,_),e&&e(_)}}}(y,m,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});x.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Xt.copy(e[n].p,i.getNodeByIndex(n).getLayout())})),x.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],Xt.copy(d[0],c),Xt.copy(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),e.forceLayout=x,e.preservedPoints=n,x.step()}else e.forceLayout=null}))}function Hr(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];Dn.Cr(o,a,s),s[0]-a[0]==0&&(s[0]+=1,a[0]-=1),s[1]-a[1]==0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=function(e,t,n){var i=(0,d.extend)(e.getBoxLayoutParams(),{aspect:n});return(0,h.dV)(i,{width:t.getWidth(),height:t.getHeight()})}(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],p=s[1]-a[1],f=u.width,g=u.height,y=e.coordinateSystem=new Jt;y.zoomLimit=e.get("scaleLimit"),y.setBoundingRect(a[0],a[1],c,p),y.setViewRect(u.x,u.y,f,g),y.setCenter(e.get("center"),t),y.setZoom(e.get("zoom")),n.push(y)}})),n}var Wr,Yr=n(75832),Ur=Yr.A.prototype,Xr=mn.A.prototype,Zr=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function jr(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}Wr=Zr,(0,S.C6)((function(){return null!==Wr&&Wr.apply(this,arguments)||this}),Wr);var qr=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return(0,S.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zr},t.prototype.buildPath=function(e,t){jr(t)?Ur.buildPath.call(this,e,t):Xr.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return jr(this.shape)?Ur.pointAt.call(this,e):Xr.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=jr(t)?[t.x2-t.x1,t.y2-t.y1]:Xr.tangentAt.call(this,e);return Xt.normalize(n,n)},t}(te.Ay),$r=["fromSymbol","toSymbol"];function Kr(e){return"_"+e+"Type"}function Jr(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=ie.xU(r);return i+l+ie.hV(a||0,l)+(o||"")+(s||"")}function Qr(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=ie.xU(r),u=ie.hV(a||0,l),c=ie.v5(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function eo(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var to=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return(0,S.C6)(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=function(e){var t=new qr({name:"line",subPixelOptimize:!0});return eo(t.shape,e),t}(e.getItemLayout(t));r.shape.percent=0,M.LW(r,{shape:{percent:1}},i,t),this.add(r),(0,d.each)($r,(function(n){var i=Qr(n,e,t);this.add(i),this[Kr(n)]=Jr(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};eo(a.shape,o),M.oi(r,a,i,t),(0,d.each)($r,(function(n){var i=Jr(n,e,t),r=Kr(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=Qr(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,h=n&&n.focus,p=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),g=f.getModel("emphasis");o=g.getModel("lineStyle").getLineStyle(),a=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),u=g.get("disabled"),h=g.get("focus"),p=g.get("blurScope"),l=(0,E.lx)(f)}var y=e.getItemVisual(t,"style"),m=y.stroke;r.useStyle(y),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,(0,d.each)($r,(function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=y.opacity;for(var n=0;n<C.BV.length;n++){var i=C.BV[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=i.getRawValue(t);(0,E.qM)(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:m||"#000",defaultOpacity:y.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?(0,c.LI)(v):v)+""});var x=this.getTextContent();if(x){var _=l.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var b=_.get("distance");(0,d.isArray)(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),(0,C.Lm)(this,h,p,u)},t.prototype.highlight=function(){(0,C.HY)(this)},t.prototype.downplay=function(){(0,C.SD)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");eo(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Xt.sub([],u,l);if(Xt.normalize(c,c),t&&(t.setPosition(l),w(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(u),w(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,y=s/2,m=a.tangentAt(y),v=[m[1],-m[0]],x=a.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,d="top";break;default:S=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+S,h=m[0]<0?"right":"left",i.originX=-f*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,h="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+S,h=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-S}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(ne.A),no=to;function io(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,E.lx)(t)}}function ro(e){return isNaN(e[0])||isNaN(e[1])}function oo(e){return e&&!ro(e[0])&&!ro(e[1])}var ao=function(){function e(e){this.group=new ne.A,this._LineCtor=e||no}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=io(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=io(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++)if(oo(t.getItemLayout(i))){var r=new this._LineCtor(t,i,this._seriesScope);r.traverse(n),this.group.add(r),t.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){me.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(oo(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);oo(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}(),so=n(13922),lo=[],uo=[],co=[],ho=so.k3,po=Xt.distSquare,fo=Math.abs;function go(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)lo[0]=ho(r[0],o[0],a[0],c),lo[1]=ho(r[1],o[1],a[1],c),(p=fo(po(lo,t)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u;uo[0]=ho(r[0],o[0],a[0],i),uo[1]=ho(r[1],o[1],a[1],i),co[0]=ho(r[0],o[0],a[0],d),co[1]=ho(r[1],o[1],a[1],d);var p=po(uo,t)-l;if(fo(p)<.01)break;var f=po(co,t)-l;u/=2,p<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function yo(e,t){var n=[],i=so.kx,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Xt.clone(l[0]),Xt.clone(l[1])],l[2]&&l.__original.push(Xt.clone(l[2])));var h=l.__original;if(null!=l[2]){if(Xt.copy(r[0],h[0]),Xt.copy(r[1],h[2]),Xt.copy(r[2],h[1]),u&&"none"!==u){var d=Pr(e.node1),p=go(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=Pr(e.node2),p=go(r,h[1],d*t),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),Xt.copy(l[0],r[0]),Xt.copy(l[1],r[2]),Xt.copy(l[2],r[1])}else Xt.copy(o[0],h[0]),Xt.copy(o[1],h[1]),Xt.sub(a,o[1],o[0]),Xt.normalize(a,a),u&&"none"!==u&&(d=Pr(e.node1),Xt.scaleAndAdd(o[0],o[0],a,d*t)),c&&"none"!==c&&(d=Pr(e.node2),Xt.scaleAndAdd(o[1],o[1],a,-d*t)),Xt.copy(l[0],o[0]),Xt.copy(l[1],o[1])}))}function mo(e){return"view"===e.type}var vo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){var n=new Q.A,i=new ao,r=this.group;this._controller=new Qe(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(mo(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):M.oi(s,l,e)}yo(e.getGraph(),Or(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),Er(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;default:u.setItemLayout(n,[r.x,r.y]),Lr(e.getGraph(),e),i.updateLayout(e)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&((0,re.z)(r).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&((0,re.z)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(e){zr(e,f,g,y)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))}()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!(0,nt.I)(t,n,e)})),mo(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){et(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){tt(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),yo(e.getGraph(),Or(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Or(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){yo(e.getGraph(),Or(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(T.A),xo=vo;function _o(e){return"_EC_"+e}var bo=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[_o(e)]){var i=new So(e,t);return i.hostGraph=this,this.nodes.push(i),n[_o(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[_o(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(d.isNumber(e)&&(e=this.nodes[e]),d.isNumber(t)&&(t=this.nodes[t]),e instanceof So||(e=i[_o(e)]),t instanceof So||(t=i[_o(t)]),e&&t){var o=e.id+"-"+t.id,a=new wo(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof So&&(e=e.id),t instanceof So&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof So||(t=this._nodesMap[_o(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;for(t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),So=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=d.createHashMap(),t=d.createHashMap(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];for(a++,t.set(u.dataIndex,!0),l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),wo=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=d.createHashMap(),t=d.createHashMap();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];for(r++,t.set(s.dataIndex,!0),a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function Mo(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}d.mixin(So,Mo("hostGraph","data")),d.mixin(wo,Mo("hostGraph","edgeData"));var Ao=bo,Io=n(13798);function Co(e,t,n,i,r){for(var o=new Ao(i),a=0;a<e.length;a++)o.addNode(d.retrieve(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],h=c.source,p=c.target;o.addEdge(h,p,u)&&(l.push(c),s.push(d.retrieve((0,f.vS)(c.id,null),h+" > "+p)),u++)}var g,y=n.get("coordinateSystem");if("cartesian2d"===y||"polar"===y)g=(0,$.A)(e,n);else{var m=Io.A.get(y),v=m&&m.dimensions||[];d.indexOf(v,"value")<0&&v.concat(["value"]);var x=(0,F.A)(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(g=new H.A(x,n)).initData(e)}var _=new H.A(["value"],n);return _.initData(l,s),r&&r(g,_),jn({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var To=n(17264),Do=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,S.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new U(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,f.M5)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,i=e.edges||e.links||[],r=e.data||e.nodes||[],o=this;if(r&&i){br(n=this)&&(n.__curvenessList=[],n.__edgeMap={},Sr(n));var a=Co(r,i,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=Ie.A.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=r,e.getModel=i,e}))}));return d.each(a.edges,(function(e){!function(e,t,n,i){if(br(n)){var r=wr(e,t,n),o=n.__edgeMap,a=o[Mr(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,Se.Qx)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,To.J)({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=d.map(this.option.categories||[],(function(e){return null!=e.value?e:d.extend({value:0},e)})),t=new H.A(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(X.A),Lo=Do,ko={type:"graphRoam",event:"graphRoam",update:"none"},Oo=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Po=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new Oo},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(te.Ay),No=n(53731);function Ro(e,t){var n=null==e?"":e+"";return t&&((0,d.isString)(t)?n=t.replace("{value}",n):(0,d.isFunction)(t)&&(n=t(e))),n}var Eo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r);return{cx:(0,c.lo)(n[0],t.getWidth()),cy:(0,c.lo)(n[1],t.getHeight()),r:(0,c.lo)(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap")?No.A:I.A,h=u.get("show"),f=u.getModel("lineStyle"),g=f.get("width"),y=[s,l];(0,p.q)(y,!a);for(var m=(l=y[1])-(s=y[0]),v=s,x=[],_=0;h&&_<i.length;_++){var b=new c({shape:{startAngle:v,endAngle:l=s+m*Math.min(Math.max(i[_][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-g,r:r.r},silent:!0});b.setStyle({fill:i[_][1]}),b.setStyle(f.getLineStyle(["color","width"])),x.push(b),v=l}x.reverse(),(0,d.each)(x,(function(e){return o.add(e)}));var S=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,S,r,s,l,a,g),this._renderTitleAndDetail(e,t,n,S,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,S,r,s,l,a,g)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,h,p=this.group,f=r.cx,g=r.cy,y=r.r,m=+e.get("min"),v=+e.get("max"),x=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),S=e.get("splitNumber"),M=_.get("splitNumber"),A=(0,c.lo)(x.get("length"),y),I=(0,c.lo)(_.get("length"),y),C=o,T=(a-o)/S,D=T/M,L=x.getModel("lineStyle").getLineStyle(),k=_.getModel("lineStyle").getLineStyle(),O=x.get("distance"),P=0;P<=S;P++){if(u=Math.cos(C),h=Math.sin(C),x.get("show")){var N=O?O+l:l,R=new Yr.A({shape:{x1:u*(y-N)+f,y1:h*(y-N)+g,x2:u*(y-A-N)+f,y2:h*(y-A-N)+g},style:L,silent:!0});"auto"===L.stroke&&R.setStyle({stroke:i(P/S)}),p.add(R)}if(b.get("show")){N=b.get("distance")+O;var V=Ro((0,c.LI)(P/S*(v-m)+m),b.get("formatter")),z=i(P/S),B=u*(y-A-N)+f,G=h*(y-A-N)+g,F=b.get("rotate"),H=0;"radial"===F?(H=-C+2*Math.PI)>Math.PI/2&&(H+=Math.PI):"tangential"===F?H=-C-Math.PI/2:(0,d.isNumber)(F)&&(H=F*Math.PI/180),0===H?p.add(new w.Ay({style:(0,E.VB)(b,{text:V,x:B,y:G,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:z}),silent:!0})):p.add(new w.Ay({style:(0,E.VB)(b,{text:V,x:B,y:G,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:B,originY:G,rotation:H}))}if(_.get("show")&&P!==S){N=(N=_.get("distance"))?N+l:l;for(var W=0;W<=M;W++){u=Math.cos(C),h=Math.sin(C);var Y=new Yr.A({shape:{x1:u*(y-N)+f,y1:h*(y-N)+g,x2:u*(y-I-N)+f,y2:h*(y-I-N)+g},silent:!0,style:k});"auto"===k.stroke&&Y.setStyle({stroke:i((P+W/M)/S)}),p.add(Y),C+=D}C-=D}else C+=T}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,h=this._data,p=this._progressEls,f=[],g=e.get(["pointer","show"]),y=e.getModel("progress"),m=y.get("show"),v=e.getData(),x=v.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),S=[_,b],w=[o,a];function A(t,n){var i,o=v.getItemModel(t).getModel("pointer"),a=(0,c.lo)(o.get("width"),r.r),s=(0,c.lo)(o.get("length"),r.r),l=e.get(["pointer","icon"]),u=o.get("offsetCenter"),h=(0,c.lo)(u[0],r.r),d=(0,c.lo)(u[1],r.r),p=o.get("keepAspect");return(i=l?(0,ie.v5)(l,h-a/2,d-s,a,s,null,p):new Po({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:d}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function T(e,t){var n=y.get("roundCap")?No.A:I.A,i=y.get("overlap"),a=i?y.get("width"):l/v.count(),u=i?r.r-a:r.r-(e+1)*a,c=i?r.r:r.r-e*a,h=new n({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=b-v.get(x,e)%b),h}(m||g)&&(v.diff(h).add((function(t){var n=v.get(x,t);if(g){var i=A(t,o);M.LW(i,{rotation:-((isNaN(+n)?w[0]:(0,c.Cb)(n,S,w,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(m){var r=T(t,o),a=y.get("clip");M.LW(r,{shape:{endAngle:(0,c.Cb)(n,S,w,a)}},e),u.add(r),(0,re.a)(e.seriesIndex,v.dataType,t,r),f[t]=r}})).update((function(t,n){var i=v.get(x,t);if(g){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=A(t,a);s.rotation=a,M.oi(s,{rotation:-((isNaN(+i)?w[0]:(0,c.Cb)(i,S,w,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=p[n],d=T(t,l?l.shape.endAngle:o),_=y.get("clip");M.oi(d,{shape:{endAngle:(0,c.Cb)(i,S,w,_)}},e),u.add(d),(0,re.a)(e.seriesIndex,v.dataType,t,d),f[t]=d}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(g){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof xe.Ay){var h=s.style;s.useStyle((0,d.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,c.Cb)(v.get(x,e),S,[0,1],!0))),s.z2EmphasisLift=0,(0,C.Mx)(s,t),(0,C.Lm)(s,r,o,a)}if(m){var p=f[e];p.useStyle(v.getItemVisual(e,"style")),p.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,(0,C.Mx)(p,t),(0,C.Lm)(p,r,o,a)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,ie.v5)(r,t.cx-i/2+(0,c.lo)(o[0],t.r),t.cy-i/2+(0,c.lo)(o[1],t.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),h=new ne.A,d=[],p=[],f=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new w.Ay({silent:!0}),p[e]=new w.Ay({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],p[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),y=new ne.A,m=i((0,c.Cb)(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var x=v.get("offsetCenter"),_=r.cx+(0,c.lo)(x[0],r.r),b=r.cy+(0,c.lo)(x[1],r.r);(D=d[t]).attr({z2:g?0:2,style:(0,E.VB)(v,{x:_,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),y.add(D)}var S=n.getModel("detail");if(S.get("show")){var w=S.get("offsetCenter"),M=r.cx+(0,c.lo)(w[0],r.r),A=r.cy+(0,c.lo)(w[1],r.r),I=(0,c.lo)(S.get("width"),r.r),C=(0,c.lo)(S.get("height"),r.r),T=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,D=p[t],L=S.get("formatter");D.attr({z2:g?0:2,style:(0,E.VB)(S,{x:M,y:A,text:Ro(o,L),width:isNaN(I)?null:I,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:T})}),(0,E.Oh)(D,{normal:S},o,(function(e){return Ro(e,L)})),f&&(0,E.xb)(D,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return Ro(a?a.interpolatedValue:o,L)}}),y.add(D)}h.add(y)})),this.group.add(h),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(T.A),Vo=Eo,zo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){return W(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}(X.A),Bo=zo,Go=["itemStyle","opacity"],Fo=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new A.A,a=new w.Ay;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return(0,S.C6)(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(Go);l=null==l?1:l,n||(0,M.ap)(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,M.LW(i,{style:{opacity:l}},r,t)):M.oi(i,{style:{opacity:l},shape:{points:a.points}},r,t),(0,C.Mx)(i,o),this._updateLabel(e,t),(0,C.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"style"),u=l.fill;(0,E.qM)(r,(0,E.lx)(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:l.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new D.A(c[0][0],c[0][1]):null},M.oi(r,{style:{x:s.x,y:s.y}},o,t),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),(0,L.eR)(n,(0,L.rv)(a),{stroke:u})},t}(ve.A),Ho=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new Fo(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);M.t5(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(T.A),Wo=Ho,Yo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new U(d.bind(this.getData,this),d.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return W(this,{coordDimensions:["value"],encodeDefaulter:d.curry(Y.ln,this)})},t.prototype._defaultLabelLine=function(e){(0,f.M5)(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(X.A),Uo=Yo;function Xo(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=function(e,t){return h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=o.width,l=o.height,u=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return(0,d.isFunction)(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}(n,r),p=o.x,f=o.y,g="horizontal"===a?[(0,c.lo)(e.get("minSize"),l),(0,c.lo)(e.get("maxSize"),l)]:[(0,c.lo)(e.get("minSize"),s),(0,c.lo)(e.get("maxSize"),s)],y=n.getDataExtent(i),m=e.get("min"),v=e.get("max");null==m&&(m=Math.min(y[0],0)),null==v&&(v=y[1]);var x=e.get("funnelAlign"),_=e.get("gap"),b=(("horizontal"===a?s:l)-_*(n.count()-1))/n.count(),S=function(e,t){if("horizontal"===a){var r=n.get(i,e)||0,o=(0,c.Cb)(r,[m,v],g,!0),u=void 0;switch(x){case"top":u=f;break;case"center":u=f+(l-o)/2;break;case"bottom":u=f+(l-o)}return[[t,u],[t,u+o]]}var h,d=n.get(i,e)||0,y=(0,c.Cb)(d,[m,v],g,!0);switch(x){case"left":h=p;break;case"center":h=p+(s-y)/2;break;case"right":h=p+s-y}return[[h,t],[h+y,t]]};"ascending"===r&&(b=-b,_=-_,"horizontal"===a?p+=s:f+=l,u=u.reverse());for(var w=0;w<u.length;w++){var M=u[w],A=u[w+1],I=n.getItemModel(M);if("horizontal"===a){var C=I.get(["itemStyle","width"]);null==C?C=b:(C=(0,c.lo)(C,s),"ascending"===r&&(C=-C));var T=S(M,p),D=S(A,p+C);p+=C+_,n.setItemLayout(M,{points:T.concat(D.slice().reverse())})}else{var L=I.get(["itemStyle","height"]);null==L?L=b:(L=(0,c.lo)(L,l),"ascending"===r&&(L=-L)),T=S(M,f),D=S(A,f+L),f+=L+_,n.setItemLayout(M,{points:T.concat(D.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var i,r,o,a,s=e.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=e.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,y=void 0,m=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=p-m)-5,i="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=p+m)+5,i="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,o=(y=(f=(h[3][1]+h[0][1])/2)-m)-5,i="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,o=(y=(f=(h[1][1]+h[2][1])/2)+m)+5,i="center"):"rightTop"===l?(p="horizontal"===t?h[3][0]:h[1][0],f="horizontal"===t?h[3][1]:h[1][1],"horizontal"===t?(o=(y=f-m)-5,i="center"):(r=(g=p+m)+5,i="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===t?(o=(y=f+m)+5,i="center"):(r=(g=p+m)+5,i="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===t?h[0][1]:h[1][1],"horizontal"===t?(o=(y=f-m)-5,i="center"):(r=(g=p-m)-5,i="right")):"leftBottom"===l?(p="horizontal"===t?h[1][0]:h[3][0],f="horizontal"===t?h[1][1]:h[2][1],"horizontal"===t?(o=(y=f+m)+5,i="center"):(r=(g=p-m)-5,i="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===t?(o=(y=f+m)+5,i="center"):(r=(g=p+m)+5,i="left")),"horizontal"===t?r=g=p:o=y=f,a=[[p,f],[g,y]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var Zo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new ne.A,n._initialized=!1,n}return(0,S.C6)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=$o(e);if(o.diff(a).add((function(e){Ko(qo(o,r,e,l,s),o,e,u)})).update((function(t,n){var i=a.getItemGraphicEl(n),r=jo(o,t,l,s);o.setItemGraphicEl(t,i),M.oi(i,{shape:{points:r}},e,t),(0,M.ap)(i),Ko(i,o,t,u)})).remove((function(e){var t=a.getItemGraphicEl(e);r.remove(t)})).execute(),!this._initialized){this._initialized=!0;var c=function(e,t){var n=e.model,i=e.getRect(),o=new ot.A({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===n.get("layout")?"width":"height";return o.setShape(a,0),M.LW(o,{shape:{width:i.width,height:i.height}},t,(function(){setTimeout((function(){r.removeClipPath()}))})),o}(s,e);r.setClipPath(c)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=$o(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=qo(i,this._dataGroup,l,o,r);u.incremental=!0,Ko(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(T.A);function jo(e,t,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function qo(e,t,n,i,r){var o=jo(e,n,i,r),a=new A.A({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function $o(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=(0,c.Sm)(t),(0,d.eqNaN)(t)&&(t=0),{smooth:t}}function Ko(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");(0,C.Mx)(e,r,"lineStyle"),(0,C.Lm)(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var Jo=Zo,Qo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,$.A)(null,this,{useEncodeDefaulter:(0,d.bind)(ea,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(X.A);function ea(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return(0,d.each)(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var ta=Qo,na=["lineStyle","opacity"],ia={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(na,!0);null!=o&&(r=o)}t.ensureUniqueItemVisual(n,"style").opacity=r}),e.start,e.end)}}}};function ra(e){!function(e){if(!e.parallel){var t=!1;d.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}(e),function(e){var t=f.qB(e.parallelAxis);d.each(t,(function(t){if(d.isObject(t)){var n=t.parallelIndex||0,i=f.qB(e.parallel)[n];i&&i.parallelAxisDefault&&d.merge(t,i.parallelAxisDefault,!1)}}))}(e)}var oa=n(99076),aa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},(0,d.each)(sa,(function(e,t){n.getZr().on(t,this._handlers[t]=(0,d.bind)(e,this))}),this)),(0,oa.N)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){(0,oa.IU)(this,"_throttledDispatchExpand"),(0,d.each)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction((0,d.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ee.A),sa={mousedown:function(e){la(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(la(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&la(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function la(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var ua=aa,ca=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&d.merge(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){d.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=d.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);d.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Te.A),ha=ca,da=n(2936),pa=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return(0,S.C6)(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ge.A),fa=n(87432),ga=d.each,ya=Math.min,ma=Math.max,va=Math.floor,xa=Math.ceil,_a=c.LI,ba=Math.PI,Sa=function(){function e(e,t,n){this.type="parallel",this._axesMap=d.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;ga(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new pa(e,da.f$(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();ga(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),da.af(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=wa(t.get("axisExpandWidth"),l),h=wa(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=t.get("axisExpandWindow");p?(e=wa(p[1]-p[0],l),p[1]=p[0]+e):(e=wa(c*(h-1),l),(p=[c*(t.get("axisExpandCenter")||va(u/2))-e/2])[1]=p[0]+e);var f=(s-e)/(u-h);f<3&&(f=0);var g=[va(_a(p[0]/c,1))+1,xa(_a(p[1]/c,1))-1],y=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),ga(n,(function(t,n){var o=(i.axisExpandable?Aa:Ma)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:ba/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=Zt.create();Zt.rotate(c,c,u),Zt.translate(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];d.each(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=e.getValues(a,u),p=0,f=o.length;p<f;p++)if("inactive"===s[p].getActiveState(h[p])){c="inactive";break}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return me.applyTransform([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return d.clone(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=t.axisExpandWidth/u)?(0,fa.A)(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[ma(0,o[1]*s/d-d/2)])[1]=ya(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function wa(e,t){return ya(ma(e,t[0]),t[1])}function Ma(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Aa(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var Ia=Sa,Ca={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new Ia(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",f.US).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},Ta=n(15079),Da=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return(0,S.C6)(t,e),t.prototype.getAreaSelectStyle=function(){return(0,xi.A)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=d.clone(e);if(t)for(var n=t.length-1;n>=0;n--)c.Y6(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(Te.A);d.mixin(Da,Ce.L);var La=Da,ka=n(67906),Oa=n(5094),Pa=["axisLine","axisTickLabel","axisName"],Na=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new ka.A(n.getZr())).on("brush",d.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new ne.A,this.group.add(this._axisGroup),e.get("show")){var o=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),h=d.extend({strokeContainThreshold:l},c),p=new Pe.A(e,h);d.each(Pa,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,s,e,o,l,n),me.groupTransition(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=ee.A.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Oa.wd(u),isTargetByCursor:Oa.x$(u,o,i),getLinearBrushOtherExtent:Oa.wx(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return d.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=d.map(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ee.A),Ra=Na,Ea={type:"axisAreaSelect",event:"axisAreaSelected"},Va={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function za(e){e.registerComponentView(ua),e.registerComponentModel(ha),e.registerCoordinateSystem("parallel",Ca),e.registerPreprocessor(ra),e.registerComponentModel(La),e.registerComponentView(Ra),(0,Ta.A)(e,"parallel",La,Va),function(e){e.registerAction(Ea,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var Ba=n(56677),Ga=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},Fa=function(e){function t(t){return e.call(this,t)||this}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new Ga},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){(0,C.HY)(this)},t.prototype.downplay=function(){(0,C.SD)(this)},t}(te.Ay),Ha=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new Fa,i=(0,re.z)(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,p,f,g,y,m,v=t.getModel(),x=v.getModel("lineStyle"),_=x.get("curveness"),b=t.node1.getLayout(),S=t.node1.getModel(),w=S.get("localX"),M=S.get("localY"),A=t.node2.getLayout(),I=t.node2.getModel(),T=I.get("localX"),D=I.get("localY"),L=t.getLayout();n.shape.extent=Math.max(1,L.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:b.x)+L.sy,a=(null!=M?M*l:b.y)+b.dy,u=(null!=T?T*s:A.x)+L.ty,f=r,g=a*(1-_)+(p=null!=D?D*l:A.y)*_,y=u,m=a*_+p*(1-_)):(r=(null!=w?w*s:b.x)+b.dx,a=(null!=M?M*l:b.y)+L.sy,f=r*(1-_)+(u=null!=T?T*s:A.x)*_,g=a,y=r*_+u*(1-_),m=p=(null!=D?D*l:A.y)+L.ty),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:f,cpy1:g,cpx2:y,cpy2:m}),n.useStyle(x.getItemStyle()),Wa(n.style,h,t);var k=""+v.get("value"),O=(0,E.lx)(v,"edgeLabel");(0,E.qM)(n,O,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,a){return e.getFormattedLabel(t,n,"edge",r,(0,d.retrieve3)(o,O.normal&&O.normal.get("formatter"),k),a)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var P=v.getModel("emphasis");(0,C.Mx)(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Wa(n,h,t),n})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var N=P.get("focus");(0,C.Lm)(n,"adjacency"===N?t.getAdjacentDataIndices():"trajectory"===N?t.getTrajectoryDataIndices():N,P.get("blurScope"),P.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new ot.A({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,E.qM)(d,(0,E.lx)(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),(0,C.Mx)(d,i),o.add(d),u.setItemGraphicEl(t.dataIndex,d),(0,re.z)(d).dataType="node";var p=c.get("focus");(0,C.Lm)(d,"adjacency"===p?t.getAdjacentDataIndices():"trajectory"===p?t.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){u.getItemModel(r).get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(function(e,t){var n=new ot.A({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return M.LW(n,{shape:{width:e.width+20}},t,(function(){o.removeClipPath()})),n}(o.getBoundingRect(),e)),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(T.A);function Wa(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,d.isString)(i)&&(0,d.isString)(r)&&(e.fill=new Ba.A(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}var Ya=Ha,Ua=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Ie.A(r[a],this,t));if(i&&n){var s=Co(i,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}))}));return s.data}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return(0,Se.Qx)("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;return(0,Se.Qx)("nameValue",{name:null!=u?u+"":null,value:l,noValue:i(l)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t).getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(X.A),Xa=Ua;function Za(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=function(e,t){return h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;!function(e){d.each(e,(function(e){var t=is(e.outEdges,ns),n=is(e.inEdges,ns),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}(l),function(e,t,n,i,r,o,a,s,l){(function(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&u.push(e[p]);for(var f=-1;u.length;){for(var g=0;g<u.length;g++){var y=u[g],m=y.hostGraph.data.getRawDataItem(y.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),y.setLayout({depth:v?m.depth:h},!0),"vertical"===o?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var x=0;x<y.outEdges.length;x++){var _=y.outEdges[x];s[t.indexOf(_)]=0;var b=_.node2;0==--l[e.indexOf(b)]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var S=f>h-1?f:h-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var r=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}d.each(e,(function(e){ja(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){d.each(e,(function(e){ja(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,i)}(e,a,0,S),function(e,t,n){d.each(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}(e,"vertical"===o?(r-n)/S:(i-n)/S,o)})(e,t,n,r,o,s,l),function(e,t,n,i,r,o,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",r=(0,f.Sq)(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),d.each(r.keys,(function(e){n.push(r.buckets.get(e))})),n}(e,a);(function(e,t,n,i,r,o){var a=1/0;d.each(e,(function(e){var t=e.length,s=0;d.each(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),d.each(e,(function(e){d.each(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),d.each(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,i,r,a),qa(s,r,n,i,a);for(var l=1;o>0;o--)$a(s,l*=.99,a),qa(s,r,n,i,a),rs(s,l,a),qa(s,r,n,i,a)}(e,t,o,r,i,a,s),function(e,t){var n="vertical"===t?"x":"y";d.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),d.each(e,(function(e){var t=0,n=0;d.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),d.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(l,u,n,i,o,a,0!==d.filter(l,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function ja(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function qa(e,t,n,i,r){var o="vertical"===r?"x":"y";d.each(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=u-(s=e[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+t;if((l=u-t-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=e[d]).getLayout()[o]+s.getLayout()[h]+t-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function $a(e,t,n){d.each(e.slice().reverse(),(function(e){d.each(e,(function(e){if(e.outEdges.length){var i=is(e.outEdges,Ka,n)/is(e.outEdges,ns);if(isNaN(i)){var r=e.outEdges.length;i=r?is(e.outEdges,Ja,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ts(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-ts(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Ka(e,t){return ts(e.node2,t)*e.getValue()}function Ja(e,t){return ts(e.node2,t)}function Qa(e,t){return ts(e.node1,t)*e.getValue()}function es(e,t){return ts(e.node1,t)}function ts(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ns(e){return e.getValue()}function is(e,t,n){for(var i=0,r=e.length,o=-1;++o<r;){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function rs(e,t,n){d.each(e,(function(e){d.each(e,(function(e){if(e.inEdges.length){var i=is(e.inEdges,Qa,n)/is(e.inEdges,ns);if(isNaN(i)){var r=e.inEdges.length;i=r?is(e.inEdges,es,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ts(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-ts(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function os(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;d.each(n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),d.each(n,(function(t){var n=new qi({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}i.length&&d.each(i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}var as=n(58803),ss=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],p=[r,o],f=p[u].get("type"),g=p[1-u].get("type"),y=e.data;if(y&&i){var m=[];d.each(y,(function(e,t){var n;d.isArray(e)?(n=e.slice(),e.unshift(t)):d.isArray(e.value)?((n=d.extend({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,x=[{name:c,type:(0,as.B)(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:(0,as.B)(g),dimsDef:v.slice()}];return W(this,{coordDimensions:x,dimensionsCount:v.length+1,encodeDefaulter:d.curry(Y.OC,x,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),ls=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,S.C6)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(X.A);(0,d.mixin)(ls,ss,!0);var us=ls,cs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=ps(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),r.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?((0,M.ap)(n),fs(s,n,i,e)):n=ps(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(T.A),hs=function(){},ds=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new hs},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(te.Ay);function ps(e,t,n,i,r){var o=e.ends,a=new ds({shape:{points:r?gs(o,i,e):o}});return fs(e,a,t,n,r),a}function fs(e,t,n,i,r){var o=n.hostModel;(0,me[r?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");(0,C.Mx)(t,a),(0,C.Lm)(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function gs(e,t,n){return d.map(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var ys=cs,ms=d.each;function vs(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=d.indexOf(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}(e);ms(t,(function(e){var t=e.seriesModels;t.length&&(function(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;ms(i,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}ms(i,(function(e){var n=e.get("boxWidth");d.isArray(n)||(n=[n,n]),s.push([(0,c.lo)(n[0],t)||0,(0,c.lo)(n[1],t)||0])}));var h=.8*t-2,p=h/r*.3,f=(h-p*(r-1))/r,g=f/2-h/2;ms(i,(function(e,t){a.push(g),g+=p+f,o.push(Math.min(Math.max(f,s[t][0]),s[t][1]))}))}(e),ms(t,(function(t,n){!function(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),y=x(d,c[3],h),m=x(d,c[4],h),v=[];_(v,g,!1),_(v,y,!0),v.push(f,g,m,y),b(v,f),b(v,m),b(v,p),r.setItemLayout(h,{initBaseline:p[s],ends:v})}function x(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=t,l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var xs=n(21900),_s=n(7019),bs={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==_s.Km&&(0,xs.$8)("");var n=function(e,t){for(var n=[],i=[],r=(t=t||{}).boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=(0,c.Y6)(e[a].slice()),l=(0,c.YV)(s,.25),u=(0,c.YV)(s,.5),h=(0,c.YV)(s,.75),p=s[0],f=s[s.length-1],g=(null==r?1.5:r)*(h-l),y=o?p:Math.max(p,l-g),m=o?f:Math.min(f,h+g),v=t.itemNameFormatter,x=(0,d.isFunction)(v)?v({value:a}):(0,d.isString)(v)?v.replace("{value}",a+""):a+"";n.push([x,y,l,u,h,m]);for(var _=0;_<s.length;_++){var b=s[_];if(b<y||b>m){var S=[x,b];i.push(S)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},Ss=n(46e3),ws=["color","borderColor"],Ms=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){me.traverseElements(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&Ts(s,a))return;var l=Cs(a,0,!0);M.LW(l,{shape:{points:a.ends}},e,n),Ds(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&Ts(s,c)?i.remove(u):(u?(M.oi(u,{shape:{points:c.ends}},e,a),(0,M.ap)(u)):u=Cs(c),Ds(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Ps(e,this.group);var t=e.get("clip",!0)?(0,Ss.Ip)(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),r=i.getLayout("isSimpleBox");null!=(n=e.next());){var o=Cs(i.getItemLayout(n));Ds(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){Ps(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(T.A),As=function(){},Is=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new As},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(te.Ay);function Cs(e,t,n){var i=e.ends;return new Is({shape:{points:n?Ls(i,e):i},z2:100})}function Ts(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function Ds(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,(0,C.Mx)(e,r)}function Ls(e,t){return d.map(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var ks=function(){},Os=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return(0,S.C6)(t,e),t.prototype.getDefaultShape=function(){return new ks},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(te.Ay);function Ps(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new Os({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new Os({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Os({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Ns(1,a,e),Ns(-1,s,e),Ns(0,l,e),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Ns(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(ws);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var Rs=Ms,Es=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,S.C6)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(X.A);(0,d.mixin)(Es,ss,!0);var Vs=Es;function zs(e){e&&d.isArray(e.series)&&d.each(e.series,(function(e){d.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}var Bs=n(8115),Gs=["itemStyle","borderColor"],Fs=["itemStyle","borderColor0"],Hs=["itemStyle","borderColorDoji"],Ws=["itemStyle","color"],Ys=["itemStyle","color0"],Us={seriesType:"candlestick",plan:(0,Bs.A)(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Ws:Ys)}function i(e,t){return t.get(0===e?Hs:e>0?Gs:Fs)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var r;null!=(r=e.next());){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");(0,d.extend)(l,s)}}}}},Xs=Us,Zs=n(1758),js={seriesType:"candlestick",plan:(0,Bs.A)(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=(0,c.lo)((0,d.retrieve2)(e.get("barMaxWidth"),r),r),a=(0,c.lo)((0,d.retrieve2)(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?(0,c.lo)(s,r):Math.max(Math.min(r/2,o),a)}(e,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=(0,d.map)(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],h=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:e.pipelineContext.large?function(n,i){for(var r,a,c=(0,Zs.J)(4*n.count),d=0,p=[],f=[],g=i.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);null!=(a=n.next());){var m=g.get(o,a),v=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(h,a);isNaN(m)||isNaN(_)||isNaN(b)?(c[d++]=NaN,d+=3):(c[d++]=qs(g,a,v,x,l,y),p[0]=m,p[1]=_,r=t.dataToPoint(p,null,f),c[d++]=r?r[0]:NaN,c[d++]=r?r[1]:NaN,p[1]=b,r=t.dataToPoint(p,null,f),c[d++]=r?r[1]:NaN)}i.setLayout("largePoints",c)}:function(e,n){for(var r,a=n.getStore();null!=(r=e.next());){var c=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(u,r),g=a.get(h,r),y=Math.min(d,p),m=Math.max(d,p),v=M(y,c),x=M(m,c),_=M(f,c),b=M(g,c),S=[];A(S,x,0),A(S,v,1),S.push(C(b),C(x),C(_),C(v));var w=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:qs(a,r,d,p,l,w),initBaseline:d>p?x[1]:v[1],ends:S,brushRect:I(f,g,c)})}function M(e,n){var i=[];return i[0]=n,i[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function A(e,t,n){var r=t.slice(),o=t.slice();r[0]=(0,me.subPixelOptimize)(r[0]+i/2,1,!1),o[0]=(0,me.subPixelOptimize)(o[0]-i/2,1,!0),n?e.push(r,o):e.push(o,r)}function I(e,t,n){var r=M(e,n),o=M(t,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(e){return e[0]=(0,me.subPixelOptimize)(e[0],1),e}}}}};function qs(e,t,n,i,r,o){return n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1}var $s=js;function Ks(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Js=function(e){function t(t,n){var i=e.call(this)||this,r=new vn.A(t,n),o=new ne.A;return i.add(r),i.add(o),i.updateData(t,n),i}return(0,S.C6)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=(0,ie.v5)(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}Ks(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}Ks(n,e)},t.prototype.highlight=function(){(0,C.HY)(this)},t.prototype.downplay=function(){(0,C.SD)(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=(0,ie.xU)(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",u)}));var h=(0,ie.hV)(e.getItemVisual(t,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,(0,C.Lm)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(ne.A),Qs=Js,el=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(){this._symbolDraw=new Q.A(Qs)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=(0,ue.A)("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Zt.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(T.A),tl=el,nl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,$.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(X.A),il=nl,rl=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return(0,S.C6)(t,e),t.prototype.createLine=function(e,t,n){return new no(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");d.isArray(i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,ie.v5)(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=d.retrieve(t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=d.isFunction(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return Xt.dist(e.__p1,e.__cp1)+Xt.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=so.k3,l=so.z7;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),c=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Xt.dist(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Xt.dist(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(ne.A),ol=rl,al=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return(0,S.C6)(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new A.A({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};M.oi(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,(0,C.Lm)(this,a,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(ne.A),sl=al,ll=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return(0,S.C6)(t,e),t.prototype.createLine=function(e,t,n){return new sl(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=Xt.dist(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=t);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>t);o++);o=Math.min(o-1,r-2)}var s=(t-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var c=e.__t<1?u[0]-l[0]:l[0]-u[0],h=e.__t<1?u[1]-l[1]:l[1]-u[1];e.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(ol),ul=ll,cl=n(52274),hl=n(65528),dl=function(){this.polyline=!1,this.curveness=0,this.segs=[]},pl=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,S.C6)(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dl},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(e.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(cl.l(u,c,d,p,o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){if(u=i[s++],c=i[s++],d=i[s++],p=i[s++],r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(hl.l(u,c,f,g,d,p,o,e,t))return a}else if(cl.l(u,c,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<t.length;){var s=t[a++],l=t[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}e=this._rect=new ee.A(n,i,r,o)}return e},t}(te.Ay),fl=function(){function e(){this.group=new ne.A}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new pl({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=(0,re.z)(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),gl={seriesType:"lines",plan:(0,Bs.A)(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=e.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),y=(p=e.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)y.push(t.dataToPoint(a[m]));else{y[0]=t.dataToPoint(a[0]),y[1]=t.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}o.setItemLayout(c,y)}}}}}},yl=gl,ml=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&(0,Ss.Ip)(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=yl.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new fl:new ao(r?i?ul:sl:i?ol:no),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(T.A),vl=ml,xl="undefined"==typeof Uint32Array?Array:Uint32Array,_l="undefined"==typeof Float64Array?Array:Float64Array;function bl(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=(0,d.map)(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),(0,d.mergeAll)([t,e[0],e[1]])})))}var Sl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,S.C6)(t,e),t.prototype.init=function(t){t.data=t.data||[],bl(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(bl(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=(0,d.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=(0,d.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),(0,d.isNumber)(e[0])){for(var n=e.length,i=new xl(n),r=new _l(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var h=e[l++],p=e[l++];r[o++]=h,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new H.A(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),(0,Se.Qx)("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(X.A),wl=Sl;function Ml(e){return e instanceof Array||(e=[e,e]),e}var Al={seriesType:"lines",reset:function(e){var t=Ml(e.get("symbol")),n=Ml(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=Ml(n.getShallow("symbol",!0)),r=Ml(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}:null}}},Il=n(11182),Cl=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Il.yh.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var p=0;p<d;++p){var f=e[p],g=f[0],y=f[1],m=i(f[2]);h.globalAlpha=m,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,S=this.minOpacity,w=this.maxOpacity-S;_<b;){m=x[_+3]/256;var M=4*Math.floor(255*m);if(m>0){var A=o(m)?s:l;m>0&&(m=m*w+S),x[_++]=A[M],x[_++]=A[M+1],x[_++]=A[M+2],x[_++]=A[M+3]*m*256}else _+=4}return h.putImageData(v,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Il.yh.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),Tl=Cl,Dl=n(93720);function Ll(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var kl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Ll(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Ll(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){me.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=(0,Dl.g)(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),v=e.get(["itemStyle","borderRadius"]),x=(0,E.lx)(e),_=e.getModel("emphasis"),b=_.get("focus"),S=_.get("blurScope"),w=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],A=n;A<i;A++){var I=void 0,T=f.getItemVisual(A,"style");if(c){var D=f.get(M[0],A),L=f.get(M[1],A);if(isNaN(f.get(M[2],A))||isNaN(D)||isNaN(L)||D<s[0]||D>s[1]||L<l[0]||L>l[1])continue;var k=u.dataToPoint([D,L]);I=new ot.A({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],A)))continue;I=new ot.A({z2:1,shape:u.dataToRect([f.get(M[0],A)]).contentShape,style:T})}if(f.hasItemOption){var O=f.getItemModel(A),P=O.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=O.getModel(["blur","itemStyle"]).getItemStyle(),m=O.getModel(["select","itemStyle"]).getItemStyle(),v=O.get(["itemStyle","borderRadius"]),b=P.get("focus"),S=P.get("blurScope"),w=P.get("disabled"),x=(0,E.lx)(O)}I.shape.r=v;var N=e.getRawValue(A),R="-";N&&null!=N[2]&&(R=N[2]+""),(0,E.qM)(I,x,{labelFetcher:e,labelDataIndex:A,defaultOpacity:T.opacity,defaultText:R}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=m,(0,C.Lm)(I,b,S,w),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(A,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new Tl;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),g=p-c,y=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),x=n.getExtent(),_="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(x,n.option.range):function(e,t,n){var i=e[1]-e[0],r=(t=d.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}))).length,o=0;return function(e){var i;for(i=o;i<r;i++)if((a=t[i].interval)[0]<=e&&e<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=t[i].interval)[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(x,n.getPieceList(),n.option.selected);s.update(v,g,y,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var b=new xe.Ay({style:{width:g,height:y,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(T.A),Ol=kl,Pl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,$.A)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Io.A.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(X.A),Nl=Pl,Rl=n(18377),El=["itemStyle","borderWidth"],Vl=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],zl=new Ne.A,Bl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Vl[+s],categoryDim:Vl[1-+s]};r.diff(o).add((function(e){if(r.hasValue(e)){var t=Zl(r,e),n=Gl(r,e,t,u),o=$l(r,u,n);r.setItemGraphicEl(e,o),i.add(o),tu(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=Zl(r,e),s=Gl(r,e,a,u),l=Jl(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;M.oi(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Wl(e,t,n,!0):Yl(e,0,n,!0),Ul(e,n,!0),Xl(e,t,n,!0)}(n,u,s):n=$l(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),tu(n,u,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&Kl(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var c=e.get("clip",!0)?(0,Ss.Ip)(e.coordinateSystem,!1,e):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){Kl(i,(0,re.z)(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(T.A);function Gl(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),p={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(d.isArray(s)){var h=[Fl(l,s[0])-u,Fl(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?Fl(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}(n,o,r,i,p),function(e,t,n,i,r,o,a,s,l,u){var h,p=l.valueDim,f=l.categoryDim,g=Math.abs(n[f.wh]),y=e.getItemVisual(t,"symbolSize");(h=d.isArray(y)?y.slice():null==y?["100%","100%"]:[y,y])[f.index]=(0,c.lo)(h[f.index],g),h[p.index]=(0,c.lo)(h[p.index],i?g:Math.abs(o)),u.symbolSize=h,(u.symbolScale=[h[0]/s,h[1]/s])[p.index]*=(l.isHorizontal?-1:1)*a}(e,t,r,o,0,p.boundingLength,p.pxSign,u,i,p),function(e,t,n,i,r){var o=e.get(El)||0;o&&(zl.attr({scaleX:t[0],scaleY:t[1],rotation:n}),zl.updateTransform(),o/=zl.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}(n,p.symbolScale,l,i,p);var f=p.symbolSize,g=(0,ie.hV)(n.get("symbolOffset"),f);return function(e,t,n,i,r,o,a,s,l,u,h,p){var f=h.categoryDim,g=h.valueDim,y=p.pxSign,m=Math.max(t[g.index]+s,0),v=m;if(i){var x=Math.abs(l),_=d.retrieve(e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var S=(0,c.lo)(_,t[g.index]),w=Math.max(m+2*S,0),M=b?0:2*S,A=(0,c.kf)(i),I=A?i:nu((x+M)/w);w=m+2*(S=(x-I*m)/2/(b?I:Math.max(I-1,1))),M=b?0:2*S,A||"fixed"===i||(I=u?nu((Math.abs(u)+M)/w):0),v=I*w-M,p.repeatTimes=I,p.symbolMargin=S}var C=y*(v/2),T=p.pathPosition=[];T[f.index]=n[f.wh]/2,T[g.index]="start"===a?C:"end"===a?l-C:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var D=p.bundlePosition=[];D[f.index]=n[f.xy],D[g.index]=n[g.xy];var L=p.barRectShape=d.extend({},n);L[g.wh]=y*Math.max(Math.abs(n[g.wh]),Math.abs(T[g.index]+C)),L[f.wh]=n[f.wh];var k=p.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=h.ecSize[f.wh],k[g.xy]=0,k[g.wh]=n[g.wh]}(n,f,r,o,0,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function Fl(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Hl(e){var t=e.symbolPatternSize,n=(0,ie.v5)(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Wl(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(Ql(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?eu(e,null,f(c),n,i):eu(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),c++}));c<u;c++){var d=Hl(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);eu(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=h*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Yl(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?eu(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=Hl(n),r.add(o),eu(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Ul(e,t,n){var i=d.extend({},t.barRectShape),r=e.__pictorialBarRect;r?eu(r,null,{shape:i},t,n):((r=e.__pictorialBarRect=new ot.A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(r))}function Xl(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=d.extend({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(r)M.oi(r,{shape:o},s,l);else{o[a.wh]=0,r=new ot.A({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],me[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function Zl(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=jl,n.isAnimationEnabled=ql,n}function jl(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function ql(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $l(e,t,n,i){var r=new ne.A,o=new ne.A;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Wl(r,t,n):Yl(r,0,n),Ul(r,n,i),Xl(r,t,n,i),r.__pictorialShapeStr=Jl(e,n),r.__pictorialSymbolMeta=n,r}function Kl(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Ql(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),d.each(o,(function(e){M.Nz(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Jl(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Ql(e,t,n){d.each(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function eu(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&me[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function tu(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");Ql(e,(function(e){if(e instanceof xe.Ay){var t=e.style;e.useStyle(d.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,(0,E.qM)(g,(0,E.lx)(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:(0,Rl.i)(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),(0,C.Lm)(e,c,h,o.get("disabled"))}function nu(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var iu=Bl,ru=n(99383),ou=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=(0,St.G_)(ru.A.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ru.A),au=ou,su=n(48037),lu=n(57407),uu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var h=new pi.A(this._layersSeries||[],a,c,c),p=[];function f(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),m=y.x,v=y.y0,x=y.y;h.push(m,v),d.push(m,v+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=e.getModel("label").get("margin"),S=e.getModel("emphasis");if("add"===t){var w=p[n]=new ne.A;c=new lu.z({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),w.add(c),o.add(w),e.isAnimationEnabled()&&c.setClipPath(function(e,t){var n=new ot.A({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return M.LW(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,(function(){c.removeClipPath()})),n}(c.getBoundingRect(),e))}else w=l[s],c=w.childAt(0),o.add(w),p[n]=w,M.oi(c,{shape:{points:h,stackedOnPoints:d}},e),(0,M.ap)(c);(0,E.qM)(c,(0,E.lx)(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var A=c.getTextContent();A&&(A.x=_.x-b,A.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),(0,C.Mx)(c,e),(0,C.Lm)(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add((0,d.bind)(f,this,"add")).update((0,d.bind)(f,this,"update")).remove((0,d.bind)(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},t.type="themeRiver",t}(T.A),cu=uu,hu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new U(d.bind(this.getData,this),d.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=(0,f.Sq)(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",f.US).models[0].get("type"),i=d.filter(e.data,(function(e){return void 0!==e[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=d.createHashMap(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var u=(0,F.A)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,as.B)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new H.A(u,this);return c.initData(r),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=(0,f.Sq)(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){d.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,p=0;p<h;++p){var f=r.get(e[0],o[l].indices[p]),g=Math.abs(f-t);g<=u&&(i=f,u=g,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return(0,Se.Qx)("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(X.A),du=hu;function pu(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();i.boundaryGap=o,"horizontal"===a.orient?(o[0]=c.lo(o[0],r.height),o[1]=c.lo(o[1],r.height),fu(t,e,r.height-o[0]-o[1])):(o[0]=c.lo(o[0],r.width),o[1]=c.lo(o[1],r.width),fu(t,e,r.width-o[0]-o[1])),t.setLayout("layoutInfo",i)}))}function fu(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=d.map(o,(function(t){return d.map(t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=function(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,p=o.length,f=o[0].indices.length,g=0;g<f;++g){i=c[g]*h,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*h});for(var y=1;y<p;++y)i+=l[y-1][g][1]*h,e.setItemLayout(o[y].indices[g],{layerIndex:y,x:l[y][g][0],y0:i,y:l[y][g][1]*h})}}var gu=n(37492),yu=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=2,o.textConfig={inside:!0},(0,re.z)(o).seriesIndex=n.seriesIndex;var a=new w.Ay({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return(0,S.C6)(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;(0,re.z)(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=d.extend({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var h=t.getVisual("decal");h&&(c.decal=(0,wt.w)(h,r));var p=(0,V.i)(a.getModel("itemStyle"),u,!0);d.extend(u,p),d.each(C.BV,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=(0,V.i)(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,M.LW(o,{shape:{r:l.r}},n,t.dataIndex)):(M.oi(o,{shape:u},n),(0,M.ap)(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),y="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;(0,C.Lm)(this,y,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,h=u.getTextContent(),p=this.node.dataIndex,f=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(null!=f&&Math.abs(o)<f);function y(e,t){var n=e.get(t);return null==n?i.get(t):n}h.ignore=!g,d.each(C.wV,(function(i){var f="normal"===i?n.getModel("label"):n.getModel([i,"label"]),g="normal"===i,m=g?h:h.ensureState(i),v=e.getFormattedLabel(p,i);g&&(v=v||t.node.name),m.style=(0,E.VB)(f,{},null,"normal"!==i,!0),v&&(m.style.text=v);var x=f.get("show");null==x||g||(m.ignore=!x);var _,b=y(f,"position"),S=g?u:u.states[i],w=S.style.fill;S.textConfig={outsideFill:"inherit"===f.get("color")?w:null,inside:"outside"!==b};var M=y(f,"distance")||0,A=y(f,"align"),I=y(f,"rotate"),C=.5*Math.PI,T=1.5*Math.PI,D=(0,gu.n)("tangential"===I?Math.PI/2-a:a),L=D>C&&!(0,c.dh)(D-C)&&D<T;"outside"===b?(_=r.r+M,A=L?"right":"left"):A&&"center"!==A?"left"===A?(_=r.r0+M,A=L?"right":"left"):"right"===A&&(_=r.r-M,A=L?"left":"right"):(_=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,A="center"),m.style.align=A,m.style.verticalAlign=y(f,"verticalAlign")||"middle",m.x=_*s+r.cx,m.y=_*l+r.cy;var k=0;"radial"===I?k=(0,gu.n)(-a)+(L?Math.PI:0):"tangential"===I?k=(0,gu.n)(Math.PI/2-a)+(L?Math.PI:0):d.isNumber(I)&&(k=I*Math.PI/180),m.rotation=(0,gu.n)(k)})),h.dirtyStyle()},t}(I.A),mu=yu,vu="sunburstRootToNode",xu="sunburstHighlight",_u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var h=this._oldChildren||[];!function(i,r){function s(e){return e.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(i){var s=new mu(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new pi.A(r,i,s,s).add(c).update(c).remove(d.curry(c,null)).execute()}(c,h),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new mu(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,_i.JW)(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:vu,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(T.A),bu=_u,Su=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return(0,S.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};wu(n);var i=this._levelModels=d.map(e.levels||[],(function(e){return new Ie.A(e,this,t)}),this),r=Kn.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}));return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=ti(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){ui(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(X.A);function wu(e){var t=0;d.each(e.children,(function(e){wu(e);var n=e.value;d.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;d.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),d.isArray(e.value)?e.value[0]=n:e.value=n}var Mu=Su,Au=Math.PI/180;function Iu(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");d.isArray(i)||(i=[0,i]),d.isArray(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=(0,c.lo)(t[0],r),l=(0,c.lo)(t[1],o),u=(0,c.lo)(i[0],a/2),h=(0,c.lo)(i[1],a/2),p=-e.get("startAngle")*Au,f=e.get("minAngle")*Au,g=e.getData().tree.root,y=e.getViewRoot(),m=y.depth,v=e.get("sort");null!=v&&Cu(y,v);var x=0;d.each(y.children,(function(e){!isNaN(e.getValue())&&x++}));var _=y.getValue(),b=Math.PI/(_||x)*2,S=y.depth>0,w=y.height-(S?-1:1),M=(h-u)/(w||1),A=e.get("clockwise"),I=e.get("stillShowZeroSum"),C=A?1:-1,T=function(t,n){if(t){var i=n;if(t!==g){var r=t.getValue(),o=0===_&&I?b:r*b;o<f&&(o=f),i=n+C*o;var h=t.depth-m-(S?-1:1),p=u+M*h,y=u+M*(h+1),v=e.getLevelModel(t);if(v){var x=v.get("r0",!0),w=v.get("r",!0),D=v.get("radius",!0);null!=D&&(x=D[0],w=D[1]),null!=x&&(p=(0,c.lo)(x,a/2)),null!=w&&(y=(0,c.lo)(w,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:A,cx:s,cy:l,r0:p,r:y})}if(t.children&&t.children.length){var L=0;d.each(t.children,(function(e){L+=T(e,n+L)}))}return i-n}};if(S){var D=u,L=u+M,k=2*Math.PI;g.setLayout({angle:k,startAngle:p,endAngle:p+k,clockwise:A,cx:s,cy:l,r0:D,r:L})}T(y,p)}))}function Cu(e,t){var n=e.children||[];e.children=function(e,t){if(d.isFunction(t)){var n=d.map(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),d.map(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}(n,t),n.length&&d.each(e.children,(function(e){Cu(e,t)}))}function Tu(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,i){for(var r=e;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&(0,d.isString)(o)&&(o=(0,Pi.lift)(o,(e.depth-1)/(i-1)*.5)),o}(r,e,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,d.extend)(a,o)}))}))}var Du={color:"fill",borderColor:"stroke"},Lu={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ku=(0,f.$r)(),Ou=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return(0,$.A)(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=ku(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(X.A),Pu=Ou;function Nu(e,t){return t=t||[0,0],d.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function Ru(e,t){return t=t||[0,0],d.map([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function Eu(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Vu(e,t){return t=t||[0,0],d.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=t[i],a=e[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function zu(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||(0,d.hasOwn)(e,"text")))}function Bu(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},(0,d.hasOwn)(a,"text")&&(o.text=a.text),(0,d.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,d.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,d.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,d.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,d.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,d.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,d.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=(0,d.hasOwn)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),(0,d.hasOwn)(a,"textPosition")&&(i.position=a.textPosition),(0,d.hasOwn)(a,"textOffset")&&(i.offset=a.textOffset),(0,d.hasOwn)(a,"textRotation")&&(i.rotation=a.textRotation),(0,d.hasOwn)(a,"textDistance")&&(i.distance=a.textDistance)}return Gu(o,e),(0,d.each)(o.rich,(function(e){Gu(e,e)})),{textConfig:i,textContent:r}}function Gu(e,t){t&&(t.font=t.textFont||t.font,(0,d.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,d.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,d.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,d.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,d.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,d.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,d.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,d.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,d.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,d.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,d.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,d.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,d.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,d.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,d.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Fu(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";Hu(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,(0,d.each)(t.rich,(function(e){Hu(e,e)})),i}function Hu(e,t){t&&((0,d.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,d.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,d.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,d.hasOwn)(t,"font")&&(e.font=t.font),(0,d.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,d.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,d.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,d.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,d.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,d.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,d.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,d.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,d.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,d.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,d.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,d.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,d.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,d.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,d.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,d.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,d.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,d.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,d.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,d.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,d.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,d.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Wu=n(39875),Yu={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Uu=(0,d.keys)(Yu),Xu=((0,d.reduce)(jt.Wx,(function(e,t){return e[t]=1,e}),{}),jt.Wx.join(", "),["","style","shape","extra"]),Zu=(0,f.$r)();function ju(e,t,n,i,r){var o=e+"Animation",a=(0,M.Jw)(e,i,r)||{},s=Zu(t).userDuring;return a.duration>0&&(a.during=s?(0,d.bind)(tc,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),(0,d.extend)(a,n[o]),a}function qu(e,t,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=Zu(e),u=t.style;l.userDuring=t.during;var c={},h={};if(function(e,t,n){for(var i=0;i<Uu.length;i++){var r=Uu[i],o=Yu[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<jt.Wx.length;i++){var s=jt.Wx[i];null!=t[s]&&(n[s]=t[s])}}(0,t,h),ic("shape",t,h),ic("extra",t,h),!o&&s&&(function(e,t,n){for(var i=t.transition,r=Ju(i)?jt.Wx:(0,f.qB)(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];n[a]=s}}}(e,t,c),nc("shape",e,t,c),nc("extra",e,t,c),function(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!Ju(a)){var l=(0,f.qB)(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=o[y=l[u]];r[y]=c}}else if(e.getAnimationStyleProps&&(Ju(s)||Ju(a)||(0,d.indexOf)(s,"style")>=0)){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var g=(0,d.keys)(n);for(u=0;u<g.length;u++){var y;p[y=g[u]]&&(c=o[y],r[y]=c)}}}}}}(e,t,u,c)),h.style=u,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,h,a),function(e,t){(0,d.hasOwn)(t,"silent")&&(e.silent=t.silent),(0,d.hasOwn)(t,"ignore")&&(e.ignore=t.ignore),e instanceof Mt.Ay&&(0,d.hasOwn)(t,"invisible")&&(e.invisible=t.invisible),e instanceof te.Ay&&(0,d.hasOwn)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(o){var p={};(0,d.each)(Xu,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),(0,d.extend)(e?p[e]:p,n.enterFrom))}));var g=ju("enter",e,t,n,r);g.duration>0&&e.animateFrom(p,g)}else!function(e,t,n,i,r){if(r){var o=ju("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}(e,t,r||0,n,c);$u(e,t),u?e.dirty():e.markRedraw()}function $u(e,t){for(var n=Zu(e).leaveToProps,i=0;i<Xu.length;i++){var r=Xu[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=Zu(e).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,d.extend)(r?n[r]:n,o.leaveTo))}}function Ku(e,t,n,i){if(e){var r=e.parent,o=Zu(e).leaveToProps;if(o){var a=ju("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function Ju(e){return"all"===e}var Qu={},ec={setTransform:function(e,t){return Qu.el[e]=t,this},getTransform:function(e){return Qu.el[e]},setShape:function(e,t){var n=Qu.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Qu.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Qu.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Qu.el.style;if(t)return t[e]},setExtra:function(e,t){return(Qu.el.extra||(Qu.el.extra={}))[e]=t,this},getExtra:function(e){var t=Qu.el.extra;if(t)return t[e]}};function tc(){var e=this,t=e.el;if(t){var n=Zu(t).userDuring,i=e.userDuring;n===i?(Qu.el=t,i(ec)):e.el=e.userDuring=null}}function nc(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),Ju(l))(0,d.extend)(o,a);else for(var u=(0,f.qB)(l),c=0;c<u.length;c++){var h=a[g=u[c]];o[g]=h}else if(Ju(s)||(0,d.indexOf)(s,e)>=0){!o&&(o=i[e]={});var p=(0,d.keys)(a);for(c=0;c<p.length;c++){var g;h=a[g=p[c]],rc(r[g],h)&&(o[g]=h)}}}}}function ic(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=(0,d.keys)(i),a=0;a<o.length;a++){var s=o[a];r[s]=(0,Wu.F)(i[s])}}function rc(e,t){return(0,d.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}var oc=(0,f.$r)(),ac=["percent","easing","shape","style","extra"];function sc(e){e.stopAnimation("keyframe"),e.attr(oc(e))}function lc(e,t,n){if(n.isAnimationEnabled()&&t)if((0,d.isArray)(t))(0,d.each)(t,(function(t){lc(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=(0,M.Jw)("enter",n,0);r=o&&o.duration}if(i&&r){var a=oc(e);(0,d.each)(Xu,(function(n){var o;n&&!e[n]||(i.sort((function(e,t){return e.percent-t.percent})),(0,d.each)(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var u=(0,d.keys)(l);if(n||(u=(0,d.filter)(u,(function(e){return(0,d.indexOf)(ac,e)<0}))),u.length){o||((o=e.animate(n,t.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;(0,d.each)(u,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing))}))}}}var uc="emphasis",cc="normal",hc="blur",dc="select",pc=[cc,uc,hc,dc],fc={normal:["itemStyle"],emphasis:[uc,"itemStyle"],blur:[hc,"itemStyle"],select:[dc,"itemStyle"]},gc={normal:["label"],emphasis:[uc,"label"],blur:[hc,"label"],select:[dc,"label"]},yc=["x","y"],mc="e\0\0",vc={normal:{},emphasis:{},blur:{},select:{}},xc={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:d.bind(Nu,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:d.bind(Ru,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,d.bind)(Eu,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:d.bind(Vu,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function _c(e){return e instanceof te.Ay}function bc(e){return e instanceof Mt.Ay}var Sc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=Tc(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){Lc(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&Ku(n,ku(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);Lc(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?(0,Ss.Ip)(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=Tc(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=Lc(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){me.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},t.type="custom",t}(T.A),wc=Sc;function Mc(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Gc(i);t=me.makePath(o,null,r,i.layout||"center"),ku(t).customPathData=o}else if("image"===n)t=new xe.Ay({}),ku(t).customImagePath=e.style.image;else if("text"===n)t=new w.Ay({});else if("group"===n)t=new ne.A;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=me.getShapeClass(n);a||(0,xs.$8)(""),t=new a}return ku(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Ac(e,t,n,i,r,o,a){sc(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=yc);var l=i&&i.style;if(l){if("text"===t.type){var u=l;(0,d.hasOwn)(u,"textFill")&&(u.fill=u.textFill),(0,d.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=_c(t)?l.decal:null;e&&h&&(h.dirty=!0,c=(0,wt.w)(h,e)),l.__decalPattern=c}bc(t)&&l&&(c=l.__decalPattern)&&(l.decal=c),qu(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),lc(t,i.keyframeAnimation,o)}function Ic(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,C.DW)(o)}}function Cc(e,t,n){var i=n===cc,r=i?t:Nc(t,n),o=r?r.z2:null;null!=o&&((i?e:e.ensureState(n)).z2=o||0)}function Tc(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):xc[o.type](o));for(var s,l,u=(0,d.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=x(i,cc).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:(0,d.isString)(o)?o:"#000"},c=_(i,cc),h=E.VB(c,null,u,!1,!0);h.text=c.getShallow("show")?(0,d.retrieve2)(e.getFormattedLabel(i,cc),(0,Rl.i)(t,i)):null;var p=E.sD(c,u,!1);return S(n,l),l=Fu(l,h,p),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=s);var r=x(i,uc).getItemStyle(),o=_(i,uc),a=E.VB(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,d.retrieve3)(e.getFormattedLabel(i,uc),e.getFormattedLabel(i,cc),(0,Rl.i)(t,i)):null;var l=E.sD(o,null,!0);return S(n,r),r=Fu(r,a,l),n&&b(r,n),r.legacy=!0,r},visual:function(e,n){if(null==n&&(n=s),(0,d.hasOwn)(Du,e)){var i=t.getItemVisual(n,"style");return i?i[Du[e]]:null}if((0,d.hasOwn)(Lu,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return(0,su.DL)((0,d.defaults)({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return E.c8(e,n)}},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:Dc(e.getData())},h={},p={},f={},g={},y=0;y<pc.length;y++){var m=pc[y];f[m]=e.getModel(fc[m]),g[m]=e.getModel(gc[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function x(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=v(e).getModel(fc[n])):v(e).getModel(fc[n]):f[n]}function _(e,n){return t.hasItemOption?e===s?p[n]||(p[n]=v(e).getModel(gc[n])):v(e).getModel(gc[n]):g[n]}return function(e,n){return s=e,l=null,h={},p={},r&&r((0,d.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function b(e,t){for(var n in t)(0,d.hasOwn)(t,n)&&(e[n]=t[n])}function S(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function Dc(e){var t={};return(0,d.each)(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function Lc(e,t,n,i,r,o,a){if(i){var s=kc(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,C.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function kc(e,t,n,i,r,o){var a=-1,s=t;t&&Oc(t,i,r)&&(a=(0,d.indexOf)(o.childrenRef(),t),t=null);var l,u,c=!t,h=t;h?h.clearStates():(h=Mc(i),s&&(l=s,(u=h).copyTransform(l),bc(u)&&bc(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,_c(u)&&_c(l)&&u.setShape(l.shape)))),!1===i.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),vc.normal.cfg=vc.normal.conOpt=vc.emphasis.cfg=vc.emphasis.conOpt=vc.blur.cfg=vc.blur.conOpt=vc.select.cfg=vc.select.conOpt=null,vc.isLegacy=!1,function(e,t,n,i,r,o){if(!e.isGroup){Pc(n,null,o),Pc(n,uc,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Mc(a),e.setTextContent(c)),Ac(null,c,t,a,null,i,r);for(var h=a&&a.style,d=0;d<pc.length;d++){var p=pc[d];if(p!==cc)Ic(p,c,0,Rc(a,o[p].conOpt,p),null)}h?c.dirty():c.markRedraw()}}}}(h,n,i,r,c,vc),function(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&Oc(a,o,i)&&(a=null),a||(a=Mc(o),e.setClipPath(a)),Ac(null,a,t,o,null,i,r)}}(h,n,i,r,c),Ac(e,h,n,i,vc,r,c),(0,d.hasOwn)(i,"info")&&(ku(h).info=i.info);for(var p=0;p<pc.length;p++){var f=pc[p];if(f!==cc)Ic(f,h,0,Rc(i,Nc(i,f),f),vc)}return function(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<pc.length;s++)Cc(i,t,pc[s])}}(h,i,r),"group"===i.type&&function(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u){if(l)return c={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t},void new pi.A(c.oldChildren,c.newChildren,Vc,Vc,c).add(zc).update(zc).remove(Bc).execute();var c;u&&t.removeAll();for(var h=0;h<a;h++){var d=o[h],p=t.childAt(h);d?(null==d.ignore&&(d.ignore=!1),kc(e,p,n,d,r,t)):p.ignore=!0}for(var f=t.childCount()-1;f>=h;f--){var g=t.childAt(f);Ec(t,g,r)}}}(e,h,n,i,r),a>=0?o.replaceAt(h,a):o.add(h),h}function Oc(e,t,n){var i,r=ku(e),o=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&((0,d.hasOwn)(i,"pathData")||(0,d.hasOwn)(i,"d"))&&Gc(a)!==r.customPathData||"image"===o&&(0,d.hasOwn)(s,"image")&&s.image!==r.customImagePath}function Pc(e,t,n){var i=t?Nc(e,t):e,r=t?Rc(e,i,uc):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?Nc(s,t):s:null;if(r&&(n.isLegacy||zu(r,o,!!a,!!l))){n.isLegacy=!0;var u=Bu(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function Nc(e,t){return t?e?e[t]:null:e}function Rc(e,t,n){var i=t&&t.style;return null==i&&n===uc&&e&&(i=e.styleEmphasis),i}function Ec(e,t,n){t&&Ku(t,ku(e).option,n)}function Vc(e,t){var n=e&&e.name;return null!=n?n:mc+t}function zc(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;kc(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Bc(e){var t=this.context,n=t.oldChildren[e];n&&Ku(n,ku(n).option,t.seriesModel)}function Gc(e){return e&&(e.pathData||e.d)}var Fc=n(38885),Hc=n(81151),Wc=n(81449),Yc=n(91631),Uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,S.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var c=Yc.bY(i),h=Xc[u](o,a,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=function(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=Zt.create();Zt.rotate(d,d,s),Zt.translate(d,d,[i.cx,i.cy]),l=me.applyTransform([a,-r],d);var p=t.getModel("axisLabel").get("rotate")||0,f=Pe.A.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var y=i.cx,m=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(t,n,0,a,i.get(["label","margin"]));Yc.T8(e,n,i,r,d)},t}(Wc.A),Xc={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:Yc.MU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Yc.u7(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:Yc.u7(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},Zc=Uc,jc=n(25302),qc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Te.A),$c=qc,Kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,S.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",f.US).models[0]},t.type="polarAxis",t}(Te.A);d.mixin(Kc,Ce.L);var Jc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="angleAxis",t}(Kc),Qc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="radiusAxis",t}(Kc),eh=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return(0,S.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ge.A);eh.prototype.dataToRadius=Ge.A.prototype.dataToCoord,eh.prototype.radiusToData=Ge.A.prototype.coordToData;var th=eh,nh=n(1323),ih=(0,f.$r)(),rh=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return(0,S.C6)(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=nh.NO(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=ih(e.model),d=h.lastAutoInterval,p=h.lastTickCount;return null!=d&&null!=p&&Math.abs(d-c)<=1&&Math.abs(p-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},t}(Ge.A);rh.prototype.dataToAngle=Ge.A.prototype.dataToCoord,rh.prototype.angleToData=Ge.A.prototype.coordToData;var oh=rh,ah=["radius","angle"],sh=function(){function e(e){this.dimensions=ah,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new th,this._angleAxis=new oh,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return lh(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return lh(t)===this?this.pointToData(n):null},e}();function lh(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var uh=sh;function ch(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();d.each((0,da.wq)(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),d.each((0,da.wq)(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),(0,da.af)(i.scale,i.model),(0,da.af)(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function hh(e,t){var n;if(e.type=t.get("type"),e.scale=(0,da.f$)(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}var dh={dimensions:ah,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new uh(i+"");r.update=ch;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");hh(o,s),hh(a,l),function(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=(0,c.lo)(i[0],r),e.cy=(0,c.lo)(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:d.isArray(l)||(l=[0,l]);var u=[(0,c.lo)(l[0],s),(0,c.lo)(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",f.US).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},ph=dh,fh=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function gh(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function yh(e){return e.getRadiusAxis().inverse?0:1}function mh(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var vh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,S.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=d.map(n.getViewLabels(),(function(e){e=d.clone(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));mh(s),mh(o),d.each(fh,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||xh[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(Hc.A),xh={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=yh(n),d=h?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[d]?new me[p]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Re.A({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yh(n)],u=d.map(i,(function(e){return new Yr.A({shape:gh(n,[l,l+s],e.coord)})}));e.add(me.mergePath(u,{style:d.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yh(n)],c=[],h=0;h<r.length;h++)for(var p=0;p<r[h].length;p++)c.push(new Yr.A({shape:gh(n,[u,u+l],r[h][p].coord)}));e.add(me.mergePath(c,{style:d.defaults(s.getModel("lineStyle").getLineStyle(),d.defaults(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");d.each(a,(function(i,r){var a=l,h=i.tickValue,p=o[yh(n)],f=n.coordToPoint([p+u,i.coord]),g=n.cx,y=n.cy,m=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",v=Math.abs(f[1]-y)/p<.3?"middle":f[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];d.isObject(x)&&x.textStyle&&(a=new Ie.A(x.textStyle,l,l.ecModel))}var _=new w.Ay({silent:Pe.A.isLabelSilent(t),style:(0,E.VB)(a,{x:f[0],y:f[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(_),c){var b=Pe.A.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=i.rawLabel,(0,re.z)(_).eventData=b}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Yr.A({shape:gh(n,o,i[c].coord)}))}for(c=0;c<u.length;c++)e.add(me.mergePath(u[c],{style:d.defaults({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new Yr.A({shape:gh(n,o,r[l][u].coord)}));e.add(me.mergePath(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=t.get("clockwise"),y=1,m=i.length;y<=m;y++){var v=y===m?i[0].coord:i[y].coord,x=l++%s.length;u[x]=u[x]||[],u[x].push(new I.A({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:h,endAngle:-v*c,clockwise:g},silent:!0})),h=-v*c}for(y=0;y<u.length;y++)e.add(me.mergePath(u[y],{style:d.defaults({fill:s[y%s.length]},a.getAreaStyle()),silent:!0}))}}},_h=vh,bh=["axisLine","axisTickLabel","axisName"],Sh=["splitLine","splitArea","minorSplitLine"],wh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return(0,S.C6)(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new ne.A;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),h=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(o,e,u),p=new Pe.A(e,h);d.each(bh,p.add,p),i.add(p.getGroup()),me.groupTransition(n,i,e),d.each(Sh,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&Mh[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(Hc.A),Mh={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var f=[],g=0;g<o.length;g++){var y=l++%s.length;f[y]=f[y]||[],f[y].push(new me[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(g=0;g<f.length;g++)e.add(me.mergePath(f[g],{style:d.defaults({stroke:s[g%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Ne.A({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));e.add(me.mergePath(l,{style:d.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new I.A({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)e.add(me.mergePath(u[h],{style:d.defaults({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}},Ah=wh,Ih=n(45180);function Ch(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function Th(e,t){return t.dim+e.model.componentIndex}var Dh=function(e,t,n){var i={},r=function(e){var t={};d.each(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=Th(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=u.stacks;t[a]=u;var d=Ch(e);h[d]||u.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var p=(0,c.lo)(e.get("barWidth"),l),f=(0,c.lo)(e.get("barMaxWidth"),l),g=e.get("barGap"),y=e.get("barCategoryGap");p&&!h[d].width&&(p=Math.min(u.remainedWidth,p),h[d].width=p,u.remainedWidth-=p),f&&(h[d].maxWidth=f),null!=g&&(u.gap=g),null!=y&&(u.categoryGap=y)}));var n={};return d.each(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=(0,c.lo)(e.categoryGap,r),a=(0,c.lo)(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),d.each(i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,p=0;d.each(i,(function(e,t){e.width||(e.width=u),h=e,p+=e.width*(1+a)})),h&&(p-=h.width*a);var f=-p/2;d.each(i,(function(e,i){n[t][i]=n[t][i]||{offset:f,width:e.width},f+=e.width*(1+a)}))})),n}(d.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=Th(n,o),s=Ch(e),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=t.mapDimension(h.dim),m=t.mapDimension(o.dim),v=(0,Ih.sJ)(t,y),x="radius"!==o.dim||!e.get("roundCap",!0),_=h.model.get("startValue"),b=h.dataToCoord(_||0),S=0,w=t.count();S<w;S++){var M=t.get(y,S),A=t.get(m,S),I=M>=0?"p":"n",C=b;v&&(i[s][A]||(i[s][A]={p:b,n:b}),C=i[s][A][I]);var T=void 0,D=void 0,L=void 0,k=void 0;if("radius"===h.dim){var O=h.dataToCoord(M)-b,P=o.dataToCoord(A);Math.abs(O)<f&&(O=(O<0?-1:1)*f),T=C,D=C+O,k=(L=P-u)-c,v&&(i[s][A][I]=D)}else{var N=h.dataToCoord(M,x)-b,R=o.dataToCoord(A);Math.abs(N)<g&&(N=(N<0?-1:1)*g),D=(T=R+u)+c,L=C,k=C+N,v&&(i[s][A][I]=k)}t.setItemLayout(S,{cx:d,cy:p,r0:T,r:D,startAngle:-L*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:L>=k})}}}))},Lh={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},kh={splitNumber:5},Oh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="polar",t}(Ee.A);function Ph(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),d.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=t.rotate;return null==c&&(c=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var Nh=n(71220),Rh=["axisLine","axisTickLabel","axisName"],Eh=["splitArea","splitLine"],Vh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return(0,S.C6)(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new ne.A;var s=Ph(t),l=new Pe.A(t,s);d.each(Rh,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),d.each(Eh,(function(e){t.get([e,"show"])&&zh[e](this,this.group,this._axisGroup,t)}),this),me.groupTransition(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){(0,Nh.V)(this)},t.type="singleAxis",t}(Hc.A),zh={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],p=0,f=r.getTicksCoords({tickModel:o}),g=[],y=[],m=0;m<f.length;++m){var v=r.toGlobalCoord(f[m].coord);c?(g[0]=v,g[1]=u.y,y[0]=v,y[1]=u.y+u.height):(g[0]=u.x,g[1]=v,y[0]=u.x+u.width,y[1]=v);var x=new Yr.A({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});me.subPixelOptimizeLine(x.shape,l);var _=p++%s.length;h[_]=h[_]||[],h[_].push(x)}var b=a.getLineStyle(["color"]);for(m=0;m<h.length;++m)t.add(me.mergePath(h[m],{style:d.defaults({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,i){(0,Nh.Y)(e,n,i,i)}},Bh=Vh,Gh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Te.A);(0,d.mixin)(Gh,Ce.L.prototype);var Fh=Gh,Hh=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return(0,S.C6)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Ge.A),Wh=Hh,Yh=["single"];function Uh(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Xh=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Yh,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new Wh(i,da.f$(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();(0,d.each)(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),da.af(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=(0,h.dV)({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return Uh(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Uh(t)===this?this.pointToData(n):null},e}(),Zh={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new Xh(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",f.US).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:Yh},jh=["x","y"],qh=["width","height"],$h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,S.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Qh(a,1-Jh(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=Yc.bY(i),h=Kh[u](o,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=Ph(n);Yc.DA(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=Ph(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Yc.Tc(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=Jh(r),s=Qh(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Qh(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Wc.A),Kh={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:Yc.MU([t,n[0]],[t,n[1]],Jh(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:Yc.cU([t-i/2,n[0]],[i,r],Jh(e))}}};function Jh(e){return e.isHorizontal()?0:1}function Qh(e,t){var n=e.getRect();return[n[jh[t]],n[jh[t]]+n[qh[t]]]}var ed=$h,td=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="single",t}(Ee.A),nd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(t,n,i){var r=(0,h.vs)(t);e.prototype.init.apply(this,arguments),id(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),id(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Te.A);function id(e,t){var n,i=e.cellSize;1===(n=d.isArray(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var r=d.map([0,1],(function(e){return(0,h.Qf)(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));(0,h.YA)(e,t,{type:"box",ignoreSize:r})}var rd=nd,od=n(47383),ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new ot.A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new A.A({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return(0,d.isString)(e)&&e?(0,_i.io)(e,t):(0,d.isFunction)(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new w.Ay({z2:30,style:(0,E.VB)(r,{text:g})});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!(0,d.isString)(o)||(o&&(t=(0,od.A4)(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f];if(p){var m=this._firstDayPoints[f];g[h]=(m[h]+u[0][f+1][h])/2}var v=r.get("formatter"),x=o[+y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},b=this._formatterLabel(v,_),S=new w.Ay({z2:30,style:(0,d.extend)((0,E.VB)(r,{text:b}),this._monthTextPositionControl(g,p,n,s,a))});i.add(S)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),h=a.getFirstDayOfWeek();l&&!(0,d.isString)(l)||(l&&(t=(0,od.A4)(l)||t),l=t.get(["time","dayOfWeekShort"])||(0,d.map)(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]})));var p=a.getNextNDay(n.end.time,7-n.lweek).time,f=[a.getCellWidth(),a.getCellHeight()];u=(0,c.lo)(u,Math.min(f[1],f[0])),"start"===s&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var g=0;g<7;g++){var y,m=a.getNextNDay(p,g),v=a.dataToRect([m.time],!1).center;y=Math.abs((g+h)%7);var x=new w.Ay({z2:30,style:(0,d.extend)((0,E.VB)(o,{text:l[y]}),this._weekTextPositionControl(v,i,s,u,f))});r.add(x)}}},t.type="calendar",t}(Ee.A),sd=ad,ld=864e5;function ud(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var cd=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=c._U(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return{y:t+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];d.each([0,1],(function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=h.dV(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}d.each([0,1],(function(e){u(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){d.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+ld))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=ud(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=ud(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(d.isArray(t)&&1===t.length&&(t=t[0]),d.isArray(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/ld)-Math.floor(n[0].time/ld)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function hd(e,t){var n;return d.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var dd=["transition","enterFrom","leaveTo"],pd=dd.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fd(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?dd:pd,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}var gd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return(0,S.C6)(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=f.O2(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];d.each(a,(function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var i=d.extend({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(d.merge(r,i,!0),(0,h.YA)(r,i,{ignoreSize:!0}),(0,h.Ir)(n,r),fd(n,r),fd(n,r,"shape"),fd(n,r,"style"),fd(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}(r,t,n),function(e,t){if(e&&(e.hv=t.hv=[hd(t,["left","right"]),hd(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[t],n))}),this),n.elements=d.filter(r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){d.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Te.A),yd={path:null,compoundPath:null,group:ne.A,image:xe.Ay,text:w.Ay},md=f.$r(),vd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(){this._elMap=d.createHashMap()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");d.each(t,(function(t){var a=f.vS(t.id,null),s=null!=a?n.get(a):null,l=f.vS(t.parentId,null),u=null!=l?n.get(l):i,c=t.type,p=t.style;"text"===c&&p&&t.hv&&t.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var g=t.textContent,y=t.textConfig;if(p&&zu(p,c,!!y,!!g)){var m=Bu(p,c,!0);!y&&m.textConfig&&(y=t.textConfig=m.textConfig),!g&&m.textContent&&(g=m.textContent)}var v=function(e){return e=d.extend({},e),d.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(h.Tj),(function(t){delete e[t]})),e}(t),x=t.$action||"merge",_="merge"===x,b="replace"===x;if(_){var S=s;(L=!s)?S=_d(a,u,t.type,n):(S&&(md(S).isNew=!1),sc(S)),S&&(qu(S,v,e,{isInit:L}),Sd(S,t,r,o))}else if(b){bd(s,t,n,e);var M=_d(a,u,t.type,n);M&&(qu(M,v,e,{isInit:!0}),Sd(M,t,r,o))}else"remove"===x&&($u(s,t),bd(s,t,n,e));var A=n.get(a);if(A&&g)if(_){var I=A.getTextContent();I?I.attr(g):A.setTextContent(new w.Ay(g))}else b&&A.setTextContent(new w.Ay(g));if(A){var C=t.clipPath;if(C){var T=C.type,D=void 0,L=!1;if(_){var k=A.getClipPath();D=(L=!k||md(k).type!==T)?xd(T):k}else b&&(L=!0,D=xd(T));A.setClipPath(D),qu(D,C,e,{isInit:L}),lc(D,C.keyframeAnimation,e)}var O=md(A);A.setTextConfig(y),O.option=t,function(e,t,n){var i=(0,re.z)(e).eventData;e.silent||e.ignore||i||(i=(0,re.z)(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}(A,e,t),me.setTooltipConfig({el:A,componentModel:e,itemName:A.name,itemTooltipOption:t.tooltip}),lc(A,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l];if((v=null!=(m=f.vS(u.id,null))?r.get(m):null)&&v.isGroup){var p=(x=v.parent)===i,g=md(v),y=md(x);g.width=(0,c.lo)(g.option.width,p?o:y.width)||0,g.height=(0,c.lo)(g.option.height,p?a:y.height)||0}}for(l=n.length-1;l>=0;l--){var m,v;if(u=n[l],v=null!=(m=f.vS(u.id,null))?r.get(m):null){var x=v.parent,_=(y=md(x),x===i?{width:o,height:a}:{width:y.width,height:y.height}),b={},S=h.m$(v,u,_,null,{hv:u.hv,boundingMode:u.bounding},b);if(!md(v).isNew&&S){for(var w=u.transition,A={},I=0;I<s.length;I++){var C=s[I],T=b[C];w&&(Ju(w)||d.indexOf(w,C)>=0)?A[C]=T:v[C]=T}(0,M.oi)(v,A,e,0)}else v.attr(b)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){bd(n,md(n).option,t,e._lastGraphicModel)})),this._elMap=d.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ee.A);function xd(e){var t=new(d.hasOwn(yd,e)?yd[e]:me.getShapeClass(e))({});return md(t).type=e,t}function _d(e,t,n,i){var r=xd(n);return t.add(r),i.set(e,r),md(r).id=e,md(r).isNew=!0,r}function bd(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse((function(e){bd(e,t,n,i)})),Ku(e,t,i),n.removeKey(md(e).id))}function Sd(e,t,n,i){e.isGroup||d.each([["cursor",Mt.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];d.hasOwn(t,i)?e[i]=d.retrieve2(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),d.each(d.keys(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=d.isFunction(i)?i:null}})),d.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var wd=n(60468),Md=n(89536),Ad=["rect","polygon","keep","clear"];function Id(e,t){var n=(0,f.qB)(e?e.brush:[]);if(n.length){var i=[];d.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;d.isArray(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),o=u,a={},d.each(o,(function(e){a[e]=1})),o.length=0,d.each(a,(function(e,t){o.push(t)})),t&&!u.length&&u.push.apply(u,Ad)}}var Cd=n(92288),Td=d.each;function Dd(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Ld(e,t,n){var i={};return Td(t,(function(t){var r,o=i[t]=((r=function(){}).prototype.__hidden=r.prototype,new r);Td(e[t],(function(e,i){if(qi.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new qi(r),"opacity"===i&&((r=d.clone(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new qi(r))}}))})),i}function kd(e,t,n){var i;d.each(n,(function(e){t.hasOwnProperty(e)&&Dd(t[e])&&(i=!0)})),i&&d.each(n,(function(n){t.hasOwnProperty(n)&&Dd(t[n])?e[n]=d.clone(t[n]):delete e[n]}))}var Od=n(50288),Pd={lineX:Nd(0),lineY:Nd(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&Od.l(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!(Od.l(i,r,o)||Od.l(i,r+a,o)||Od.l(i,r,o+s)||Od.l(i,r+a,o+s)||ee.A.create(e).contain(l[0],l[1])||(0,me.linePolygonIntersect)(r,o,r+a,o,i)||(0,me.linePolygonIntersect)(r,o,r,o+s,i)||(0,me.linePolygonIntersect)(r+a,o,r+a,o+s,i)||(0,me.linePolygonIntersect)(r,o+s,r+a,o+s,i))||void 0}}};function Nd(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range;return Rd(t[e],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),Rd(s[0],a)||Rd(s[1],a)||Rd(a[0],s)||Rd(a[1],s)}}}}function Rd(e,t){return t[0]<=e&&e<=t[1]}var Ed=n(19484),Vd=["inBrush","outOfBrush"],zd="__ecBrushSelect",Bd="__ecInBrushSelectEvent";function Gd(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new Ed.A(t.option,e)).setInputRanges(t.areas,e)}))}function Fd(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Gd(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:d.clone(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],h=[],p=!1;n||(i=s.throttleType,r=s.throttleDelay);var f=d.map(t.areas,(function(e){var t=Yd[e.brushType],n=d.defaults({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(i){return Pd[t].point(i,n,e)},rect:function(i){return Pd[t].rect(i,n,e)}};return n}(n),n})),g=Ld(t.option,Vd,(function(e){e.mappingMethod="fixed"}));function y(e){return"all"===l||!!u[e]}function m(e){return!!e.length}d.isArray(l)&&d.each(l,(function(e){u[e]=1})),e.eachSeries((function(n,i){var r=h[i]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;p=p||n.hasAxisBrushed(),y(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}(n,i):function(n,i,r){if(n.brushSelector&&!function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(d.isArray(n)?d.indexOf(n,t)<0:t!==n)}(t,i)&&(d.each(f,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),p=p||m(r)})),y(i)&&m(r))){var o=n.getData();o.each((function(e){Wd(n,r,o,e)&&(c[e]=1)}))}}(n,i,r)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=h[t],r=e.getData(),o=y(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return Wd(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(y(t)?p:m(i))&&function(e,t,n,i){var r,o={};function a(e){return(0,Cd.Ez)(n,r,e)}function s(e,t){(0,Cd.oZ)(n,r,e,t)}function l(e,l){r=e;var u=n.getRawDataItem(r);if(!u||!1!==u.visualMap)for(var c=i.call(undefined,e),h=t[c],d=o[c],p=0,f=d.length;p<f;p++){var g=d[p];h[g]&&h[g].applyVisual(e,a,s)}}d.each(e,(function(e){var n=qi.prepareVisualTypes(t[e]);o[e]=n})),n.each(l)}(Vd,g,r,o)}))})),function(e,t,n,i,r){if(r){var o=e.getZr();if(!o[Bd])o[zd]||(o[zd]=Hd),oa.N(o,zd,n,t)(e,i)}}(t,i,r,o,n)}function Hd(e,t){if(!e.isDisposed()){var n=e.getZr();n[Bd]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[Bd]=!1}}function Wd(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}var Yd={rect:function(e){return Ud(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&Ud(t)}};function Ud(e){return new ee.A(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Xd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new ka.A(t.getZr())).on("brush",d.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){Gd(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:d.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:d.clone(n),$from:t})},t.type="brush",t}(Ee.A),Zd=Xd,jd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return(0,S.C6)(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&kd(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=d.map(e,(function(e){return qd(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=qd(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Te.A);function qd(e,t){return d.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ie.A(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var $d=jd,Kd=n(95584),Jd=["rect","polygon","lineX","lineY","keep","clear"],Qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,S.C6)(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,d.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return d.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){return{show:!0,type:Jd.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Kd.Ms),ep=Qd,tp=n(40623),np=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,S.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],(0,d.each)(n,(function(t,n){var i,o=(0,f.vS)((0,f.vj)(t),"");(0,d.isObject)(t)?(i=(0,d.clone)(t)).value=n:i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new H.A([{name:"value",type:o}],this)).initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Te.A),ip=np,rp=n(61638),op=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="timeline.slider",t.defaultOption=(0,St.G_)(ip.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(ip);(0,d.mixin)(op,rp.J.prototype);var ap=op,sp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="timeline",t}(Ee.A),lp=sp,up=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return(0,S.C6)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ge.A),cp=n(78481),hp=n(78871),dp=Math.PI,pp=(0,f.$r)(),fp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return(0,Se.Qx)("nameValue",{noName:!0,value:t})},(0,d.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,r,o,a=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return h.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":(0,d.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:dp/2},f="vertical"===s?l.height:l.width,g=e.getModel("controlStyle"),y=g.get("show",!0),m=y?g.get("itemSize"):0,v=y?g.get("itemGap"):0,x=m+v,_=e.get(["label","rotate"])||0;_=_*dp/180;var b=g.get("position",!0),S=y&&g.get("showPlayBtn",!0),w=y&&g.get("showPrevBtn",!0),M=y&&g.get("showNextBtn",!0),A=0,I=f;"left"===b||"bottom"===b?(S&&(i=[0,0],A+=x),w&&(r=[A,0],A+=x),M&&(o=[I-m,0],I-=x)):(S&&(i=[I-m,0],I-=x),w&&(r=[0,0],A+=x),M&&(o=[I-m,0],I-=x));var C=[A,I];return e.get("inverse")&&C.reverse(),{viewRect:l,mainLength:f,orient:s,rotation:p[s],labelRotation:_,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:C,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=Zt.create(),a=r.x,s=r.y+r.height;Zt.translate(o,o,[-a,-s]),Zt.rotate(o,o,-dp/2),Zt.translate(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=l[0][0];var f,g=e.labelPosOpt;function y(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}null==g||(0,d.isString)(g)?(v(h,u,l,1,f="+"===g?0:1),v(p,c,l,1,1-f)):(v(h,u,l,1,f=g>=0?0:1),p[1]=h[1]+g),n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=e.rotation,y(n),y(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new cp.A({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new hp.A({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new He.A}}(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new up("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new ne.A;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Yr.A({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,d.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Yr.A({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,d.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,d.each)(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:(0,d.bind)(r._changeTimeline,r,e.value)},p=gp(s,l,t,h);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=c.getItemStyle(),(0,C.iJ)(p);var f=(0,re.z)(p);s.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],(0,d.each)(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),p=new w.Ay({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,d.bind)(r._changeTimeline,r,a),silent:!1,style:(0,E.VB)(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=(0,E.VB)(u),p.ensureState("progress").style=(0,E.VB)(c),t.add(p),(0,C.iJ)(p),pp(p).dataIndex=a,r._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=(0,nh.lo)((0,d.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(e,t,n,i){var r=i.style,o=me.createIcon(e.get(["controlStyle",t]),i||{},new ee.A(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),(0,C.iJ)(h)}}c(e.nextBtnPosition,"next",(0,d.bind)(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",(0,d.bind)(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",(0,d.bind)(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=(0,d.bind)(s._handlePointerDrag,s),e.ondragend=(0,d.bind)(s._handlePointerDragend,s),yp(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){yp(e,s._progressLine,o,n,i)}};this._currentPointer=gp(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=c.Y6(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(t||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return me.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",pp(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(lp);function gp(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");(r=(0,ie.v5)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=(0,d.merge)({rectHover:!0,z2:100},i,!0);var u=(0,ie.xU)(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=(0,ie.hV)(e.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function yp(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var mp=fp;function vp(e){var t=e&&e.timeline;d.isArray(t)||(t=t?[t]:[]),d.each(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),xp(e),_p(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});_p(i,"position")||(i.position=e.controlPosition),"none"!==i.position||_p(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}d.each(e.data||[],(function(e){d.isObject(e)&&!d.isArray(e)&&(!_p(e,"value")&&_p(e,"name")&&(e.value=e.name),xp(e))}))}(e)}))}function xp(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};d.each(i,(function(e,t){o[t]||_p(r,t)||(r[t]=e)})),n.label&&!_p(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function _p(e,t){return e.hasOwnProperty(t)}function bp(e,t){if(!e)return!1;for(var n=(0,d.isArray)(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}var Sp=n(45378);function wp(e){(0,f.M5)(e,"label",["show"])}var Mp=(0,f.$r)(),Ap=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return(0,S.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Sp.A.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=Mp(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&wp(n),d.each(n.data,(function(e){e instanceof Array?(wp(e[0]),wp(e[1])):wp(e)})),o=this.createMarkerModelFromSeries(n,this,t),d.extend(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),Mp(e)[r]=o):Mp(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return(0,Se.Qx)("section",{header:this.name,blocks:[(0,Se.Qx)("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=rp.J.prototype.getDataParams.call(this,e,t),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,t){return Mp(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Te.A);d.mixin(Ap,rp.J.prototype);var Ip=Ap,Cp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ip),Tp=Cp,Dp=n(36842);function Lp(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function kp(e,t,n,i,r,o){var a=[],s=(0,Ih.sJ)(t,i)?t.getCalculationInfo("stackResultDimension"):i,l=Vp(t,s,e),u=t.indicesOfNearest(s,l)[0];a[r]=t.get(n,u),a[o]=t.get(s,u);var h=t.get(i,u),d=c.XV(t.get(i,u));return(d=Math.min(d,20))>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var Op={min:(0,d.curry)(kp,"min"),max:(0,d.curry)(kp,"max"),average:(0,d.curry)(kp,"average"),median:(0,d.curry)(kp,"median")};function Pp(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!(0,d.isArray)(t.coord)&&(0,d.isArray)(r)){var o=Np(t,n,i,e);if((t=(0,d.clone)(t)).type&&Op[t.type]&&o.baseAxis&&o.valueAxis){var a=(0,d.indexOf)(r,o.baseAxis.dim),s=(0,d.indexOf)(r,o.valueAxis.dim),l=Op[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,d.isArray)(r))for(var u=t.coord,c=0;c<2;c++)Op[u[c]]&&(u[c]=Vp(n,n.mapDimension(r[c]),u[c]));else t.coord=[];return t}}function Np(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function Rp(e,t){return!(e&&e.containData&&t.coord&&!Lp(t))||e.containData(t.coord)}function Ep(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return(0,Dp.Pn)(o,t[r])}:function(e,n,i,r){return(0,Dp.Pn)(e.value,t[r])}}function Vp(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var zp=(0,f.$r)(),Bp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,d.createHashMap)()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){zp(e).keep=!1})),t.eachSeries((function(e){var r=Ip.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!zp(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){zp(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;(0,d.each)(e,(function(e){var i=Ip.getMarkerModelFromSeries(e,n.type);i&&i.getData().eachItemGraphicEl((function(e){e&&(t?(0,C.QX)(e):(0,C.JC)(e))}))}))},t.type="marker",t}(Ee.A),Gp=Bp;function Fp(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=c.lo(a.get("x"),n.getWidth()),l=c.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),h=e.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var Hp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Ip.getMarkerModelFromSeries(e,"markPoint");t&&(Fp(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Q.A),u=function(e,t,n){var i;i=e?(0,d.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,d.extend)((0,d.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new H.A(i,n),o=(0,d.map)(n.get("data"),(0,d.curry)(Pp,t));e&&(o=(0,d.filter)(o,(0,d.curry)(Rp,e)));var a=Ep(!!e,i);return r.initData(o,null,a),r}(r,e,t);t.setData(u),Fp(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,d.isFunction)(i)||(0,d.isFunction)(r)||(0,d.isFunction)(o)||(0,d.isFunction)(s)){var c=t.getRawValue(e),h=t.getDataParams(e);(0,d.isFunction)(i)&&(i=i(c,h)),(0,d.isFunction)(r)&&(r=r(c,h)),(0,d.isFunction)(o)&&(o=o(c,h)),(0,d.isFunction)(s)&&(s=s(c,h))}var p=n.getModel("itemStyle").getItemStyle(),f=(0,Cd.rI)(a,"color");p.fill||(p.fill=f),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){(0,re.z)(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Gp),Wp=Hp,Yp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ip),Up=Yp,Xp=(0,f.$r)(),Zp=function(e,t,n,i){var r,o=e.getData();if((0,d.isArray)(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=(0,d.retrieve)(i.yAxis,i.xAxis);else{var u=Np(i,o,t,e);s=u.valueAxis,l=Vp(o,(0,Ih.me)(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,p=(0,d.clone)(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var g=n.get("precision");g>=0&&(0,d.isNumber)(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[c]=f.coord[c]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[Pp(e,r[0]),Pp(e,r[1]),(0,d.extend)({},r[2])];return y[2].type=y[2].type||null,(0,d.merge)(y[2],y[0]),(0,d.merge)(y[2],y[1]),y};function jp(e){return!isNaN(e)&&!isFinite(e)}function qp(e,t,n,i){var r=1-e,o=i.dimensions[e];return jp(t[r])&&jp(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function $p(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(qp(1,n,i,e)||qp(0,n,i,e)))return!0}return Rp(e,t[0])&&Rp(e,t[1])}function Kp(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=c.lo(s.get("x"),r.getWidth()),u=c.lo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=a.dimensions,d=e.get(h[0],t),p=e.get(h[1],t);o=a.dataToPoint([d,p])}if((0,Dl.g)(a,"cartesian2d")){var f=a.getAxis("x"),g=a.getAxis("y");h=a.dimensions,jp(e.get(h[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):jp(e.get(h[1],t))&&(o[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var Jp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Ip.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=Xp(t).from,o=Xp(t).to;r.each((function(t){Kp(r,t,!0,e,n),Kp(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ao);this.group.add(l.group);var u=function(e,t,n){var i;i=e?(0,d.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,d.extend)((0,d.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new H.A(i,n),o=new H.A(i,n),a=new H.A([],n),s=(0,d.map)(n.get("data"),(0,d.curry)(Zp,t,e,n));e&&(s=(0,d.filter)(s,(0,d.curry)($p,e)));var l=Ep(!!e,i);return r.initData((0,d.map)(s,(function(e){return e[0]})),null,l),o.initData((0,d.map)(s,(function(e){return e[1]})),null,l),a.initData((0,d.map)(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,e,t),c=u.from,h=u.to,p=u.line;Xp(t).from=c,Xp(t).to=h,t.setData(p);var f=t.get("symbol"),g=t.get("symbolSize"),y=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);Kp(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,Cd.rI)(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,d.retrieve2)(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:(0,d.retrieve2)(o.get("symbolRotate",!0),y[r?0:1]),symbolSize:(0,d.retrieve2)(o.get("symbolSize"),g[r?0:1]),symbol:(0,d.retrieve2)(o.get("symbol",!0),f[r?0:1]),style:s})}(0,d.isArray)(f)||(f=[f,f]),(0,d.isArray)(g)||(g=[g,g]),(0,d.isArray)(y)||(y=[y,y]),(0,d.isArray)(m)||(m=[m,m]),u.from.each((function(e){v(c,e,!0),v(h,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[c.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(p),u.line.eachItemGraphicEl((function(e){(0,re.z)(e).dataModel=t,e.traverse((function(e){(0,re.z)(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Gp),Qp=Jp,ef=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ip),tf=ef,nf=(0,f.$r)(),rf=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var a=Pp(e,r),s=Pp(e,o),l=a.coord,u=s.coord;l[0]=(0,d.retrieve)(l[0],-1/0),l[1]=(0,d.retrieve)(l[1],-1/0),u[0]=(0,d.retrieve)(u[0],1/0),u[1]=(0,d.retrieve)(u[1],1/0);var c=(0,d.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function of(e){return!isNaN(e)&&!isFinite(e)}function af(e,t,n,i){var r=1-e;return of(t[r])&&of(n[r])}function sf(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return(0,Dl.g)(e,"cartesian2d")?!(!n||!i||!af(1,n,i)&&!af(0,n,i))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!Lp(t)&&!Lp(n))||e.containZone(t.coord,n.coord)}(e,r,o):Rp(e,r)||Rp(e,o)}function lf(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=c.lo(s.get(n[0]),r.getWidth()),u=c.lo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=a.clampData(h),f=a.clampData(d),g=[];"x0"===n[0]?g[0]=p[0]>f[0]?d[0]:h[0]:g[0]=p[0]>f[0]?h[0]:d[0],"y0"===n[1]?g[1]=p[1]>f[1]?d[1]:h[1]:g[1]=p[1]>f[1]?h[1]:d[1],o=i.getMarkerPosition(g,n,!0)}else{var y=[x=e.get(n[0],t),_=e.get(n[1],t)];a.clampData&&a.clampData(y,y),o=a.dataToPoint(y,!0)}if((0,Dl.g)(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),x=e.get(n[0],t),_=e.get(n[1],t);of(x)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):of(_)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uf=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],cf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Ip.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=(0,d.map)(uf,(function(r){return lf(i,t,r,e,n)}));i.setItemLayout(t,r),i.getItemGraphicEl(t).setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new ne.A});this.group.add(l.group),this.markKeep(l);var u=function(e,t,n){var i,r;if(e){var o=(0,d.map)(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return(0,d.extend)((0,d.extend)({},i),{name:e,ordinalMeta:null})}));r=(0,d.map)(["x0","y0","x1","y1"],(function(e,t){return{name:e,type:o[t%2].type}})),i=new H.A(r,n)}else r=[{name:"value",type:"float"}],i=new H.A(r,n);var a=(0,d.map)(n.get("data"),(0,d.curry)(rf,t,e,n));e&&(a=(0,d.filter)(a,(0,d.curry)(sf,e)));var s=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return(0,Dp.Pn)(o,r[i])}:function(e,t,n,i){return(0,Dp.Pn)(e.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,e,t);t.setData(u),u.each((function(t){var n=(0,d.map)(uf,(function(n){return lf(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),p=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],f=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];c.Y6(p),c.Y6(f);var g=!!(l[0]>p[1]||l[1]<p[0]||h[0]>f[1]||h[1]<f[0]);u.setItemLayout(t,{points:n,allClipped:g});var y=u.getItemModel(t).getModel("itemStyle").getItemStyle(),m=(0,Cd.rI)(a,"color");y.fill||(y.fill=m,(0,d.isString)(y.fill)&&(y.fill=Pi.modifyAlpha(y.fill,.4))),y.stroke||(y.stroke=m),u.setItemVisual(t,"style",y)})),u.diff(nf(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new ve.A({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=nf(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?M.oi(i,{shape:{points:r.points}},t,e):i=new ve.A({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=nf(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),(0,E.qM)(e,(0,E.lx)(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:(0,d.isString)(r.fill)?Pi.modifyAlpha(r.fill,1):"#000"}),(0,C.Mx)(e,i),(0,C.Lm)(e,null,null,i.get(["emphasis","disabled"])),(0,re.z)(e).dataModel=t})),nf(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(Gp),hf=cf,df=n(74016),pf=n(49117),ff=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="dataZoom.inside",t.defaultOption=(0,St.G_)(pf.A.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(pf.A),gf=ff,yf=n(68415),mf=n(77925),vf=(0,f.$r)();function xf(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function _f(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function bf(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}var Sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,S.C6)(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){vf(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}(i,t,{pan:(0,d.bind)(wf.pan,this),zoom:(0,d.bind)(wf.zoom,this),scrollMove:(0,d.bind)(wf.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=vf(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||xf(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(yf.A),wf={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=Af[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return(0,fa.A)(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:Mf((function(e,t,n,i,r,o){var a=Af[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:Mf((function(e,t,n,i,r,o){return Af[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n).signal*(e[1]-e[0])*o.scrollDelta}))};function Mf(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return(0,fa.A)(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var Af={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},If=Sf,Cf=n(13791);function Tf(e){(0,Cf.A)(e),e.registerComponentModel(gf),e.registerComponentView(If),function(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=vf(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,d.createHashMap)());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=(0,mf.es)(e);(0,d.each)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(e,t){var n={model:t,containsPoint:(0,d.curry)(bf,t),dispatchAction:(0,d.curry)(_f,e),dataZoomInfoMap:null,controller:null},i=n.controller=new Qe(e.getZr());return(0,d.each)(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,d.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=function(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),oa.N(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else xf(i,e)}))}))}(e)}var Df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,St.G_)(pf.A.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(pf.A),Lf=Df,kf=ot.A,Of="horizontal",Pf="vertical",Nf=["line","bar","candlestick","scatter"],Rf={easing:"cubicOut",duration:100,delay:0},Ef=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,d.bind)(this._onBrush,this),this._onBrushEnd=(0,d.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),oa.N(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){oa.IU(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new ne.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===Of?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=h.vs(e.option);(0,d.each)(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=h.dV(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Pf&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Of||r?n===Of&&r?{scaleY:a?1:-1,scaleX:-1}:n!==Pf||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new kf({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new kf({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,d.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=r.getDataExtent(a),h=.3*(u[1]-u[0]);u=[u[0]-h,u[1]+h];var d,p=[0,t[1]],f=[0,t[0]],g=[[t[0],0],[0,0]],y=[],m=f[1]/(r.count()-1),v=0,x=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(x>0&&t%x)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:(0,c.Cb)(e,u,p,!0);n&&!d&&t?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&d&&(g.push([v,0]),y.push([v,0])),g.push([v,i]),y.push([v,i]),v+=m,d=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var _=this.dataZoomModel,b=0;b<3;b++){var S=w(1===b);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function w(e){var t=_.getModel(e?"selectedDataBackground":"dataBackground"),n=new ne.A,i=new ve.A({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new A.A({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();(0,d.each)(a,(function(e){if(!(n||!0!==t&&(0,d.indexOf)(Nf,e.get("type"))<0)){var a,s=i.getComponent((0,mf.dX)(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=t.filler=new kf({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new kf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,d.each)([0,1],(function(t){var o=a.get("handleIcon");!ie.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,ie.v5)(o,-1,0,2,2,null,!0);s.attr({cursor:Vf(this._orient),draggable:!0,drift:(0,d.bind)(this._onDragMove,this,t),ondragend:(0,d.bind)(this._onDragEnd,this),onmouseover:(0,d.bind)(this._showDataInfo,this,!0),onmouseout:(0,d.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=(0,c.lo)(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,C.iJ)(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[t]=s);var p=a.getModel("textStyle");e.add(i[t]=new w.Ay({silent:!0,invisible:!0,style:(0,E.VB)(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))}),this);var p=h;if(u){var f=(0,c.lo)(a.get("moveHandleSize"),o[1]),g=t.moveHandle=new ot.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),y=.8*f,m=t.moveHandleIcon=(0,ie.v5)(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);m.silent=!0,m.y=o[1]+f/2-.5,g.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(f,10));(p=t.moveZone=new ot.A({invisible:!0,shape:{y:o[1]-v,height:f+v}})).on("mouseover",(function(){s.enterEmphasis(g)})).on("mouseout",(function(){s.leaveEmphasis(g)})),r.add(g),r.add(m),r.add(p)}p.attr({draggable:!0,cursor:Vf(this._orient),drift:(0,d.bind)(this._onDragMove,this,"all"),ondragstart:(0,d.bind)(this._showDataInfo,this,!0),ondragend:(0,d.bind)(this._onDragEnd,this),onmouseover:(0,d.bind)(this._showDataInfo,this,!0),onmouseout:(0,d.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,c.Cb)(e[0],[0,100],t,!0),(0,c.Cb)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,fa.A)(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?(0,c.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,c.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,c.Y6)([(0,c.Cb)(i[0],r,a,!0),(0,c.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=(0,c.Y6)(n.slice()),r=this._size;(0,d.each)([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new ot.A,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=(0,c.Y6)(this._handleEnds.slice());function d(e){var t=me.getTransform(n.handles[e].parent,this.group),a=me.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,l=me.applyTransform([h[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===Of?"middle":a,align:r===Of?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return(0,d.isFunction)(i)?i(e,o):(0,d.isString)(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,je.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=me.applyTransform([t,n],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new D.A(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=(0,c.Y6)([(0,c.Cb)(n.x,i,r,!0),(0,c.Cb)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(je.ds(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new kf({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Rf:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=(0,mf.es)(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(yf.A);function Vf(e){return"vertical"===e?"ns-resize":"ew-resize"}var zf=Ef;function Bf(e){e.registerComponentModel(Lf),e.registerComponentView(zf),(0,Cf.A)(e)}var Gf={get:function(e,t,n){var i=d.clone((Ff[e]||{})[t]);return n&&d.isArray(i)?i[i.length-1]:i}},Ff={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Hf=Gf,Wf=qi.mapVisual,Yf=qi.eachVisual,Uf=d.isArray,Xf=d.each,Zf=c.Y6,jf=c.Cb,qf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,S.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&kd(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=d.bind(e,this),this.controllerVisuals=Ld(this.option.controller,t,e),this.targetVisuals=Ld(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=f.qB(e),t},t.prototype.eachTargetSeries=function(e,t){d.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],d.isArray(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return d.isString(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):d.isFunction(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Zf([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});d.merge(i,n),d.merge(r,n);var o=this.isCategory();function a(n){Uf(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,i),a.call(this,r),function(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},Xf(i,(function(e,t){if(qi.isValidType(t)){var n=Hf.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";Xf(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&d.clone(t)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&d.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=Wf(l.symbol,(function(e){return"none"===e?r:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;Yf(u,(function(e){e>c&&(c=e)})),l.symbolSize=Wf(u,(function(e){return jf(e,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Te.A),$f=qf,Kf=[20,140],Jf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=Kf[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=Kf[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):d.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),d.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=c.Y6((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=Qf(0,0,this.getExtent()),n=Qf(0,0,this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=(0,St.G_)($f.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}($f);function Qf(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var eg=Jf,tg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,S.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=_i.QX(t.get("padding")||0),i=e.getBoundingRect();e.add(new ot.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)],c=qi.prepareVisualTypes(u);return d.each(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),qi.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;h.m$(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(Ee.A),ng=tg,ig=[["left","right","width"],["top","bottom","height"]];function rg(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=ig[a],l=[0,null,10],u={},c=0;c<3;c++)u[ig[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var d=[["x","width",3],["y","height",0]][a],p=(0,h.dV)(u,o,i.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*o[d[1]]?0:1]}function og(e,t){return d.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var ag=c.Cb,sg=d.each,lg=Math.min,ug=Math.max,cg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,S.C6)(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=d.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=d.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new w.Ay({style:(0,E.VB)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=rg(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new ne.A;s.add(l),l.add(n.outOfRange=hg()),l.add(n.inRange=hg(null,o?pg(this._orient):null,d.bind(this._dragHandle,this,"all",!1),d.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new ot.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=ug(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=d.bind(this._dragHandle,this,n,!1),s=d.bind(this._dragHandle,this,n,!0),l=(0,nh.lo)(e.get("handleSize"),i[0]),u=(0,ie.v5)(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=pg(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){je.ds(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,C.ix)(u,!0),t.add(u);var h=this.visualMapModel.textStyleModel,p=new w.Ay({cursor:c,draggable:!0,drift:a,onmousemove:function(e){je.ds(e.event)},ondragend:s,style:(0,E.VB)(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[l,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,i,r){var o=(0,nh.lo)(e.get("indicatorSize"),n[0]),a=(0,ie.v5)(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof xe.Ay){var l=a.style;a.useStyle(d.extend({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new w.Ay({silent:!0,invisible:!0,style:(0,E.VB)(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():dg(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[ag(t[0],n,i,!0),ag(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];(0,fa.A)(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[ag(i[0],r,o,!0),ag(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Ba.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+i*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new ne.A("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();sg([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=ag(e[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=me.applyTransform(n.handleLabelPoints[l],me.getTransform(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=ag(e,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=me.applyTransform(l.indicatorLabelPoint,me.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:v?m:"middle",align:v?"center":m});var x={x:p,y:d,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var w=0;w<S.length;w++)this.api.enterBlur(S[w])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=lg(ug(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=lg(ug(r[0],e),r[1]);var a=function(e,t,n){var i=6,r=e.get("hoverLinkDataSize");return r&&(i=ag(r,t,n,!0)/2),i}(n,o,r),s=[e-a,e+a],l=ag(e,r,o,!0),u=[ag(s[0],r,o,!0),ag(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||dg(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=f.D6(c,h);this._dispatchHighDown("downplay",og(d[0],n)),this._dispatchHighDown("highlight",og(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if((0,dn.R)(e.target,(function(e){var n=(0,re.z)(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",og(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=me.getTransform(t,i?null:this.group);return d.isArray(e)?me.applyTransform(e,r,n):me.transformDirection(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(ng);function hg(e,t,n,i){return new ve.A({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){je.ds(e.event)},ondragend:i})}function dg(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function pg(e){return"vertical"===e?"ns-resize":"ew-resize"}var fg=cg,gg={type:"selectDataRange",event:"dataRangeSelected",update:"update"},yg=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},mg=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i,r,o,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((i=t.stateList,r=t.targetVisuals,o=d.bind(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},d.each(i,(function(e){var t=qi.prepareVisualTypes(r[e]);s[e]=t})),{progress:function(e,t){var n,i;function l(e){return(0,Cd.Ez)(t,i,e)}function u(e,n){(0,Cd.oZ)(t,i,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var c=t.getStore();null!=(i=e.next());){var h=t.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(n,i):i,p=o(d),f=r[p],g=s[p],y=0,m=g.length;y<m;y++){var v=g[y];f[v]&&f[v].applyVisual(d,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(d.bind(vg,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function vg(e,t,n,i){for(var r=t.targetVisuals[i],o=qi.prepareVisualTypes(r),a={color:(0,Cd.rI)(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(e){return a[e]}function d(e,t){a[e]=t}}var xg=d.each;function _g(e){var t=e&&e.visualMap;d.isArray(t)||(t=t?[t]:[]),xg(t,(function(e){if(e){bg(e,"splitList")&&!bg(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&d.isArray(t)&&xg(t,(function(e){d.isObject(e)&&(bg(e,"start")&&!bg(e,"min")&&(e.min=e.start),bg(e,"end")&&!bg(e,"max")&&(e.max=e.end))}))}}))}function bg(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Sg=!1;function wg(e){Sg||(Sg=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(gg,yg),(0,d.each)(mg,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(_g))}function Mg(e){e.registerComponentModel(eg),e.registerComponentView(fg),wg(e)}var Ag=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return(0,S.C6)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Ig[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=d.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=d.map(this._pieceList,(function(e){return e=d.clone(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=qi.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}d.each(t.pieces,(function(e){d.each(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),d.each(n,(function(e,n){var i=!1;d.each(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&d.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Hf.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,d.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;d.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=d.clone(e)},t.prototype.getValueState=function(e){var t=qi.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){qi.findPieceIndex(t,n)===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return d.each(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,St.G_)($f.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}($f),Ig={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),(0,c.sL)(e),d.each(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;d.each(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),Cg(t,e)},pieces:function(e){var t=this.option;d.each(t.pieces,(function(t,n){d.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=t[h[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=qi.retrieveVisuals(t),e.push(i)}),this),Cg(t,e),(0,c.sL)(e),d.each(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function Cg(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var Tg=Ag,Dg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,S.C6)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=d.retrieve(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),d.each(l.viewPieceList,(function(i){var l=i.piece,u=new ne.A;u.onclick=d.bind(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new w.Ay({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),h.aP(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:og(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return rg(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new ne.A,a=this.visualMapModel.textStyleModel;o.add(new w.Ay({style:(0,E.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=d.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add((0,ie.v5)(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=d.clone(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,d.each(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(ng),Lg=Dg;function kg(e){e.registerComponentModel(Tg),e.registerComponentView(Lg),wg(e)}var Og={label:{enabled:!0},decal:{show:!1}},Pg=(0,f.$r)(),Ng={};function Rg(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=d.clone(Og);d.merge(i.label,e.getLocaleModel().get("aria"),!1),d.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=d.createHashMap();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Pg(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(d.isFunction(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=(0,li.x)(t.ecModel,t.name,Ng,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=Pg(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=(0,li.x)(t.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(e,t){var n=e?d.extend(d.extend({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var i=t.getZr().dom;if(i){var o=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=d.defaults(a.option,o),a.get("enabled"))if(a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var s,l=e.getSeriesCount(),u=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var p=function(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}();s=p?r(a.get(["general","withTitle"]),{title:p}):a.get(["general","withoutTitle"]);var f=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),e.eachSeries((function(t,n){if(n<h){var i=void 0,o=t.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(x=t.subType,_=e.getLocaleModel().get(["series","typeNames"]),_[x]||_.chart)});var s=t.getData();s.count()>u?i+=r(a.get(["data","partialData"]),{displayCnt:u}):i+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),p=[],g=0;g<s.count();g++)if(g<u){var y=s.getName(g),m=s.getValues(g),v=a.get(["data",y?"withName":"withoutName"]);p.push(r(v,{name:y,value:m.join(c)}))}i+=p.join(c)+d,f.push(i)}var x,_}));var g=a.getModel(["series","multiple","separator"]),y=g.get("middle"),m=g.get("end");s+=f.join(y)+m,i.setAttribute("aria-label",s)}}}}()}function r(e,t){if(!d.isString(e))return e;var n=e;return d.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function Eg(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},d.each(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}var Vg=n(71611),zg=n(17917),Bg=n(63593),Gg=n(18915);(0,i.Y)([o.a]),(0,i.Y)([function(e){e.registerPainter("svg",a.A)}]),(0,i.Y)([s.a,l.a,function(e){e.registerChartView(G),e.registerSeriesModel(q),(0,u.I)("pie",e.registerAction),e.registerLayout((0,d.curry)(x,"pie")),e.registerProcessor(b("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!((0,d.isNumber)(i)&&!isNaN(i)&&i<0)}))}})},function(e){(0,i.Y)(de.a),e.registerSeriesModel(J),e.registerChartView(he),e.registerLayout((0,ue.A)("scatter"))},function(e){(0,i.Y)(Xe),e.registerChartView(be),e.registerSeriesModel(Me),e.registerLayout(pe),e.registerProcessor(b("radar")),e.registerPreprocessor(ye)},function(e){(0,i.Y)(yn),e.registerChartView(Ft),e.registerSeriesModel(Wt),e.registerLayout(Ut),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Yt),(0,u.I)("map",e.registerAction)},function(e){e.registerChartView(Bn),e.registerSeriesModel(ii),e.registerLayout(oi),e.registerVisual(ai),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=hn(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}(e)},function(e){e.registerSeriesModel(di),e.registerChartView(Oi),e.registerVisual(Ki),e.registerLayout(cr),function(e){for(var t=0;t<si.length;t++)e.registerAction({type:si[t],update:"updateView"},d.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var i=Jn(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=ei(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))}))}(e)},function(e){e.registerChartView(xo),e.registerSeriesModel(Lo),e.registerProcessor(yr),e.registerVisual(mr),e.registerVisual(xr),e.registerLayout(kr),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Br),e.registerLayout(Fr),e.registerCoordinateSystem("graphView",{dimensions:Jt.dimensions,create:Hr}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},d.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},d.noop),e.registerAction(ko,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=hn(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},function(e){e.registerChartView(Vo),e.registerSeriesModel(Bo)},function(e){e.registerChartView(Wo),e.registerSeriesModel(Uo),e.registerLayout(Xo),e.registerProcessor(b("funnel"))},function(e){(0,i.Y)(za),e.registerChartView(Jo),e.registerSeriesModel(ta),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ia)},function(e){e.registerChartView(Ya),e.registerSeriesModel(Xa),e.registerLayout(Za),e.registerVisual(os),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(us),e.registerChartView(ys),e.registerLayout(vs),e.registerTransform(bs)},function(e){e.registerChartView(Rs),e.registerSeriesModel(Vs),e.registerPreprocessor(zs),e.registerVisual(Xs),e.registerLayout($s)},function(e){e.registerChartView(tl),e.registerSeriesModel(il),e.registerLayout((0,ue.A)("effectScatter"))},function(e){e.registerChartView(vl),e.registerSeriesModel(wl),e.registerLayout(yl),e.registerVisual(Al)},function(e){e.registerChartView(Ol),e.registerSeriesModel(Nl)},function(e){e.registerChartView(iu),e.registerSeriesModel(au),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,(0,d.curry)(su.Zp,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,su.KF)("pictorialBar"))},function(e){e.registerChartView(cu),e.registerSeriesModel(du),e.registerLayout(pu),e.registerProcessor(b("themeRiver"))},function(e){e.registerChartView(bu),e.registerSeriesModel(Mu),e.registerLayout((0,d.curry)(Iu,"sunburst")),e.registerProcessor((0,d.curry)(b,"sunburst")),e.registerVisual(Tu),function(e){e.registerAction({type:vu,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var i=Jn(e,[vu],t);if(i){var r=t.getViewRoot();r&&(e.direction=ei(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))})),e.registerAction({type:xu,update:"none"},(function(e,t,n){e=(0,d.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=Jn(e,[xu],t);n&&(e.dataIndex=n.node.dataIndex)})),n.dispatchAction((0,d.extend)(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,n){e=(0,d.extend)({},e),n.dispatchAction((0,d.extend)(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(wc),e.registerSeriesModel(Pu)}]),(0,i.Y)(Fc.a),(0,i.Y)((function(e){(0,i.Y)(jc.a),Hc.A.registerAxisPointerClass("PolarAxisPointer",Zc),e.registerCoordinateSystem("polar",ph),e.registerComponentModel($c),e.registerComponentView(Oh),(0,Ta.A)(e,"angle",Jc,Lh),(0,Ta.A)(e,"radius",Qc,kh),e.registerComponentView(_h),e.registerComponentView(Ah),e.registerLayout((0,d.curry)(Dh,"bar"))})),(0,i.Y)(yn),(0,i.Y)((function(e){(0,i.Y)(jc.a),Hc.A.registerAxisPointerClass("SingleAxisPointer",ed),e.registerComponentView(td),e.registerComponentView(Bh),e.registerComponentModel(Fh),(0,Ta.A)(e,"single",Fh,Fh.defaultOption),e.registerCoordinateSystem("single",Zh)})),(0,i.Y)(za),(0,i.Y)((function(e){e.registerComponentModel(rd),e.registerComponentView(sd),e.registerCoordinateSystem("calendar",cd)})),(0,i.Y)((function(e){e.registerComponentModel(gd),e.registerComponentView(vd),e.registerPreprocessor((function(e){var t=e.graphic;(0,d.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),(0,i.Y)(wd.a),(0,i.Y)(Md.a),(0,i.Y)(jc.a),(0,i.Y)((function(e){e.registerComponentView(Zd),e.registerComponentModel($d),e.registerPreprocessor(Id),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Fd),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},d.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},d.noop),(0,Kd.M_)("brush",ep)})),(0,i.Y)(tp.a),(0,i.Y)((function(e){e.registerComponentModel(ap),e.registerComponentView(mp),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,d.defaults)({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(vp)})),(0,i.Y)((function(e){e.registerComponentModel(Tp),e.registerComponentView(Wp),e.registerPreprocessor((function(e){bp(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),(0,i.Y)((function(e){e.registerComponentModel(Up),e.registerComponentView(Qp),e.registerPreprocessor((function(e){bp(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),(0,i.Y)((function(e){e.registerComponentModel(tf),e.registerComponentView(hf),e.registerPreprocessor((function(e){bp(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),(0,i.Y)(df.a),(0,i.Y)((function(e){(0,i.Y)(Tf),(0,i.Y)(Bf)})),(0,i.Y)(Tf),(0,i.Y)(Bf),(0,i.Y)((function(e){(0,i.Y)(Mg),(0,i.Y)(kg)})),(0,i.Y)(Mg),(0,i.Y)(kg),(0,i.Y)((function(e){e.registerPreprocessor(Eg),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Rg)})),(0,i.Y)(Vg.a),(0,i.Y)(zg.a),(0,i.Y)(Bg.i),(0,i.Y)(Gg._)},67329:function(e,t,n){n.d(t,{Jw:function(){return o},LR:function(){return u},LW:function(){return l},Nz:function(){return c},Xr:function(){return f},ap:function(){return p},oi:function(){return s},t5:function(){return d}});var i=n(44397),r=(0,n(23891).$r)();function o(e,t,n,r,o){var a;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===e;if(t&&t.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return r?(u=(0,i.retrieve2)(r.duration,200),c=(0,i.retrieve2)(r.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),(0,i.isFunction)(h)&&(h=h(n,o)),(0,i.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function a(e,t,n,r,a,s,l){var u,c=!1;(0,i.isFunction)(a)?(l=s,s=a,a=null):(0,i.isObject)(a)&&(s=a.cb,l=a.during,c=a.isFrom,u=a.removeOpt,a=a.dataIndex);var h="leave"===e;h||t.stopAnimation("leave");var d=o(e,r,a,h?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(d&&d.duration>0){var p={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!h,scope:e,during:l};c?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!c&&t.attr(n),l&&l(1),s&&s()}function s(e,t,n,i,r,o){a("update",e,t,n,i,r,o)}function l(e,t,n,i,r,o){a("enter",e,t,n,i,r,o)}function u(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}function c(e,t,n,i,r,o){u(e)||a("leave",e,t,n,i,r,o)}function h(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),c(e,{style:{opacity:0}},t,n,i)}function d(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||h(e,t,n,i)})):h(e,t,n,i)}function p(e){r(e).oldStyle=e.style}function f(e){return r(e).oldStyle}},63593:function(e,t,n){n.d(t,{i:function(){return O}}),n(44114);var i=n(97130),r=n(44397),o=n(17756),a=n(6731),s=n(67329),l=n(55295);function u(e){return(0,r.isArray)(e[0])}function c(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var h={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=(0,l.rR)(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function d(e,t,n,i,a,l){if(e.length&&t.length){var d=(0,s.Jw)("update",i,a);if(d&&d.duration>0){var p,f,g=i.getModel("universalTransition").get("delay"),y=Object.assign({setToFinal:!0},d);u(e)&&(p=e,f=t),u(t)&&(p=t,f=e);for(var m=p?p===e:e.length>t.length,v=p?c(f,p):c(m?t:e,[m?e:t]),x=0,_=0;_<v.length;_++)x+=v[_].many.length;var b=0;for(_=0;_<v.length;_++)S(v[_],m,b,x),b+=v[_].many.length}}function S(e,t,i,a,s){var u=e.many,c=e.one;if(1!==u.length||s)for(var d=(0,r.defaults)({dividePath:h[n],individualDelay:g&&function(e,t,n,r){return g(e+i,a)}},y),p=t?(0,o.Gw)(u,c,d):(0,o.AG)(c,u,d),f=p.fromIndividuals,m=p.toIndividuals,v=f.length,x=0;x<v;x++)w=g?(0,r.defaults)({delay:g(x,v)},y):y,l(f[x],m[x],t?u[x]:e.one,t?e.one:u[x],w);else{var _=t?u[0]:c,b=t?c:u[0];if((0,o.AN)(_))S({many:[_],one:b},!0,i,a,!0);else{var w=g?(0,r.defaults)({delay:g(i,a)},y):y;(0,o.mz)(_,b,w),l(_,b,_,b,w)}}}}function p(e){if(!e)return[];if((0,r.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(p(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof a.Ay&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var f=n(30756),g=n(23891),y=(n(21900),n(42348)),m=1e4,v=0,x=1,_=2,b=(0,g.$r)();function S(e,t,n,i){var r=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(e,t,n){var i=e.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=e.get(i.name,t);return r&&r.categories[o]||o+""}}(e,t,r);return o}var a=e.getRawDataItem(t),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||e.getId(t)}function w(e){var t=[];return(0,r.each)(e,(function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>m))for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:S(n,o,i,!1),childGroupId:S(n,o,i,!0),divide:e.divide,dataIndex:o})})),t}function M(e,t,n){e.traverse((function(e){e instanceof a.Ay&&(0,s.LW)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function A(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function I(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function C(e,t,n){var i=w(e),o=w(t);function l(e,t,n,i,o){(n||e)&&t.animateFrom({style:n&&n!==e?(0,r.extend)((0,r.extend)({},n.style),e.style):e.style},o)}var u=!1,c=v,h=(0,r.createHashMap)(),g=(0,r.createHashMap)();i.forEach((function(e){e.groupId&&h.set(e.groupId,!0),e.childGroupId&&g.set(e.childGroupId,!0)}));for(var m=0;m<o.length;m++){var b=o[m].groupId;if(g.get(b)){c=x;break}var S=o[m].childGroupId;if(S&&h.get(S)){c=_;break}}function C(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?c===x?n.childGroupId:n.groupId:c===_?n.childGroupId:n.groupId}}var T=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,o),D={};if(!T)for(m=0;m<o.length;m++){var L=o[m],k=L.data.getItemGraphicEl(L.dataIndex);k&&(D[k.id]=!0)}function O(e,t){var n=i[t],r=o[e],a=r.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),h=r.data.getItemGraphicEl(r.dataIndex);c!==h?c&&D[c.id]||h&&(I(h),c?(I(c),A(c),u=!0,d(p(c),p(h),r.divide,a,e,l)):M(h,a,e)):h&&function(e,t,n){var i=(0,s.Jw)("update",n,t);i&&e.traverse((function(e){if(e instanceof y.Ay){var t=(0,s.Xr)(e);t&&e.animateFrom({style:t},i)}}))}(h,r.dataIndex,a)}new f.A(i,o,C(!0,T),C(!1,T),null,"multiple").update(O).updateManyToOne((function(e,t){var n=o[e],a=n.data,s=a.hostModel,c=a.getItemGraphicEl(n.dataIndex),h=(0,r.filter)((0,r.map)(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==c&&!D[e.id]}));c&&(I(c),h.length?((0,r.each)(h,(function(e){I(e),A(e)})),u=!0,d(p(h),p(c),n.divide,s,e,l)):M(c,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!D[a.id]){var s=(0,r.filter)((0,r.map)(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==a})),c=o[e[0]].data.hostModel;s.length&&((0,r.each)(s,(function(e){return I(e)})),a?(I(a),A(a),u=!0,d(p(a),p(s),n.divide,c,e[0],l)):(0,r.each)(s,(function(t){return M(t,c,e[0])})))}})).updateManyToMany((function(e,t){new f.A(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,i){O(e[n],t[i])})).execute()})).execute(),u&&(0,r.each)(t,(function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=(0,s.Jw)("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(e){e instanceof a.Ay&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function T(e){return e.getModel("universalTransition").get("seriesKey")||e.id}function D(e){return(0,r.isArray)(e)?e.sort().join(","):e}function L(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function k(e,t){for(var n=0;n<e.length;n++)if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}function O(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){(0,r.each)((0,g.qB)(n.seriesTransition),(function(e){(0,r.each)((0,g.qB)(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][i.U]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var o=b(t);if(o.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)(0,r.each)((0,g.qB)(a),(function(e){!function(e,t,n,i){var o=[],a=[];(0,r.each)((0,g.qB)(e.from),(function(e){var n=k(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:L(t.oldData[n]),groupIdDim:e.dimension})})),(0,r.each)((0,g.qB)(e.to),(function(e){var i=k(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();a.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:L(r),groupIdDim:e.dimension})}})),o.length>0&&a.length>0&&C(o,a,i)}(e,o,n,t)}));else{var s=function(e,t){var n=(0,r.createHashMap)(),i=(0,r.createHashMap)(),o=(0,r.createHashMap)();return(0,r.each)(e.oldSeries,(function(t,n){var a=e.oldDataGroupIds[n],s=e.oldData[n],l=T(t),u=D(l);i.set(u,{dataGroupId:a,data:s}),(0,r.isArray)(l)&&(0,r.each)(l,(function(e){o.set(e,{key:u,dataGroupId:a,data:s})}))})),(0,r.each)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),s=T(e),l=D(s),u=i.get(l);if(u)n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:L(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:L(a),data:a}]});else if((0,r.isArray)(s)){var c=[];(0,r.each)(s,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:L(t.data),data:t.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:a,divide:L(a)}]})}else{var h=o.get(s);if(h){var d=n.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:L(h.data)}],newSeries:[]},n.set(h.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:L(a)})}}}})),n}(o,n);(0,r.each)(s.keys(),(function(e){var n=s.get(e);C(n.oldSeries,n.newSeries,t)}))}(0,r.each)(n.updatedSeries,(function(e){e[i.U]&&(e[i.U]=!1)}))}for(var l=e.getSeries(),u=o.oldSeries=[],c=o.oldDataGroupIds=[],h=o.oldData=[],d=0;d<l.length;d++){var p=l[d].getData();p.count()<m&&(u.push(l[d]),c.push(l[d].get("dataGroupId")),h.push(p))}}))}},99383:function(e,t,n){var i=n(33590),r=n(97130),o=n(43503),a=n(44397),s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)(0,a.each)(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=l+u/2}return o}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}(r.A);r.A.registerClass(s),t.A=s},3757:function(e,t,n){n.d(t,{a:function(){return $}});var i=n(44397),r=n(48037),o=n(10542),a=n(33590),s=n(99383),l=n(43503),u=n(40909),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,a.C6)(t,e),t.prototype.getInitialData=function(){return(0,l.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,u.G_)(s.A.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}(s.A),h=c,d=(n(44114),n(6731)),p=n(27989),f=n(3966),g=n(67329),y=n(65859),m=n(24675),v=n(98565),x=n(47658),_=n(53269),b=n(99076),S=n(46e3),w=n(53731),M=n(47223),A=n(93720),I=n(18377),C=n(1323);function T(e,t,n){return t*Math.sin(e)*(n?-1:1)}function D(e,t,n){return t*Math.cos(e)*(n?1:-1)}var L=n(72109),k=Math.max,O=Math.min,P=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return(0,a.C6)(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){(0,f.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,f=function(e,t){var n=e.getArea&&e.getArea();if((0,A.g)(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var v=e.get("roundCap",!0),x=e.get("showBackground",!0),b=e.getModel("backgroundStyle"),S=b.get("borderRadius")||0,w=[],M=this._backgroundEls,I=i&&i.isInitSort,C=i&&"changeAxisOrder"===i.type;function T(e){var t=F[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?m.A:y.A)({shape:j(t,n,e),silent:!0,z2:0})}(l,r,t);return n.useStyle(b.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",S):n.setShape("cornerRadius",S),w[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=F[l.type](a,t,n);if(x&&T(t),a.hasValue(t)&&G[l.type](i)){var s=!1;d&&(s=N[l.type](f,i));var p=R[l.type](e,a,t,i,r,c,u.model,!1,v);h&&(p.forceLabelAnimation=!0),W(p,a,t,n,i,e,r,"polar"===l.type),I?p.attr({shape:i}):h?E(h,c,p,i,t,r,!1,!1):(0,g.LW)(p,{shape:i},e,t),a.setItemGraphicEl(t,p),o.add(p),p.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),p=F[l.type](a,t,i);if(x){var y=void 0;0===M.length?y=T(n):((y=M[n]).useStyle(b.getItemStyle()),"cartesian2d"===l.type?y.setShape("r",S):y.setShape("cornerRadius",S),w[t]=y);var m=F[l.type](a,t),A=j(r,m,l);(0,g.oi)(y,{shape:A},c,t)}var D=s.getItemGraphicEl(n);if(a.hasValue(t)&&G[l.type](p)){var L=!1;if(d&&(L=N[l.type](f,p))&&o.remove(D),D?(0,g.ap)(D):D=R[l.type](e,a,t,p,r,c,u.model,!!D,v),h&&(D.forceLabelAnimation=!0),C){var k=D.getTextContent();if(k){var O=(0,_.Lu)(k);null!=O.prevValue&&(O.prevValue=O.value)}}else W(D,a,t,i,p,e,r,"polar"===l.type);I?D.attr({shape:p}):h?E(h,c,D,p,t,r,!0,C):(0,g.oi)(D,{shape:p},e,t,null),a.setItemGraphicEl(t,D),D.ignore=L,o.add(D)}else o.remove(D)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&(0,g.t5)(n,e,t)})).execute();var D=this._backgroundGroup||(this._backgroundGroup=new p.A);D.removeAll();for(var L=0;L<w.length;++L)D.add(w[L]);o.add(D),this._backgroundEls=w,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),X(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),X(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&(0,S.Ip)(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:(0,i.map)(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){(0,g.t5)(t,e,(0,v.z)(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(M.A),N={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=k(t.x,e.x),s=O(t.x+t.width,r),l=k(t.y,e.y),u=O(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=O(t.r,e.r),o=k(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;return n<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},R={cartesian2d:function(e,t,n,r,o,a,s,l,u){var c=new y.A({shape:(0,i.extend)({},r),z2:1});return c.__dataIndex=n,c.name="item",a&&(c.shape[o?"height":"width"]=0),c},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?w.A:m.A,c=new u({shape:i,z2:1});c.name="item";var h,d,p,f=H(r);if(c.calculateTextPosition=(h=f,d={isRoundCap:u===w.A},p=(d=d||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return(0,C.X4)(e,t,n);var r=h(i),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,m=p?Math.abs(u-c)/2:0,v=Math.cos,x=Math.sin,_=s+u*v(f),b=l+u*x(f),S="left",w="top";switch(r){case"startArc":_=s+(c-o)*v(y),b=l+(c-o)*x(y),S="center",w="top";break;case"insideStartArc":_=s+(c+o)*v(y),b=l+(c+o)*x(y),S="center",w="bottom";break;case"startAngle":_=s+d*v(f)+T(f,o+m,!1),b=l+d*x(f)+D(f,o+m,!1),S="right",w="middle";break;case"insideStartAngle":_=s+d*v(f)+T(f,-o+m,!1),b=l+d*x(f)+D(f,-o+m,!1),S="left",w="middle";break;case"middle":_=s+d*v(y),b=l+d*x(y),S="center",w="middle";break;case"endArc":_=s+(u+o)*v(y),b=l+(u+o)*x(y),S="center",w="bottom";break;case"insideEndArc":_=s+(u-o)*v(y),b=l+(u-o)*x(y),S="center",w="top";break;case"endAngle":_=s+d*v(g)+T(g,o+m,!0),b=l+d*x(g)+D(g,o+m,!0),S="left",w="middle";break;case"insideEndAngle":_=s+d*v(g)+T(g,-o+m,!0),b=l+d*x(g)+D(g,-o+m,!0),S="right",w="middle";break;default:return(0,C.X4)(e,t,n)}return(e=e||{}).x=_,e.y=b,e.align=S,e.verticalAlign=w,e}),o){var y=r?"r":"endAngle",v={};c.shape[y]=r?i.r0:i.startAngle,v[y]=i[y],(s?g.oi:g.LW)(c,{shape:v},o)}return c}};function E(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?g.oi:g.LW)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?g.oi:g.LW)(n,{shape:u},c,r)}function V(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var z=["x","y","width","height"],B=["cx","cy","r","startAngle","endAngle"],G={cartesian2d:function(e){return!V(e,z)},polar:function(e){return!V(e,B)}},F={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function H(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function W(e,t,n,r,o,a,s,l){var u=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var c=e.shape,h=(0,L.i)(r.getModel("itemStyle"),c,!0);(0,i.extend)(c,h),e.setShape(c)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(u);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var f=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=(0,_.lx)(r);(0,_.qM)(e,g,{labelFetcher:a,labelDataIndex:n,defaultText:(0,I.i)(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var y=e.getTextContent();if(l&&y){var m=r.get(["label","position"]);e.textConfig.inside="middle"===m||null,function(e,t,n,r){if((0,i.isNumber)(r))e.setTextConfig({rotation:r});else if((0,i.isArray)(t))e.setTextConfig({rotation:0});else{var o,a=e.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=(s+l)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=u;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;break;default:return void e.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),e.setTextConfig({rotation:h})}}(e,"outside"===m?f:m,H(s),r.get(["label","rotate"]))}(0,_.Oh)(y,g,a.getRawValue(n),(function(e){return(0,I.T)(t,e)}));var v=r.getModel(["emphasis"]);(0,x.Lm)(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),(0,x.Mx)(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(o)&&(e.style.fill="none",e.style.stroke="none",(0,i.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var Y=function(){},U=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return(0,a.C6)(t,e),t.prototype.getDefaultShape=function(){return new Y},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(d.Ay);function X(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new U({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var h=new U({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(r.getVisual("style")),(0,v.z)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Z),h.on("mousemove",Z)),n&&n.push(h)}var Z=(0,b.nF)((function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);(0,v.z)(this).dataIndex=t>=0?t:null}),30,!1);function j(e,t,n){if((0,A.g)(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}var o=t;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var q=P;function $(e){e.registerChartView(q),e.registerSeriesModel(h),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,i.curry(r.Zp,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,r.KF)("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,o.A)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}},53863:function(e,t,n){var i=n(33590),r=n(51756),o=n(67329),a=n(27989),s=n(98565),l=n(47658),u=n(18377),c=n(44397),h=n(53269),d=n(43359),p=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return(0,i.C6)(t,e),t.prototype._createSymbol=function(e,t,n,i,o){this.removeAll();var a=(0,r.v5)(e,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=f,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){(0,l.HY)(this.childAt(0))},t.prototype.downplay=function(){(0,l.SD)(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=a!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,l,h)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):o.oi(p,d,s,n),(0,o.ap)(p)}if(this._updateCommon(e,n,l,i,r),u){var p=this.childAt(0);c||(d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,o.LW(p,d,s,n))}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,o){var a,s,p,f,g,y,m,v,x,_=this.childAt(0),b=e.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,p=i.selectItemStyle,f=i.focus,g=i.blurScope,m=i.labelStatesModels,v=i.hoverScale,x=i.cursorStyle,y=i.emphasisDisabled),!i||e.hasItemOption){var S=i&&i.itemModel?i.itemModel:e.getItemModel(t),w=S.getModel("emphasis");a=w.getModel("itemStyle").getItemStyle(),p=S.getModel(["select","itemStyle"]).getItemStyle(),s=S.getModel(["blur","itemStyle"]).getItemStyle(),f=w.get("focus"),g=w.get("blurScope"),y=w.get("disabled"),m=(0,h.lx)(S),v=w.getShallow("scale"),x=S.getShallow("cursor")}var M=e.getItemVisual(t,"symbolRotate");_.attr("rotation",(M||0)*Math.PI/180||0);var A=(0,r.hV)(e.getItemVisual(t,"symbolOffset"),n);A&&(_.x=A[0],_.y=A[1]),x&&_.attr("cursor",x);var I=e.getItemVisual(t,"style"),C=I.fill;if(_ instanceof d.Ay){var T=_.style;_.useStyle((0,c.extend)({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},I))}else _.__isEmptyBrush?_.useStyle((0,c.extend)({},I)):_.useStyle(I),_.style.decal=null,_.setColor(C,o&&o.symbolInnerColor),_.style.strokeNoScale=!0;var D=e.getItemVisual(t,"liftZ"),L=this._z2;null!=D?null==L&&(this._z2=_.z2,_.z2+=D):null!=L&&(_.z2=L,this._z2=null);var k=o&&o.useNameLabel;(0,h.qM)(_,m,{labelFetcher:b,labelDataIndex:t,defaultText:function(t){return k?e.getName(t):(0,u.i)(e,t)},inheritColor:C,defaultOpacity:I.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var O=_.ensureState("emphasis");O.style=a,_.ensureState("select").style=p,_.ensureState("blur").style=s;var P=null==v||!0===v?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;O.scaleX=this._sizeX*P,O.scaleY=this._sizeY*P,this.setSymbolScale(1),(0,l.Lm)(this,f,g,y)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=(0,s.z)(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&o.Nz(l,{style:{opacity:0}},t,{dataIndex:r,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();o.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return(0,r.xU)(e.getItemVisual(t,"symbolSize"))},t}(a.A);function f(e,t){this.parent.drift(e,t)}t.A=p},86189:function(e,t,n){n(44114);var i=n(27989),r=n(67329),o=n(3966),a=n(53863),s=n(44397),l=n(53269);function u(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function c(e){return null==e||(0,s.isObject)(e)||(e={isIgnore:e}),e||{}}function h(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:(0,l.lx)(t),cursorStyle:t.get("cursor")}}var d=function(){function e(e){this.group=new i.A,this._SymbolCtor=e||a.A}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=c(t);var n=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=h(e),d={disableAnimation:s},p=t.getSymbolPoint||function(t){return e.getItemLayout(t)};o||n.removeAll(),e.diff(o).add((function(i){var r=p(i);if(u(e,r,i,t)){var o=new a(e,i,l,d);o.setPosition(r),e.setItemGraphicEl(i,o),n.add(o)}})).update((function(c,h){var f=o.getItemGraphicEl(h),g=p(c);if(u(e,g,c,t)){var y=e.getItemVisual(c,"symbol")||"circle",m=f&&f.getSymbolType&&f.getSymbolType();if(!f||m&&m!==y)n.remove(f),(f=new a(e,c,l,d)).setPosition(g);else{f.updateData(e,c,l,d);var v={x:g[0],y:g[1]};s?f.attr(v):r.oi(f,v,i)}n.add(f),e.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=p,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(u(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){o.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();t.A=d},46e3:function(e,t,n){n.d(t,{Ip:function(){return c},Mi:function(){return u},SM:function(){return l}});var i=n(65859),r=n(67329),o=n(24675),a=n(81353),s=n(44397);function l(e,t,n,o,a){var l=e.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,p=n.get(["lineStyle","width"])||2;u-=p/2,c-=p/2,h+=p,d+=p,h=Math.ceil(h),u!==Math.floor(u)&&(u=Math.floor(u),h++);var f=new i.A({shape:{x:u,y:c,width:h,height:d}});if(t){var g=e.getBaseAxis(),y=g.isHorizontal(),m=g.inverse;y?(m&&(f.shape.x+=h),f.shape.width=0):(m||(f.shape.y+=d),f.shape.height=0);var v=(0,s.isFunction)(a)?function(e){a(e,f)}:null;r.LW(f,{shape:{width:h,height:d,x:u,y:c}},n,null,o,v)}return f}function u(e,t,n){var i=e.getArea(),s=(0,a.LI)(i.r0,1),l=(0,a.LI)(i.r,1),u=new o.A({shape:{cx:(0,a.LI)(e.cx,1),cy:(0,a.LI)(e.cy,1),r0:s,r:l,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&("angle"===e.getBaseAxis().dim?u.shape.endAngle=i.startAngle:u.shape.r=s,r.LW(u,{shape:{endAngle:i.endAngle,r:l}},n)),u}function c(e,t,n,i,r){return e?"polar"===e.type?u(e,t,n):"cartesian2d"===e.type?l(e,t,n,i,r):null:null}},8115:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(23891);function r(){var e=(0,i.$r)();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}},43503:function(e,t,n){n.d(t,{A:function(){return y}});var i=n(44397),r=n(70213),o=n(34122),a=n(58803),s=n(23891),l=n(13798),u=function(e){this.coordSysDims=[],this.axisMap=(0,i.createHashMap)(),this.categoryAxisMap=(0,i.createHashMap)(),this.coordSysName=e},c={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",s.US).models[0],o=e.getReferringComponents("yAxis",s.US).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),h(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),h(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",s.US).models[0];t.coordSysDims=["single"],n.set("single",r),h(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",s.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),h(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),h(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();(0,i.each)(a.parallelAxisIndex,(function(e,i){var a=o.getComponent("parallelAxis",e),l=s[i];n.set(l,a),h(a)&&(r.set(l,a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function h(e){return"category"===e.get("type")}var d=n(95409),p=n(45180),f=n(15334),g=n(7019),y=function(e,t,n){n=n||{};var h,y=t.getSourceManager(),m=!1;e?(m=!0,h=(0,d.AF)(e)):m=(h=y.getSource()).sourceFormat===g.mK;var v=function(e){var t=e.get("coordinateSystem"),n=new u(t),i=c[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}(t),x=function(e,t){var n,r=e.get("coordinateSystem"),o=l.A.get(r);return t&&t.coordSysDims&&(n=i.map(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=(0,a.B)(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(t,v),_=n.useEncodeDefaulter,b=i.isFunction(_)?_:_?i.curry(f.OC,x,t):null,S={coordDimensions:x,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!m},w=(0,o.A)(h,S),M=function(e,t,n){var r,o;return n&&i.each(e,(function(e,i){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==r||(e[r].otherDims.itemName=0),r}(w.dimensions,n.createInvertedIndices,v),A=m?null:y.getSharedDataStore(w),I=(0,p.iJ)(t,{schema:w,store:A}),C=new r.A(w,t);C.setCalculationInfo(I);var T=null!=M&&function(e){if(e.sourceFormat===g.mK){var t=function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!i.isArray((0,s.vj)(t))}}(h)?function(e,t,n,i){return i===M?n:this.defaultDimValueGetter(e,t,n,i)}:null;return C.hasItemOption=!1,C.initData(m?h:A,null,T),C}},18377:function(e,t,n){n.d(t,{T:function(){return a},i:function(){return o}}),n(44114);var i=n(9678),r=n(44397);function o(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var o=(0,i.QE)(e,t,n[0]);return null!=o?o+"":null}if(r){for(var a=[],s=0;s<n.length;s++)a.push((0,i.QE)(e,t,n[s]));return a.join(" ")}}function a(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!(0,r.isArray)(t))return t+"";for(var i=[],o=0;o<n.length;o++){var a=e.getDimensionIndex(n[o]);a>=0&&i.push(t[a])}return i.join(" ")}},72109:function(e,t,n){n.d(t,{i:function(){return o}});var i=n(44397),r=n(1323);function o(e,t,n){var o=e.get("borderRadius");if(null==o)return n?{cornerRadius:0}:null;(0,i.isArray)(o)||(o=[o,o,o,o]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:(0,i.map)(o,(function(e){return(0,r.lo)(e,a)}))}}},39922:function(e,t,n){n.d(t,{a:function(){return W}});var i=n(33590),r=n(43503),o=n(97130),a=n(51756),s=n(27989),l=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,i.C6)(t,e),t.prototype.getInitialData=function(e){return(0,r.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new s.A,n=(0,a.v5)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,l=.8*e.itemHeight,u=(0,a.v5)(o,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);t.add(u),u.setStyle(e.itemStyle);var c="inherit"===e.iconRotate?r:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),t},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}(o.A),u=l,c=(n(44114),n(44397)),h=n(86189),d=n(53863),p=n(45180);function f(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=function(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:(0,c.isNumber)(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),h="x"===s||"radius"===s?1:0,d=(0,c.map)(e.dimensions,(function(e){return t.mapDimension(e)})),f=!1,g=t.getCalculationInfo("stackResultDimension");return(0,p.sJ)(t,d[0])&&(f=!0,d[0]=g),(0,p.sJ)(t,d[1])&&(f=!0,d[1]=g),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function g(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var y=n(1758),m=n(56677),v=n(67329),x=n(5995),_=n(23891),b=n(57407),S=n(47223),w=n(46e3),M=n(93720),A=n(47658),I=n(53269),C=n(18377),T=n(98565),D=n(81111),L=n(78987);function k(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function O(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function P(e,t){var n=O(e),i=n[0],r=n[1],o=O(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function N(e){return c.isNumber(e)?e:e?.5:0}function R(e,t,n,i){var r=t.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function E(e,t){return[e[2*t],e[2*t+1]]}function V(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<A.BV.length;t++)if(e.get([A.BV[t],"endLabel","show"]))return!0;return!1}function z(e,t,n,i){if((0,M.g)(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=V(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=(0,w.SM)(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return(0,w.Mi)(t,n,i)}var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.init=function(){var e=new s.A,t=new h.A;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,p=this._coordSys,x=this._symbolDraw,_=this._polyline,b=this._polygon,S=this._lineGroup,w=!t.ssr&&e.get("animation"),M=!l.isEmpty(),I=l.get("origin"),C=f(r,a,I),O=M&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=(0,y.J)(2*i),o=0;o<i;o++){var a=g(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,C),P=e.get("showSymbol"),E=e.get("connectNulls"),V=P&&!h&&function(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*d.A.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return c.each(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}(e,a,r),B=this._data;B&&B.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),B.setItemGraphicEl(t,null))})),P||x.remove(),o.add(S);var G,F=!h&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(G=r.getArea()).width?(G.x-=.1,G.y-=.1,G.width+=.2,G.height+=.2):G.r0&&(G.r0-=.5,G.r+=.5)),this._clipShapeForSymbol=G;var H=function(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=c.map(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=function(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i);return{coord:n,color:(0,L.lerp)(r,[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=p[0].coord-10,y=p[f-1].coord+10,v=y-g;if(v<.001)return"transparent";c.each(p,(function(e){e.offset=(e.coord-g)/v})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var x=new m.A(0,0,0,0,p,!0);return x[r]=g,x[r+"2"]=y,x}}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(_&&p.type===r.type&&F===this._step){M&&!b?b=this._newPolygon(u,O):b&&!M&&(S.remove(b),b=this._polygon=null),h||this._initOrUpdateEndLabel(e,r,(0,D.he)(H));var W=S.getClipPath();if(W){var Y=z(this,r,!1,e);v.LW(W,{shape:Y.shape},e)}else S.setClipPath(z(this,r,!0,e));P&&x.updateData(a,{isIgnore:V,clipShape:G,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),k(this._stackedOnPoints,O)&&k(this._points,u)||(w?this._doUpdateAnimation(a,O,r,n,F,I,E):(F&&(u=R(u,r,F,E),O&&(O=R(O,r,F,E))),_.setShape({points:u}),b&&b.setShape({points:u,stackedOnPoints:O})))}else P&&x.updateData(a,{isIgnore:V,clipShape:G,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),w&&this._initSymbolLabelAnimation(a,r,G),F&&(u=R(u,r,F,E),O&&(O=R(O,r,F,E))),_=this._newPolyline(u),M?b=this._newPolygon(u,O):b&&(S.remove(b),b=this._polygon=null),h||this._initOrUpdateEndLabel(e,r,(0,D.he)(H)),S.setClipPath(z(this,r,!0,e));var U=e.getModel("emphasis"),X=U.get("focus"),Z=U.get("blurScope"),j=U.get("disabled");_.useStyle(c.defaults(s.getLineStyle(),{fill:"none",stroke:H,lineJoin:"bevel"})),(0,A.Mx)(_,e,"lineStyle"),_.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(_.getState("emphasis").style.lineWidth=+_.style.lineWidth+1),(0,T.z)(_).seriesIndex=e.seriesIndex,(0,A.Lm)(_,X,Z,j);var q=N(e.get("smooth")),$=e.get("smoothMonotone");if(_.setShape({smooth:q,smoothMonotone:$,connectNulls:E}),b){var K=a.getCalculationInfo("stackedOnSeries"),J=0;b.useStyle(c.defaults(l.getAreaStyle(),{fill:H,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),K&&(J=N(K.get("smooth"))),b.setShape({smooth:q,stackedOnSmooth:J,smoothMonotone:$,connectNulls:E}),(0,A.Mx)(b,e,"areaStyle"),(0,T.z)(b).seriesIndex=e.seriesIndex,(0,A.Lm)(b,X,Z,j)}var Q=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=Q)})),this._polyline.onHoverStateChange=Q,this._data=a,this._coordSys=r,this._stackedOnPoints=O,this._points=u,this._step=F,this._valueOrigin=I,e.get("triggerLineEvent")&&(this.packEventData(e,_),b&&this.packEventData(e,b))},t.prototype.packEventData=function(e,t){(0,T.z)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=_.le(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,h=e.get("z")||0;(s=new d.A(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else S.A.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=_.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else S.A.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,A.Pk)(this._polyline,e),t&&(0,A.Pk)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new b.N({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new b.z({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");c.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=c.isFunction(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],p=void 0,f=void 0,g=void 0;if(n)if(r){var y=n,m=t.pointToCoord(d);i?(p=y.startAngle,f=y.endAngle,g=-m[1]/180*Math.PI):(p=y.r0,f=y.r,g=m[0])}else{var v=n;i?(p=v.x,f=v.x+v.width,g=e.x):(p=v.y+v.height,f=v.y,g=e.y)}var x=f===p?0:(g-p)/(f-p);a&&(x=1-x);var _=c.isFunction(u)?u(o):l*x+h,b=s.getSymbolPath(),S=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:_}),b.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(V(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new x.Ay({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t,n,i=e.length/2;i>0&&(t=e[2*i-2],n=e[2*i-1],isNaN(t)||isNaN(n));i--);return i-1}(a);l>=0&&((0,I.qM)(o,(0,I.lx)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?(0,C.T)(r,n):(0,C.i)(r,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=t.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(y?-1:1),b=(g?0:-p)*(y?-1:1),S=g?"x":"y",w=function(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}(u,v,S),M=w.range,A=M[1]-M[0],C=void 0;if(A>=1){if(A>1&&!h){var T=E(u,M[0]);s.attr({x:T[0]+x,y:T[1]+b}),r&&(C=c.getRawValue(M[0]))}else{(T=l.getPointOn(v,S))&&s.attr({x:T[0]+x,y:T[1]+b});var D=c.getRawValue(M[0]),L=c.getRawValue(M[1]);r&&(C=_.Il(n,d,D,L,w.t))}i.lastFrameIndex=M[0]}else{var k=1===e||i.lastFrameIndex>0?M[0]:0;T=E(u,k),r&&(C=c.getRawValue(k)),s.attr({x:T[0]+x,y:T[1]+b})}if(r){var O=(0,I.Lu)(s);"function"==typeof O.setLabelText&&O.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,i,r,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),l=[],u=[],c=[],h=[],d=[],p=[],m=[],v=f(r,t,a),x=e.getLayout("points")||[],_=t.getLayout("points")||[],b=0;b<s.length;b++){var S=s[b],w=!0,M=void 0,A=void 0;switch(S.cmd){case"=":M=2*S.idx,A=2*S.idx1;var I=x[M],C=x[M+1],T=_[A],D=_[A+1];(isNaN(I)||isNaN(C))&&(I=T,C=D),l.push(I,C),u.push(T,D),c.push(n[M],n[M+1]),h.push(i[A],i[A+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,k=v.dataDimsForPoint,O=r.dataToPoint([t.get(k[0],L),t.get(k[1],L)]);A=2*L,l.push(O[0],O[1]),u.push(_[A],_[A+1]);var P=g(v,r,t,L);c.push(P[0],P[1]),h.push(i[A],i[A+1]),m.push(t.getRawIndex(L));break;case"-":w=!1}w&&(d.push(S),p.push(p.length))}p.sort((function(e,t){return m[e]-m[t]}));var N=l.length,R=(0,y.J)(N),E=(0,y.J)(N),V=(0,y.J)(N),z=(0,y.J)(N),B=[];for(b=0;b<p.length;b++){var G=p[b],F=2*b,H=2*G;R[F]=l[H],R[F+1]=l[H+1],E[F]=u[H],E[F+1]=u[H+1],V[F]=c[H],V[F+1]=c[H+1],z[F]=h[H],z[F+1]=h[H+1],B[b]=d[G]}return{current:R,next:E,stackedOnCurrent:V,stackedOnNext:z,status:B}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,m=c.stackedOnNext;if(r&&(h=R(c.current,n,r,a),d=R(c.stackedOnCurrent,n,r,a),p=R(c.next,n,r,a),m=R(c.stackedOnNext,n,r,a)),P(h,p)>3e3||l&&P(d,m)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:m})));s.shape.__points=c.current,s.shape.points=h;var x={shape:{points:p}};c.current!==h&&(x.shape.__points=c.next),s.stopAnimation(),v.oi(s,x,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),v.oi(l,{shape:{stackedOnPoints:m}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var _=[],b=c.status,S=0;S<b.length;S++)if("="===b[S].cmd){var w=e.getItemGraphicEl(b[S].idx1);w&&_.push({el:w,ptIdx:S})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<_.length;t++){var n=_[t].el,i=2*_[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(S.A),G=B,F=n(26945),H=n(10542);function W(e){e.registerChartView(G),e.registerSeriesModel(u),e.registerLayout((0,F.A)("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,H.A)("line"))}},57407:function(e,t,n){n.d(t,{N:function(){return d},z:function(){return f}});var i=n(33590),r=n(6731),o=n(91600),a=n(13922),s=Math.min,l=Math.max;function u(e,t){return isNaN(e)||isNaN(t)}function c(e,t,n,i,r,o,a,c,h){for(var d,p,f,g,y,m,v=n,x=0;x<i;x++){var _=t[2*v],b=t[2*v+1];if(v>=r||v<0)break;if(u(_,b)){if(h){v+=o;continue}break}if(v===n)e[o>0?"moveTo":"lineTo"](_,b),f=_,g=b;else{var S=_-d,w=b-p;if(S*S+w*w<.5){v+=o;continue}if(a>0){for(var M=v+o,A=t[2*M],I=t[2*M+1];A===_&&I===b&&x<i;)x++,v+=o,A=t[2*(M+=o)],I=t[2*M+1],S=(_=t[2*v])-d,w=(b=t[2*v+1])-p;var C=x+1;if(h)for(;u(A,I)&&C<i;)C++,A=t[2*(M+=o)],I=t[2*M+1];var T=.5,D=0,L=0,k=void 0,O=void 0;if(C>=i||u(A,I))y=_,m=b;else{D=A-d,L=I-p;var P=_-d,N=A-_,R=b-p,E=I-b,V=void 0,z=void 0;if("x"===c){var B=D>0?1:-1;y=_-B*(V=Math.abs(P))*a,m=b,k=_+B*(z=Math.abs(N))*a,O=b}else if("y"===c){var G=L>0?1:-1;y=_,m=b-G*(V=Math.abs(R))*a,k=_,O=b+G*(z=Math.abs(E))*a}else V=Math.sqrt(P*P+R*R),y=_-D*a*(1-(T=(z=Math.sqrt(N*N+E*E))/(z+V))),m=b-L*a*(1-T),O=b+L*a*T,k=s(k=_+D*a*T,l(A,_)),O=s(O,l(I,b)),k=l(k,s(A,_)),m=b-(L=(O=l(O,s(I,b)))-b)*V/z,y=s(y=_-(D=k-_)*V/z,l(d,_)),m=s(m,l(p,b)),k=_+(D=_-(y=l(y,s(d,_))))*z/V,O=b+(L=b-(m=l(m,s(p,b))))*z/V}e.bezierCurveTo(f,g,y,m,_,b),f=k,g=O}else e.lineTo(_,b)}d=_,p=b,v+=o}return x}var h=function(){this.smooth=0,this.smoothConstraint=!0},d=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return(0,i.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0&&u(n[2*r-2],n[2*r-1]);r--);for(;i<r&&u(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=c(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,s=o.A.CMD,l="x"===t,u=[],c=0;c<r.length;){var h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,m=void 0;switch(r[c++]){case s.M:n=r[c++],i=r[c++];break;case s.L:if(h=r[c++],d=r[c++],(m=l?(e-n)/(h-n):(e-i)/(d-i))<=1&&m>=0){var v=l?(d-i)*m+i:(h-n)*m+n;return l?[e,v]:[v,e]}n=h,i=d;break;case s.C:h=r[c++],d=r[c++],p=r[c++],f=r[c++],g=r[c++],y=r[c++];var x=l?(0,a._E)(n,h,p,g,e,u):(0,a._E)(i,d,f,y,e,u);if(x>0)for(var _=0;_<x;_++){var b=u[_];if(b<=1&&b>=0)return v=l?(0,a.Yb)(i,d,f,y,b):(0,a.Yb)(n,h,p,g,b),l?[e,v]:[v,e]}n=g,i=y}}},t}(r.Ay),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(h),f=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return(0,i.C6)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&u(n[2*o-2],n[2*o-1]);o--);for(;r<o&&u(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=c(e,n,r,o,o,1,t.smooth,a,t.connectNulls);c(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(r.Ay)},81449:function(e,t,n){var i=n(44397),r=n(27989),o=n(3966),a=n(5995),s=n(67329),l=n(40537),u=n(76293),c=n(99076),h=(0,n(23891).$r)(),d=i.clone,p=i.bind,f=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,o){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,e,t,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,t);if(l){var p=i.curry(g,t,d);this.updatePointerEl(l,c,p),this.updateLabelEl(l,c,p,t)}else l=this._group=new r.A,this.createPointerEl(l,c,e,t),this.createLabelEl(l,c,e,t),n.getZr().add(l);x(l,t,!0),this._renderHandle(a)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=l.Yc(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var a=h(e).pointerEl=new o[r.type](d(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=h(e).labelEl=new a.Ay(d(t.label));e.add(r),m(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=h(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=h(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),m(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,s=n.getModel("handle"),l=n.get("status");if(!s.get("show")||!l||"hide"===l)return a&&r.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=o.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){u.ds(e.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),r.add(a)),x(a,n,!1),a.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=s.get("size");i.isArray(h)||(h=[h,h]),a.scaleX=h[0]/2,a.scaleY=h[1]/2,c.N(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){g(this._axisPointerModel,!t&&this._moveAnimation,this._handle,v(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(v(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(v(i)),h(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),c.IU(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function g(e,t,n,i){y(h(n).lastProp,i)||(h(n).lastProp=i,t?s.oi(n,i,e):(n.stopAnimation(),n.attr(i)))}function y(e,t){if(i.isObject(e)&&i.isObject(t)){var n=!0;return i.each(t,(function(t,i){n=n&&y(e[i],t)})),!!n}return e===t}function m(e,t){e[t.get(["label","show"])?"show":"hide"]()}function v(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function x(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}t.A=f},82114:function(e,t,n){n.d(t,{A:function(){return o}});var i=n(44397),r=n(23891);function o(e,t){var n,o=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.le(s,e);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)if(e.isStacked){var h=c.getBaseAxis(),d=c.getOtherAxis(h).dim,p=h.dim,f="x"===d||"radius"===d?1:0,g=s.mapDimension(p),y=[];y[f]=s.get(g,l),y[1-f]=s.get(s.getCalculationInfo("stackResultDimension"),l),o=c.dataToPoint(y)||[]}else o=c.dataToPoint(s.getValues(i.map(c.dimensions,(function(e){return s.mapDimension(e)})),l))||[];else if(u){var m=u.getBoundingRect().clone();m.applyTransform(u.transform),o=[m.x+m.width/2,m.y+m.height/2]}return{point:o,el:u}}},83669:function(e,t,n){n.d(t,{h:function(){return c},k:function(){return s}}),n(44114);var i=n(44397),r=n(45378),o=(0,n(23891).$r)(),a=i.each;function s(e,t,n){if(!r.A.node){var s=t.getZr();o(s).records||(o(s).records={}),function(e,t){function n(n,i){e.on(n,(function(n){var r=function(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);a(o(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(r.pendings,t)}))}o(e).initialized||(o(e).initialized=!0,n("click",i.curry(u,"click")),n("mousemove",i.curry(u,"mousemove")),n("globalout",l))}(s,t),(o(s).records[e]||(o(s).records[e]={})).handler=n}}function l(e,t,n){e.handler("leave",null,n)}function u(e,t,n,i){t.handler(e,n,i)}function c(e,t){if(!r.A.node){var n=t.getZr();(o(n).records||{})[e]&&(o(n).records[e]=null)}}},25302:function(e,t,n){n.d(t,{a:function(){return D}});var i=n(81151),r=n(33590),o=n(81449),a=n(91631),s=n(80293),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,l=o.grid,h=i.get("type"),d=u(l,o).getOtherAxis(o).getGlobalExtent(),p=o.toGlobalCoord(o.dataToCoord(t,!0));if(h&&"none"!==h){var f=a.bY(i),g=c[h](o,p,d);g.style=f,e.graphicKey=g.type,e.pointer=g}var y=s.Zp(l.model,n);a.DA(t,e,y,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=s.Zp(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=a.Tc(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=u(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var h=(s[1]+s[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(o.A);function u(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var c={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:a.MU([t,n[0]],[t,n[1]],h(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:a.cU([t-i/2,n[0]],[i,r],h(e))}}};function h(e){return"x"===e.dim?0:1}var d=l,p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),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}(n(75640).A),f=p,g=n(83669),y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";g.k("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){g.h("axisPointer",t)},t.prototype.dispose=function(e,t){g.h("axisPointer",t)},t.type="axisPointer",t}(n(43484).A),m=y,v=n(44397),x=n(40537),_=(n(44114),n(23891)),b=n(82114),S=(0,_.$r)();function w(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||(0,v.bind)(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){T(r)&&(r=(0,b.A)({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=T(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||T(r),d={},p={},f={list:[],map:{}},g={showPointer:(0,v.curry)(A,p),showTooltip:(0,v.curry)(I,f)};(0,v.each)(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);(0,v.each)(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(u,e);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&M(e,a,g,!1,d)}}))}));var y={};return(0,v.each)(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&(0,v.each)(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,C(t),C(e)))),y[e.key]=o}}))})),(0,v.each)(y,(function(e,t){M(c[t],e,g,!0,d)})),function(e,t,n){var i=n.axesInfo=[];(0,v.each)(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(e,t,n,i){if(!T(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}(f,r,e,a),function(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=S(i)[r]||{},a=S(i)[r]={};(0,v.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&(0,v.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];(0,v.each)(o,(function(e,t){!a[t]&&l.push(e)})),(0,v.each)(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function M(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return(0,v.each)(t.seriesModels,(function(t,l){var u,c,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),(0,v.each)(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&(0,v.extend)(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function A(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function I(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=x.og(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function C(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function T(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function D(e){i.A.registerAxisPointerClass("CartesianAxisPointer",d),e.registerComponentModel(f),e.registerComponentView(m),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!(0,v.isArray)(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=(0,x.Fo)(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},w)}},40537:function(e,t,n){n.d(t,{Fo:function(){return o},Yc:function(){return l},h_:function(){return s},mg:function(){return u},og:function(){return h}}),n(44114);var i=n(99713),r=n(44397);function o(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var o=t.getComponent("tooltip"),s=t.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];(0,r.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var d=h(n.model),p=e.coordSysAxesInfo[d]={};e.coordSysMap[d]=n;var f=n.model.getModel("tooltip",o);if((0,r.each)(n.getAxes(),(0,r.curry)(v,!1,null)),n.getTooltipAxes&&o&&f.get("show")){var g="axis"===f.get("trigger"),y="cross"===f.get(["axisPointer","type"]),m=n.getTooltipAxes(f.get(["axisPointer","axis"]));(g||y)&&(0,r.each)(m.baseAxes,(0,r.curry)(v,!y||"cross",g)),y&&(0,r.each)(m.otherAxes,(0,r.curry)(v,"cross",!1))}}function v(o,d,g){var y=g.model.getModel("axisPointer",s),m=y.get("show");if(m&&("auto"!==m||o||c(y))){null==d&&(d=y.get("triggerTooltip")),y=o?function(e,t,n,o,a,s){var l=t.getModel("axisPointer"),u={};(0,r.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=(0,r.clone)(l.get(e))})),u.snap="category"!==e.type&&!!s,"cross"===l.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===a){var h=l.get(["label","show"]);if(c.show=null==h||h,!s){var d=u.lineStyle=l.get("crossStyle");d&&(0,r.defaults)(c,d.textStyle)}}return e.model.getModel("axisPointer",new i.A(u,n,o))}(g,f,s,t,o,d):y;var v=y.get("snap"),x=y.get("triggerEmphasis"),_=h(g.model),b=d||v||"category"===g.type,S=e.axesInfo[_]={key:_,axis:g,coordSys:n,axisPointerModel:y,triggerTooltip:d,triggerEmphasis:x,involveSeries:b,snap:v,useHandle:c(y),seriesModels:[],linkGroup:null};p[_]=S,e.seriesInvolved=e.seriesInvolved||b;var w=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(a(o[i+"AxisId"],n.id)||a(o[i+"AxisIndex"],n.componentIndex)||a(o[i+"AxisName"],n.name))return r}}(l,g);if(null!=w){var M=u[w]||(u[w]={axesInfo:{}});M.axesInfo[_]=S,M.mapper=l[w].mapper,S.linkGroup=M}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&(0,r.each)(e.coordSysAxesInfo[h(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function a(e,t){return"all"===e||(0,r.isArray)(e)&&(0,r.indexOf)(e,t)>=0||e===t}function s(e){var t=l(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=c(n);null==o&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function l(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[h(e)]}function u(e){var t=l(e);return t&&t.axisPointerModel}function c(e){return!!e.get(["handle","show"])}function h(e){return e.type+"||"+e.id}},91631:function(e,t,n){n.d(t,{DA:function(){return g},MU:function(){return y},T8:function(){return d},Tc:function(){return f},_F:function(){return p},bY:function(){return h},cU:function(){return m},u7:function(){return v}}),n(44114);var i=n(44397),r=n(3966),o=n(1323),a=n(81111),s=n(3944),l=n(2936),u=n(32855),c=n(53269);function h(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function d(e,t,n,i,r){var s=p(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.QX(l.get("padding")||0),h=l.getFont(),d=o.NO(s,h),f=r.position,g=d.width+u[1]+u[3],y=d.height+u[0]+u[2],m=r.align;"right"===m&&(f[0]-=g),"center"===m&&(f[0]-=g/2);var v=r.verticalAlign;"bottom"===v&&(f[1]-=y),"middle"===v&&(f[1]-=y/2),function(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(f,g,y,i);var x=l.get("backgroundColor");x&&"auto"!==x||(x=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:(0,c.VB)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:x}),z2:10}}function p(e,t,n,r,o){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:o.precision}),s=o.formatter;if(s){var u={value:l.Dt(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};i.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&u.seriesData.push(r)})),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(u))}return a}function f(e,t,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(e,t,n,i,r,o){var a=u.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),d(t,i,r,o,{position:f(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function y(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function m(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function v(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}},32855:function(e,t,n){n(44114);var i=n(44397),r=n(27989),o=n(75832),a=n(3966),s=n(5995),l=n(98565),u=n(53269),c=n(99713),h=n(81353),d=n(51756),p=n(3944),f=n(79006),g=n(2936),y=n(7844),m=Math.PI,v=function(){function e(e,t){this.group=new r.A,this.opt=t,this.axisModel=e,(0,i.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new r.A({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!x[e]},e.prototype.add=function(e){x[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=(0,h._7)(t-e);return(0,h.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,h.dh)(o-m)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<m?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),x={axisLine:function(e,t,n,r){var s=t.get(["axisLine","show"]);if("auto"===s&&e.handleAutoShown&&(s=e.handleAutoShown("axisLine")),s){var l=t.axis.getExtent(),u=r.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&((0,f.applyTransform)(c,c,u),(0,f.applyTransform)(h,h,u));var g=(0,i.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new o.A({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(y.shape,y.style.lineWidth),y.anid="line",n.add(y);var m=t.get(["axisLine","symbol"]);if(null!=m){var v=t.get(["axisLine","symbolSize"]);(0,i.isString)(m)&&(m=[m,m]),((0,i.isString)(v)||(0,i.isNumber)(v))&&(v=[v,v]);var x=(0,d.hV)(t.get(["axisLine","symbolOffset"])||0,v),_=v[0],b=v[1];(0,i.each)([{rotate:e.rotation+Math.PI/2,offset:x[0],r:0},{rotate:e.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(t,i){if("none"!==m[i]&&null!=m[i]){var r=(0,d.v5)(m[i],-_/2,-b/2,_,b,g.stroke,!0),o=t.r+t.offset,a=p?h:c;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,r){var o=function(e,t,n,r){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");if("auto"===s&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick")),s&&!o.scale.isBlank()){for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),c=w(o.getTicksCoords(),t.transform,u,(0,i.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}}(n,r,t,e),a=function(e,t,n,r){var o=n.axis;if((0,i.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]))&&!o.scale.isBlank()){var a=n.getModel("axisLabel"),h=a.get("margin"),d=o.getViewLabels(),p=((0,i.retrieve)(r.labelRotate,a.get("rotate"))||0)*m/180,f=v.innerTextLayout(r.rotation,p,r.labelDirection),g=n.getCategories&&n.getCategories(!0),y=[],x=v.isLabelSilent(n),_=n.get("triggerEvent");return(0,i.each)(d,(function(p,m){var b="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,S=p.formattedLabel,w=p.rawLabel,M=a;if(g&&g[b]){var A=g[b];(0,i.isObject)(A)&&A.textStyle&&(M=new c.A(A.textStyle,a,n.ecModel))}var I=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=o.dataToCoord(b),T=M.getShallow("align",!0)||f.textAlign,D=(0,i.retrieve2)(M.getShallow("alignMinLabel",!0),T),L=(0,i.retrieve2)(M.getShallow("alignMaxLabel",!0),T),k=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||f.textVerticalAlign,O=(0,i.retrieve2)(M.getShallow("verticalAlignMinLabel",!0),k),P=(0,i.retrieve2)(M.getShallow("verticalAlignMaxLabel",!0),k),N=new s.Ay({x:C,y:r.labelOffset+r.labelDirection*h,rotation:f.rotation,silent:x,z2:10+(p.level||0),style:(0,u.VB)(M,{text:S,align:0===m?D:m===d.length-1?L:T,verticalAlign:0===m?O:m===d.length-1?P:k,fill:(0,i.isFunction)(I)?I("category"===o.type?w:"value"===o.type?b+"":b,m):I})});if(N.anid="label_"+b,_){var R=v.makeAxisEventDataBase(n);R.targetType="axisLabel",R.value=w,R.tickIndex=m,"category"===o.type&&(R.dataIndex=b),(0,l.z)(N).eventData=R}t.add(N),N.updateTransform(),y.push(N),e.add(N),N.decomposeTransform()})),y}}(n,r,t,e);if(function(e,t,n){if(!(0,g.PJ)(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(_(o),_(u)):b(o,a)&&(i?(_(a),_(c)):(_(o),_(u))),!1===r?(_(s),_(h)):b(l,s)&&(r?(_(l),_(d)):(_(s),_(h)))}}(t,a,o),function(e,t,n,r){var o=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=(0,i.defaults)(l.getLineStyle(),(0,i.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=w(s[h],t.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var h=(0,y.os)((0,i.map)(a,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));(0,y.If)(h)}},axisName:function(e,t,n,r){var o=(0,i.retrieve)(e.axisName,t.get("name"));if(o){var c,d,p=t.get("nameLocation"),f=e.nameDirection,g=t.getModel("nameTextStyle"),y=t.get("nameGap")||0,x=t.axis.getExtent(),_=x[0]>x[1]?-1:1,b=["start"===p?x[0]-_*y:"end"===p?x[1]+_*y:(x[0]+x[1])/2,S(p)?e.labelOffset+f*y:0],w=t.get("nameRotate");null!=w&&(w=w*m/180),S(p)?c=v.innerTextLayout(e.rotation,null!=w?w:e.rotation,f):(c=function(e,t,n,i){var r,o,a=(0,h._7)(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return(0,h.dh)(a-m/2)?(o=l?"bottom":"top",r="center"):(0,h.dh)(a-1.5*m)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*m&&a>m/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(e.rotation,p,w||0,x),null!=(d=e.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var M=g.getFont(),A=t.get("nameTruncate",!0)||{},I=A.ellipsis,C=(0,i.retrieve)(e.nameTruncateMaxWidth,A.maxWidth,d),T=new s.Ay({x:b[0],y:b[1],rotation:c.rotation,silent:v.isLabelSilent(t),style:(0,u.VB)(g,{text:o,font:M,overflow:"truncate",width:C,ellipsis:I,fill:g.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:T,componentModel:t,itemName:o}),T.__fullText=o,T.anid="name",t.get("triggerEvent")){var D=v.makeAxisEventDataBase(t);D.targetType="axisName",D.name=o,(0,l.z)(T).eventData=D}r.add(T),T.updateTransform(),n.add(T),T.decomposeTransform()}}};function _(e){e&&(e.ignore=!0)}function b(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=p.identity([]);return p.rotate(r,r,-e.rotation),n.applyTransform(p.mul([],r,e.getLocalTransform())),i.applyTransform(p.mul([],r,t.getLocalTransform())),n.intersect(i)}}function S(e){return"middle"===e||"center"===e}function w(e,t,n,i,r){for(var s=[],l=[],u=[],c=0;c<e.length;c++){var h=e[c].coord;l[0]=h,l[1]=0,u[0]=h,u[1]=n,t&&((0,f.applyTransform)(l,l,t),(0,f.applyTransform)(u,u,t));var d=new o.A({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:i,z2:2,autoBatch:!0,silent:!0});a.subPixelOptimizeLine(d.shape,d.style.lineWidth),d.anid=r+"_"+e[c].tickValue,s.push(d)}return s}t.A=v},81151:function(e,t,n){var i=n(33590),r=n(40537),o=n(43484),a={},s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(t,n,i,o){this.axisPointerClass&&r.h_(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=r.mg(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){a[e]=t},t.getAxisPointerClass=function(e){return e&&a[e]},t.type="axis",t}(o.A);t.A=s},71220:function(e,t,n){n.d(t,{V:function(){return s},Y:function(){return a}});var i=n(44397),r=n(65859),o=(0,n(23891).$r)();function a(e,t,n,a){var s=n.axis;if(!s.scale.isBlank()){var l=n.getModel("splitArea"),u=l.getModel("areaStyle"),c=u.get("color"),h=a.coordinateSystem.getRect(),d=s.getTicksCoords({tickModel:l,clamp:!0});if(d.length){var p=c.length,f=o(e).splitAreaColors,g=i.createHashMap(),y=0;if(f)for(var m=0;m<d.length;m++){var v=f.get(d[m].tickValue);if(null!=v){y=(v+(p-1)*m)%p;break}}var x=s.toGlobalCoord(d[0].coord),_=u.getAreaStyle();for(c=i.isArray(c)?c:[c],m=1;m<d.length;m++){var b=s.toGlobalCoord(d[m].coord),S=void 0,w=void 0,M=void 0,A=void 0;s.isHorizontal()?(S=x,w=h.y,M=b-S,A=h.height,x=S+M):(S=h.x,w=x,M=h.width,x=w+(A=b-w));var I=d[m-1].tickValue;null!=I&&g.set(I,y),t.add(new r.A({anid:null!=I?"area_"+I:null,shape:{x:S,y:w,width:M,height:A},style:i.defaults({fill:c[y]},_),autoBatch:!0,silent:!0})),y=(y+1)%p}o(e).splitAreaColors=g}}}function s(e){o(e).splitAreaColors=null}},49117:function(e,t,n){n(44114);var i=n(33590),r=n(44397),o=n(75640),a=n(77925),s=n(23891),l=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){var i=c(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=c(e);(0,r.merge)(this.option,e,!0),(0,r.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,r.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return(0,r.each)(a.$5,(function(n){var i=this.getReferringComponents((0,a.dX)(n),s.UW);if(i.specified){t=!0;var o=new l;(0,r.each)(i.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var o="vertical"===t?"y":"x";u(n.findComponents({mainType:o+"Axis"}),o)}function u(t,n){var o=t[0];if(o){var a=new l;if(a.add(o.componentIndex),e.set(n,a),i=!1,"x"===n||"y"===n){var u=o.getReferringComponents("grid",s.US).models[0];u&&(0,r.each)(t,(function(e){o.componentIndex!==e.componentIndex&&u===e.getReferringComponents("grid",s.US).models[0]&&a.add(e.componentIndex)}))}}}i&&u(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single"),i&&(0,r.each)(a.$5,(function(t){if(i){var r=n.findComponents({mainType:(0,a.dX)(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new l;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");(0,r.each)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent((0,a.dX)(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){(0,r.each)(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent((0,a.dX)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,r.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(o.A);function c(e){var t={};return(0,r.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}t.A=u},68415:function(e,t,n){var i=n(33590),r=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(n(43484).A);t.A=r},77925:function(e,t,n){n.d(t,{$5:function(){return r},CN:function(){return l},_u:function(){return a},dX:function(){return s},es:function(){return u}}),n(44114);var i=n(44397),r=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(e){var t=e.get("coordinateSystem");return(0,i.indexOf)(o,t)>=0}function s(e){return e+"Axis"}function l(e,t){var n,r=(0,i.createHashMap)(),o=[],a=(0,i.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!a.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(l(e),n=!0)}function l(e){a.set(e.uid,!0),o.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return o}function u(e){var t=e.ecModel,n={infoList:[],infoMap:(0,i.createHashMap)()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(s(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,l=n.infoMap.get(a);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(r)}}})),n}},13791:function(e,t,n){n.d(t,{A:function(){return g}}),n(44114);var i=n(44397),r=n(77925),o=n(81353),a=n(87432),s=n(2936),l=n(98299),u=n(23891),c=i.each,h=o.Y6,d=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if((0,r._u)(t)){var n=(0,r.dX)(this._dimName),i=t.getReferringComponents(n,u.US).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return i.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];c(["start","end"],(function(a,c){var h=e[a],d=e[a+"Value"];"percent"===r[c]?(null==h&&(h=s[c]),d=i.parse(o.Cb(h,s,n))):(t=!0,d=null==d?n[c]:i.parse(d),h=o.Cb(d,n,s)),u[c]=null==d||isNaN(d)?n[c]:d,l[c]=null==h||isNaN(h)?s[c]:h})),h(u),h(l);var d=this._minMaxSpan;function p(e,t,n,r,s){var l=s?"Span":"ValueSpan";(0,a.A)(0,e,n,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)t[u]=o.Cb(e[u],n,r,!0),s&&(t[u]=i.parse(t[u]))}return t?p(u,l,n,s,!1):p(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];c(n,(function(e){(0,s.PN)(i,e.getData(),t)}));var r=e.getAxisModel(),o=(0,l.Tc)(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;"none"!==o&&c(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var s=t.getStore(),l=i.map(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,o=0;o<r.length;o++){var u=s.get(l[o],e),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(t=!0),d&&(n=!0)}return i&&t&&n}))}else c(r,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return function(e){return e>=a[0]&&e<=a[1]}(e)?e:NaN})));else{var i={};i[n]=a,t.selectRange(i)}}));c(r,(function(e){t.setApproximateExtent(a,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;c(["min","max"],(function(i){var r=t.get(i+"Span"),a=t.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=o.Cb(n[0]+a,n,[0,100],!0):null!=r&&(a=o.Cb(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=o.hb(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}(),p={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var a=e.getComponent((0,r.dX)(i),o);t(i,o,a,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new d(t,i,o,e),n.push(r.__dzAxisProxy))}));var o=(0,i.createHashMap)();return(0,i.each)(n,(function(e){(0,i.each)(e.getTargetSeriesModels(),(function(e){o.set(e.uid,e)}))})),o},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},f=!1;function g(e){f||(f=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,p),function(e){e.registerAction("dataZoom",(function(e,t){var n=(0,r.CN)(t,e);(0,i.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},17917:function(e,t,n){n.d(t,{a:function(){return c}});var i=n(33590),r=n(75640),o=n(43484),a=n(7019),s=n(49595),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,i.C6)(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new s.R(this),(0,s.A)(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),(0,s.A)(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:a.i_},t}(r.A),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,i.C6)(t,e),t.type="dataset",t}(o.A);function c(e){e.registerComponentModel(l),e.registerComponentView(u)}},38885:function(e,t,n){n.d(t,{a:function(){return a}});var i=n(14892),r=n(25302),o=n(22212);function a(e){(0,o.Y)(i.a),(0,o.Y)(r.a)}},14892:function(e,t,n){n.d(t,{a:function(){return Z}});var i=n(33590),r=n(43484),o=n(75640),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),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}(o.A),s=a,l=n(65859),u=n(44397),c=n(59831),h=n(23891),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",h.US).models[0]},t.type="cartesian2dAxis",t}(o.A);u.mixin(d,c.L);var p=n(15079),f=(n(44114),n(93398)),g=n(2936),y=n(39295),m=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return u.map(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),u.filter(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),v=n(3944),x=n(79006),_=["x","y"];function b(e){return"interval"===e.type||"time"===e.type}var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=_,t}return(0,i.C6)(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(b(e)&&b(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,v.invert)([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new y.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,x.applyTransform)(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return(0,x.applyTransform)(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-r+e;return new y.A(i,r,o,a)},t}(m),w=S,M=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,i.C6)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(n(33055).A),A=n(80293),I=n(43578),C=n(18303),T=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=(0,u.keys)(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;(0,I.rf)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,g.af)(l,s),(0,I.rf)(l)&&(t=a))}r.length&&(t||(t=r.pop(),(0,g.af)(t.scale,t.model)),(0,u.each)(r,(function(e){(0,C.m)(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};(0,u.each)(n.x,(function(e){L(n,"y",e,r)})),(0,u.each)(n.y,(function(e){L(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=(0,f.dV)(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,u.each)(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?o.x:o.y)}))}s(),r&&((0,u.each)(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=(0,g.Og)(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),(0,u.each)(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}(0,u.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",h.US).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",h.US).models[0],a=e.gridModel,s=this._coordsList;return i?(t=i.coordinateSystem,(0,u.indexOf)(s,t)<0&&(t=null)):r&&o?t=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(D(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new M(t,(0,g.f$)(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,(0,u.each)(a.x,(function(t,n){(0,u.each)(a.y,(function(r,o){var a="x"+n+"y"+o,s=new w(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){(0,u.each)((0,g.wq)(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}(0,u.each)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if((0,A.gO)(e)){var i=(0,A.LR)(e),r=i.xAxisModel,o=i.yAxisModel;if(!D(r,t)||!D(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return(0,u.each)(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);(0,u.indexOf)(t,r)<0&&t.push(r),(0,u.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if((0,A.gO)(e)){var t=(0,A.LR)(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=_,e}();function D(e,t){return e.getCoordSysModel()===t}function L(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)k(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&k(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function k(e){return e&&"category"!==e.type&&"time"!==e.type&&(0,g.JJ)(e)}var O=T,P=n(27989),N=n(3966),R=n(75832),E=n(32855),V=n(81151),z=n(71220),B=["axisLine","axisTickLabel","axisName"],G=["splitArea","splitLine","minorSplitLine"],F=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,i.C6)(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new P.A,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=A.Zp(a,t),l=new E.A(t,u.extend({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,I.rf)(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));u.each(B,l.add,l),this._axisGroup.add(l.getGroup()),u.each(G,(function(e){t.get([e,"show"])&&H[e](this,this._axisGroup,t,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||N.groupTransition(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){(0,z.V)(this)},t.type="cartesianAxis",t}(V.A),H={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=u.isArray(s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=0,d=r.getTicksCoords({tickModel:o}),p=[],f=[],g=a.getLineStyle(),y=0;y<d.length;y++){var m=r.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=l.y,f[0]=m,f[1]=l.y+l.height):(p[0]=l.x,p[1]=m,f[0]=l.x+l.width,f[1]=m);var v=h++%s.length,x=d[y].tickValue,_=new R.A({anid:null!=x?"line_"+d[y].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},style:u.defaults({stroke:s[v]},g),silent:!0});N.subPixelOptimizeLine(_.shape,g.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new R.A({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});N.subPixelOptimizeLine(g.shape,h.lineWidth),t.add(g)}},splitArea:function(e,t,n,i){(0,z.Y)(e,t,n,i)}},W=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.type="xAxis",t}(F),Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=W.type,t}return(0,i.C6)(t,e),t.type="yAxis",t}(F),U=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return(0,i.C6)(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new l.A({shape:e.coordinateSystem.getRect(),style:(0,u.defaults)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(r.A),X={offset:0};function Z(e){e.registerComponentView(U),e.registerComponentModel(s),e.registerCoordinateSystem("cartesian2d",O),(0,p.A)(e,"x",d,X),(0,p.A)(e,"y",d,X),e.registerComponentView(W),e.registerComponentView(Y),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}},67906:function(e,t,n){n(44114);var i=n(33590),r=n(44397),o=n(91654),a=n(27989),s=n(65859),l=n(3966),u=n(47034),c=n(90118),h=n(23083),d=n(30756),p=!0,f=Math.min,g=Math.max,y=Math.pow,m=1e4,v=6,x=6,_="globalPan",b={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},S={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},w={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},M=0,A=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new a.A,n._uid="brushController_"+M++,(0,r.each)(J,(function(e,t){this._handlers[t]=(0,r.bind)(e,this)}),n),n}return(0,i.C6)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||h.s(t,_,this._uid),(0,r.each)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=(0,r.merge)((0,r.clone)(w),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;h._r(e,_,this._uid),(0,r.each)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,r.each)(e,(function(e){t[e.panelId]=(0,r.clone)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=(0,r.map)(e,(function(e){return(0,r.merge)((0,r.clone)(w),e,!0)}));var t=this._covers,n=this._covers=[],i=this,o=this._creatingCover;return new d.A(t,e,(function(e,t){return a(e.__brushOption,t)}),a).add(s).update(s).remove((function(e){t[e]!==o&&i.group.remove(t[e])})).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function s(r,a){var s=e[r];if(null!=a&&t[a]===o)n[r]=t[a];else{var l=n[r]=null!=a?(t[a].__brushOption=s,t[a]):C(i,I(i,s));L(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(o.A);function I(e,t){var n=ee[t.brushType].createCover(e,t);return n.__brushOption=t,D(n,t),e.group.add(n),n}function C(e,t){var n=k(t);return n.endCreating&&(n.endCreating(e,t),D(t,t.__brushOption)),t}function T(e,t){var n=t.__brushOption;k(t).updateCoverShape(e,t,n.range,n)}function D(e,t){var n=t.z;null==n&&(n=m),e.traverse((function(e){e.z=n,e.z2=n}))}function L(e,t){k(t).updateCommon(e,t),T(e,t)}function k(e){return ee[e.__brushOption.brushType]}function O(e,t,n){var i,o=e._panels;if(!o)return p;var a=e._transform;return(0,r.each)(o,(function(e){e.isTargetByCursor(t,n,a)&&(i=e)})),i}function P(e,t){var n=e._panels;if(!n)return p;var i=t.__brushOption.panelId;return null!=i?n[i]:p}function N(e){var t=e._covers,n=t.length;return(0,r.each)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function R(e,t){var n=(0,r.map)(e._covers,(function(e){var t=e.__brushOption,n=(0,r.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function E(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V(e,t,n,i){var o=new a.A;return o.add(new s.A({name:"main",style:F(n),silent:!0,draggable:!0,cursor:"move",drift:(0,r.curry)(Y,e,t,o,["n","s","w","e"]),ondragend:(0,r.curry)(R,t,{isEnd:!0})})),(0,r.each)(i,(function(n){o.add(new s.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,r.curry)(Y,e,t,o,n),ondragend:(0,r.curry)(R,t,{isEnd:!0})}))})),o}function z(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=g(r,x),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,y=h-s,m=f+r,v=y+r;G(e,t,"main",a,s,f,y),i.transformable&&(G(e,t,"w",l,u,o,v),G(e,t,"e",d,u,o,v),G(e,t,"n",l,u,m,o),G(e,t,"s",l,p,m,o),G(e,t,"nw",l,u,o,o),G(e,t,"ne",d,u,o,o),G(e,t,"sw",l,p,o,o),G(e,t,"se",d,p,o,o))}function B(e,t){var n=t.__brushOption,i=n.transformable,o=t.childAt(0);o.useStyle(F(n)),o.attr({silent:!i,cursor:i?"move":"default"}),(0,r.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?W(e,n[0]):function(e,t){var n=[W(e,t[0]),W(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?S[o]+"-resize":null})}))}function G(e,t,n,i,r,o,a){var s,l,u,c=t.childOfName(n);c&&c.setShape((s=Z(e,t,[[i,r],[i+o,r+a]]),{x:l=f(s[0][0],s[1][0]),y:u=f(s[0][1],s[1][1]),width:g(s[0][0],s[1][0])-l,height:g(s[0][1],s[1][1])-u}))}function F(e){return(0,r.defaults)({strokeNoScale:!0},e.brushStyle)}function H(e,t,n,i){var r=[f(e,n),f(t,i)],o=[g(e,n),g(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function W(e,t){var n=l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return l.getTransform(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Y(e,t,n,i,o,a){var s=n.__brushOption,l=e.toRectRange(s.range),u=X(t,o,a);(0,r.each)(i,(function(e){var t=b[e];l[t[0]][t[1]]+=u[t[0]]})),s.range=e.fromRectRange(H(l[0][0],l[1][0],l[0][1],l[1][1])),L(t,n),R(t,{isEnd:!1})}function U(e,t,n,i){var o=t.__brushOption.range,a=X(e,n,i);(0,r.each)(o,(function(e){e[0]+=a[0],e[1]+=a[1]})),L(e,t),R(e,{isEnd:!1})}function X(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Z(e,t,n){var i=P(e,t);return i&&i!==p?i.clipPath(n,e._transform):(0,r.clone)(n)}function j(e){var t=e.event;t.preventDefault&&t.preventDefault()}function q(e,t,n){return e.childOfName("main").contain(t,n)}function $(e,t,n,i){var o,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1];return y(r*r+o*o,.5)>v}(e)||a){if(s&&!a){"single"===l.brushMode&&N(e);var u=(0,r.clone)(l);u.brushType=K(u.brushType,s),u.panelId=s===p?null:s.panelId,a=e._creatingCover=I(e,u),e._covers.push(a)}if(a){var c=ee[K(e._brushType,s)];a.__brushOption.range=c.getCreatingRange(Z(e,a,e._track)),i&&(C(e,a),c.updateCommon(e,a)),T(e,a),o={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&O(e,t,n)&&N(e)&&(o={isEnd:i,removeOnClick:!0});return o}function K(e,t){return"auto"===e?t.defaultBrushType:e}var J={mousedown:function(e){if(this._dragging)Q(this,e);else if(!e.target||!e.target.draggable){j(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=O(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=O(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===p||s.panelId===o.panelId)&&ee[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){j(e);var r=$(this,e,i,!1);r&&R(this,r)}},mouseup:function(e){Q(this,e)}};function Q(e,t){if(e._dragging){j(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=$(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&R(e,o)}}var ee={lineX:te(0),lineY:te(1),rect:{createCover:function(e,t){function n(e){return e}return V({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=E(e);return H(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){z(e,t,n,i)},updateCommon:B,contain:q},polygon:{createCover:function(e,t){var n=new a.A;return n.add(new u.A({name:"main",style:F(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new c.A({name:"main",draggable:!0,drift:(0,r.curry)(U,e,t),ondragend:(0,r.curry)(R,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Z(e,t,n)})},updateCommon:B,contain:q}};function te(e){return{createCover:function(t,n){return V({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=E(t);return[f(n[0][e],n[1][e]),g(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,r){var o,a=P(t,n);if(a!==p&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),z(t,n,l,r)},updateCommon:B,contain:q}}t.A=A},19484:function(e,t,n){n(44114);var i=n(44397),r=n(3966),o=n(5094),a=n(23891),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var o=c(t,e);(0,i.each)(h,(function(e,t){(!n||!n.include||(0,i.indexOf)(n.include,t)>=0)&&e(o,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=f[e.brushType](0,n,t);e.__rangeOffset={offset:y[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){(0,i.each)(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&(0,i.each)(r.coordSyses,(function(i){var r=f[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){(0,i.each)(e,(function(e){var n,i,r,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=f[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?y[e.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=v(n),o=v(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return(0,i.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:o.wd(i),isTargetByCursor:o.x$(i,e,n.coordSysModel),getLinearBrushOtherExtent:o.wx(i)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&(0,i.indexOf)(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=c(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<d.length;s++)if(d[s](i,o))return o}return!0},e}();function u(e){return e[0]>e[1]&&e.reverse(),e}function c(e,t){return(0,a._e)(e,t,{includeMainTypes:s})}var h={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,a=(0,i.createHashMap)(),s={},l={};(n||r||o)&&((0,i.each)(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),(0,i.each)(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),(0,i.each)(o,(function(e){a.set(e.id,e),s[e.id]=!0,l[e.id]=!0})),a.each((function(e){var o=e.coordinateSystem,a=[];(0,i.each)(o.getCartesians(),(function(e,t){((0,i.indexOf)(n,e.getAxis("x").model)>=0||(0,i.indexOf)(r,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:p.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){(0,i.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:p.geo})}))}},d=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],p={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(r.getTransform(e)),t}},f={lineX:(0,i.curry)(g,0),lineY:(0,i.curry)(g,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[u([r[0],o[0]]),u([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,i.map)(n,(function(n){var i=e?t.pointToData(n,r):t.dataToPoint(n,r);return o[0][0]=Math.min(o[0][0],i[0]),o[1][0]=Math.min(o[1][0],i[1]),o[0][1]=Math.max(o[0][1],i[0]),o[1][1]=Math.max(o[1][1],i[1]),i})),xyMinMax:o}}};function g(e,t,n,r){var o=n.getAxis(["x","y"][e]),a=u((0,i.map)([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(r[e]),!0):o.toGlobalCoord(o.dataToCoord(r[e]))}))),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var y={lineX:(0,i.curry)(m,0),lineY:(0,i.curry)(m,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,i.map)(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function m(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function v(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}t.A=l},5094:function(e,t,n){n.d(t,{wd:function(){return a},wx:function(){return s},x$:function(){return l}});var i=n(39295),r=n(5734),o=n(3966);function a(e){return e=u(e),function(t){return o.clipPointsByRect(t,e)}}function s(e,t){return e=u(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function l(e,t,n){var i=u(e);return function(e,o){return i.contain(o[0],o[1])&&!(0,r.I)(e,t,n)}}function u(e){return i.A.create(e)}},5734:function(e,t,n){n.d(t,{I:function(){return r}});var i={axisPointer:1,tooltip:1,brush:1};function r(e,t,n){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!i.hasOwnProperty(r.mainType)&&o&&o.model!==n}},23083:function(e,t,n){n.d(t,{Ck:function(){return l},_r:function(){return s},s:function(){return a}});var i=n(82563),r=n(44397),o="\0_ec_interaction_mutex";function a(e,t,n){u(e)[t]=n}function s(e,t,n){var i=u(e);i[t]===n&&(i[t]=null)}function l(e,t){return!!u(e)[t]}function u(e){return e[o]||(e[o]={})}i.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},r.noop)},45965:function(e,t,n){n.d(t,{P:function(){return s},Z:function(){return a}});var i=n(93398),r=n(81111),o=n(65859);function a(e,t,n){var r=t.getBoxLayoutParams(),o=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=(0,i.dV)(r,a,o);(0,i.aP)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,i.m$)(e,r,a,o)}function s(e,t){var n=r.QX(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),new o.A({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:i,silent:!0,z2:-1})}},87432:function(e,t,n){function i(e,t,n,i,a,s){e=e||0;var l=n[1]-n[0];if(null!=a&&(a=o(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===i){var u=Math.abs(t[1]-t[0]);u=o(u,[0,l]),a=s=o(u,[a,s]),i=0}t[0]=o(t[0],n),t[1]=o(t[1],n);var c=r(t,i);t[i]+=e;var h,d=a||0,p=n.slice();return c.sign<0?p[0]+=d:p[1]-=d,t[i]=o(t[i],p),h=r(t,i),null!=a&&(h.sign!==c.sign||h.span<a)&&(t[1-i]=t[i]+c.sign*a),h=r(t,i),null!=s&&h.span>s&&(t[1-i]=t[i]+h.sign*s),t}function r(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function o(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}n.d(t,{A:function(){return i}})},74016:function(e,t,n){n.d(t,{a:function(){return X}});var i=n(22212),r=(n(44114),n(33590)),o=n(44397),a=n(99713),s=n(23891),l=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,r.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),o.isArray(t)&&o.each(t,(function(e,i){o.isString(e)&&(e={type:e}),t[i]=o.merge(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&(0,s.O0)(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=o.createHashMap(),l=o.map(i,(function(e){return(o.isString(e)||o.isNumber(e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new a.A(e,this,this.ecModel))}),this);this._data=o.filter(l,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;o.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&o.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(n(75640).A),u=l,c=n(78987),h=n(27989),d=n(5995),p=n(65859),f=n(3966),g=n(47658),y=n(53269),m=n(45965),v=n(93398),x=n(43484),_=n(51756),b=n(78711),S=n(98565),w=o.curry,M=o.each,A=h.A,I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,r.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new A),this.group.add(this._selectorGroup=new A),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),a=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(r,e,t,n,s,a,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),d=v.dV(u,c,h),p=this.layoutInner(e,r,d,i,s,l),f=v.dV(o.defaults({width:p.width,height:p.height},u),c,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.P)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,a,s){var l=this.getContentGroup(),u=o.createHashMap(),h=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),M(t.getData(),(function(r,a){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new A;return p.newline=!0,void l.add(p)}var f=n.getSeriesByName(s)[0];if(!u.get(s))if(f){var g=f.getData(),y=g.getVisual("legendLineStyle")||{},m=g.getVisual("legendIcon"),v=g.getVisual("style"),x=this._createItem(f,s,a,r,t,e,y,v,m,h,i);x.on("click",w(C,s,null,i,d)).on("mouseover",w(D,f.name,null,i,d)).on("mouseout",w(L,f.name,null,i,d)),n.ssr&&x.eachChild((function(e){var t=(0,S.z)(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(s,!0)}else n.eachRawSeries((function(l){if(!u.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(!p.containName(s))return;var f=p.indexOfName(s),g=p.getItemVisual(f,"style"),y=p.getItemVisual(f,"legendIcon"),m=(0,c.parse)(g.fill);m&&0===m[3]&&(m[3]=.2,g=o.extend(o.extend({},g),{fill:(0,c.stringify)(m,"rgba")}));var v=this._createItem(l,s,a,r,t,e,{},g,y,h,i);v.on("click",w(C,null,s,i,d)).on("mouseover",w(D,null,s,i,d)).on("mouseout",w(L,null,s,i,d)),n.ssr&&v.eachChild((function(e){var t=(0,S.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(s,!0)}}),this)}),this),r&&this._createSelector(r,t,i,a,s)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();M(e,(function(e){var i=e.type,r=new d.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,y.qM)(r,{normal:a,emphasis:s},{defaultText:e.title}),(0,g.iJ)(r)}))},t.prototype._createItem=function(e,t,n,i,r,a,s,l,u,c,h){var m,v,x,S=e.visualDrawType,w=r.get("itemWidth"),I=r.get("itemHeight"),C=r.isSelected(t),T=i.get("symbolRotate"),D=i.get("symbolKeepAspect"),L=i.get("icon"),k=function(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),M(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,b.w)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=L||u||"roundRect",i,s,l,S,C,h),O=new A,P=i.getModel("textStyle");if(!o.isFunction(e.getLegendIcon)||L&&"inherit"!==L){var N="inherit"===L&&e.getData().getVisual("symbol")?"inherit"===T?e.getData().getVisual("symbolRotate"):T:0;O.add((m={itemWidth:w,itemHeight:I,icon:u,iconRotate:N,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:D},v=m.icon||"roundRect",(x=(0,_.v5)(v,0,0,m.itemWidth,m.itemHeight,m.itemStyle.fill,m.symbolKeepAspect)).setStyle(m.itemStyle),x.rotation=(m.iconRotate||0)*Math.PI/180,x.setOrigin([m.itemWidth/2,m.itemHeight/2]),v.indexOf("empty")>-1&&(x.style.stroke=x.style.fill,x.style.fill="#fff",x.style.lineWidth=2),x))}else O.add(e.getLegendIcon({itemWidth:w,itemHeight:I,icon:u,iconRotate:T,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:D}));var R="left"===a?w+5:-5,E=a,V=r.get("formatter"),z=t;o.isString(V)&&V?z=V.replace("{name}",null!=t?t:""):o.isFunction(V)&&(z=V(t));var B=C?P.getTextColor():i.get("inactiveColor");O.add(new d.Ay({style:(0,y.VB)(P,{text:z,x:R,y:I/2,fill:B,align:E,verticalAlign:"middle"},{inheritColor:B})}));var G=new p.A({shape:O.getBoundingRect(),style:{fill:"transparent"}}),F=i.getModel("tooltip");return F.get("show")&&f.setTooltipConfig({el:G,componentModel:r,itemName:t,itemTooltipOption:F.option}),O.add(G),O.eachChild((function(e){e.silent=!0})),G.silent=!c,this.getContentGroup().add(O),(0,g.iJ)(O),O.__legendDataIndex=n,O},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();v.aP(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){v.aP("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+h[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(x.A);function C(e,t,n,i){L(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),D(e,t,n,i)}function T(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function D(e,t,n,i){T(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function L(e,t,n,i){T(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var k=I;function O(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function P(e,t,n){var i,r={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var s=n.getData();(0,o.each)(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function N(e){e.registerComponentModel(u),e.registerComponentView(k),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,O),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",(0,o.curry)(P,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,o.curry)(P,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,o.curry)(P,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,o.curry)(P,"select")),e.registerAction("legendUnSelect","legendunselected",(0,o.curry)(P,"unSelect"))}(e)}var R=n(40909),E=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=(0,v.vs)(t);e.prototype.init.call(this,t,n,i),V(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),V(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,R.G_)(u.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(u);function V(e,t,n){var i=[1,1];i[e.getOrient().index]=0,(0,v.YA)(t,n,{type:"box",ignoreSize:!!i})}var z=E,B=n(67329),G=h.A,F=["width","height"],H=["x","y"],W=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,r.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new G),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new G)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,a,s,l){var u=this;e.prototype.renderInner.call(this,t,n,i,r,a,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=o.isArray(h)?h:[h,h];y("pagePrev",0);var g=n.getModel("pageTextStyle");function y(e,t){var i=e+"DataIndex",a=f.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:o.bind(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});a.name=e,c.add(a)}c.add(new d.Ay({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,a){var s=this.getSelectorGroup(),l=e.getOrient().index,u=F[l],c=H[l],h=F[1-l],d=H[1-l];r&&v.aP("horizontal",s,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),f=s.getBoundingRect(),g=[-f.x,-f.y],y=o.clone(n);r&&(y[u]=n[u]-f[u]-p);var m=this._layoutContentAndController(e,i,y,l,u,h,d,c);if(r){if("end"===a)g[l]+=m[u]+p;else{var x=f[u]+p;g[l]-=x,m[c]-=x}m[u]+=f[u]+p,g[1-l]+=m[d]+m[h]/2-f[h]/2,m[h]=Math.max(m[h],f[h]),m[d]=Math.min(m[d],f[d]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,r,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;v.aP(e.get("orient"),u,e.get("itemGap"),i?n.width:null,i?null:n.height),v.aP("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),f=h.getBoundingRect(),g=this._showController=d[r]>n[r],y=[-d.x,-d.y];t||(y[i]=u[l]);var m=[0,0],x=[-f.x,-f.y],_=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&("end"===e.get("pageButtonPosition",!0)?x[i]+=n[r]-f[r]:m[i]+=f[r]+_),x[1-i]+=d[a]/2-f[a]/2,u.setPosition(y),c.setPosition(m),h.setPosition(x);var b={x:0,y:0};if(b[r]=g?n[r]:d[r],b[a]=Math.max(d[a],f[a]),b[s]=Math.min(0,f[s]+x[1-i]),c.__rectSize=n[r],g){var S={x:0,y:0};S[r]=Math.max(n[r]-f[r]-_,0),S[a]=b[a],c.setClipPath(new p.A({shape:S})),c.__rectSize=S[r]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&B.oi(u,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):r({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=F[r],a=H[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,y=p,m=null;f<=c;++f)(!(m=v(l[f]))&&y.e>g.s+i||m&&!x(m,g.s))&&(g=y.i>g.i?y:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=m;for(f=s-1,g=p,y=p,m=null;f>=-1;--f)(m=v(l[f]))&&x(y,m.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(k),Y=W;function U(e){(0,i.Y)(N),e.registerComponentModel(z),e.registerComponentView(Y),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function X(e){(0,i.Y)(N),(0,i.Y)(U)}},40623:function(e,t,n){n.d(t,{a:function(){return g}});var i=n(33590),r=n(44397),o=n(5995),a=n(65859),s=n(98565),l=n(53269),u=n(93398),c=n(75640),h=n(43484),d=n(81111),p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,i.C6)(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(c.A),f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,c=e.getModel("textStyle"),h=e.getModel("subtextStyle"),p=e.get("textAlign"),f=r.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),g=new o.Ay({style:(0,l.VB)(c,{text:e.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),y=g.getBoundingRect(),m=e.get("subtext"),v=new o.Ay({style:(0,l.VB)(h,{text:m,fill:h.getTextColor(),y:y.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=e.get("link"),_=e.get("sublink"),b=e.get("triggerEvent",!0);g.silent=!x&&!b,v.silent=!_&&!b,x&&g.on("click",(function(){(0,d.JW)(x,"_"+e.get("target"))})),_&&v.on("click",(function(){(0,d.JW)(_,"_"+e.get("subtarget"))})),(0,s.z)(g).eventData=(0,s.z)(v).eventData=b?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(g),m&&i.add(v);var S=i.getBoundingRect(),w=e.getBoxLayoutParams();w.width=S.width,w.height=S.height;var M=(0,u.dV)(w,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));p||("middle"===(p=e.get("left")||e.get("right"))&&(p="center"),"right"===p?M.x+=M.width:"center"===p&&(M.x+=M.width/2)),f||("center"===(f=e.get("top")||e.get("bottom"))&&(f="middle"),"bottom"===f?M.y+=M.height:"middle"===f&&(M.y+=M.height/2),f=f||"top"),i.x=M.x,i.y=M.y,i.markRedraw();var A={align:p,verticalAlign:f};g.setStyle(A),v.setStyle(A),S=i.getBoundingRect();var I=M.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var T=new a.A({shape:{x:S.x-I[3],y:S.y-I[0],width:S.width+I[1]+I[3],height:S.height+I[0]+I[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(h.A);function g(e){e.registerComponentModel(p),e.registerComponentView(f)}},95584:function(e,t,n){n.d(t,{M_:function(){return o},Ms:function(){return i},x$:function(){return a}});var i=function(){},r={};function o(e,t){r[e]=t}function a(e){return r[e]}},60468:function(e,t,n){n.d(t,{a:function(){return ae}});var i=n(22212),r=n(33590),o=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.type="dataZoom.select",t}(n(49117).A),a=o,s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.type="dataZoom.select",t}(n(68415).A),l=s,u=n(13791);function c(e){e.registerComponentModel(a),e.registerComponentView(l),(0,u.A)(e)}var h=n(44397),d=n(95584),p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.C6)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;h.each(this.option.feature,(function(e,n){var i=d.x$(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),h.merge(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(n(75640).A),f=p,g=(n(44114),n(1323)),y=n(3966),m=n(47658),v=n(99713),x=n(30756),_=n(45965),b=n(43484),S=n(40909),w=n(5995),M=n(53269),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];h.each(s,(function(e,t){u.push(t)})),new x.A(this._featureNames||[],u).add(c).update(c).remove(h.curry(c,null)).execute(),this._featureNames=u,_.Z(r,e,n),r.add(_.P(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!h.isFunction(l)&&t){var u=l.style||(l.style={}),c=g.NO(t,w.Ay.makeFont(u)),d=e.x+r.x,p=!1;e.y+r.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(c,p){var f,g=u[c],x=u[p],_=s[g],b=new v.A(_,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===g&&(_.title=i.newTitle),g&&!x){if(function(e){return 0===e.indexOf("my")}(g))f={onclick:b.option.onclick,featureName:g};else{var A=(0,d.x$)(g);if(!A)return;f=new A}l[g]=f}else if(!(f=l[x]))return;f.uid=(0,S.$Q)("toolbox-feature"),f.model=b,f.ecModel=t,f.api=n;var I=f instanceof d.Ms;g||!x?!b.get("show")||I&&f.unusable?I&&f.remove&&f.remove(t,n):(function(i,s,l){var u,c,p=i.getModel("iconStyle"),f=i.getModel(["emphasis","iconStyle"]),g=s instanceof d.Ms&&s.getIcons?s.getIcons():i.get("icon"),v=i.get("title")||{};h.isString(g)?(u={})[l]=g:u=g,h.isString(v)?(c={})[l]=v:c=v;var x=i.iconPaths={};h.each(u,(function(l,u){var d=y.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(p.getItemStyle()),d.ensureState("emphasis").style=f.getItemStyle();var g=new w.Ay({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:(0,M.c8)({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});d.setTextContent(g),y.setTooltipConfig({el:d,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var t=f.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";g.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||i}),g.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),g.hide()})),("emphasis"===i.get(["iconStatus",u])?m.HY:m.SD)(d),r.add(d),d.on("click",h.bind(s.onclick,s,t,n,u)),x[u]=d}))}(b,f,g),b.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?m.HY:m.SD)(i[e])},f instanceof d.Ms&&f.render&&f.render(b,t,n,i)):I&&f.dispose&&f.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){h.each(this._features,(function(e){e instanceof d.Ms&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){h.each(this._features,(function(n){n instanceof d.Ms&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){h.each(this._features,(function(n){n instanceof d.Ms&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(b.A),I=A,C=(n(16573),n(78100),n(77936),n(37467),n(44732),n(79577),n(64979),n(45378)),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=C.A.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,m=y.document;m.open("image/svg+xml","replace"),m.write(c),m.close(),y.focus(),m.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var v=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(S)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(d.Ms),D=T,L=n(82563),k=n(23891),O="__ec_magicType_stack__",P=[["line","bar"],["stack"]],N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return h.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(R[n]){var o,a={series:[]};h.each(P,(function(e){h.indexOf(e,n)>=0&&h.each(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(e){var t=e.subType,r=e.id,o=R[n](t,r,e,i);o&&(h.defaults(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,k.US).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=h.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(d.Ms),R={line:function(e,t,n,i){if("bar"===e)return h.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return h.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===O;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),h.merge({id:t,stack:r?"":O},i.get(["option","stack"])||{},!0)}};L.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var E=N,V=n(76293),z=new Array(60).join("-"),B="\t";function G(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var F=new RegExp("[\t]+","g");var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),d=function(e){var t,n,i,r=function(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:h.filter([(n=r.seriesGroupByCategoryAxis,i=[],h.each(n,(function(e,t){var n=e.categoryAxis,r=e.valueAxis.dim,o=[" "].concat(h.map(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];h.each(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var s=[o.join(B)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(B))}i.push(s.join("\n"))})),i.join("\n\n"+z+"\n\n")),(t=r.other,h.map(t,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+B:"")+i.join(B))})),n.join("\n")})).join("\n\n"+z+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+z+"\n\n"),meta:r.meta}}(e);if(h.isFunction(u)){var p=u(t.getOption());h.isString(p)?s.innerHTML=p:h.isDom(p)&&s.appendChild(p)}else{l.readOnly=i.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var g=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(r),_._dom=null}(0,V.q2)(v,"click",b),(0,V.q2)(x,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)b();else{var e;try{e=h.isFunction(c)?c(s,t.getOption()):function(e,t){var n=e.split(new RegExp("\n*"+z+"\n*","g")),i={series:[]};return h.each(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(B)>=0)return!0}(e)){var r=function(e){for(var t=e.split(/\n+/g),n=G(t.shift()).split(F),i=[],r=h.map(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=G(t[o]).split(F);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else r=function(e){for(var t=e.split(/\n+/g),n=G(t.shift()),i=[],r=0;r<t.length;r++){var o=G(t[r]);if(o){var a=o.split(F),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(e),i.series.push(r)})),i}(l.value,g)}catch(e){throw b(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()}})),v.innerHTML=a[1],x.innerHTML=a[2],x.style.cssText=v.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(y),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(d.Ms);function W(e,t){return h.map(e,(function(e,n){var i=t&&t[n];if(h.isObject(i)&&!h.isArray(i)){h.isObject(e)&&!h.isArray(e)||(e={value:e});var r=null!=i.name&&null==e.name;return e=h.defaults(e,i),r&&delete e.name,e}return e}))}L.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];h.each(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:W(e.data,r)})}else n.push(h.extend({type:"scatter"},e))})),t.mergeOption(h.defaults({series:n},e.newOption))}));var Y=H,U=h.each,X=(0,k.$r)();function Z(e){var t=X(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.onclick=function(e,t){!function(e){X(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(d.Ms);L.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var q=j,$=n(67906),K=n(19484),J=n(87432),Q=n(97663),ee=h.each,te=(0,k.S_)("toolbox-dataZoom_"),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new $.A(n.getZr()),this._brushController.on("brush",h.bind(this._onBrush,this)).mount()),function(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new K.A(re(e),t,{include:["grid"]}).makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return Z(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){ie[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new K.A(re(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),function(e,t){var n=Z(e);U(t,(function(t,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}(i,n),this._dispatchZoomAction(n)}function r(e,t,r){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)})),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=(0,J.A)(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];ee(e,(function(e,n){t.push(h.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(d.Ms),ie={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=Z(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return U(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n]){i[n]=e;break}})),i}(this.ecModel))}};function re(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}(0,Q.S)("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=re(i),a=(0,k._e)(e,o);return ee(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),ee(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:te+t+o};a[n]=o,r.push(a)}}));var oe=ne;function ae(e){e.registerComponentModel(f),e.registerComponentView(I),(0,d.M_)("saveAsImage",D),(0,d.M_)("magicType",E),(0,d.M_)("dataView",Y),(0,d.M_)("dataZoom",oe),(0,d.M_)("restore",q),(0,i.Y)(c)}},89536:function(e,t,n){n.d(t,{a:function(){return ee}});var i=n(25302),r=n(22212),o=n(33590),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),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}(n(75640).A),s=a,l=(n(44114),n(44397)),u=n(45378),c=n(76293),h=n(80873),d=n(81111);function p(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function f(e){if(u.A.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var g=f(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),y=f(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function m(e,t){if(!e)return t;t=(0,d.Cb)(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var v=n(81838),x=m(y,"transition"),_=m(g,"transform"),b="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(u.A.transform3dSupported?"will-change:transform;":"");function S(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!u.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=u.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+_+":"+a+";":[["top",0],["left",0],[g,a]]}function w(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,h.lJ)(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var M=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,u.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,o=r&&((0,l.isString)(r)?document.querySelector(r):(0,l.isDom)(r)?r:(0,l.isFunction)(r)&&r(e.getDom()));w(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler,n=i.painter.getViewportRoot();(0,c.e0)(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(r=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=b+function(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),c=e.get("shadowOffsetX"),h=e.get("shadowOffsetY"),p=e.getModel("textStyle"),f=(0,v.CO)(e,"html"),g=c+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+g),t&&r&&i.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=u.A.transformSupported?","+_+i:",left"+i+",top"+i),x+":"+r}(r,n)),o&&i.push("background-color:"+o),(0,l.each)(["width","color","radius"],(function(t){var n="border-"+t,r=(0,d.Cb)(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),(0,l.each)(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(p)),null!=f&&i.push("padding:"+(0,d.QX)(f).join("px ")+"px"),i.join(";")+";"}(e,!this._firstShow,this._longHide)+S(r[0],r[1],!0)+"border-color:"+(0,d.he)(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if((0,l.isString)(r)&&"item"===n.get("trigger")&&!p(n)&&(a=function(e,t,n){if(!(0,l.isString)(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=(0,d.he)(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(r),6),c="",h=_+":";(0,l.indexOf)(["left","right"],s)>-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,f=u+r,g=f*Math.abs(Math.cos(p))+f*Math.abs(Math.sin(p)),y=t+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((g-Math.SQRT2*r)/2+Math.SQRT2*r-(g-f)/2))/100+"px")+";"+h+";","border-bottom:"+y,"border-right:"+y,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,l.isString)(e))o.innerHTML=e+a;else if(e){o.innerHTML="",(0,l.isArray)(e)||(e=[e]);for(var s=0;s<e.length;s++)(0,l.isDom)(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(w(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=S(n[0],n[1]);(0,l.each)(r,(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",u.A.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout((0,l.bind)(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),A=M,I=n(5995),C=n(21900),T=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),k(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;l.isObject(e)&&(0,C.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new I.Ay({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,v.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),l.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=L(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;k(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=D(r.borderWidth||0),a=L(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function D(e){return Math.max(0,e)}function L(e){var t=D(e.shadowBlur||0),n=D(e.shadowOffsetX||0),i=D(e.shadowOffsetY||0);return{left:D(t-n),right:D(t+n),top:D(t-i),bottom:D(t+i)}}function k(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var O=T,P=n(81353),N=n(65859),R=n(82114),E=n(93398),V=n(99713),z=n(83669),B=n(2936),G=n(91631),F=n(23891),H=n(43484),W=n(72321),Y=n(98565),U=n(61638),X=n(92174),Z=n(99076),j=new N.A({shape:{x:-1,y:-1,width:2,height:2}}),q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){if(!u.A.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=(0,F.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new O(t):new A(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!u.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?(0,Z.N)(this,"_updatePosition",50,"fixRate"):(0,Z.IU)(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");z.k("itemTooltip",this._api,(0,l.bind)((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!u.A.node&&n.getDom()){var r=K(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(e,t,n){var i=(0,F.HB)(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=(0,F.JO)(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(t){var n=(0,Y.z)(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=j;l.x=i.x,l.y=i.y,l.update(),(0,Y.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=(0,R.A)(i,t),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(K(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s&&"axis"===$([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var r,o;if("legend"===(0,Y.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,X.R)(n,(function(e){return null!=(0,Y.z)(e).dataIndex?(r=e,!0):null!=(0,Y.z)(e).tooltipConfig?(o=e,!0):void 0}),!0),r?this._showSeriesItemTooltip(e,r,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=(0,l.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=$([t.tooltipOption],i),a=this._renderMode,s=[],u=(0,v.Qx)("section",{blocks:[],noHeader:!0}),c=[],h=new v.lb;(0,l.each)(e,(function(e){(0,l.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=G._F(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=(0,v.Qx)("section",{header:o,noHeader:!(0,l.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),(0,l.each)(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,y=f.getDataParams(g);if(!(y.dataIndex<0)){y.axisDim=e.axisDim,y.axisIndex=e.axisIndex,y.axisType=e.axisType,y.axisId=e.axisId,y.axisValue=B.Dt(t.axis,{value:r}),y.axisValueLabel=o,y.marker=h.makeTooltipMarker("item",(0,d.he)(y.color),a);var m=(0,U.L)(f.formatTooltip(g,!0,null)),v=m.frag;if(v){var x=$([f],i).get("valueFormatter");p.blocks.push(x?(0,l.extend)({valueFormatter:x},v):v)}m.text&&c.push(m.text),s.push(y)}}))}}))})),u.blocks.reverse(),c.reverse();var p=t.position,f=o.get("order"),g=(0,v.Yu)(u,h,a,f,n.get("useUTC"),o.get("textStyle"));g&&c.unshift(g);var y="richText"===a?"\n\n":"<br/>",m=c.join(y);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,m,s,Math.random()+"",r[0],r[1],p,null,h)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=(0,Y.z)(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,c=r.dataType,h=s.getData(c),p=this._renderMode,f=e.positionDefault,g=$([h.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),y=g.get("trigger");if(null==y||"item"===y){var m=s.getDataParams(u,c),x=new v.lb;m.marker=x.makeTooltipMarker("item",(0,d.he)(m.color),p);var _=(0,U.L)(s.formatTooltip(u,!1,c)),b=g.get("order"),S=g.get("valueFormatter"),w=_.frag,M=w?(0,v.Yu)(S?(0,l.extend)({valueFormatter:S},w):w,x,p,b,i.get("useUTC"),g.get("textStyle")):_.text,A="item_"+s.name+"_"+u;this._showOrMove(g,(function(){this._showTooltipContent(g,M,m,A,e.offsetX,e.offsetY,e.position,e.target,x)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=(0,Y.z)(t),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;(0,l.isString)(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=(0,l.clone)(o)).content=(0,h.Me)(o.content));var s=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&s.push(u),s.push({formatter:o.content});var c=e.positionDefault,d=$(s,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",g=new v.lb;this._showOrMove(d,(function(){var n=(0,l.clone)(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");a=a||e.get("position");var p=t,f=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")).color;if(h)if((0,l.isString)(h)){var g=e.ecModel.get("useUTC"),y=(0,l.isArray)(n)?n[0]:n;p=h,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(p=(0,W.GP)(y.axisValue,p,g)),p=(0,d.YK)(p,n,!0)}else if((0,l.isFunction)(h)){var m=(0,l.bind)((function(t,i){t===this._ticket&&(c.setContent(i,u,e,f,a),this._updatePosition(e,a,r,o,c,n,s))}),this);this._ticket=i,p=h(n,i,m)}else p=h;c.setContent(p,u,e,f,a),c.show(e,f),this._updatePosition(e,a,r,o,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||(0,l.isArray)(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,l.isArray)(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),h=e.get("align"),d=e.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),(0,l.isFunction)(t)&&(t=t([n,i],o,r.el,f,{viewSize:[s,u],contentSize:c.slice()})),(0,l.isArray)(t))n=(0,P.lo)(t[0],s),i=(0,P.lo)(t[1],u);else if((0,l.isObject)(t)){var g=t;g.width=c[0],g.height=c[1];var y=(0,E.dV)(g,{width:s,height:u});n=y.x,i=y.y,h=null,d=null}else if((0,l.isString)(t)&&a){var m=function(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,f,c,e.get("borderWidth"));n=m[0],i=m[1]}else m=function(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}(n,i,r,s,u,h?null:20,d?null:20),n=m[0],i=m[1];h&&(n-=J(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=J(d)?c[1]/2:"bottom"===d?c[1]:0),p(e)&&(m=function(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,[e=Math.max(e,0),t=Math.max(t,0)]}(n,i,r,s,u),n=m[0],i=m[1]),r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&(0,l.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&(0,l.each)(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],u=o.seriesDataIndices||[];(r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===u.length)&&(0,l.each)(a,(function(e,t){var n=u[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&(0,l.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!u.A.node&&t.getDom()&&((0,Z.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),z.h("itemTooltip",t))},t.type="tooltip",t}(H.A);function $(e,t,n){var i,r=t.ecModel;n?(i=new V.A(n,r,r),i=new V.A(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof V.A&&(a=a.get("tooltip",!0)),(0,l.isString)(a)&&(a={formatter:a}),a&&(i=new V.A(a,i,r)))}return i}function K(e,t){return e.dispatchAction||(0,l.bind)(t.dispatchAction,t)}function J(e){return"center"===e||"middle"===e}var Q=q;function ee(e){(0,r.Y)(i.a),e.registerComponentModel(s),e.registerComponentView(Q),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.noop)}},17264:function(e,t,n){n.d(t,{J:function(){return s}}),n(44114);var i=n(44397),r=n(81838),o=n(9678),a=n(23891);function s(e){var t,n,s,l,u=e.series,c=e.dataIndex,h=e.multipleSeries,d=u.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,g=u.getRawValue(c),y=(0,i.isArray)(g),m=(0,r.aw)(u,c);if(f>1||y&&!f){var v=function(e,t,n,a,s){var l=t.getData(),u=(0,i.reduce)(e,(function(e,t,n){var i=l.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],h=[],d=[];function p(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(u?d.push((0,r.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(c.push(e),h.push(n.type)))}return a.length?(0,i.each)(a,(function(e){p((0,o.QE)(l,n,e),e)})):(0,i.each)(e,p),{inlineValues:c,inlineValueTypes:h,blocks:d}}(g,u,c,p,m);t=v.inlineValues,n=v.inlineValueTypes,s=v.blocks,l=v.inlineValues[0]}else if(f){var x=d.getDimensionInfo(p[0]);l=t=(0,o.QE)(d,c,p[0]),n=x.type}else l=t=y?g[0]:g;var _=(0,a.O0)(u),b=_&&u.name||"",S=d.getName(c),w=h?b:S;return(0,r.Qx)("section",{header:b,noHeader:h||!_,sortParam:l,blocks:[(0,r.Qx)("nameValue",{markerType:"item",markerColor:m,name:w,noName:!(0,i.trim)(w),value:t,valueType:n,dataIndex:c})].concat(s||[])})}},81838:function(e,t,n){n.d(t,{CO:function(){return S},Qx:function(){return d},Yu:function(){return v},aw:function(){return b},lb:function(){return w}}),n(44114);var i=n(80873),r=n(81111),o=n(44397),a=n(36842),s=n(81353),l="line-height:1";function u(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",a=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+(0,i.Me)(r+"")+"px;color:"+(0,i.Me)(n)+";font-weight:"+(0,i.Me)(o+""),valueStyle:"font-size:"+(0,i.Me)(s+"")+"px;color:"+(0,i.Me)(a)+";font-weight:"+(0,i.Me)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function d(e,t){return t.type=e,t}function p(e){return"section"===e.type}function f(e){return p(e)?y:m}function g(e){if(p(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return(0,o.each)(e.blocks,(function(e){var n=g(e);n>=t&&(t=n+ +(i&&(!n||p(e)&&!e.noHeader)))})),t}return 0}function y(e,t,n,s){var d,p=t.noHeader,y=(d=g(t),{html:c[d],richText:h[d]}),m=[],v=t.blocks||[];(0,o.assert)(!v||(0,o.isArray)(v)),v=v||[];var b=e.orderMode;if(t.sortBlocks&&b){v=v.slice();var S={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(S,b)){var w=new a.Fl(S[b],null);v.sort((function(e,t){return w.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===b&&v.reverse()}(0,o.each)(v,(function(n,i){var r=t.valueFormatter,a=f(n)(r?(0,o.extend)((0,o.extend)({},e),{valueFormatter:r}):e,n,i>0?y.html:0,s);null!=a&&m.push(a)}));var M="richText"===e.renderMode?m.join(y.richText):x(m.join(""),p?n:y.html);if(p)return M;var A=(0,r.yC)(t.header,"ordinal",e.useUTC),I=u(s,e.renderMode).nameStyle;return"richText"===e.renderMode?_(e,A,I)+y.richText+M:x('<div style="'+I+";"+l+';">'+(0,i.Me)(A)+"</div>"+M,n)}function m(e,t,n,a){var s=e.renderMode,l=t.noName,c=t.noValue,h=!t.markerType,d=t.name,p=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(e){return e=(0,o.isArray)(e)?e:[e],(0,o.map)(e,(function(e,t){return(0,r.yC)(e,(0,o.isArray)(m)?m[t]:m,p)}))};if(!l||!c){var g=h?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",s),y=l?"":(0,r.yC)(d,"ordinal",p),m=t.valueType,v=c?[]:f(t.value,t.dataIndex),b=!h||!l,S=!h&&l,w=u(a,s),M=w.nameStyle,A=w.valueStyle;return"richText"===s?(h?"":g)+(l?"":_(e,y,M))+(c?"":function(e,t,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(t)?t.join(" "):t,a)}(e,v,b,S,A)):x((h?"":g)+(l?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+(0,i.Me)(e)+"</span>"}(y,!h,M))+(c?"":function(e,t,n,r){var a=t?"float:right;margin-left:"+(n?"10px":"20px"):"";return e=(0,o.isArray)(e)?e:[e],'<span style="'+a+";"+r+'">'+(0,o.map)(e,(function(e){return(0,i.Me)(e)})).join(" ")+"</span>"}(v,b,S,A)),n)}}function v(e,t,n,i,r,o){if(e)return f(e)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function x(e,t){return'<div style="margin: '+t+"px 0 0;"+l+';">'+e+'<div style="clear:both"></div></div>'}function _(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function b(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return(0,r.he)(n)}function S(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var w=function(){function e(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.qg)({color:t,type:e,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};(0,o.isArray)(t)?(0,o.each)(t,(function(e){return(0,o.extend)(n,e)})):(0,o.extend)(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}()},71611:function(e,t,n){n.d(t,{a:function(){return b}}),n(44114);var i=n(44397),r=n(21900),o=n(36842),a={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},s=function(){function e(e){null==(this._condVal=(0,i.isString)(e)?new RegExp(e):(0,i.isRegExp)(e)?e:null)&&(0,r.$8)("")}return e.prototype.evaluate=function(e){var t=typeof e;return(0,i.isString)(t)?this._condVal.test(e):!!(0,i.isNumber)(t)&&this._condVal.test(e+"")},e}(),l=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),u=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),c=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),h=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),d=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function p(e,t){if(!0===e||!1===e){var n=new l;return n.value=e,n}return g(e)||(0,r.$8)(""),e.and?f("and",e,t):e.or?f("or",e,t):e.not?function(e,t){var n=e.not;g(n)||(0,r.$8)("");var i=new h;return i.child=p(n,t),i.child||(0,r.$8)(""),i}(e,t):function(e,t){for(var n=t.prepareGetValue(e),l=[],u=(0,i.keys)(e),c=e.parser,h=c?(0,o.zC)(c):null,p=0;p<u.length;p++){var f=u[p];if("parser"!==f&&!t.valueGetterAttrMap.get(f)){var g=(0,i.hasOwn)(a,f)?a[f]:f,y=e[f],m=h?h(y):y,v=(0,o.zs)(g,m)||"reg"===g&&new s(m);v||(0,r.$8)(""),l.push(v)}}l.length||(0,r.$8)("");var x=new d;return x.valueGetterParam=n,x.valueParser=h,x.getValue=t.getValue,x.subCondList=l,x}(e,t)}function f(e,t,n){var o=t[e];(0,i.isArray)(o)||(0,r.$8)(""),o.length||(0,r.$8)("");var a="and"===e?new u:new c;return a.children=(0,i.map)(o,(function(e){return p(e,n)})),a.children.length||(0,r.$8)(""),a}function g(e){return(0,i.isObject)(e)&&!(0,i.isArrayLike)(e)}var y=function(){function e(e,t){this._cond=p(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}(),m={type:"echarts:filter",transform:function(e){for(var t,n,o,a=e.upstream,s=(n=e.config,o={valueGetterAttrMap:(0,i.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;(0,i.hasOwn)(e,"dimension")||(0,r.$8)("");var n=a.getDimensionInfo(t);return n||(0,r.$8)(""),{dimIdx:n.index}},getValue:function(e){return a.retrieveValueFromItem(t,e.dimIdx)}},new y(n,o)),l=[],u=0,c=a.count();u<c;u++)t=a.getRawDataItem(u),s.evaluate()&&l.push(t);return{data:l}}},v=n(7019),x=n(23891),_={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,a="",s=(0,x.qB)(n);s.length||(0,r.$8)(a);var l=[];(0,i.each)(s,(function(e){var n=e.dimension,i=e.order,s=e.parser,u=e.incomparable;null==n&&(0,r.$8)(a),"asc"!==i&&"desc"!==i&&(0,r.$8)(a),u&&"min"!==u&&"max"!==u&&(0,r.$8)(""),"asc"!==i&&"desc"!==i&&(0,r.$8)("");var c=t.getDimensionInfo(n);c||(0,r.$8)(a);var h=s?(0,o.zC)(s):null;s&&!h&&(0,r.$8)(a),l.push({dimIdx:c.index,parser:h,comparator:new o.Fl(i,u)})}));var u=t.sourceFormat;u!==v.Km&&u!==v.Wk&&(0,r.$8)(a);for(var c=[],h=0,d=t.count();h<d;h++)c.push(t.getRawDataItem(h));return c.sort((function(e,n){for(var i=0;i<l.length;i++){var r=l[i],o=t.retrieveValueFromItem(e,r.dimIdx),a=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),a=r.parser(a));var s=r.comparator.evaluate(o,a);if(0!==s)return s}return 0})),{data:c}}};function b(e){e.registerTransform(m),e.registerTransform(_)}},33055:function(e,t,n){n.d(t,{A:function(){return v}}),n(44114);var i=n(44397),r=n(81353),o=n(1323),a=n(23891),s=n(2936),l=(0,a.$r)();function u(e,t){var n=i.map(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c(e,t){var n,r,o=h(e,"labels"),a=(0,s.j2)(t);return d(o,a)||(i.isFunction(a)?n=g(e,a):(r="auto"===a?function(e){var t=l(e).autoInterval;return null!=t?t:l(e).autoInterval=e.calculateCategoryInterval()}(e):a,n=f(e,r)),p(o,a,{labels:n,labelCategoryInterval:r}))}function h(e,t){return l(e)[t]||(l(e)[t]=[])}function d(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function p(e,t,n){return e.push({key:t,value:n}),n}function f(e,t,n){var i=(0,s.ry)(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),l=[],u=Math.max((t||0)+1,1),c=o[0],h=r.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=(0,s.PJ)(e),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==o[0]&&y(o[0]);for(var g=c;g<=o[1];g+=u)y(g);function y(e){var t={value:e};l.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return f&&g-u!==o[1]&&y(o[1]),l}function g(e,t,n){var r=e.scale,o=(0,s.ry)(e),a=[];return i.each(r.getTicks(),(function(e){var i=r.getLabel(e),s=e.value;t(e.value,i)&&a.push(n?s:{formattedLabel:o(e),rawLabel:i,tickValue:s})})),a}var y=[0,1];function m(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var v=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return(0,r.hb)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count()),(0,r.Cb)(e,y,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count());var o=(0,r.Cb)(e,n,y,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=function(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:u(e,n)}:"category"===e.type?function(e,t){var n,r,o=h(e,"ticks"),a=(0,s.j2)(t),l=d(o,a);if(l)return l;if(t.get("show")&&!e.scale.isBlank()||(n=[]),i.isFunction(a))n=g(e,a,!0);else if("auto"===a){var u=c(e,e.getLabelModel());r=u.labelCategoryInterval,n=i.map(u.labels,(function(e){return e.tickValue}))}else n=f(e,r=a,!0);return p(o,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:i.map(e.scale.getTicks(),(function(e){return e.value}))}}(this,t).ticks,o=(0,i.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,o){var a=t.length;if(e.onBand&&!n&&a){var s,l,u=e.getExtent();if(1===a)t[0].coord=u[0],s=t[1]={coord:u[1]};else{var c=t[a-1].tickValue-t[0].tickValue,h=(t[a-1].coord-t[0].coord)/c;(0,i.each)(t,(function(e){e.coord-=h/2})),l=1+e.scale.getExtent()[1]-t[a-1].tickValue,s={coord:t[a-1].coord+h*l},t.push(s)}var d=u[0]>u[1];p(t[0].coord,u[0])&&(o?t[0].coord=u[0]:t.shift()),o&&p(u[0],t[0].coord)&&t.unshift({coord:u[0]}),p(u[1],s.coord)&&(o?s.coord=u[1]:t.pop()),o&&p(s.coord,u[1])&&t.push({coord:u[1]})}function p(e,t){return e=(0,r.LI)(e),t=(0,r.LI)(t),d?e>t:e<t}}(this,o,t.get("alignWithLabel"),e.clamp),o},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return(0,i.map)(t,(function(e){return(0,i.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return function(e){var t=e.getLabelModel().get("customValues");if(t){var n=(0,s.ry)(e);return{labels:u(e,t).map((function(t){var i={value:t};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:t}}))}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=c(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=(0,s.ry)(e);return{labels:i.map(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(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()}}(e),n=(0,s.ry)(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,a=r.getExtent(),u=r.count();if(a[1]-a[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=a[0],d=e.dataToCoord(h+1)-e.dataToCoord(h),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,y=0;h<=a[1];h+=c){var m,v,x=o.NO(n({value:h}),t.font,"center","top");m=1.3*x.width,v=1.3*x.height,g=Math.max(g,m,7),y=Math.max(y,v,7)}var _=g/p,b=y/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b))),w=l(e.model),M=e.getExtent(),A=w.lastAutoInterval,I=w.lastTickCount;return null!=A&&null!=I&&Math.abs(A-S)<=1&&Math.abs(I-u)<=1&&A>S&&w.axisExtent0===M[0]&&w.axisExtent1===M[1]?S=A:(w.lastTickCount=u,w.lastAutoInterval=S,w.axisExtent0=M[0],w.axisExtent1=M[1]),S}(this)},e}()},93720:function(e,t,n){function i(e,t){return e.type===t}n.d(t,{g:function(){return i}})},18303:function(e,t,n){n.d(t,{m:function(){return l}});var i=n(81353),r=n(49299),o=n(2936),a=n(43578),s=Math.log;function l(e,t,n){var l=r.A.prototype,u=l.getTicks.call(n),c=l.getTicks.call(n,!0),h=u.length-1,d=l.getInterval.call(n),p=(0,o.Rx)(e,t),f=p.extent,g=p.fixMin,y=p.fixMax;if("log"===e.type){var m=s(e.base);f=[s(f[0])/m,s(f[1])/m]}e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:h,fixMin:g,fixMax:y});var v=l.getExtent.call(e);g&&(f[0]=v[0]),y&&(f[1]=v[1]);var x=l.getInterval.call(e),_=f[0],b=f[1];if(g&&y)x=(b-_)/h;else if(g)for(b=f[0]+x*h;b<f[1]&&isFinite(b)&&isFinite(f[1]);)x=(0,a.kH)(x),b=f[0]+x*h;else if(y)for(_=f[1]-x*h;_>f[0]&&isFinite(_)&&isFinite(f[0]);)x=(0,a.kH)(x),_=f[1]-x*h;else{e.getTicks().length-1>h&&(x=(0,a.kH)(x));var S=x*h;b=Math.ceil(f[1]/x)*x,(_=(0,i.LI)(b-S))<0&&f[0]>=0?(_=0,b=(0,i.LI)(S)):b>0&&f[1]<=0&&(b=0,_=-(0,i.LI)(S))}var w=(u[0].value-c[0].value)/d,M=(u[h].value-c[h].value)/d;l.setExtent.call(e,_+x*w,b+x*M),l.setInterval.call(e,x),(w||M)&&l.setNiceExtent.call(e,_+x,b-x)}},91833:function(e,t,n){var i=n(44397),r={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a=i.merge({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}}},r),s=i.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),l=i.defaults({logBase:10},a);t.A={category:o,value:a,time:s,log:l}},2936:function(e,t,n){n.d(t,{f$:function(){return T},Og:function(){return O},Dt:function(){return k},wq:function(){return R},j2:function(){return P},Rx:function(){return I},JJ:function(){return D},ry:function(){return L},af:function(){return C},PJ:function(){return N},PN:function(){return E}});var i=n(44397),r=n(78481),o=n(49299),a=n(35926),s=n(48037),l=n(39295),u=n(78871),c=n(33590),h=n(81353),d=n(43578),p=a.A.prototype,f=o.A.prototype,g=h.LI,y=Math.floor,m=Math.ceil,v=Math.pow,x=Math.log,_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new o.A,t._interval=0,t}return(0,c.C6)(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),o=f.getTicks.call(this,e);return i.map(o,(function(e){var t=e.value,i=h.LI(v(this.base,t));return i=t===n[0]&&this._fixMin?S(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?S(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=x(this.base);e=x(Math.max(0,e))/n,t=x(Math.max(0,t))/n,f.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=p.getExtent.call(this);t[0]=v(e,t[0]),t[1]=v(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=S(t[0],n[0])),this._fixMax&&(t[1]=S(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=x(e[0])/x(t),e[1]=x(e[1])/x(t),p.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=h.au(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[h.LI(m(t[0]/i)*i),h.LI(y(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){f.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=x(e)/x(this.base),d.lP(e,this._extent)},t.prototype.normalize=function(e){return e=x(e)/x(this.base),d.S8(e,this._extent)},t.prototype.scale=function(e){return e=d.hs(e,this._extent),v(this.base,e)},t.type="log",t}(a.A),b=_.prototype;function S(e,t){return g(e,h.XV(t))}b.getMinorTicks=f.getMinorTicks,b.getLabel=f.getLabel,a.A.registerClass(_);var w=_,M=n(45180),A=n(98299);function I(e,t){var n=e.type,r=(0,A.Tc)(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,a=r.max,l=t.ecModel;if(l&&"time"===n){var u=(0,s.GL)("bar",l),c=!1;if(i.each(u,(function(e){c=c||e.getBaseAxis()===t.axis})),c){var h=(0,s.vq)(u),d=function(e,t,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=(0,s.VA)(r,n.axis);if(void 0===l)return{min:e,max:t};var u=1/0;i.each(l,(function(e){u=Math.min(e.offset,u)}));var c=-1/0;i.each(l,(function(e){c=Math.max(e.offset+e.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,d=t-e,p=d/(1-(u+c)/a)-d;return{min:e-=p*(u/h),max:t+=p*(c/h)}}(o,a,t,h);o=d.min,a=d.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function C(e,t){var n=t,i=I(e,n),r=i.extent,o=n.get("splitNumber");e instanceof w&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function T(e,t){if(t=t||e.get("type"))switch(t){case"category":return new r.A({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new u.A({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(a.A.getClass(t)||o.A)}}function D(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function L(e){var t,n,r=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):i.isString(r)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(r):i.isFunction(r)?(t=r,function(n,i){return null!=o&&(i=n.value-o),t(k(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function k(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function O(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();o=n instanceof r.A?n.count():(i=n.getTicks()).length;var s,u,c,h,d,p,f,g=e.getLabelModel(),y=L(e),m=1;o>40&&(m=Math.ceil(o/40));for(var v=0;v<o;v+=m){var x=y(i?i[v]:{value:a[0]+v},v),_=(u=g.getTextRect(x),void 0,void 0,void 0,void 0,void 0,c=(g.get("rotate")||0)*Math.PI/180,h=u.width,d=u.height,p=h*Math.abs(Math.cos(c))+Math.abs(d*Math.sin(c)),f=h*Math.abs(Math.sin(c))+Math.abs(d*Math.cos(c)),new l.A(u.x,u.y,p,f));s?s.union(_):s=_}return s}}function P(e){var t=e.get("interval");return null==t?"auto":t}function N(e){return"category"===e.type&&0===P(e.getLabelModel())}function R(e,t){var n={};return i.each(e.mapDimensionsAll(t),(function(t){n[(0,M.me)(e,t)]=!0})),i.keys(n)}function E(e,t,n){t&&i.each(R(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}},59831:function(e,t,n){n.d(t,{L:function(){return i}});var i=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()},15079:function(e,t,n){n.d(t,{A:function(){return u}});var i=n(33590),r=n(91833),o=n(93398),a=n(47686),s={value:1,category:1,time:1,log:1},l=n(44397);function u(e,t,n,u){(0,l.each)(s,(function(s,h){var d=(0,l.merge)((0,l.merge)({},r.A[h],!0),u,!0),p=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+h,n}return(0,i.C6)(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=(0,o.ad)(this),i=n?(0,o.vs)(e):{},r=t.getTheme();(0,l.merge)(e,r.get(h+"Axis")),(0,l.merge)(e,this.getDefaultOption()),e.type=c(e),n&&(0,o.YA)(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=a.A.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+h,n.defaultOption=d,n}(n);e.registerComponentModel(p)})),e.registerSubTypeDefaulter(t+"Axis",c)}function c(e){return e.type||(e.data?"category":"value")}},80293:function(e,t,n){n.d(t,{LR:function(){return s},Zp:function(){return o},gO:function(){return a}});var i=n(44397),r=n(23891);function o(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,g="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var y=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(y,g[1]),g[0])}a.position=["y"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.retrieve(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-m:m,a.z2=1,a}function a(e){return"cartesian2d"===e.get("coordinateSystem")}function s(e){var t={xAxisModel:null,yAxisModel:null};return i.each(t,(function(n,i){var o=i.replace(/Model$/,""),a=e.getReferringComponents(o,r.US).models[0];t[i]=a})),t}},12681:function(e,t,n){n.d(t,{U5:function(){return y},cn:function(){return g},m5:function(){return p},nS:function(){return f}});var i=n(33590),r=n(39295),o=n(79006),a=n(50288),s=n(3944),l=n(44397),u=[];function c(e,t){for(var n=0;n<e.length;n++)o.applyTransform(e[n],e[n],t)}function h(e,t,n,i){for(var r=0;r<e.length;r++){var a=e[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(o.min(t,t,a),o.max(n,n,a))}}var d=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),p=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},f=function(e){this.type="linestring",this.points=e},g=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,i.C6)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return(0,l.each)(o,(function(t){"polygon"===t.type?h(t.exterior,n,i,e):(0,l.each)(t.points,(function(t){h(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new r.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var s=o.exterior,l=o.interiors;if(a.l(s,e[0],e[1])){for(var u=0;u<(l?l.length:0);u++)if(a.l(l[u],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var o=this.getBoundingRect(),a=o.width/o.height;n?i||(i=n/a):n=a*i;for(var s=new r.A(e,t,n,i),u=o.calculateTransform(s),h=this.geometries,d=0;d<h.length;d++){var p=h[d];"polygon"===p.type?(c(p.exterior,u),(0,l.each)(p.interiors,(function(e){c(e,u)}))):(0,l.each)(p.points,(function(e){c(e,u)}))}(o=this._rect).copy(s),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(d),y=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,i.C6)(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=s.identity(u),r=e;r&&!r.isGeoSVGGraphicRoot;)s.mul(i,r.getLocalTransform(),i),r=r.parent;return s.invert(i,i),o.applyTransform(n,n,i),n},t}(d)},44291:function(e,t,n){n.d(t,{A:function(){return s}}),n(44114);var i=n(44397),r=n(12681);function o(e,t,n){for(var i=0;i<e.length;i++)e[i]=a(e[i],t[i],n)}function a(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function s(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return i.each(r,(function(e){var t=e.geometry,r=t.encodeOffsets,s=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=a(s,r,n);break;case"Polygon":case"MultiLineString":o(s,r,n);break;case"MultiPolygon":i.each(s,(function(e,t){return o(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}(e),i.map(i.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,o=e.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new r.m5(s[0],s.slice(1)));break;case"MultiPolygon":i.each(o.coordinates,(function(e){e[0]&&a.push(new r.m5(e[0],e.slice(1)))}));break;case"LineString":a.push(new r.nS([o.coordinates]));break;case"MultiLineString":a.push(new r.nS(o.coordinates))}var l=new r.cn(n[t||"name"],a,n.cp);return l.properties=n,l}))}},98299:function(e,t,n){n.d(t,{Tc:function(){return l}});var i=n(44397),r=n(1323),o=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);null==a&&(a=t.get("startValue",!0));var s=this._modelMinRaw=a;(0,i.isFunction)(s)?this._modelMinNum=u(e,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=u(e,s));var l=this._modelMaxRaw=t.get("max",!0);if((0,i.isFunction)(l)?this._modelMaxNum=u(e,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=u(e,l)),o)this._axisDataLen=t.getCategories().length;else{var c=t.get("boundaryGap"),h=(0,i.isArray)(c)?c:[c||0,c||0];"boolean"==typeof h[0]||"boolean"==typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.lo)(h[0],1),(0,r.lo)(h[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),s="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=e?r?0:NaN:t-o[0]*a),null==l&&(l=e?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||e&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[s[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[a[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(e,t,n){var i=e.rawExtentInfo;return i||(i=new o(e,t,n),e.rawExtentInfo=i,i)}function u(e,t){return null==t?null:(0,i.eqNaN)(t)?NaN:e.parse(t)}},13798:function(e,t,n){var i=n(44397),r={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];i.each(r,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){i.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){r[e]=t},e.get=function(e){return r[e]},e}();t.A=o},82563:function(e,t,n){n.d(t,{FQ:function(){return St},Ng:function(){return gn},p5:function(){return Bn},El:function(){return yt},zm:function(){return mn},Zf:function(){return yn},AS:function(){return vn},Bo:function(){return Dn},FP:function(){return xn},aQ:function(){return _n},ZB:function(){return Vn},Ts:function(){return fn},OH:function(){return Cn},pX:function(){return Tn},Oh:function(){return Ln},Ej:function(){return Nn},E:function(){return ut.E},mz:function(){return En},cf:function(){return Mn},tb:function(){return An},lP:function(){return Sn},qg:function(){return wn},bf:function(){return bn},iY:function(){return zn},xV:function(){return In},AF:function(){return kn},vV:function(){return Rn},rE:function(){return gt}}),n(44114);var i=n(33590),r=n(19884),o=n(44397),a=n(45378),s=n(98811),l=n(91654),u=n(23891),c=n(99713),h=n(75640),d="";"undefined"!=typeof navigator&&(d=navigator.platform||"");var p,f,g,y="rgba(0, 0, 0, 0.2)",m={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:y,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:y,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:y,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:y,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:y,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:y,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},v=n(15334),x=n(97663),_=n(26410),b="\0_ec_inner",S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=A(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,A(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):g(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=i.getMediaOption(this);s.length&&(0,o.each)(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.createHashMap)(),l=t&&t.replaceMergeMainTypeMap;(0,v.ps)(this),(0,o.each)(e,(function(e,t){null!=e&&(h.A.hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?(0,o.clone)(e):(0,o.merge)(n[t],e,!0))})),l&&l.each((function(e,t){h.A.hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),h.A.topologicalTravel(a,h.A.getAllClassMainTypes(),(function(t){var a=(0,x.a)(this,t,u.qB(e[t])),s=i.get(t),c=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=u.O2(s,a,c);u.GX(d,t,h.A),n[t]=null,i.set(t,null),r.set(t,0);var f,g=[],y=[],m=0;(0,o.each)(d,(function(e,n){var i=e.existing,r=e.newOption;if(r){var a="series"===t,s=h.A.getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(f)return;f=!0}if(i&&i.constructor===s)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.extend)({componentIndex:n},e.keyInfo);i=new s(r,this,this,l),(0,o.extend)(i,l),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(g.push(i.option),y.push(i),m++):(g.push(void 0),y.push(void 0))}),this),n[t]=g,i.set(t,y),r.set(t,m),"series"===t&&p(this)}),this),this._seriesIndices||p(this)},t.prototype.getOption=function(){var e=(0,o.clone)(this.option);return(0,o.each)(e,(function(t,n){if(h.A.hasClass(n)){for(var i=u.qB(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[b],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=i?(n=[],(0,o.each)(u.qB(i),(function(e){s[e]&&n.push(s[e])}))):n=null!=r?w("id",r,s):null!=a?w("name",a,s):(0,o.filter)(s,(function(e){return!!e})),M(n,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,a,s=e.query,l=e.mainType,u=(n=l+"Index",i=l+"Id",r=l+"Name",!(t=s)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:l,index:t[n],id:t[i],name:t[r]});return a=M(u?this.queryComponents(u):(0,o.filter)(this._componentsMap.get(l),(function(e){return!!e})),e),e.filter?(0,o.filter)(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if((0,o.isFunction)(e)){var r=t,a=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&a.call(r,t,i,i.componentIndex)}}))}else for(var s=(0,o.isString)(e)?i.get(e):(0,o.isObject)(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=u.vS(e,null);return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){f(this),(0,o.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){(0,o.each)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){f(this),(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return(0,o.each)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return f(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){f(this);var n=[];(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.createHashMap)(n)},t.prototype.restoreData=function(e){p(this);var t=this._componentsMap,n=[];t.each((function(e,t){h.A.hasClass(t)&&n.push(t)})),h.A.topologicalTravel(n,h.A.getAllClassMainTypes(),(function(n){(0,o.each)(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e)||t.restoreData()}))}))},t.internalField=(p=function(e){var t=e._seriesIndices=[];(0,o.each)(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=(0,o.createHashMap)(t)},f=function(e){},void(g=function(e,t){e.option={},e.option[b]=1,e._componentsMap=(0,o.createHashMap)({series:[]}),e._componentsCount=(0,o.createHashMap)();var n=t.aria;(0,o.isObject)(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;(0,o.each)(t,(function(t,i){"colorLayer"===i&&n||h.A.hasClass(i)||("object"==typeof t?e[i]=e[i]?(0,o.merge)(e[i],t,!1):(0,o.clone)(t):null==e[i]&&(e[i]=t))}))}(t,e._theme.option),(0,o.merge)(t,m,!1),e._mergeOption(t,null)})),t}(c.A);function w(e,t,n){if((0,o.isArray)(t)){var i=(0,o.createHashMap)();return(0,o.each)(t,(function(e){null!=e&&null!=u.vS(e,null)&&i.set(e,!0)})),(0,o.filter)(n,(function(t){return t&&i.get(t[e])}))}var r=u.vS(t,null);return(0,o.filter)(n,(function(t){return t&&null!=r&&t[e]===r}))}function M(e,t){return t.hasOwnProperty("subType")?(0,o.filter)(e,(function(e){return e&&e.subType===t.subType})):e}function A(e){var t=(0,o.createHashMap)();return e&&(0,o.each)(u.qB(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}(0,o.mixin)(S,_.X);var I=S,C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],T=function(e){o.each(C,(function(t){this[t]=o.bind(e[t],e)}),this)},D=n(13798),L=/^(min|max)?(.+)$/,k=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&((0,o.each)((0,u.qB)(e.series),(function(e){e&&e.data&&(0,o.isTypedArray)(e.data)&&(0,o.setAsPrimitive)(e.data)})),(0,o.each)((0,u.qB)(e.dataset),(function(e){e&&e.source&&(0,o.isTypedArray)(e.source)&&(0,o.setAsPrimitive)(e.source)}))),e=(0,o.clone)(e);var i=this._optionBackup,r=function(e,t,n){var i,r,a=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,h=!!e.media,d=!!(u||l||s&&s.timeline);function p(e){(0,o.each)(t,(function(t){t(e,n)}))}return s?(r=s).timeline||(r.timeline=l):((d||h)&&(e.options=e.media=null),r=e),h&&(0,o.isArray)(c)&&(0,o.each)(c,(function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))})),p(r),(0,o.each)(u,(function(e){return p(e)})),(0,o.each)(a,(function(e){return p(e.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:a}}(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],(0,o.clone)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=(0,o.clone)(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var c=0,h=a.length;c<h;c++)O(a[c].query,i,r)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(t=l,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(u=(0,o.map)(l,(function(e){return(0,o.clone)(-1===e?s.option:a[e].option)}))),this._currentMediaIndices=l,u},e}();function O(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return(0,o.each)(e,(function(e,t){var n=t.match(L);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,o)||(r=!1)}})),r}var P=k,N=o.each,R=o.isObject,E=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function V(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=E.length;n<i;n++){var r=E[n],a=t.normal,s=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?o.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),s&&s[r]&&(e[r]=e[r]||{},e[r].emphasis?o.merge(e[r].emphasis,s[r]):e[r].emphasis=s[r],s[r]=null)}}function z(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,o.defaults(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function B(e){z(e,"itemStyle"),z(e,"lineStyle"),z(e,"areaStyle"),z(e,"label"),z(e,"labelLine"),z(e,"upperLabel"),z(e,"edgeLabel")}function G(e,t){var n=R(e)&&e[t],i=R(n)&&n.textStyle;if(i)for(var r=0,o=u.JS.length;r<o;r++){var a=u.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function F(e){e&&(B(e),G(e,"label"),e.emphasis&&G(e.emphasis,"label"))}function H(e){return o.isArray(e)?e:e?[e]:[]}function W(e){return(o.isArray(e)?e[0]:e)||{}}function Y(e){e&&(0,o.each)(U,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var U=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],X=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Z=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function j(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Z.length;n++){var i=Z[n][1],r=Z[n][0];null!=t[i]&&(t[r]=t[i])}}function q(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function $(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function K(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&K(e[n].children,t)}function J(e,t){(function(e,t){N(H(e.series),(function(e){R(e)&&function(e){if(R(e)){V(e),B(e),G(e,"label"),G(e,"upperLabel"),G(e,"edgeLabel"),e.emphasis&&(G(e.emphasis,"label"),G(e.emphasis,"upperLabel"),G(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(V(t),F(t));var n=e.markLine;n&&(V(n),F(n));var i=e.markArea;i&&F(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!o.isTypedArray(a))for(var s=0;s<a.length;s++)F(a[s]);o.each(e.categories,(function(e){B(e)}))}if(r&&!o.isTypedArray(r))for(s=0;s<r.length;s++)F(r[s]);if((t=e.markPoint)&&t.data){var l=t.data;for(s=0;s<l.length;s++)F(l[s])}if((n=e.markLine)&&n.data){var u=n.data;for(s=0;s<u.length;s++)o.isArray(u[s])?(F(u[s][0]),F(u[s][1])):F(u[s])}"gauge"===e.type?(G(e,"axisLabel"),G(e,"title"),G(e,"detail")):"treemap"===e.type?(z(e.breadcrumb,"itemStyle"),o.each(e.levels,(function(e){B(e)}))):"tree"===e.type&&B(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),N(n,(function(t){N(H(e[t]),(function(e){e&&(G(e,"axisLabel"),G(e.axisPointer,"label"))}))})),N(H(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;G(t,"axisLabel"),G(t&&t.axisPointer,"label")})),N(H(e.calendar),(function(e){z(e,"itemStyle"),G(e,"dayLabel"),G(e,"monthLabel"),G(e,"yearLabel")})),N(H(e.radar),(function(e){G(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),N(H(e.geo),(function(e){R(e)&&(F(e),N(H(e.regions),(function(e){F(e)})))})),N(H(e.timeline),(function(e){F(e),z(e,"label"),z(e,"itemStyle"),z(e,"controlStyle",!0);var t=e.data;o.isArray(t)&&o.each(t,(function(e){o.isObject(e)&&(z(e,"label"),z(e,"itemStyle"))}))})),N(H(e.toolbox),(function(e){z(e,"iconStyle"),N(e.feature,(function(e){z(e,"iconStyle")}))})),G(W(e.axisPointer),"label"),G(W(e.tooltip).axisPointer,"label")})(e,t),e.series=(0,u.qB)(e.series),(0,o.each)(e.series,(function(e){if((0,o.isObject)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),q(e.label),(r=e.data)&&!(0,o.isTypedArray)(r))for(var n=0;n<r.length;n++)q(r[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=function(e){for(var t="pointer.color".split(","),n=e,i=0;i<t.length&&null!=(n=n&&n[t[i]]);i++);return n}(e);null!=i&&function(e,t,n){for(var i,r="itemStyle.color".split(","),o=e,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(e,0,i)}else if("bar"===t){var r;if(j(e),j(e.backgroundStyle),j(e.emphasis),(r=e.data)&&!(0,o.isTypedArray)(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(j(r[n]),j(r[n]&&r[n].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),$(e),K(e.data,$)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&(0,o.defaults)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Y(e)}})),e.dataRange&&(e.visualMap=e.dataRange),(0,o.each)(X,(function(t){var n=e[t];n&&((0,o.isArray)(n)||(n=[n]),(0,o.each)(n,(function(e){Y(e)})))}))}var Q=n(81353);function ee(e){(0,o.each)(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(t.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=(0,Q.Tr)(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var te=n(97130),ne=n(43484),ie=n(47223),re=n(65859),oe=n(43359),ae=n(67329),se=n(6731),le=n(98565),ue=n(47658),ce=n(99076),he=n(57587),de=n(62825),pe=n(67570),fe=(0,u.$r)(),ge={itemStyle:(0,he.A)(de.L,!0),lineStyle:(0,he.A)(pe.m,!0)},ye={lineStyle:"stroke",itemStyle:"fill"};function me(e,t){return e.visualStyleMapper||ge[t]||(console.warn("Unknown style type '"+t+"'."),ge.itemStyle)}function ve(e,t){return e.visualDrawType||ye[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var xe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),a=me(e,i)(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=ve(e,i),u=a[l],c=(0,o.isFunction)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,o.isFunction)(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||(0,o.isFunction)(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=(0,o.extend)({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},_e=new c.A,be={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=me(e,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){_e.option=n[i];var s=r(_e),l=e.ensureUniqueItemVisual(t,"style");(0,o.extend)(l,s),_e.option.decal&&(e.setItemVisual(t,"decal",_e.option.decal),_e.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Se={performRawSeries:!0,overallReset:function(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),fe(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=fe(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=ve(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},we=n(27989),Me=n(5995),Ae=n(49252),Ie=Math.PI,Ce=n(228),Te=n(40909),De=function(){function e(e,t,n,i){this._stageTaskMap=(0,o.createHashMap)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=(0,o.createHashMap)();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;(0,o.each)(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{});(0,o.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}(0,o.each)(e,(function(e,o){if(!i.visualType||i.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){s(i,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(o,l){s(i,o)&&o.dirty();var u=a.getPerformArgs(o,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=(0,o.createHashMap)(),l=e.seriesType,u=e.getTargetSeries;function c(t){var o=t.uid,l=s.set(o,a&&a.get(o)||(0,Ce.U)({plan:Ne,reset:Re,count:ze}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,a=t.overallTask=t.overallTask||(0,Ce.U)({reset:Le});a.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.createHashMap)(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1;function p(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(d=!0,(0,Ce.U)({reset:ke,onDirty:Pe})));n.context={model:e,overallProgress:h},n.agent=a,n.__block=h,r._pipe(e,n)}(0,o.assert)(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(h=!1,(0,o.each)(n.getSeries(),p)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return(0,o.isFunction)(e)&&(e={overallReset:e,seriesType:Be(e)}),e.uid=(0,Te.$Q)("stageHandler"),t&&(e.visualType=t),e},e}();function Le(e){e.overallReset(e.ecModel,e.api,e.payload)}function ke(e){return e.overallProgress&&Oe}function Oe(){this.agent.dirty(),this.getDownstream().dirty()}function Pe(){this.agent&&this.agent.dirty()}function Ne(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Re(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=(0,u.qB)(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?(0,o.map)(t,(function(e,t){return Ve(t)})):Ee}var Ee=Ve(0);function Ve(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function ze(e){return e.data.count()}function Be(e){Ge=null;try{e(Fe,He)}catch(e){}return Ge}var Ge,Fe={},He={};function We(e,t){for(var n in t.prototype)e[n]=o.noop}We(Fe,I),We(He,T),Fe.eachSeriesByType=Fe.eachRawSeriesByType=function(e){Ge=e},Fe.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Ge=e.subType)};var Ye=De,Ue=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Xe={color:Ue,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ue]},Ze="#B9B8CE",je="#100C2A",qe=function(){return{axisLine:{lineStyle:{color:Ze}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},$e=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ke={darkMode:!0,color:$e,backgroundColor:je,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ze}},textStyle:{color:Ze},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ze}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ze},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ze}},timeline:{lineStyle:{color:Ze},label:{color:Ze},controlStyle:{color:Ze,borderColor:Ze}},calendar:{itemStyle:{color:je},dayLabel:{color:Ze},monthLabel:{color:Ze},yearLabel:{color:Ze}},timeAxis:qe(),logAxis:qe(),valueAxis:qe(),categoryAxis:qe(),line:{symbol:"circle"},graph:{color:$e},gauge:{title:{color:Ze},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ze},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ke.categoryAxis.splitLine.show=!1;var Je=Ke,Qe=n(48096),et=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(o.isString(e)){var r=(0,Qe.CC)(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tt=["symbol","symbolSize","symbolRotate","symbolOffset"],nt=tt.concat(["symbolKeepAspect"]),it={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<tt.length;s++){var l=tt[s],u=e.get(l);(0,o.isFunction)(u)?(a=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual((0,o.extend)({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=(0,o.keys)(r);return{dataEach:a?function(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,r[s](i,o))}}:null}}}}},rt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<nt.length;i++){var r=nt[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}:null}}},ot=n(92288),at=n(21900),st=n(67475),lt=n(12731),ut=n(47383),ct=n(92174),ht=n(78711),dt=new l.A,pt=n(11182),ft=n(93503),gt="5.5.1",yt={zrender:"5.6.0"},mt=2e3,vt=1e3,xt=2e3,_t=3e3,bt=4500,St={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:vt,PROGRESSIVE_LAYOUT:1100,GLOBAL:xt,CHART:_t,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:bt,ARIA:6e3,DECAL:7e3}},wt="__flagInMainProcess",Mt="__pendingUpdate",At="__needsUpdateStatus",It=/^[a-zA-Z0-9_]+$/,Ct="__connectUpdateStatus";function Tt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Lt(this,e,t);en(this.id)}}function Dt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Lt(this,e,t)}}function Lt(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[t].apply(e,n)}var kt,Ot,Pt,Nt,Rt,Et,Vt,zt,Bt,Gt,Ft,Ht,Wt,Yt,Ut,Xt,Zt,jt,qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(l.A),$t=qt.prototype;$t.on=Dt("on"),$t.off=Dt("off");var Kt=function(e){function t(t,n,i){var a=e.call(this,new et)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=sn[n]),a._dom=t,i.ssr&&r.registerSSRDataGetter((function(e){var t=(0,le.z)(e),n=t.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}}));var l=a._zr=r.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ce.nF)((0,o.bind)(l.flush,l),17),(n=(0,o.clone)(n))&&J(n,!0),a._theme=n,a._locale=(0,ut.A$)(i.locale||ut.Lv),a._coordSysMgr=new D.A;var u=a._api=Ut(a);function c(e,t){return e.__prio-t.__prio}return(0,s.A)(an,c),(0,s.A)(rn,c),a._scheduler=new Ye(a,u,rn,an),a._messageCenter=new qt,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),l.animation.on("frame",a._onframe,a),Gt(l,a),Ft(l,a),(0,o.setAsPrimitive)(a),a}return(0,i.C6)(t,e),t.prototype._onframe=function(){if(!this._disposed){jt(this);var e=this._scheduler;if(this[Mt]){var t=this[Mt].silent;this[wt]=!0;try{kt(this),Nt.update.call(this,null,this[Mt].updateParams)}catch(e){throw this[wt]=!1,this[Mt]=null,e}this._zr.flush(),this[wt]=!1,this[Mt]=null,zt.call(this,t),Bt.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Et(this,i),e.performVisualTasks(i),Yt(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.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(e,t,n){if(!this[wt])if(this._disposed)en(this.id);else{var i,r,a;if((0,o.isObject)(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,a=t.transition,t=t.notMerge),this[wt]=!0,!this._model||t){var s=new P(this._api),l=this._theme,u=this._model=new I;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:r},on);var c={seriesTransition:a,optionChanged:!0};if(n)this[Mt]={silent:i,updateParams:c},this[wt]=!1,this.getZr().wakeUp();else{try{kt(this),Nt.update.call(this,null,c)}catch(e){throw this[Mt]=null,this[wt]=!1,e}this._ssr||this._zr.flush(),this[Mt]=null,this[wt]=!1,zt.call(this,i),Bt.call(this,i)}}},t.prototype.setTheme=function(){(0,at.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||a.A.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return(0,o.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return(0,o.each)(i,(function(e){e.group.ignore=!1})),a}en(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(cn[n]){var l=s,u=s,c=-1/0,h=-1/0,d=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();(0,o.each)(un,(function(r,s){if(r.group===n){var p=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(e)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}}));var f=(c*=p)-(l*=p),g=(h*=p)-(u*=p),y=pt.yh.createCanvas(),m=r.init(y,{renderer:t?"svg":"canvas"});if(m.resize({width:f,height:g}),t){var v="";return(0,o.each)(d,(function(e){var t=e.left-l,n=e.top-u;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new re.A({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),(0,o.each)(d,(function(e){var t=new oe.Ay({style:{x:e.left*p-l,y:e.top*p-u,image:e.dom}});m.add(t)})),m.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}en(this.id)},t.prototype.convertToPixel=function(e,t){return Rt(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Rt(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=u._e(i,e);return(0,o.each)(r,(function(e,i){i.indexOf("Models")>=0&&(0,o.each)(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}}),this)}),this),!!n}en(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=u._e(n,e,{defaultMainType:"series"}),r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,ot.Ez)(r,o,t):(0,ot.rI)(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;(0,o.each)(Qt,(function(t){var n=function(n){var i,r=e.getModel(),a=n.target;if("globalout"===t?i={}:a&&(0,ct.R)(a,(function(e){var t=(0,le.z)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return i=(0,o.extend)({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),(0,o.each)(nn,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),(0,o.each)(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),(0,st.l)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&u.Bq(this.getDom(),pn,"");var e=this,t=e._api,n=e._model;(0,o.each)(e._componentsViews,(function(e){e.dispose(n,t)})),(0,o.each)(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete un[e.id]}},t.prototype.resize=function(e){if(!this[wt])if(this._disposed)en(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Mt]&&(null==i&&(i=this[Mt].silent),n=!0,this[Mt]=null),this[wt]=!0;try{n&&kt(this),Nt.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},e&&e.animation)})}catch(e){throw this[wt]=!1,e}this[wt]=!1,zt.call(this,i),Bt.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)en(this.id);else if((0,o.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ln[e]){var n=ln[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=(0,o.extend)({},e);return t.type=nn[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)en(this.id);else if((0,o.isObject)(t)||(t={silent:!!t}),tn[e.type]&&this._model)if(this[wt])this._pendingActions.push(e);else{var n=t.silent;Vt.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),zt.call(this,n),Bt.call(this,n)}},t.prototype.updateLabelLayout=function(){dt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)en(this.id);else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===ue.e3&&e.states.emphasis?t.push("emphasis"):e.hoverState===ue.zX&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return r(e,n,i,-1/0),!0}))}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function l(e,t){t.eachRendered((function(e){if(!ae.LR(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function c(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(ae.LR(e))return;if(e instanceof se.Ay&&(0,ue.fz)(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}kt=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Ot(e,!0),Ot(e,!1),t.plan()},Ot=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=(0,Qe.CC)(e.type);(c=new(t?ne.A.getClass(h.main,h.sub):ie.A.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}for(t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Pt=function(e,t,n,i,r){var a=e._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,h=n.excludeSeriesId;null!=h&&(c=(0,o.createHashMap)(),(0,o.each)(u.qB(h),(function(e){var t=u.vS(e,null);null!=t&&c.set(t,!0)}))),a&&a.eachComponent(l,(function(t){if(!c||null==c.get(t.id))if((0,ue.T$)(n))if(t instanceof te.A)n.type!==ue.h5||n.notBlur||t.get(["emphasis","disabled"])||(0,ue.lV)(t,n,e._api);else{var i=(0,ue.Tl)(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,a=i.dispatchers;n.type===ue.h5&&r&&!n.notBlur&&(0,ue.Du)(t.mainType,t.componentIndex,e._api),a&&(0,o.each)(a,(function(e){n.type===ue.h5?(0,ue.HY)(e):(0,ue.SD)(e)}))}else(0,ue.Lx)(n)&&t instanceof te.A&&((0,ue.t6)(t,n,e._api),(0,ue.jA)(t),Zt(e))}),e),a&&a.eachComponent(l,(function(t){c&&null!=c.get(t.id)||d(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else(0,o.each)([].concat(e._componentsViews).concat(e._chartsViews),d);function d(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}},Nt={prepareAndUpdate:function(e){kt(this),Nt.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),Et(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),Ht(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),dt.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var a=[];i.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,t);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var a=o.updateTransform(e,i,r,t);a&&a.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:s}),Yt(this,i,r,t,{},s),dt.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ie.A.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Ht(this,n,this._api,t,{}),dt.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),ie.A.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)})),dt.trigger("afterupdate",i,this._api))},updateLayout:function(e){Nt.update.call(this,e)}},Rt=function(e,t,n,i){if(e._disposed)en(e.id);else for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=u._e(o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(r=c[t](o,s,i)))return r}},Et=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},Vt=function(e,t){var n=this,i=this.getModel(),r=e.type,a=e.escapeConnect,s=tn[r],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&(0,Qe.CC)(c[0]);this[wt]=!0;var p=[e],f=!1;e.batch&&(f=!0,p=(0,o.map)(e.batch,(function(t){return(t=(0,o.defaults)((0,o.extend)({},t),e)).batch=null,t})));var g,y=[],m=(0,ue.Lx)(e),v=(0,ue.T$)(e);if(v&&(0,ue.qR)(this._api),(0,o.each)(p,(function(t){if((g=(g=s.action(t,n._model,n._api))||(0,o.extend)({},t)).type=l.event||g.type,y.push(g),v){var i=u.HB(e),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";Pt(n,h,t,a),Zt(n)}else m?(Pt(n,h,t,"series"),Zt(n)):d&&Pt(n,h,t,d.main,d.sub)})),"none"!==h&&!v&&!m&&!d)try{this[Mt]?(kt(this),Nt.update.call(this,e),this[Mt]=null):Nt[h].call(this,e)}catch(e){throw this[wt]=!1,e}if(g=f?{type:l.event||r,escapeConnect:a,batch:y}:y[0],this[wt]=!1,!t){var x=this._messageCenter;if(x.trigger(g.type,g),m){var _={type:"selectchanged",escapeConnect:a,selected:(0,ue.mc)(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};x.trigger(_.type,_)}}},zt=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Vt.call(this,n,e)}},Bt=function(e){!e&&this.trigger("updated")},Gt=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Mt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},Ft=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=(0,ct.R)(n,ue.u6);i&&((0,ue._m)(i,e,t._api),Zt(t))})).on("mouseout",(function(e){var n=e.target,i=(0,ct.R)(n,ue.u6);i&&((0,ue.Iz)(i,e,t._api),Zt(t))})).on("click",(function(e){var n=e.target,i=(0,ct.R)(n,(function(e){return null!=(0,le.z)(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=(0,le.z)(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},Ht=function(e,t,n,i,r){!function(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,a,l=t.concat(n);(0,s.A)(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),(0,o.each)(l,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}(t),Wt(e,t,n,i,r),(0,o.each)(e._chartsViews,(function(e){e.__alive=!1})),Yt(e,t,n,i,r),(0,o.each)(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},Wt=function(e,t,i,r,a,s){(0,o.each)(s||e._componentsViews,(function(e){var o=e.__model;l(0,e),e.render(o,t,i,r),n(o,e),c(o,e)}))},Yt=function(e,t,i,r,s,u){var h=e._scheduler;s=(0,o.extend)(s||{},{updatedSeries:t.getSeries()}),dt.trigger("series:beforeupdate",t,i,s);var d=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,r),l(0,n),u&&u.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),(0,ue.jA)(t)})),h.unfinished=d||h.unfinished,dt.trigger("series:layoutlabels",t,i,s),dt.trigger("series:transition",t,i,s),t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];n(t,i),c(t,i)})),function(e,t){var n=e._zr.storage,i=0;n.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),dt.trigger("series:afterupdate",t,i,s)},Zt=function(e){e[At]=!0,e.getZr().wakeUp()},jt=function(e){e[At]&&(e.getZr().storage.traverse((function(e){ae.LR(e)||t(e)})),e[At]=!1)},Ut=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){(0,ue.HY)(t,n),Zt(e)},n.prototype.leaveEmphasis=function(t,n){(0,ue.SD)(t,n),Zt(e)},n.prototype.enterBlur=function(t){(0,ue.QX)(t),Zt(e)},n.prototype.leaveBlur=function(t){(0,ue.JC)(t),Zt(e)},n.prototype.enterSelect=function(t){(0,ue.JI)(t),Zt(e)},n.prototype.leaveSelect=function(t){(0,ue.gd)(t),Zt(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(T))(e)},Xt=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][Ct]=t}(0,o.each)(nn,(function(n,i){e._messageCenter.on(i,(function(n){if(cn[e.group]&&0!==e[Ct]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];(0,o.each)(un,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,0),(0,o.each)(r,(function(e){1!==e[Ct]&&e.dispatchAction(i)})),t(r,2)}}))}))}}(),t}(l.A),Jt=Kt.prototype;Jt.on=Tt("on"),Jt.off=Tt("off"),Jt.one=function(e,t,n){var i=this;(0,at.aT)("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t&&t.apply&&t.apply(this,r),i.off(e,n)}),n)};var Qt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function en(e){}var tn={},nn={},rn=[],on=[],an=[],sn={},ln={},un={},cn={},hn=+new Date-0,dn=+new Date-0,pn="_echarts_instance_";function fn(e,t,n){var i=!(n&&n.ssr);if(i){var r=xn(e);if(r)return r}var o=new Kt(e,t,n);return o.id="ec_"+hn++,un[o.id]=o,i&&u.Bq(e,pn,o.id),Xt(o),dt.trigger("afterinit",o),o}function gn(e){if((0,o.isArray)(e)){var t=e;e=null,(0,o.each)(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+dn++,(0,o.each)(t,(function(t){t.group=e}))}return cn[e]=!0,e}function yn(e){cn[e]=!1}var mn=yn;function vn(e){(0,o.isString)(e)?e=un[e]:e instanceof Kt||(e=xn(e)),e instanceof Kt&&!e.isDisposed()&&e.dispose()}function xn(e){return un[u.D$(e,pn)]}function _n(e){return un[e]}function bn(e,t){sn[e]=t}function Sn(e){(0,o.indexOf)(on,e)<0&&on.push(e)}function wn(e,t){Pn(rn,e,t,mt)}function Mn(e){In("afterinit",e)}function An(e){In("afterupdate",e)}function In(e,t){dt.on(e,t)}function Cn(e,t,n){(0,o.isFunction)(t)&&(n=t,t="");var i=(0,o.isObject)(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,nn[t]||((0,o.assert)(It.test(i)&&It.test(t)),tn[i]||(tn[i]={action:n,actionInfo:e}),nn[t]=i)}function Tn(e,t){D.A.register(e,t)}function Dn(e){var t=D.A.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Ln(e,t){Pn(an,e,t,vt,"layout")}function kn(e,t){Pn(an,e,t,_t,"visual")}var On=[];function Pn(e,t,n,i,r){if(((0,o.isFunction)(t)||(0,o.isObject)(t))&&(n=t,t=i),!((0,o.indexOf)(On,n)>=0)){On.push(n);var a=Ye.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function Nn(e,t){ln[e]=t}function Rn(e){(0,pt.Gs)({createCanvas:e})}function En(e,t,n){var i=(0,ft.v)("registerMap");i&&i(e,t,n)}function Vn(e){var t=(0,ft.v)("getMap");return t&&t(e)}var zn=lt.v5;kn(xt,xe),kn(bt,be),kn(bt,Se),kn(xt,it),kn(bt,rt),kn(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=(0,ht.w)(n,t))}));var r=i.getVisual("decal");r&&(i.getVisual("style").decal=(0,ht.w)(r,t))}}))})),Sn(J),wn(900,(function(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(ee)})),Nn("default",(function(e,t){t=t||{},o.defaults(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 we.A,i=new re.A({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,a=new Me.Ay({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new re.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&((r=new Ae.A({shape:{startAngle:-Ie/2,endAngle:-Ie/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Ie/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ie/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Cn({type:ue.h5,event:ue.h5,update:ue.h5},o.noop),Cn({type:ue.PW,event:ue.PW,update:ue.PW},o.noop),Cn({type:ue.Lv,event:ue.Lv,update:ue.Lv},o.noop),Cn({type:ue.U2,event:ue.U2,update:ue.U2},o.noop),Cn({type:ue.Q6,event:ue.Q6,update:ue.Q6},o.noop),bn("light",Xe),bn("dark",Je);var Bn={}},93503:function(e,t,n){n.d(t,{m:function(){return r},v:function(){return o}});var i={};function r(e,t){i[e]=t}function o(e){return i[e]}},47383:function(e,t,n){n.d(t,{Lv:function(){return h},A$:function(){return p},pr:function(){return g},A4:function(){return f},E:function(){return d}});var i=n(99713),r=n(45378),o=n(44397),a="ZH",s="EN",l=s,u={},c={},h=r.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||l).toUpperCase().indexOf(a)>-1?a:l;function d(e,t){e=e.toUpperCase(),c[e]=new i.A(t),u[e]=t}function p(e){if((0,o.isString)(e)){var t=u[e.toUpperCase()]||{};return e===a||e===s?(0,o.clone)(t):(0,o.merge)((0,o.clone)(t),(0,o.clone)(u[l]),!1)}return(0,o.merge)((0,o.clone)(e),(0,o.clone)(u[l]),!1)}function f(e){return c[e]}function g(){return c[l]}d(s,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),d(a,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}})},228:function(e,t,n){n.d(t,{U:function(){return r}});var i=n(44397);function r(e){return new o(e)}var o=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(e&&e.modBy),c=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p<f)){var g=this._progress;if((0,i.isArray)(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){a.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:a.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),(0,i.isArray)(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),a=function(){var e,t,n,i,r,o={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}()},30756:function(e,t,n){function i(e){return null==e?0:e.length||1}function r(e){return e}n(44114);var o=function(){function e(e,t,n,i,o,a){this._old=e,this._new=t,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,this._diffModeMultiple="multiple"===a}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=r[a],l=n[s],u=i(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},o=[],a=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],c=r[l],h=i(u),d=i(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),r[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t[r],a=i(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var o=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[r](e[a],a);if(o||(n[a]=s),t){var l=t[s],u=i(l);0===u?(t[s]=a,o&&n.push(s)):1===u?t[s]=[l,a]:l.push(a)}}},e}();t.A=o},88467:function(e,t,n){n.d(t,{A_:function(){return c}}),n(44114),n(16573),n(78100),n(77936),n(37467),n(44732),n(79577);var i,r=n(44397),o=n(36842),a=n(95409),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,d={float:h,int:c,ordinal:Array,number:Array,time:h};function p(e){return e>65535?l:u}function f(e,t,n,i,r){var o=d[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var g=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[],(0,a.O0)(o),this._dimensions=(0,r.map)(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new d[t||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=[1/0,-1/0]);for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<o;u++)f(n,u,(g=r[u]).type,l,!0);for(var c=[],h=s;h<l;h++)for(var d=h-s,p=0;p<o;p++){var g=r[p],y=i.arrayRows.call(this,e[d]||c,g.property,d,p);n[p][h]=y;var m=a[p];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,r.map)(a,(function(e){return e.property})),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=[1/0,-1/0]),f(o,c,h.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,o,l);else for(var d=[],p=e;p<t;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var y=o[g],m=this._dimValueGetter(d,u[g],p,g);y[p]=m;var v=l[g];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var r=this.get(e,n);isNaN(r)||(t+=r)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else for(e=new(n=p(this._rawCount))(this.count()),r=0;r<e.length;r++)e[r]=r;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(p(n._rawCount))(i),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=t(c);else if(1===a)h=t(u[l][d],c);else{for(var f=0;f<a;f++)o[f]=u[e[f]][d];o[f]=c,h=t.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=(0,r.keys)(e),o=i.length;if(!o)return this;var a=t.count(),s=new(p(t._rawCount))(a),l=0,u=i[0],c=e[u][0],h=e[u][1],d=t._chunks,f=!1;if(!t._indices){var g=0;if(1===o){for(var y=d[i[0]],m=0;m<n;m++)((b=y[m])>=c&&b<=h||isNaN(b))&&(s[l++]=g),g++;f=!0}else if(2===o){y=d[i[0]];var v=d[i[1]],x=e[i[1]][0],_=e[i[1]][1];for(m=0;m<n;m++){var b=y[m],S=v[m];(b>=c&&b<=h||isNaN(b))&&(S>=x&&S<=_||isNaN(S))&&(s[l++]=g),g++}f=!0}}if(!f)if(1===o)for(m=0;m<a;m++){var w=t.getRawIndex(m);((b=d[i[0]][w])>=c&&b<=h||isNaN(b))&&(s[l++]=w)}else for(m=0;m<a;m++){for(var M=!0,A=(w=t.getRawIndex(m),0);A<o;A++){var I=i[A];((b=d[I][w])<e[I][0]||b>e[I][1])&&(M=!1)}M&&(s[l++]=t.getRawIndex(m))}return l<a&&(t._indices=s),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)s[d]=i[t[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(r[0]=p,p=r),u=0;u<p.length;u++){var f=t[u],g=p[u],y=l[f],m=i[f];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),h=new(p(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),g=Math.min(d+2*u,s),y=(g+f)/2,m=0,v=f;v<g;v++){var x=a[I=this.getRawIndex(v)];isNaN(x)||(m+=x)}m/=g-f;var _=d,b=Math.min(d+u,s),S=d-1,w=a[c];n=-1,r=_;var M=-1,A=0;for(v=_;v<b;v++){var I;x=a[I=this.getRawIndex(v)],isNaN(x)?(A++,M<0&&(M=I)):(i=Math.abs((S-y)*(x-w)-(S-v)*(m-w)))>n&&(n=i,r=I)}A>0&&A<b-_&&(h[l++]=Math.min(M,r),r=Math.max(M,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=[1/0,-1/0],h=new(p(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var g=0;g<s;g++){var y=this.getRawIndex(f+g);a[g]=l[y]}var m=n(a),v=this.getRawIndex(Math.min(f+i(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i,o,a=new e,s=this._chunks,l=t&&(0,r.reduce)(t,(function(e,t){return e[t]=!0,e}),{});if(l)for(var u=0;u<s.length;u++)a._chunks[u]=l[u]?(o=void 0,(o=(i=s[u]).constructor)===Array?i.slice():new o(i)):s[u];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=(0,r.clone)(this._extent),e._rawExtent=(0,r.clone)(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return(0,o.Pn)(e[i],this._dimensions[i])}i={arrayRows:e,objectRows:function(e,t,n,i){return(0,o.Pn)(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();t.Ay=g},47686:function(e,t,n){var i=n(44397),r=0,o=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++r}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&(0,i.map)(r,a);return new e({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!(0,i.isString)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},e}();function a(e){return(0,i.isObject)(e)&&null!=e.value?e.value:e+""}t.A=o},70213:function(e,t,n){n(44114),n(16573),n(78100),n(77936),n(37467),n(44732),n(79577);var i,r,o,a,s,l,u,c=n(44397),h=n(99713),d=n(30756),p=n(9678),f=n(58803),g=n(6198),y=n(7019),m=n(23891),v=n(98565),x=n(95409),_=n(88467),b=n(49585),S=c.isObject,w=c.map,M="undefined"==typeof Int32Array?Array:Int32Array,A=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],I=["_approximateExtent"],C=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;(0,b.fg)(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],d=c.isString(h)?new g.A({name:h}):h instanceof g.A?h:new g.A(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var y=this._dimIdxToName=c.createHashMap();c.each(o,(function(e){y.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(c.isNumber(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof _.Ay&&(i=e),!i){var o=this.dimensions,a=(0,x.tP)(e)||c.isArrayLike(e)?new p.d1(e,o.length):e;i=new _.Ay;var s=w(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(0,f.l)(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&u(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==y.XO&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===y.mK&&!n.pure)for(var a=[],s=e;s<t;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&(0,m.zu)(l)&&(this.hasItemOption=!0),l){var c=l.name;null==r[s]&&null!=c&&(r[s]=(0,m.vS)(c,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=(0,m.vS)(h,null))}}if(this._shouldMakeIdFromName())for(s=e;s<t;s++)u(this,s);i(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){S(e)?c.extend(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return r(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return c.isArray(e)?i.getValues(w(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){c.isFunction(e)&&(n=t,t=e,e=[]);var i=n||this,r=w(a(e),this._getStoreDimIndex,this);this._store.each(r,i?c.bind(t,i):t)},e.prototype.filterSelf=function(e,t,n){c.isFunction(e)&&(n=t,t=e,e=[]);var i=n||this,r=w(a(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?c.bind(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=c.keys(e),r=[];return c.each(i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){c.isFunction(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=w(a(e),this._getStoreDimIndex,this),s=l(this);return s._store=this._store.map(o,r?c.bind(t,r):t),s},e.prototype.modify=function(e,t,n,i){var r=n||i||this,o=w(a(e),this._getStoreDimIndex,this);this._store.modify(o,r?c.bind(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=l(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new h.A(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new d.A(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return r(e,t)}),(function(e){return r(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},S(e)?c.extend(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),c.isArray(r)?r=r.slice():S(r)&&(r=c.extend({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,S(t)?c.extend(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){S(e)?c.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?c.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;(0,v.a)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){c.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),s(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(c.slice(arguments)))})},e.internalField=(i=function(e){var t=e._invertedIndicesMap;c.each(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new M(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},o=function(e,t,n){return(0,m.vS)(e._getCategory(t,n),null)},r=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=o(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},a=function(e){return c.isArray(e)||(e=null!=e?[e]:[]),e},l=function(t){var n=new e(t._schema?t._schema:w(t.dimensions,t._getDimInfo,t),t.hostModel);return s(n,t),n},s=function(e,t){c.each(A.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,c.each(I,(function(n){e[n]=c.clone(t[n])})),e._calculationInfo=c.extend({},t._calculationInfo)},void(u=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,a=e._idDimIdx,s=n[t],l=i[t];if(null==s&&null!=r&&(n[t]=s=o(e,r,t)),null==l&&null!=a&&(i[t]=l=o(e,a,t)),null==l&&null!=s){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[t]=l}})),e}();t.A=C},6198:function(e,t,n){var i=n(44397);t.A=function(e){this.otherDims={},null!=e&&i.extend(this,e)}},95409:function(e,t,n){n.d(t,{AF:function(){return c},BE:function(){return h},O0:function(){return g},gV:function(){return u},tP:function(){return l},wZ:function(){return d}}),n(44114);var i=n(44397),r=n(7019),o=n(23891),a=n(15334),s=function(e){this.data=e.data||(e.sourceFormat===r.t1?{}:[]),this.sourceFormat=e.sourceFormat||r.vm,this.seriesLayoutBy=e.seriesLayoutBy||r.i_,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(e){return e instanceof s}function u(e,t,n){n=n||d(e);var a=t.seriesLayoutBy,l=function(e,t,n,a,s){var l,u;if(!e)return{dimensionsDefine:p(s),startIndex:u,dimensionsDetectedCount:l};if(t===r.Km){var c=e;"auto"===a||null==a?f((function(e){null!=e&&"-"!==e&&((0,i.isString)(e)?null==u&&(u=1):u=0)}),n,c,10):u=(0,i.isNumber)(a)?a:a?1:0,s||1!==u||(s=[],f((function(e,t){s[t]=null!=e?e+"":""}),n,c,1/0)),l=s?s.length:n===r.oC?c.length:c[0]?c[0].length:null}else if(t===r.Wk)s||(s=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return(0,i.keys)(t)}(e));else if(t===r.t1)s||(s=[],(0,i.each)(e,(function(e,t){s.push(t)})));else if(t===r.mK){var h=(0,o.vj)(e[0]);l=(0,i.isArray)(h)&&h.length||1}else r.XO;return{startIndex:u,dimensionsDefine:p(s),dimensionsDetectedCount:l}}(e,n,a,t.sourceHeader,t.dimensions);return new s({data:e,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.clone)(t)})}function c(e){return new s({data:e,sourceFormat:(0,i.isTypedArray)(e)?r.XO:r.mK})}function h(e){return new s({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:(0,i.clone)(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function d(e){var t=r.vm;if((0,i.isTypedArray)(e))t=r.XO;else if((0,i.isArray)(e)){0===e.length&&(t=r.Km);for(var n=0,o=e.length;n<o;n++){var a=e[n];if(null!=a){if((0,i.isArray)(a)||(0,i.isTypedArray)(a)){t=r.Km;break}if((0,i.isObject)(a)){t=r.Wk;break}}}}else if((0,i.isObject)(e))for(var s in e)if((0,i.hasOwn)(e,s)&&(0,i.isArrayLike)(e[s])){t=r.t1;break}return t}function p(e){if(e){var t=(0,i.createHashMap)();return(0,i.map)(e,(function(e,n){var r={name:(e=(0,i.isObject)(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r}))}}function f(e,t,n,i){if(t===r.oC)for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<i;o++)e(a[o],o)}}function g(e){var t=e.sourceFormat;return t===r.Wk||t===r.t1}},49585:function(e,t,n){n.d(t,{Tc:function(){return l},eS:function(){return d},fg:function(){return u},io:function(){return c},j_:function(){return h}}),n(44114);var i=n(44397),r=n(23891),o=n(95409),a=(0,r.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return(0,i.retrieve2)(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=(0,o.O0)(this.source),n=!d(e),i="",r=[],a=0,l=0;a<e;a++){var u=void 0,c=void 0,h=void 0,p=this.dimensions[l];if(p&&p.storeDimIndex===a)u=t?p.name:null,c=p.type,h=p.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(u=t?f.name:null,c=f.type)}r.push({property:u,type:c,ordinalMeta:h}),!t||null==u||p&&p.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=s[c]||"f",h&&(i+=h.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function u(e){return e instanceof l}function c(e){for(var t=(0,i.createHashMap)(),n=0;n<(e||[]).length;n++){var r=e[n],o=(0,i.isObject)(r)?r.name:r;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function h(e){var t=a(e);return t.dimNameMap||(t.dimNameMap=c(e.dimensionsDefine))}function d(e){return e>30}},34122:function(e,t,n){n.d(t,{A:function(){return d},M:function(){return h}}),n(44114);var i=n(7019),r=n(6198),o=n(44397),a=n(95409),s=n(88467),l=n(23891),u=n(15334),c=n(49585);function h(e,t){return d(e,t).dimensions}function d(e,t){(0,a.tP)(e)||(e=(0,a.AF)(e));var n=(t=t||{}).coordDimensions||[],h=t.dimensionsDefine||e.dimensionsDefine||[],d=(0,o.createHashMap)(),f=[],g=function(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return(0,o.each)(t,(function(e){var t;(0,o.isObject)(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}(e,n,h,t.dimensionsCount),y=t.canOmitUnusedDimensions&&(0,c.eS)(g),m=h===e.dimensionsDefine,v=m?(0,c.j_)(e):(0,c.io)(h),x=t.encodeDefine;!x&&t.encodeDefaulter&&(x=t.encodeDefaulter(e,g));for(var _=(0,o.createHashMap)(x),b=new s.A_(g),S=0;S<b.length;S++)b[S]=-1;function w(e){var t=b[e];if(t<0){var n=h[e],i=(0,o.isObject)(n)?n:{name:n},a=new r.A,s=i.name;null!=s&&null!=v.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=f.length;return b[e]=l,a.storeDimIndex=e,f.push(a),a}return f[t]}if(!y)for(S=0;S<g;S++)w(S);_.each((function(e,t){var n=(0,l.qB)(e).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)_.set(t,!1);else{var i=_.set(t,[]);(0,o.each)(n,(function(e,n){var r=(0,o.isString)(e)?v.get(e):e;null!=r&&r<g&&(i[n]=r,A(w(r),t,n))}))}}));var M=0;function A(e,t,n){null!=i.Pe.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,d.set(t,!0))}(0,o.each)(n,(function(e){var t,n,i,r;if((0,o.isString)(e))t=e,r={};else{t=(r=e).name;var a=r.ordinalMeta;r.ordinalMeta=null,(r=(0,o.extend)({},r)).ordinalMeta=a,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=_.get(t);if(!1!==s){if(!(s=(0,l.qB)(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;M<g&&null!=w(M).coordDim;)M++;M<g&&s.push(M++)}(0,o.each)(s,(function(e,a){var s=w(e);if(m&&null!=r.type&&(s.type=r.type),A((0,o.defaults)(s,r),t,a),null==s.name&&n){var l=n[a];!(0,o.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&(0,o.defaults)(s.otherDims,i)}))}}));var I=t.generateCoord,C=t.generateCoordCount,T=null!=C;C=I?C||1:0;var D=I||"value";function L(e){null==e.name&&(e.name=e.coordDim)}if(y)(0,o.each)(f,(function(e){L(e)})),f.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var k=0;k<g;k++){var O=w(k);null==O.coordDim&&(O.coordDim=p(D,d,T),O.coordDimIndex=0,(!I||C<=0)&&(O.isExtraCoord=!0),C--),L(O),null!=O.type||(0,u.PU)(e,k)!==u.sc.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return function(e){for(var t=(0,o.createHashMap)(),n=0;n<e.length;n++){var i=e[n],r=i.name,a=t.get(r)||0;a>0&&(i.name=r+(a-1)),a++,t.set(r,a)}}(f),new c.Tc({source:e,dimensions:f,fullDimensionCount:g,dimensionOmitted:y})}function p(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}},9678:function(e,t,n){n.d(t,{Kd:function(){return v},QE:function(){return w},d1:function(){return d},sC:function(){return g},uQ:function(){return b}}),n(44114);var i,r,o,a,s,l=n(44397),u=n(23891),c=n(95409),h=n(7019),d=function(){function e(e,t){var n=(0,c.tP)(e)?e:(0,c.AF)(e);this._source=n;var i=this._data=n.data;n.sourceFormat===h.XO&&(this._offset=0,this._dimSize=t,this._data=i),s(this,i,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;s=function(e,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,p=a[S(s,u)];if((0,l.extend)(e,p),s===h.XO)e.getItem=t,e.count=i,e.fillStorage=n;else{var f=g(s,u);e.getItem=(0,l.bind)(f,null,r,c,d);var y=v(s,u);e.count=(0,l.bind)(y,null,r,c,d)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[a],d=0;d<c;d++){var p=r[d*o+a];h[e+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[h.Km+"_"+h.i_]={pure:!0,appendData:r},e[h.Km+"_"+h.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[h.Wk]={pure:!0,appendData:r},e[h.t1]={pure:!0,appendData:function(e){var t=this._data;(0,l.each)(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[h.mK]={appendData:r},e[h.XO]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},a=e}(),e}(),p=function(e,t,n,i){return e[i]},f=((i={})[h.Km+"_"+h.i_]=function(e,t,n,i){return e[i+t]},i[h.Km+"_"+h.oC]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[h.Wk]=p,i[h.t1]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[i]:null}return o},i[h.mK]=p,i);function g(e,t){return f[S(e,t)]}var y=function(e,t,n){return e.length},m=((r={})[h.Km+"_"+h.i_]=function(e,t,n){return Math.max(0,e.length-t)},r[h.Km+"_"+h.oC]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},r[h.Wk]=y,r[h.t1]=function(e,t,n){var i=e[n[0].name];return i?i.length:0},r[h.mK]=y,r);function v(e,t){return m[S(e,t)]}var x=function(e,t,n){return e[t]},_=((o={})[h.Km]=x,o[h.Wk]=function(e,t,n){return e[n]},o[h.t1]=x,o[h.mK]=function(e,t,n){var i=(0,u.vj)(e);return i instanceof Array?i[t]:i},o[h.XO]=x,o);function b(e){return _[e]}function S(e,t){return e===h.Km?e+"_"+t:e}function w(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return b(o)(i,a,s)}var l=i;return o===h.mK&&(l=(0,u.vj)(i)),l}}}},45180:function(e,t,n){n.d(t,{iJ:function(){return o},me:function(){return s},sJ:function(){return a}}),n(44114);var i=n(44397),r=n(49585);function o(e,t,n){var o,a,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(e){return!(0,r.fg)(e.schema)}(t)?(a=t.schema,o=a.dimensions,s=t.store):o=t;var c,h,d,p,f=!(!e||!e.get("stack"));if((0,i.each)(o,(function(e,t){(0,i.isString)(e)&&(o[t]=e={name:e}),f&&!e.isExtraCoord&&(l||c||!e.ordinalMeta||(c=e),h||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(h=e))})),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,y=h.type,m=0;(0,i.each)(o,(function(e){e.coordDim===g&&m++}));var v={name:d,coordDim:g,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},x={name:p,coordDim:p,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,y),x.storeDimIndex=s.ensureCalculationDimension(d,y)),a.appendCalculationDimension(v),a.appendCalculationDimension(x)):(o.push(v),o.push(x))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:d}}function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function s(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}},36842:function(e,t,n){n.d(t,{Fl:function(){return h},Pn:function(){return a},zC:function(){return l},zs:function(){return p}});var i=n(81353),r=n(44397),o=n(21900);function a(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||(0,r.isNumber)(e)||null==e||"-"===e||(e=+(0,i._U)(e)),null==e||""===e?NaN:Number(e))}var s=(0,r.createHashMap)({number:function(e){return parseFloat(e)},time:function(e){return+(0,i._U)(e)},trim:function(e){return(0,r.isString)(e)?(0,r.trim)(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},c=function(){function e(e,t){(0,r.isNumber)(t)||(0,o.$8)(""),this._opFn=u[e],this._rvalFloat=(0,i.Sm)(t)}return e.prototype.evaluate=function(e){return(0,r.isNumber)(e)?this._opFn(e,this._rvalFloat):this._opFn((0,i.Sm)(e),this._rvalFloat)},e}(),h=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=(0,r.isNumber)(e)?e:(0,i.Sm)(e),o=(0,r.isNumber)(t)?t:(0,i.Sm)(t),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.isString)(e),u=(0,r.isString)(t);l&&(n=u?e:0),u&&(o=l?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),d=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=(0,i.Sm)(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=(0,i.Sm)(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function p(e,t){return"eq"===e||"ne"===e?new d("eq"===e,t):(0,r.hasOwn)(u,e)?new c(e,t):null}},58803:function(e,t,n){n.d(t,{B:function(){return l},l:function(){return a}}),n(44114);var i=n(44397),r=n(7019),o=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function a(e,t){var n={},a=n.encode={},l=(0,i.createHashMap)(),u=[],c=[],h={};(0,i.each)(e.dimensions,(function(t){var n,i=e.getDimensionInfo(t),o=i.coordDim;if(o){var d=i.coordDimIndex;s(a,o)[d]=t,i.isExtraCoord||(l.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(u[0]=t),s(h,o)[d]=e.getDimensionIndex(i.name)),i.defaultTooltip&&c.push(t)}r.Pe.each((function(e,t){var n=s(a,t),r=i.otherDims[t];null!=r&&!1!==r&&(n[r]=i.name)}))}));var d=[],p={};l.each((function(e,t){var n=a[t];p[t]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,i.map)(d,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=p;var f=a.label;f&&f.length&&(u=f.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=u.slice()),a.defaultedLabel=u,a.defaultedTooltip=c,n.userOutput=new o(h,t),n}function s(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function l(e){return"category"===e?"ordinal":"time"===e?"time":"float"}},15334:function(e,t,n){n.d(t,{G9:function(){return h},Gt:function(){return d},OC:function(){return u},PU:function(){return p},ln:function(){return c},ps:function(){return l},sc:function(){return a}}),n(44114);var i=n(23891),r=n(44397),o=n(7019),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(e){s(e).datasetMap=(0,r.createHashMap)()}function u(e,t,n){var i={},o=h(t);if(!o||!e)return i;var a,l,u=[],c=[],d=t.ecModel,p=s(d).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),(0,r.each)(e,(function(t,n){var o=(0,r.isObject)(t)?t:e[n]={name:t};"ordinal"===o.type&&null==a&&(a=n,l=m(o)),i[o.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function y(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function m(e){var t=e.dimsDef;return t?t.length:1}return(0,r.each)(e,(function(e,t){var n=e.name,r=m(e);if(null==a){var o=g.valueWayDim;y(i[n],o,r),y(c,o,r),g.valueWayDim+=r}else a===t?(y(i[n],0,r),y(u,0,r)):(o=g.categoryWayDim,y(i[n],o,r),y(c,o,r),g.categoryWayDim+=r)})),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(e,t,n){var i={};if(!h(e))return i;var s,l=t.sourceFormat,u=t.dimensionsDefine;l!==o.Wk&&l!==o.t1||(0,r.each)(u,(function(e,t){"name"===((0,r.isObject)(e)?e.name:e)&&(s=t)}));var c=function(){for(var e={},i={},r=[],o=0,c=Math.min(5,n);o<c;o++){var h=f(t.data,l,t.seriesLayoutBy,u,t.startIndex,o);r.push(h);var d=h===a.Not;if(d&&null==e.v&&o!==s&&(e.v=o),(null==e.n||e.n===e.v||!d&&r[e.n]===a.Not)&&(e.n=o),p(e)&&r[e.n]!==a.Not)return e;d||(h===a.Might&&null==i.v&&o!==s&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(i)?i:null}();if(c){i.value=[c.v];var d=null!=s?s:c.n;i.itemName=[d],i.seriesName=[d]}return i}function h(e){if(!e.get("data",!0))return(0,i.JO)(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},i.US).models[0]}function d(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?(0,i.JO)(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},i.US).models:[]}function p(e,t){return f(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function f(e,t,n,s,l,u){var c,h,d;if((0,r.isTypedArray)(e))return a.Not;if(s){var p=s[u];(0,r.isObject)(p)?(h=p.name,d=p.type):(0,r.isString)(p)&&(h=p)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(t===o.Km){var f=e;if(n===o.oC){for(var g=f[u],y=0;y<(g||[]).length&&y<5;y++)if(null!=(c=w(g[l+y])))return c}else for(y=0;y<f.length&&y<5;y++){var m=f[l+y];if(m&&null!=(c=w(m[u])))return c}}else if(t===o.Wk){var v=e;if(!h)return a.Not;for(y=0;y<v.length&&y<5;y++)if((b=v[y])&&null!=(c=w(b[h])))return c}else if(t===o.t1){var x=e;if(!h)return a.Not;if(!(g=x[h])||(0,r.isTypedArray)(g))return a.Not;for(y=0;y<g.length&&y<5;y++)if(null!=(c=w(g[y])))return c}else if(t===o.mK){var _=e;for(y=0;y<_.length&&y<5;y++){var b=_[y],S=(0,i.vj)(b);if(!(0,r.isArray)(S))return a.Not;if(null!=(c=w(S[u])))return c}}function w(e){var t=(0,r.isString)(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?a.Might:a.Not:t&&"-"!==e?a.Must:void 0}return a.Not}},49595:function(e,t,n){n.d(t,{A:function(){return h},R:function(){return c}}),n(44114);var i=n(44397),r=n(95409),o=n(7019),a=n(15334),s=n(12731),l=n(88467),u=n(9678),c=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var p=a[0];p.prepareSource(),u=(h=p.getSource()).data,c=h.sourceFormat,t=[p._getVersionSign()]}else u=l.get("data",!0),c=(0,i.isTypedArray)(u)?o.XO:o.mK,t=[];var f=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},y=(0,i.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,m=(0,i.retrieve2)(f.sourceHeader,g.sourceHeader),v=(0,i.retrieve2)(f.dimensions,g.dimensions);e=y!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||v?[(0,r.gV)(u,{seriesLayoutBy:y,sourceHeader:m,dimensions:v},c)]:[]}else{var x=n;if(s){var _=this._applyTransform(a);e=_.sourceList,t=_.upstreamSignList}else{var b=x.get("source",!0);e=[(0,r.gV)(b,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);null!=a&&1!==e.length&&p("");var l=[],u=[];return(0,i.each)(e,(function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||p(""),l.push(t),u.push(e._getVersionSign())})),o?t=(0,s.py)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(t=[(0,r.BE)(l[0])]),{sourceList:t,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new l.Ay).initData(new u.d1(t,e.length),e),r[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(d(e)){var t=(0,a.G9)(e);return t?[t.getSourceManager()]:[]}return(0,i.map)((0,a.Gt)(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(d(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function h(e){e.option.transform&&(0,i.setAsPrimitive)(e.option.transform)}function d(e){return"series"===e.mainType}function p(e){throw new Error(e)}},12731:function(e,t,n){n.d(t,{py:function(){return m},v5:function(){return y}}),n(44114);var i=n(7019),r=n(23891),o=n(44397),a=n(9678),s=n(36842),l=n(21900),u=n(95409),c=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return(0,s.Pn)(e,t)},e}();function h(e){return x(e.sourceFormat)||(0,l.$8)(""),e.data}function d(e){var t=e.sourceFormat,n=e.data;if(x(t)||(0,l.$8)(""),t===i.Km){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(t===i.Wk){for(r=[],a=0,s=n.length;a<s;a++)r.push((0,o.extend)({},n[a]));return r}}function p(e,t,n){if(null!=n)return(0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(t,n)?e[n]:(0,o.hasOwn)(t,n)?t[n]:void 0}function f(e){return(0,o.clone)(e)}var g=(0,o.createHashMap)();function y(e){var t=(e=(0,o.clone)(e)).type;t||(0,l.$8)("");var n=t.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(t=n[1],i=!0),e.__isBuiltIn=i,g.set(t,e)}function m(e,t,n){var i=(0,r.qB)(e),o=i.length;o||(0,l.$8)("");for(var a=0,s=o;a<s;a++)t=v(i[a],t),a!==s-1&&(t.length=Math.max(t.length,1));return t}function v(e,t,n,s){t.length||(0,l.$8)(""),(0,o.isObject)(e)||(0,l.$8)("");var y=e.type,m=g.get(y);m||(0,l.$8)("");var v=(0,o.map)(t,(function(e){return function(e,t){var n=new c,r=e.data,s=n.sourceFormat=e.sourceFormat,u=e.startIndex;e.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],y={},m=e.dimensionsDefine;if(m)(0,o.each)(m,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};g.push(i),null!=n&&((0,o.hasOwn)(y,n)&&(0,l.$8)(""),y[n]=i)}));else for(var v=0;v<e.dimensionsDetectedCount;v++)g.push({index:v});var x=(0,a.sC)(s,i.i_);t.__isBuiltIn&&(n.getRawDataItem=function(e){return x(r,u,g,e)},n.getRawData=(0,o.bind)(h,null,e)),n.cloneRawData=(0,o.bind)(d,null,e);var _=(0,a.Kd)(s,i.i_);n.count=(0,o.bind)(_,null,r,u,g);var b=(0,a.uQ)(s);n.retrieveValue=function(e,t){var n=x(r,u,g,e);return S(n,t)};var S=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=g[t];return n?b(e,t,n.name):void 0}};return n.getDimensionInfo=(0,o.bind)(p,null,g,y),n.cloneAllDimensionInfo=(0,o.bind)(f,null,g),n}(e,m)})),_=(0,r.qB)(m.transform({upstream:v[0],upstreamList:v,config:(0,o.clone)(e.config)}));return(0,o.map)(_,(function(e,n){var r;(0,o.isObject)(e)||(0,l.$8)(""),e.data||(0,l.$8)(""),x((0,u.wZ)(e.data))||(0,l.$8)("");var a=t[0];if(a&&0===n&&!e.dimensions){var s=a.startIndex;s&&(e.data=a.data.slice(0,s).concat(e.data)),r={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:e.dimensions};return(0,u.gV)(e.data,r,null)}))}function x(e){return e===i.Km||e===i.Wk}},73800:function(e,t,n){n.d(t,{_0:function(){return pe.A},OZ:function(){return p.A},jT:function(){return c.A},bR:function(){return h.A},B8:function(){return f.A},Kx:function(){return M.A},FQ:function(){return u.FQ},rP:function(){return d.A},yW:function(){return x},Ng:function(){return u.Ng},p5:function(){return u.p5},El:function(){return u.El},zm:function(){return u.zm},Zf:function(){return u.Zf},AS:function(){return u.AS},_K:function(){return de.A},yX:function(){return ve},rt:function(){return ge},NO:function(){return ye},NA:function(){return me},GP:function(){return s},Bo:function(){return u.Bo},FP:function(){return u.FP},aQ:function(){return u.aQ},ZB:function(){return u.ZB},fA:function(){return a},dw:function(){return i},Ts:function(){return u.Ts},UU:function(){return fe.Xi},UP:function(){return y},ai:function(){return r},l3:function(){return B.A},zI:function(){return B.A},OH:function(){return u.OH},pX:function(){return u.pX},Oh:function(){return u.Oh},Ej:function(){return u.Ej},E:function(){return u.E},mz:function(){return u.mz},cf:function(){return u.cf},tb:function(){return u.tb},lP:function(){return u.lP},qg:function(){return u.qg},bf:function(){return u.bf},iY:function(){return u.iY},xV:function(){return u.xV},AF:function(){return u.AF},vV:function(){return u.vV},Gs:function(){return z.Gs},nF:function(){return _.nF},kB:function(){return o},Yx:function(){return V.Y},ZS:function(){return l},i1:function(){return m},rE:function(){return u.rE},F_:function(){return v},nd:function(){return g}});var i={};n.r(i),n.d(i,{createDimensions:function(){return D.M},createList:function(){return O},createScale:function(){return N},createSymbol:function(){return L.v5},createTextStyle:function(){return E},dataStack:function(){return P},enableHoverEmphasis:function(){return k.iJ},getECData:function(){return C.z},getLayoutRect:function(){return A.dV},mixinAxisModelCommonMethods:function(){return R}});var r={};n.r(r),n.d(r,{MAX_SAFE_INTEGER:function(){return G.Is},asc:function(){return G.Y6},getPercentWithPrecision:function(){return G.wp},getPixelPrecision:function(){return G.hb},getPrecision:function(){return G.XV},getPrecisionSafe:function(){return G.y6},isNumeric:function(){return G.kf},isRadianAroundZero:function(){return G.dh},linearMap:function(){return G.Cb},nice:function(){return G.Cm},numericToNumber:function(){return G.Sm},parseDate:function(){return G._U},quantile:function(){return G.YV},quantity:function(){return G.au},quantityExponent:function(){return G.NX},reformIntervals:function(){return G.sL},remRadian:function(){return G._7},round:function(){return G.LI}});var o={};n.r(o),n.d(o,{format:function(){return F.GP},parse:function(){return G._U}});var a={};n.r(a),n.d(a,{Arc:function(){return ne.A},BezierCurve:function(){return te.A},BoundingRect:function(){return se.A},Circle:function(){return Z.A},CompoundPath:function(){return re.A},Ellipse:function(){return j.A},Group:function(){return Y.A},Image:function(){return U.Ay},IncrementalDisplayable:function(){return ie.A},Line:function(){return ee.A},LinearGradient:function(){return oe.A},Polygon:function(){return K.A},Polyline:function(){return J.A},RadialGradient:function(){return ae.A},Rect:function(){return Q.A},Ring:function(){return $.A},Sector:function(){return q.A},Text:function(){return X.Ay},clipPointsByRect:function(){return H.clipPointsByRect},clipRectByRect:function(){return H.clipRectByRect},createIcon:function(){return H.createIcon},extendPath:function(){return H.extendPath},extendShape:function(){return H.extendShape},getShapeClass:function(){return H.getShapeClass},getTransform:function(){return H.getTransform},initProps:function(){return W.LW},makeImage:function(){return H.makeImage},makePath:function(){return H.makePath},mergePath:function(){return H.mergePath},registerShape:function(){return H.registerShape},resizePath:function(){return H.resizePath},updateProps:function(){return W.oi}});var s={};n.r(s),n.d(s,{addCommas:function(){return le.ob},capitalFirst:function(){return le.x5},encodeHTML:function(){return ue.Me},formatTime:function(){return le.fU},formatTpl:function(){return le.YK},getTextRect:function(){return he},getTooltipMarker:function(){return le.qg},normalizeCssArray:function(){return le.QX},toCamelCase:function(){return le.Cb},truncateText:function(){return ce.EJ}});var l={};n.r(l),n.d(l,{bind:function(){return v.bind},clone:function(){return v.clone},curry:function(){return v.curry},defaults:function(){return v.defaults},each:function(){return v.each},extend:function(){return v.extend},filter:function(){return v.filter},indexOf:function(){return v.indexOf},inherits:function(){return v.inherits},isArray:function(){return v.isArray},isFunction:function(){return v.isFunction},isObject:function(){return v.isObject},isString:function(){return v.isString},map:function(){return v.map},merge:function(){return v.merge},reduce:function(){return v.reduce}});var u=n(82563),c=n(75640),h=n(43484),d=n(97130),p=n(47223),f=n(70213),g=n(19884),y=n(3944),m=n(79006),v=n(44397),x=n(78987),_=n(99076),b=n(43503),S=n(2936),w=n(59831),M=n(99713),A=n(93398),I=n(45180),C=n(98565),T=n(53269),D=n(34122),L=n(51756),k=n(47658);function O(e){return(0,b.A)(null,e)}var P={isDimensionStacked:I.sJ,enableDataStack:I.iJ,getStackedDimension:I.me};function N(e,t){var n=t;t instanceof M.A||(n=new M.A(t));var i=S.f$(n);return i.setExtent(e[0],e[1]),S.af(i,n),i}function R(e){v.mixin(e,w.L)}function E(e,t){return t=t||{},(0,T.VB)(e,null,null,"normal"!==t.state)}var V=n(22212),z=n(11182),B=n(44291),G=n(81353),F=n(72321),H=n(3966),W=n(67329),Y=n(27989),U=n(43359),X=n(5995),Z=n(1350),j=n(38126),q=n(24675),$=n(70532),K=n(90118),J=n(47034),Q=n(65859),ee=n(75832),te=n(94278),ne=n(49252),ie=n(38158),re=n(63946),oe=n(56677),ae=n(1463),se=n(39295),le=n(81111),ue=n(80873),ce=n(72967);function he(e,t,n,i,r,o,a,s){return new X.Ay({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var de=n(45378),pe=n(33055),fe=n(66634);function ge(e){var t=c.A.extend(e);return c.A.registerClass(t),t}function ye(e){var t=h.A.extend(e);return h.A.registerClass(t),t}function me(e){var t=d.A.extend(e);return d.A.registerClass(t),t}function ve(e){var t=p.A.extend(e);return p.A.registerClass(t),t}var xe=n(18915);(0,V.Y)(xe._)},22212:function(e,t,n){n.d(t,{Y:function(){return p}}),n(44114);var i=n(82563),r=n(43484),o=n(47223),a=n(75640),s=n(97130),l=n(44397),u=n(93503),c=n(19884),h=[],d={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:u.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:r.A,SeriesModel:s.A,ChartView:o.A,registerComponentModel:function(e){a.A.registerClass(e)},registerComponentView:function(e){r.A.registerClass(e)},registerSeriesModel:function(e){s.A.registerClass(e)},registerChartView:function(e){o.A.registerClass(e)},registerSubTypeDefaulter:function(e,t){a.A.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){(0,c.registerPainter)(e,t)}};function p(e){(0,l.isArray)(e)?(0,l.each)(e,(function(e){p(e)})):(0,l.indexOf)(h,e)>=0||(h.push(e),(0,l.isFunction)(e)&&(e={install:e}),e.install(d))}},18915:function(e,t,n){n.d(t,{_:function(){return M}});var i=n(23891),r=(n(44114),n(39295)),o=n(67329),a=n(98565),s=n(81353),l=n(55957),u=n(97792),c=n(44397),h=n(7844),d=n(53269),p=n(37492);function f(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function g(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:f(i&&i.shape.points)}}var y=["align","verticalAlign","width","height","fontSize"],m=new l.Ay,v=(0,i.$r)(),x=(0,i.$r)();function _(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var b=["x","y","rotation"],S=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();r.A.applyTransform(u,u,l),l?m.setLocalTransform(l):(m.x=m.y=m.rotation=m.originX=m.originY=0,m.scaleX=m.scaleY=1),m.rotation=(0,p.n)(m.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();r.A.applyTransform(c,c,d)}var f=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:m.x,y:m.y,scaleX:m.scaleX,scaleY:m.scaleY,rotation:m.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");((0,c.isFunction)(i)||(0,c.keys)(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=(0,a.z)(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){(0,u.lB)(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,h=o.defaultAttr,d=void 0;d=(d=(0,c.isFunction)(o.layoutOption)?o.layoutOption(g(o,l)):o.layoutOption)||{},o.computedLayoutOption=d;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:h.attachedPos,rotation:null!=d.rotate?d.rotate*p:h.attachedRot,offset:[d.dx||0,d.dy||0]});var f=!1;if(null!=d.x?(a.x=(0,s.lo)(d.x,t),a.setStyle("x",0),f=!0):(a.x=h.x,a.setStyle("x",h.style.x)),null!=d.y?(a.y=(0,s.lo)(d.y,n),a.setStyle("y",0),f=!0):(a.y=h.y,a.setStyle("y",h.style.y)),d.labelLinePoints){var m=l.getTextGuideLine();m&&(m.setShape({points:d.labelLinePoints}),f=!1)}v(a).needsUpdateLabelLine=f,a.rotation=null!=d.rotate?d.rotate*p:h.rotation,a.scaleX=h.scaleX,a.scaleY=h.scaleY;for(var x=0;x<y.length;x++){var _=y[x];a.setStyle(_,null!=d[_]?d[_]:h.style[_])}if(d.draggable){if(a.draggable=!0,a.cursor="move",l){var b=o.seriesModel;null!=o.dataIndex&&(b=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),a.on("drag",i(l,b.getModel("labelLine")))}}else a.off("drag"),a.cursor=h.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=(0,h.os)(this._labelList),r=(0,c.filter)(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=(0,c.filter)(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));(0,h.QX)(r,0,t),(0,h.Xe)(o,0,n);var a=(0,c.filter)(i,(function(e){return e.layoutOption.hideOverlap}));(0,h.If)(a)},e.prototype.processLabelsOverall=function(){var e=this;(0,c.each)(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=v(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=(0,a.z)(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),s=o.getItemModel(r),l={},c=o.getItemVisual(r,"style");if(c){var h=o.getVisual("drawType");l.stroke=c[h]}var d=s.getModel("labelLine");(0,u.eR)(e,(0,u.rv)(s),l),(0,u.lB)(e,d)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!(0,o.LR)(e))){var r=(m=v(n)).oldLayout,s=(0,a.z)(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},h=t.getData(s.dataType);if(r){n.attr(r);var p=e.prevStates;p&&((0,c.indexOf)(p,"select")>=0&&n.attr(m.oldLayoutSelect),(0,c.indexOf)(p,"emphasis")>=0&&n.attr(m.oldLayoutEmphasis)),(0,o.oi)(n,u,t,l)}else if(n.attr(u),!(0,d.Lu)(n).valueAnimation){var f=(0,c.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,o.LW)(n,{style:{opacity:f}},t,l)}if(m.oldLayout=u,n.states.select){var g=m.oldLayoutSelect={};_(g,u,b),_(g,n.states.select,b)}if(n.states.emphasis){var y=m.oldLayoutEmphasis={};_(y,u,b),_(y,n.states.emphasis,b)}(0,d.xb)(n,l,h,t,t)}if(i&&!i.ignore&&!i.invisible){r=(m=x(i)).oldLayout;var m,S={points:i.shape.points};r?(i.attr({shape:r}),(0,o.oi)(i,{shape:S},t)):(i.setShape(S),i.style.strokePercent=0,(0,o.LW)(i,{style:{strokePercent:1}},t)),m.oldLayout=S}},e}(),w=(0,i.$r)();function M(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=w(t).labelManager;i||(i=w(t).labelManager=new S),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=w(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}},97792:function(e,t,n){n.d(t,{QK:function(){return O},YI:function(){return k},eR:function(){return R},lB:function(){return T},rv:function(){return E}});var i=n(86391),r=n(6731),o=n(47034),a=n(91600),s=n(37492),l=n(13922),u=n(44397),c=n(3944),h=n(79006),d=n(47658),p=2*Math.PI,f=a.A.CMD,g=["top","right","bottom","left"];function y(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0)}}function m(e,t,n,i,r,o,a,l,u){a-=e,l-=t;var c=Math.sqrt(a*a+l*l),h=(a/=c)*n+e,d=(l/=c)*n+t;if(Math.abs(i-r)%p<1e-4)return u[0]=h,u[1]=d,c-n;if(o){var f=i;i=(0,s.n)(r),r=(0,s.n)(f)}else i=(0,s.n)(i),r=(0,s.n)(r);i>r&&(r+=p);var g=Math.atan2(l,a);if(g<0&&(g+=p),g>=i&&g<=r||g+p>=i&&g+p<=r)return u[0]=h,u[1]=d,c-n;var y=n*Math.cos(i)+e,m=n*Math.sin(i)+t,v=n*Math.cos(r)+e,x=n*Math.sin(r)+t,_=(y-a)*(y-a)+(m-l)*(m-l),b=(v-a)*(v-a)+(x-l)*(x-l);return _<b?(u[0]=y,u[1]=m,Math.sqrt(_)):(u[0]=v,u[1]=x,Math.sqrt(b))}function v(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=e+p*c,g=a[1]=t+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function x(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var _=[];function b(e,t,n){var i=x(t.x,t.y,t.width,t.height,e.x,e.y,_);return n.set(_[0],_[1]),i}function S(e,t,n){for(var i,r,o=0,a=0,s=0,u=0,c=1/0,h=t.data,d=e.x,p=e.y,g=0;g<h.length;){var y=h[g++];1===g&&(s=o=h[g],u=a=h[g+1]);var b=c;switch(y){case f.M:o=s=h[g++],a=u=h[g++];break;case f.L:b=v(o,a,h[g],h[g+1],d,p,_,!0),o=h[g++],a=h[g++];break;case f.C:b=(0,l.Et)(o,a,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,p,_),o=h[g++],a=h[g++];break;case f.Q:b=(0,l.kh)(o,a,h[g++],h[g++],h[g],h[g+1],d,p,_),o=h[g++],a=h[g++];break;case f.A:var S=h[g++],w=h[g++],M=h[g++],A=h[g++],I=h[g++],C=h[g++];g+=1;var T=!!(1-h[g++]);i=Math.cos(I)*M+S,r=Math.sin(I)*A+w,g<=1&&(s=i,u=r),b=m(S,w,A,I,I+C,T,(d-S)*A/M+S,p,_),o=Math.cos(I+C)*M+S,a=Math.sin(I+C)*A+w;break;case f.R:b=x(s=o=h[g++],u=a=h[g++],h[g++],h[g++],d,p,_);break;case f.Z:b=v(o,a,s,u,d,p,_,!0),o=s,a=u}b<c&&(c=b,n.set(_[0],_[1]))}return c}var w=new i.A,M=new i.A,A=new i.A,I=new i.A,C=new i.A;function T(e,t){if(e){var n=e.getTextGuideLine(),o=e.getTextContent();if(o&&n){var a=e.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=a.candidates||g,u=o.getBoundingRect().clone();u.applyTransform(o.getComputedTransform());var h=1/0,d=a.anchor,p=e.getComputedTransform(),f=p&&(0,c.invert)([],p),m=t.get("length2")||0;d&&A.copy(d);for(var v=0;v<l.length;v++){y(l[v],0,u,w,I),i.A.scaleAndAdd(M,w,I,m),M.transform(f);var x=e.getBoundingRect(),_=d?d.distance(M):e instanceof r.Ay?S(M,e.path,A):b(M,x,A);_<h&&(h=_,M.transform(p),A.transform(p),A.toArray(s[0]),M.toArray(s[1]),w.toArray(s[2]))}k(s,t.get("minTurnAngle")),n.setShape({points:s})}}}var D=[],L=new i.A;function k(e,t){if(t<=180&&t>0){t=t/180*Math.PI,w.fromArray(e[0]),M.fromArray(e[1]),A.fromArray(e[2]),i.A.sub(I,w,M),i.A.sub(C,A,M);var n=I.len(),r=C.len();if(!(n<.001||r<.001)){I.scale(1/n),C.scale(1/r);var o=I.dot(C);if(Math.cos(t)<o){var a=v(M.x,M.y,A.x,A.y,w.x,w.y,D,!1);L.fromArray(D),L.scaleAndAdd(C,a/Math.tan(Math.PI-t));var s=A.x!==M.x?(L.x-M.x)/(A.x-M.x):(L.y-M.y)/(A.y-M.y);if(isNaN(s))return;s<0?i.A.copy(L,M):s>1&&i.A.copy(L,A),L.toArray(e[1])}}}}function O(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(e[0]),M.fromArray(e[1]),A.fromArray(e[2]),i.A.sub(I,M,w),i.A.sub(C,A,M);var r=I.len(),o=C.len();if(!(r<.001||o<.001)&&(I.scale(1/r),C.scale(1/o),I.dot(t)<Math.cos(n))){var a=v(M.x,M.y,A.x,A.y,w.x,w.y,D,!1);L.fromArray(D);var s=Math.PI/2,l=s+Math.acos(C.dot(t))-n;if(l>=s)i.A.copy(L,A);else{L.scaleAndAdd(C,a/Math.tan(Math.PI/2-l));var u=A.x!==M.x?(L.x-M.x)/(A.x-M.x):(L.y-M.y)/(A.y-M.y);if(isNaN(u))return;u<0?i.A.copy(L,M):u>1&&i.A.copy(L,A)}L.toArray(e[1])}}}function P(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function N(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=h.dist(i[0],i[1]),o=h.dist(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=h.lerp([],i[1],i[0],a/r),l=h.lerp([],i[1],i[2],a/o),u=h.lerp([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function R(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var a=t.normal,s=a.get("show"),l=r.ignore,c=0;c<d.wV.length;c++){var h=d.wV[c],p=t[h],f="normal"===h;if(p){var g=p.get("show");if((f?l:(0,u.retrieve2)(r.states[h]&&r.states[h].ignore,l))||!(0,u.retrieve2)(g,s)){var y=f?i:i&&i.states[h];y&&(y.ignore=!0),i&&P(i,!0,h,p);continue}i||(i=new o.A,e.setTextGuideLine(i),f||!l&&s||P(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),P(i,!1,h,p)}}if(i){(0,u.defaults)(i.style,n),i.style.fill=null;var m=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=m||!1,i.buildPath=N}}else i&&e.removeTextGuideLine()}function E(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<d.BV.length;i++){var r=d.BV[i];n[r]=e.getModel([r,t])}return n}},7844:function(e,t,n){n.d(t,{If:function(){return u},QX:function(){return s},Xe:function(){return l},os:function(){return o}}),n(44114);var i=n(95891),r=n(39295);function o(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new i.A(s,a):null;t.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return t}function a(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=e[d],f=p.rect;(s=f[t]-l)<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[t]+f[n]}h>0&&o&&S(-h/a,0,a);var y,m,v=e[0],x=e[a-1];return _(),y<0&&w(-y,.8),m<0&&w(m,.8),_(),b(y,m,1),b(m,y,-1),_(),y<0&&M(-y),m<0&&M(m),u}function _(){y=v.rect[t]-i,m=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){S(i*n,0,a);var r=i+e;r<0&&w(-r*n,1)}else w(-e*n,1)}}function S(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function w(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++)S(o[l]*h,0,l+1);else for(l=a-1;l>0;l--)S(-o[l-1]*h,l,a)}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?S(n,0,i+1):S(-n,a-i-1,a),(e-=n)<=0)return}}function s(e,t,n,i){return a(e,"x","width",t,n,i)}function l(e,t,n,i){return a(e,"y","height",t,n,i)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new r.A(0,0,0,0);function o(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var a=0;a<e.length;a++){var s=e[a],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<t.length;g++){var y=t[g];if(n.intersect(y.rect)){if(l&&y.axisAligned){f=!0;break}if(y.obb||(y.obb=new i.A(y.localRect,y.transform)),p||(p=new i.A(u,c)),p.intersect(y.obb)){f=!0;break}}}f?(o(h),d&&o(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}},53269:function(e,t,n){n.d(t,{Lu:function(){return _},Oh:function(){return b},VB:function(){return p},c8:function(){return x},lx:function(){return d},qM:function(){return h},sD:function(){return f},xb:function(){return S}});var i=n(5995),r=n(44397),o=n(47658),a=n(23891),s=n(67329),l={};function u(e,t){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=r}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function c(e,t,n){var i,a=e.labelFetcher,s=e.labelDataIndex,l=e.labelDimIndex,u=t.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var c={normal:i},h=0;h<o.BV.length;h++){var d=o.BV[h],p=t[d];c[d]=(0,r.retrieve2)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function h(e,t,n,a){n=n||l;for(var s=e instanceof i.Ay,h=!1,d=0;d<o.wV.length;d++)if((b=t[o.wV[d]])&&b.getShallow("show")){h=!0;break}var g=s?e:e.getTextContent();if(h){s||(g||(g=new i.Ay,e.setTextContent(g)),e.stateProxy&&(g.stateProxy=e.stateProxy));var y=c(n,t),m=t.normal,v=!!m.getShallow("show"),x=p(m,a&&a.normal,n,!1,!s);for(x.text=y.normal,s||e.setTextConfig(f(m,n,!1)),d=0;d<o.BV.length;d++){var b,S=o.BV[d];if(b=t[S]){var w=g.ensureState(S),M=!!(0,r.retrieve2)(b.getShallow("show"),v);M!==v&&(w.ignore=!M),w.style=p(b,a&&a[S],n,!0,!s),w.style.text=y[S],s||(e.ensureState(S).textConfig=f(b,n,!0))}}g.silent=!!m.getShallow("silent"),null!=g.style.x&&(x.x=g.style.x),null!=g.style.y&&(x.y=g.style.y),g.ignore=!v,g.useStyle(x),g.dirty(),n.enableTextSetter&&(_(g).setLabelText=function(e){var i=c(n,t,e);u(g,i)})}else g&&(g.ignore=!0);e.dirty()}function d(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=e.getModel([r,t])}return n}function p(e,t,n,i,o){var a={};return function(e,t,n,i,o){n=n||l;var a,s=t.ecModel,u=s&&s.option.textStyle,c=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||l).rich;if(n){t=t||{};for(var i=(0,r.keys)(n),o=0;o<i.length;o++)t[i[o]]=1}e=e.parentModel}return t}(t);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var d=t.getModel(["rich",h]);v(a[h]={},d,u,n,i,o,!1,!0)}a&&(e.rich=a);var p=t.get("overflow");p&&(e.overflow=p);var f=t.get("minMargin");null!=f&&(e.margin=f),v(e,t,u,n,i,o,!0,!1)}(a,e,n,i,o),t&&(0,r.extend)(a,t),a}function f(e,t,n){t=t||{};var i,o={},a=e.getShallow("rotate"),s=(0,r.retrieve2)(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return"outside"===(i=e.getShallow("position")||(n?null:"inside"))&&(i=t.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],y=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],m=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function v(e,t,n,i,o,a,s,u){n=!o&&n||l;var c=i&&i.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=(0,r.retrieve2)(t.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(e.fill=h),null!=d&&(e.stroke=d);var f=(0,r.retrieve2)(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(e.lineWidth=f);var v=(0,r.retrieve2)(t.getShallow("textBorderType"),n.textBorderType);null!=v&&(e.lineDash=v);var x=(0,r.retrieve2)(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=x&&(e.lineDashOffset=x),o||null!=p||u||(p=i&&i.defaultOpacity),null!=p&&(e.opacity=p),o||a||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var _=0;_<g.length;_++){var b=g[_];null!=(w=(0,r.retrieve2)(t.getShallow(b),n[b]))&&(e[b]=w)}for(_=0;_<y.length;_++)b=y[_],null!=(w=t.getShallow(b))&&(e[b]=w);if(null==e.verticalAlign){var S=t.getShallow("baseline");null!=S&&(e.verticalAlign=S)}if(!s||!i.disableBox){for(_=0;_<m.length;_++){var w;b=m[_],null!=(w=t.getShallow(b))&&(e[b]=w)}var M=t.getShallow("borderType");null!=M&&(e.borderDash=M),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}function x(e,t){var n=t&&t.getModel("textStyle");return(0,r.trim)([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var _=(0,a.$r)();function b(e,t,n,i){if(e){var r=_(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function S(e,t,n,i,o){var l=_(e);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=(0,r.retrieve2)(l.interpolatedValue,l.prevValue),p=l.value;e.percent=0,(null==l.prevValue?s.LW:s.oi)(e,{percent:1},i,t,null,(function(i){var r=(0,a.Il)(n,l.precision,d,p,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:t,labelFetcher:o,defaultText:h?h(r):r+""},l.statesModels,r);u(e,s)}))}}},48037:function(e,t,n){n.d(t,{DL:function(){return h},GL:function(){return d},KF:function(){return m},VA:function(){return g},Zp:function(){return y},vq:function(){return p}}),n(44114);var i=n(44397),r=n(81353),o=n(45180),a=n(8115),s=n(1758),l="__ec_stack_";function u(e){return e.get("stack")||l+e.seriesIndex}function c(e){return e.dim+e.index}function h(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<e.count;a++)t.push((0,i.defaults)({bandWidth:o,axisKey:r,stackId:l+a},e));var s=f(t),u=[];for(a=0;a<e.count;a++){var c=s[r][l+a];c.offsetCenter=c.offset+c.width/2,u.push(c)}return u}}function d(e,t){var n=[];return t.eachSeriesByType(e,(function(e){v(e)&&n.push(e)})),n}function p(e){var t=function(e){var t={};(0,i.each)(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[r]?t[r].push(u):t[r]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(e,t){return e-t}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(e),n=[];return(0,i.each)(e,(function(e){var i,o=e.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],h=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?h/p*l:h}else{var f=e.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,r.lo)(e.get("barWidth"),i),y=(0,r.lo)(e.get("barMaxWidth"),i),m=(0,r.lo)(e.get("barMinWidth")||(x(e)?.5:1),i),v=e.get("barGap"),_=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:y,barMinWidth:m,barGap:v,barCategoryGap:_,axisKey:c(o),stackId:u(e)})})),f(n)}function f(e){var t={};(0,i.each)(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return(0,i.each)(t,(function(e,t){n[t]={};var o=e.stacks,a=e.bandWidth,s=e.categoryGap;if(null==s){var l=(0,i.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var u=(0,r.lo)(s,a),c=(0,r.lo)(e.gap,1),h=e.remainedWidth,d=e.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),(0,i.each)(o,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width)i=e.width,t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,h-=i+c*i,d--;else{var i=p;t&&t<i&&(i=Math.min(t,h)),n&&n>i&&(i=n),i!==p&&(e.width=i,h-=i+c*i,d--)}})),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.each)(o,(function(e,t){e.width||(e.width=p),f=e,g+=e.width*(1+c)})),f&&(g-=f.width*c);var y=-g/2;(0,i.each)(o,(function(e,i){n[t][i]=n[t][i]||{bandWidth:a,offset:y,width:e.width},y+=e.width*(1+c)}))})),n}function g(e,t,n){if(e&&t){var i=e[c(t)];return null!=i&&null!=n?i[u(n)]:i}}function y(e,t){var n=d(e,t),r=p(n);(0,i.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=u(e),o=r[c(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function m(e){return{seriesType:e,plan:(0,a.A)(),reset:function(e){if(v(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=t.getDimensionIndex(t.mapDimension(r.dim)),l=t.getDimensionIndex(t.mapDimension(i.dim)),u=e.get("showBackground",!0),c=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),d=(0,o.sJ)(t,c)&&!!t.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=function(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,r),g=x(e),y=e.get("barMinHeight")||0,m=h&&t.getDimensionIndex(h),_=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(e,t){for(var i,r=e.count,o=g&&(0,s.J)(3*r),c=g&&u&&(0,s.J)(3*r),h=g&&(0,s.J)(r),v=n.master.getRect(),x=p?v.width:v.height,S=t.getStore(),w=0;null!=(i=e.next());){var M=S.get(d?m:a,i),A=S.get(l,i),I=f,C=void 0;d&&(C=+M-S.get(a,i));var T=void 0,D=void 0,L=void 0,k=void 0;if(p){var O=n.dataToPoint([M,A]);d&&(I=n.dataToPoint([C,A])[0]),T=I,D=O[1]+b,L=O[0]-I,k=_,Math.abs(L)<y&&(L=(L<0?-1:1)*y)}else O=n.dataToPoint([A,M]),d&&(I=n.dataToPoint([A,C])[1]),T=O[0]+b,D=I,L=_,k=O[1]-I,Math.abs(k)<y&&(k=(k<=0?-1:1)*y);g?(o[w]=T,o[w+1]=D,o[w+2]=p?L:k,c&&(c[w]=p?v.x:T,c[w+1]=p?D:v.y,c[w+2]=x),h[i]=i):t.setItemLayout(i,{x:T,y:D,width:L,height:k}),w+=3}g&&t.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function v(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function x(e){return e.pipelineContext&&e.pipelineContext.large}},26945:function(e,t,n){n.d(t,{A:function(){return s}});var i=n(44397),r=n(8115),o=n(45180),a=n(1758);function s(e,t){return{seriesType:e,plan:(0,r.A)(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,s=e.pipelineContext,l=t||s.large;if(r){var u=(0,i.map)(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),c=u.length,h=n.getCalculationInfo("stackResultDimension");(0,o.sJ)(n,u[0])&&(u[0]=h),(0,o.sJ)(n,u[1])&&(u[1]=h);var d=n.getStore(),p=n.getDimensionIndex(u[0]),f=n.getDimensionIndex(u[1]);return c&&{progress:function(e,t){for(var n=e.end-e.start,i=l&&(0,a.J)(n*c),o=[],s=[],u=e.start,h=0;u<e.end;u++){var g=void 0;if(1===c){var y=d.get(p,u);g=r.dataToPoint(y,null,s)}else o[0]=d.get(p,u),o[1]=d.get(f,u),g=r.dataToPoint(o,null,s);l?(i[h++]=g[0],i[h++]=g[1]):t.setItemLayout(u,g.slice())}l&&t.setLayout("points",i)}}}}}}},67475:function(e,t,n){n.d(t,{I:function(){return o},l:function(){return s}}),n(44114);var i=n(44397),r=n(23891);function o(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}(0,i.each)([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,o){t=(0,i.extend)({},t),o.dispatchAction((0,i.extend)(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function a(e,t,n,o,a){var s=e+t;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,o=e.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===t){var c=e.getData(),h=(0,r.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:(0,i.isArray)(h)?c.getName(h[0]):c.getName(h),selected:(0,i.isString)(o)?o:(0,i.extend)({},o)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(a("map","selectchanged",t,i,e),a("pie","selectchanged",t,i,e)):"select"===e.fromAction?(a("map","selected",t,i,e),a("pie","selected",t,i,e)):"unselect"===e.fromAction&&(a("map","unselected",t,i,e),a("pie","unselected",t,i,e))}))}},75640:function(e,t,n){n(44114);var i=n(33590),r=n(44397),o=n(99713),a=n(40909),s=n(48096),l=n(23891),u=n(93398),c=(0,l.$r)(),h=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}var n;return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u.ad(this),i=n?u.vs(e):{},o=t.getTheme();r.merge(e,o.get(this.mainType)),r.merge(e,this.getDefaultOption()),n&&u.YA(e,i,n)},t.prototype.mergeOption=function(e,t){r.merge(this.option,e,!0);var n=u.ad(this);n&&u.YA(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!(0,s._E)(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.merge(a,n[l],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return(0,l.JO)(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(o.A);(0,s.q7)(h,o.A),(0,s.tQ)(h),a.A6(h),a.vf(h,(function(e){var t=[];return r.each(h.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=r.map(t,(function(e){return(0,s.CC)(e).main})),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t})),t.A=h},99713:function(e,t,n){n.d(t,{A:function(){return m}});var i=n(45378),r=n(48096),o=(0,n(57587).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return o(this,e,t)},e}(),s=n(53269),l=n(5995),u=["textStyle","color"],c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h=new l.Ay,d=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(u):null)},e.prototype.getFont=function(){return(0,s.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<c.length;n++)t[c[n]]=this.getShallow(c[n]);return h.useStyle(t),h.update(),h.getBoundingRect()},e}(),p=n(67570),f=n(62825),g=n(44397),y=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){(0,g.merge)(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null;return new e(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)((0,g.clone)(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();(0,r.gq)(y),(0,r.Od)(y),(0,g.mixin)(y,p.J),(0,g.mixin)(y,f.s),(0,g.mixin)(y,a),(0,g.mixin)(y,d);var m=y},97130:function(e,t,n){n.d(t,{U:function(){return m}}),n(44114);var i=n(33590),r=n(44397),o=n(45378),a=n(23891),s=n(75640),l=n(26410),u=n(61638),c=n(93398),h=n(228),d=n(48096),p=n(49595),f=n(17264),g=a.$r();function y(e,t){return e.getName(t)||e.getId(t)}var m="__universalTransitionEnabled",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,h.U)({count:_,reset:b}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(g(this).sourceManager=new p.R(this)).prepareSource();var i=this.getInitialData(e,n);w(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,x(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=(0,c.ad)(this),i=n?(0,c.vs)(e):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),a.M5(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&(0,c.YA)(e,i,n)},t.prototype.mergeOption=function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,e,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,t);w(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,x(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&a.M5(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=A(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=A(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return r.createHashMap(e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return(0,f.J)({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o.A.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=y(r,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=r.keys(e),n=[],i=0;i<t.length;i++){var o=e[t[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[y(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,o=this.option,a=o.selectedMode,s=t.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=t[u];l[d=y(e,c)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if("single"===a||!0===a){var h=t[s-1],d=y(e,h);o.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=e.getRawIndex(h),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s.A.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(s.A);function x(e){var t=e.name;a.O0(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function _(e){return e.model.getRawData().count()}function b(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),S}function S(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function w(e,t){r.each(r.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,r.curry(M,t))}))}function M(e,t){var n=A(e);return n&&n.setOutputEnd((t||this).count()),t}function A(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(v,u.J),r.mixin(v,l.X),(0,d.q7)(v,s.A),t.A=v},97663:function(e,t,n){n.d(t,{S:function(){return o},a:function(){return a}});var i=n(44397),r=(0,i.createHashMap)();function o(e,t){(0,i.assert)(null==r.get(e)&&t),r.set(e,t)}function a(e,t,n){var i=r.get(t);if(!i)return n;var o=i(e);return o?n.concat(o):n}},61638:function(e,t,n){n.d(t,{J:function(){return s},L:function(){return l}});var i=n(44397),r=n(9678),o=n(81111),a=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),h=this.getDataParams(e,n);return u&&(h.value=u.interpolatedValue),null!=s&&i.isArray(h.value)&&(h.value=h.value[s]),l||(l=c.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),i.isFunction(l)?(h.status=t,h.dimensionIndex=s,l(h)):i.isString(l)?(0,o.YK)(l,h).replace(a,(function(t,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(c,e,a);if(u&&i.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return(0,r.QE)(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return i.isObject(e)?e.type&&(n=e):t=e,{text:t,frag:n}}},62825:function(e,t,n){n.d(t,{L:function(){return r},s:function(){return a}});var i=n(57587),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return o(this,e,t)},e}()},67570:function(e,t,n){n.d(t,{J:function(){return a},m:function(){return r}});var i=n(57587),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},57587:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(44397);function r(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(r&&i.indexOf(r,l)>=0||o&&i.indexOf(o,l)<0)){var u=n.getShallow(l,t);null!=u&&(a[e[s][0]]=u)}}return a}}},26410:function(e,t,n){n.d(t,{X:function(){return a},x:function(){return s}});var i=n(23891),r=(0,i.$r)(),o=(0,i.$r)(),a=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var o=(0,i.qB)(this.get("color",!0)),a=this.get("colorLayer",!0);return l(this,r,o,a,e,t,n)},e.prototype.clearColorPalette=function(){var e;(e=r)(this).paletteIdx=0,e(this).paletteNameMap={}},e}();function s(e,t,n,r){var a=(0,i.qB)(e.get(["aria","decal","decals"]));return l(e,o,a,null,t,n,r)}function l(e,t,n,i,r,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}},10542:function(e,t,n){n.d(t,{A:function(){return a}});var i=n(44397),r={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,i=0;i<e.length;i++){var r=e[i],o=Math.abs(r);o>t&&(t=o,n=r)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},o=function(e){return Math.round(e.length/2)};function a(e){return{seriesType:e,reset:function(e,t,n){var a=e.getData(),s=e.get("sampling"),l=e.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),p=n.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(p||1),g=Math.round(u/f);if(isFinite(g)&&g>1){"lttb"===s&&e.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g));var y=void 0;(0,i.isString)(s)?y=r[s]:(0,i.isFunction)(s)&&(y=s),y&&e.setData(a.downSample(a.mapDimension(h.dim),1/g,y,o))}}}}}},81493:function(e,t,n){n.d(t,{a:function(){return r}});var i=n(51960);function r(e){e.registerPainter("canvas",i.A)}},49299:function(e,t,n){n(44114);var i=n(33590),r=n(81353),o=n(81111),a=n(35926),s=n(43578),l=r.LI,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return(0,i.C6)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s.lP(e,this._extent)},t.prototype.normalize=function(e){return s.S8(e,this._extent)},t.prototype.scale=function(e){return s.hs(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.u$(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;n[0]<i[0]&&(e?o.push({value:l(i[0]-t,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+t,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(e?o.push({value:l(s+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var o=t[r],a=t[r-1],s=0,u=[],c=(o.value-a.value)/e;s<e-1;){var h=l(a.value+(s+1)*c);h>i[0]&&h<i[1]&&u.push(h),s++}n.push(u)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=r.XV(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(e.value,n,!0);return o.ob(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.xh(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=l(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(a.A);a.A.registerClass(u),t.A=u},78481:function(e,t,n){n(44114);var i=n(33590),r=n(35926),o=n(47686),a=n(43578),s=n(44397),l=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o.A({})),(0,s.isArray)(i)&&(i=new o.A({categories:(0,s.map)(i,(function(e){return(0,s.isObject)(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,i.C6)(t,e),t.prototype.parse=function(e){return null==e?NaN:(0,s.isString)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),a.lP(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),a.S8(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(a.hs(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(r.A);r.A.registerClass(l),t.A=l},35926:function(e,t,n){var i=n(48096),r=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();i.tQ(r),t.A=r},78871:function(e,t,n){n(44114);var i=n(33590),r=n(81353),o=n(72321),a=n(43578),s=n(49299),l=n(35926),u=n(44397),c=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return(0,i.C6)(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return(0,o.GP)(e.value,o.Lm[(0,o.$9)((0,o.ym)(this._minLevelUnit))]||o.Lm.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,o.X_)(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),a=function(e,t,n,i){var a=o.F7,s=0;function l(e,t,n,r,o,a,s){for(var l=new Date(t),u=t,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function c(e,a,s){var u=[],c=!a.length;if(!function(e,t,n,i){var a=r._U(t),s=r._U(n),l=function(e){return(0,o.g0)(a,e,i)===(0,o.g0)(s,e,i)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},d=function(){return h()&&l("hour")},p=function(){return d()&&l("minute")},f=function(){return p()&&l("second")};switch(e){case"year":return u();case"month":return c();case"day":return h();case"hour":return d();case"minute":return p();case"second":return f();case"millisecond":return f()&&l("millisecond")}}((0,o.ym)(e),i[0],i[1],n)){c&&(a=[{value:m(new Date(i[0]),e,n)},{value:i[1]}]);for(var h=0;h<a.length-1;h++){var v=a[h].value,x=a[h+1].value;if(v!==x){var _=void 0,b=void 0,S=void 0;switch(e){case"year":_=Math.max(1,Math.round(t/o.CZ/365)),b=(0,o.hY)(n),S=(0,o.tM)(n);break;case"half-year":case"quarter":case"month":_=p(t),b=(0,o.jJ)(n),S=(0,o.xu)(n);break;case"week":case"half-week":case"day":_=d(t),b=(0,o.bP)(n),S=(0,o.ti)(n),!0;break;case"half-day":case"quarter-day":case"hour":_=f(t),b=(0,o.iC)(n),S=(0,o.Yd)(n);break;case"minute":_=g(t,!0),b=(0,o.yB)(n),S=(0,o.KF)(n);break;case"second":_=g(t,!1),b=(0,o.Wf)(n),S=(0,o.ww)(n);break;case"millisecond":_=y(t),b=(0,o.Zz)(n),S=(0,o.FP)(n)}l(_,v,x,b,S,0,u),"year"===e&&s.length>1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h<u.length;h++)s.push(u[h]);return u}}for(var h=[],v=[],x=0,_=0,b=0;b<a.length&&s++<1e4;++b){var S=(0,o.ym)(a[b]);if((0,o.ce)(a[b])&&(c(a[b],h[h.length-1]||[],v),S!==(a[b+1]?(0,o.ym)(a[b+1]):null))){if(v.length){_=x,v.sort((function(e,t){return e.value-t.value}));for(var w=[],M=0;M<v.length;++M){var A=v[M].value;0!==M&&v[M-1].value===A||(w.push(v[M]),A>=i[0]&&A<=i[1]&&x++)}var I=(i[1]-i[0])/t;if(x>1.5*I&&_>I/1.5)break;if(h.push(w),x>I||e===a[b])break}v=[]}}var C=(0,u.filter)((0,u.map)(h,(function(e){return(0,u.filter)(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),T=[],D=C.length-1;for(b=0;b<C.length;++b)for(var L=C[b],k=0;k<L.length;++k)T.push({value:L[k].value,level:D-b});T.sort((function(e,t){return e.value-t.value}));var O=[];for(b=0;b<T.length;++b)0!==b&&T[b].value===T[b-1].value||O.push(T[b]);return O}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(a)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=o.CZ,t[1]+=o.CZ),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-o.CZ}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=h.length,a=Math.min(function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n}(h,this._approxInterval,0,o),o-1);this._interval=h[a][1],this._minLevelUnit=h[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return(0,u.isNumber)(e)?e:+r._U(e)},t.prototype.contain=function(e){return a.lP(this.parse(e),this._extent)},t.prototype.normalize=function(e){return a.S8(this.parse(e),this._extent)},t.prototype.scale=function(e){return a.hs(e,this._extent)},t.type="time",t}(s.A),h=[["second",o.OY],["minute",o.iW],["hour",o.MA],["quarter-day",6*o.MA],["half-day",12*o.MA],["day",1.2*o.CZ],["half-week",3.5*o.CZ],["week",7*o.CZ],["month",31*o.CZ],["quarter",95*o.CZ],["half-year",o.$H/2],["year",o.$H]];function d(e,t){return(e/=o.CZ)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function p(e){return(e/=30*o.CZ)>6?6:e>3?3:e>2?2:1}function f(e){return(e/=o.MA)>12?12:e>6?6:e>3.5?4:e>2?2:1}function g(e,t){return(e/=t?o.iW:o.OY)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function y(e){return r.Cm(e,!0)}function m(e,t,n){var i=new Date(e);switch((0,o.ym)(t)){case"year":case"month":i[(0,o.xu)(n)](0);case"day":i[(0,o.ti)(n)](1);case"hour":i[(0,o.Yd)(n)](0);case"minute":i[(0,o.KF)(n)](0);case"second":i[(0,o.ww)(n)](0),i[(0,o.FP)(n)](0)}return i.getTime()}l.A.registerClass(c),t.A=c},43578:function(e,t,n){n.d(t,{S8:function(){return c},hs:function(){return h},kH:function(){return a},lP:function(){return u},rf:function(){return r},u$:function(){return s},xh:function(){return o}});var i=n(81353);function r(e){return"interval"===e.type||"log"===e.type}function o(e,t,n,r){var o={},a=e[1]-e[0],u=o.interval=(0,i.Cm)(a/t,!0);null!=n&&u<n&&(u=o.interval=n),null!=r&&u>r&&(u=o.interval=r);var c=o.intervalPrecision=s(u);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),l(e,0,t),l(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[(0,i.LI)(Math.ceil(e[0]/u)*u,c),(0,i.LI)(Math.floor(e[1]/u)*u,c)],e),o}function a(e){var t=Math.pow(10,(0,i.NX)(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*t)}function s(e){return(0,i.XV)(e)+2}function l(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function u(e,t){return e>=t[0]&&e<=t[1]}function c(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h(e,t){return e*(t[1]-t[0])+t[0]}},48096:function(e,t,n){n.d(t,{CC:function(){return l},Od:function(){return p},_E:function(){return u},gq:function(){return c},q7:function(){return h},tQ:function(){return y}}),n(44114);var i=n(33590),r=n(44397),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(o);t.main=n[0]||"",t.sub=n[1]||""}return t}function u(e){return!(!e||!e[s])}function c(e,t){e.$constructor=e,e.extend=function(e){var t,n,o=this;return n=o,r.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.C6)(t,e),t}(o):(t=function(){(e.$constructor||o).apply(this,arguments)},r.inherits(t,this)),r.extend(t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=f,t.superApply=g,t.superClass=o,t}}function h(e,t){e.extend=t.extend}var d=Math.round(10*Math.random());function p(e){var t=["__\0is_clz",d++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function f(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function g(e,t,n){return this.superClass.prototype[t].apply(e,n)}function y(e){var t={};e.registerClass=function(e){var n,i=e.type||e.prototype.type;if(i){n=i,r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=i;var o=l(i);if(o.sub){if(o.sub!==a){var s=function(e){var n=t[e.main];return n&&n[a]||((n=t[e.main]={})[a]=!0),n}(o);s[o.sub]=e}}else t[o.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[a]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=l(e),i=[],o=t[n.main];return o&&o[a]?r.each(o,(function(e,t){t!==a&&i.push(e)})):i.push(o),i},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),i=t[n.main];return i&&i[a]}}},40909:function(e,t,n){n.d(t,{$Q:function(){return a},A6:function(){return s},G_:function(){return u},vf:function(){return l}}),n(44114);var i=n(44397),r=n(48096),o=Math.round(10*Math.random());function a(e){return[e||"",o++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=(0,r.CC)(e);t[i.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](i))}return o}}function l(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,o,a){if(e.length){var s=function(e){var r={},o=[];return i.each(e,(function(a){var s=n(r,a),l=function(e,t){var n=[];return i.each(e,(function(e){i.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(a),e);s.entryCount=l.length,0===s.entryCount&&o.push(a),i.each(l,(function(e){i.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(r,e);i.indexOf(t.successor,e)<0&&t.successor.push(a)}))})),{graph:r,noEntryList:o}}(r),l=s.graph,u=s.noEntryList,c={};for(i.each(e,(function(e){c[e]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(o.call(a,h,d.originalDeps.slice()),delete c[h]),i.each(d.successor,p?g:f)}i.each(c,(function(){throw new Error("")}))}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function g(e){c[e]=!0,f(e)}}}function u(e,t){return i.merge(i.merge({},e,!0),t,!0)}},78711:function(e,t,n){n.d(t,{w:function(){return p}}),n(44114);var i=n(22431),r=n(85760),o=n(44397),a=n(81353),s=n(51756),l=n(66634),u=n(11182),c=new i.A,h=new r.Ay(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function p(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&c.delete(e);var p=c.get(e);if(p)return p;var m=(0,o.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===m.backgroundColor&&(m.backgroundColor=null);var v={repeat:"repeat"};return function(e){for(var t,c=[n],p=!0,v=0;v<d.length;++v){var x=m[d[v]];if(null!=x&&!(0,o.isArray)(x)&&!(0,o.isString)(x)&&!(0,o.isNumber)(x)&&"boolean"!=typeof x){p=!1;break}c.push(x)}if(p){t=c.join(",")+(r?"-svg":"");var _=h.get(t);_&&(r?e.svgElement=_:e.image=_)}var b,S,w=g(m.dashArrayX),M=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if((0,o.isNumber)(e)){var t=Math.ceil(e);return[t,t]}var n=(0,o.map)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(m.dashArrayY),A=f(m.symbol),I=(S=w,(0,o.map)(S,(function(e){return y(e)}))),C=y(M),T=!r&&u.yh.createCanvas(),D=r&&{tag:"g",attrs:{},key:"dcl",children:[]},L=function(){for(var e=1,t=0,n=I.length;t<n;++t)e=(0,a.lQ)(e,I[t]);var i=1;for(t=0,n=A.length;t<n;++t)i=(0,a.lQ)(i,A[t].length);e*=i;var r=C*I.length*A.length;return{width:Math.max(1,Math.min(e,m.maxTileWidth)),height:Math.max(1,Math.min(r,m.maxTileHeight))}}();T&&(T.width=L.width*n,T.height=L.height*n,b=T.getContext("2d")),function(){b&&(b.clearRect(0,0,T.width,T.height),m.backgroundColor&&(b.fillStyle=m.backgroundColor,b.fillRect(0,0,T.width,T.height)));for(var e=0,t=0;t<M.length;++t)e+=M[t];if(!(e<=0))for(var o=-C,a=0,u=0,c=0;o<L.height;){if(a%2==0){for(var h=u/2%A.length,d=0,p=0,f=0;d<2*L.width;){var g=0;for(t=0;t<w[c].length;++t)g+=w[c][t];if(g<=0)break;if(p%2==0){var y=.5*(1-m.symbolSize),v=d+w[c][p]*y,x=o+M[a]*y,_=w[c][p]*m.symbolSize,S=M[a]*m.symbolSize,I=f/2%A[h].length;k(v,x,_,S,A[h][I])}d+=w[c][p],++f,++p===w[c].length&&(p=0)}++c===w.length&&(c=0)}o+=M[a],++u,++a===M.length&&(a=0)}function k(e,t,o,a,u){var c=r?1:n,h=(0,s.v5)(u,e*c,t*c,o*c,a*c,m.color,m.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(h);d&&D.children.push(d)}else(0,l.Xi)(b,h)}}(),p&&h.put(t,T||D),e.image=T,e.svgElement=D,e.svgWidth=L.width,e.svgHeight=L.height}(v),v.rotation=m.rotation,v.scaleX=v.scaleY=r?1:1/n,c.set(e,v),e.dirty=!1,v}function f(e){if(!e||0===e.length)return[["rect"]];if((0,o.isString)(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!(0,o.isString)(e[n])){t=!1;break}if(t)return f([e]);var i=[];for(n=0;n<e.length;++n)(0,o.isString)(e[n])?i.push([e[n]]):i.push(e[n]);return i}function g(e){if(!e||0===e.length)return[[0,0]];if((0,o.isNumber)(e))return[[r=Math.ceil(e),r]];for(var t=!0,n=0;n<e.length;++n)if(!(0,o.isNumber)(e[n])){t=!1;break}if(t)return g([e]);var i=[];for(n=0;n<e.length;++n)if((0,o.isNumber)(e[n])){var r=Math.ceil(e[n]);i.push([r,r])}else(r=(0,o.map)(e[n],(function(e){return Math.ceil(e)}))).length%2==1?i.push(r.concat(r)):i.push(r);return i}function y(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}},92174:function(e,t,n){function i(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}n.d(t,{R:function(){return i}})},81111:function(e,t,n){n.d(t,{Cb:function(){return l},JW:function(){return x},QX:function(){return u},YK:function(){return p},fU:function(){return y},he:function(){return v},io:function(){return f},ob:function(){return s},qg:function(){return g},x5:function(){return m},yC:function(){return c}});var i=n(44397),r=n(80873),o=n(81353),a=n(72321);function s(e){if(!(0,o.kf)(e))return i.isString(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function l(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var u=i.normalizeCssArray;function c(e,t,n){function r(e){return e&&i.trim(e)?e:"-"}function l(e){return!(null==e||isNaN(e)||!isFinite(e))}var u="time"===t,c=e instanceof Date;if(u||c){var h=u?(0,o._U)(e):e;if(!isNaN(+h))return(0,a.GP)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===t)return i.isStringSafe(e)?r(e):i.isNumber(e)&&l(e)?e+"":"-";var d=(0,o.Sm)(e);return l(d)?s(d):i.isStringSafe(e)?r(e):"boolean"==typeof e?e+"":"-"}var h=["a","b","c","d","e","f","g"],d=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,n){i.isArray(t)||(t=[t]);var o=t.length;if(!o)return"";for(var a=t[0].$vars||[],s=0;s<a.length;s++){var l=h[s];e=e.replace(d(l),d(l,0))}for(var u=0;u<o;u++)for(var c=0;c<a.length;c++){var p=t[u][a[c]];e=e.replace(d(h[c],u),n?(0,r.Me)(p):p)}return e}function f(e,t,n){return i.each(t,(function(t,i){e=e.replace("{"+i+"}",n?(0,r.Me)(t):t)})),e}function g(e,t){var n=i.isString(e)?{color:e,extraCssText:t}:e||{},o=n.color,a=n.type;t=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(t||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=(0,o._U)(t),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,u=i[r+"Date"](),c=i[r+"Hours"](),h=i[r+"Minutes"](),d=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return e.replace("MM",(0,a.eV)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",(0,a.eV)(s%100+"",2)).replace("dd",(0,a.eV)(u,2)).replace("d",u).replace("hh",(0,a.eV)(c,2)).replace("h",c).replace("mm",(0,a.eV)(h,2)).replace("m",h).replace("ss",(0,a.eV)(d,2)).replace("s",d).replace("SSS",(0,a.eV)(p,3))}function m(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function v(e,t){return t=t||"transparent",i.isString(e)?e:i.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function x(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},3966:function(e,t,n){n.r(t),n.d(t,{Arc:function(){return _.A},BezierCurve:function(){return x.A},BoundingRect:function(){return M.A},Circle:function(){return h.A},CompoundPath:function(){return b.A},Ellipse:function(){return d.A},Group:function(){return u.A},Image:function(){return l.Ay},IncrementalDisplayable:function(){return C.A},Line:function(){return v.A},LinearGradient:function(){return S.A},OrientedBoundingRect:function(){return A.A},Path:function(){return a.Ay},Point:function(){return I.A},Polygon:function(){return g.A},Polyline:function(){return y.A},RadialGradient:function(){return w.A},Rect:function(){return m.A},Ring:function(){return f.A},Sector:function(){return p.A},Text:function(){return c.Ay},applyTransform:function(){return q},clipPointsByRect:function(){return Q},clipRectByRect:function(){return ee},createIcon:function(){return te},extendPath:function(){return V},extendShape:function(){return R},getShapeClass:function(){return B},getTransform:function(){return j},groupTransition:function(){return J},initProps:function(){return k.LW},isElementRemoved:function(){return k.LR},lineLineIntersect:function(){return ie},linePolygonIntersect:function(){return ne},makeImage:function(){return F},makePath:function(){return G},mergePath:function(){return W},registerShape:function(){return z},removeElement:function(){return k.Nz},removeElementWithFadeOut:function(){return k.t5},resizePath:function(){return Y},setTooltipConfig:function(){return oe},subPixelOptimize:function(){return Z},subPixelOptimizeLine:function(){return U},subPixelOptimizeRect:function(){return X},transformDirection:function(){return $},traverseElements:function(){return se},updateProps:function(){return k.oi}}),n(44114);var i=n(55295),r=n(3944),o=n(79006),a=n(6731),s=n(55957),l=n(43359),u=n(27989),c=n(5995),h=n(1350),d=n(38126),p=n(24675),f=n(70532),g=n(90118),y=n(47034),m=n(65859),v=n(75832),x=n(94278),_=n(49252),b=n(63946),S=n(56677),w=n(1463),M=n(39295),A=n(95891),I=n(86391),C=n(38158),T=n(23702),D=n(44397),L=n(98565),k=n(67329),O=Math.max,P=Math.min,N={};function R(e){return a.Ay.extend(e)}var E=i.Qh;function V(e,t){return E(e,t)}function z(e,t){N[e]=t}function B(e){if(N.hasOwnProperty(e))return N[e]}function G(e,t,n,r){var o=i.UJ(e,t);return n&&("center"===r&&(n=H(n,o.getBoundingRect())),Y(o,n)),o}function F(e,t,n){var i=new l.Ay({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(H(t,r))}}});return i}function H(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}var W=i.uc;function Y(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function U(e,t){return T.eB(e,e,{lineWidth:t}),e}function X(e){return T.Op(e.shape,e.shape,e.style),e}var Z=T.M7;function j(e,t){for(var n=r.identity([]);e&&e!==t;)r.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function q(e,t,n){return t&&!(0,D.isArrayLike)(t)&&(t=s.Ay.getLocalTransform(t)),n&&(t=r.invert([],t)),o.applyTransform([],e,t)}function $(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=q(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(e){return!e.isGroup}function J(e,t,n){if(e&&t){var i,r=(i={},e.traverse((function(e){K(e)&&e.anid&&(i[e.anid]=e)})),i);t.traverse((function(e){if(K(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),(0,k.oi)(e,i,n,(0,L.z)(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=(0,D.extend)({},e.shape)),t}}function Q(e,t){return(0,D.map)(e,(function(e){var n=e[0];n=O(n,t.x),n=P(n,t.x+t.width);var i=e[1];return i=O(i,t.y),[n,i=P(i,t.y+t.height)]}))}function ee(e,t){var n=O(e.x,t.x),i=P(e.x+e.width,t.x+t.width),r=O(e.y,t.y),o=P(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function te(e,t,n){var i=(0,D.extend)({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),(0,D.defaults)(r,n),new l.Ay(i)):G(e.replace("path://",""),i,n,"center")}function ne(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(ie(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function ie(e,t,n,i,r,o,a,s){var l,u=n-e,c=i-t,h=a-r,d=s-o,p=re(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=e-r,g=t-o,y=re(f,g,u,c)/p;if(y<0||y>1)return!1;var m=re(f,g,h,d)/p;return!(m<0||m>1)}function re(e,t,n,i){return e*i-n*t}function oe(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=(0,D.isString)(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&(0,D.each)((0,D.keys)(l),(function(e){(0,D.hasOwn)(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=(0,L.z)(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,D.defaults)({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function ae(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function se(e,t){if(e)if((0,D.isArray)(e))for(var n=0;n<e.length;n++)ae(e[n],t);else ae(e,t)}z("circle",h.A),z("ellipse",d.A),z("sector",p.A),z("ring",f.A),z("polygon",g.A),z("polyline",y.A),z("rect",m.A),z("line",v.A),z("bezierCurve",x.A),z("arc",_.A)},98565:function(e,t,n){n.d(t,{a:function(){return r},z:function(){return i}});var i=(0,n(23891).$r)(),r=function(e,t,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}}},93398:function(e,t,n){n.d(t,{HU:function(){return d},Ir:function(){return x},Qf:function(){return g},Tj:function(){return l},YA:function(){return m},aP:function(){return h},ad:function(){return y},dV:function(){return p},m$:function(){return f},vs:function(){return v}});var i=n(44397),r=n(39295),o=n(81353),a=n(81111),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(h=a+y)>r||l.newline?(o+=s+n,a=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=h+n)}))}var h=c;function d(e,t,n){var i=t.width,r=t.height,s=(0,o.lo)(e.left,i),l=(0,o.lo)(e.top,r),u=(0,o.lo)(e.right,i),c=(0,o.lo)(e.bottom,r);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=r),n=a.QX(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function p(e,t,n){n=a.QX(n||0);var i=t.width,s=t.height,l=(0,o.lo)(e.left,i),u=(0,o.lo)(e.top,s),c=(0,o.lo)(e.right,i),h=(0,o.lo)(e.bottom,s),d=(0,o.lo)(e.width,i),p=(0,o.lo)(e.height,s),f=n[2]+n[0],g=n[1]+n[3],y=e.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-h-f-u),null!=y&&(isNaN(d)&&isNaN(p)&&(y>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=y*p),isNaN(p)&&(p=d/y)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-p-f),e.left||e.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(e.top||e.bottom){case"middle":case"center":u=s/2-p/2-n[0];break;case"bottom":u=s-p-f}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-u-(h||0));var m=new r.A(l+n[3],u+n[0],d,p);return m.margin=n,m}function f(e,t,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||e).x=e.x,s.y=e.y,!u&&!c)return!1;if("raw"===h)l="group"===e.type?new r.A(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=p(i.defaults({width:l.width,height:l.height},t),n,o),g=u?f.x-l.x:0,y=c?f.y-l.y:0;return"raw"===h?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===e&&e.markRedraw(),!0}function g(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function y(e){var t=e.layoutMode||e.constructor.layoutMode;return i.isObject(t)?t:t?{type:t}:null}function m(e,t,n){var r=n&&n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=l(u[0],0),a=l(u[1],1);function l(n,i){var o={},a=0,l={},u=0;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(o[e]=l[e]=t[e]),h(o,e)&&a++,h(l,e)&&u++})),r[i])return h(t,n[1])?l[n[2]]=null:h(t,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!c(o,p)&&c(e,p)){o[p]=e[p];break}}return o}return l}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){s(e,(function(e){t[e]=n[e]}))}d(u[0],e,o),d(u[1],e,a)}function v(e){return x({},e)}function x(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}i.curry(c,"vertical"),i.curry(c,"horizontal")},21900:function(e,t,n){n.d(t,{$8:function(){return l},R8:function(){return a},aT:function(){return s}});var i="[ECharts] ",r={},o="undefined"!=typeof console&&console.warn&&console.log;function a(e,t){!function(e,t,n){if(o){if(n){if(r[t])return;r[t]=!0}console[e](i+t)}}("warn",e,t)}function s(e){}function l(e){throw new Error(e)}},23891:function(e,t,n){n.d(t,{$r:function(){return M},Bq:function(){return k},D$:function(){return O},D6:function(){return S},GX:function(){return b},HB:function(){return C},Il:function(){return R},JO:function(){return L},JS:function(){return h},M5:function(){return c},O0:function(){return v},O2:function(){return f},S_:function(){return _},Sq:function(){return N},US:function(){return T},UW:function(){return D},XJ:function(){return P},_e:function(){return I},le:function(){return w},oh:function(){return x},qB:function(){return u},vS:function(){return m},vj:function(){return d},zu:function(){return p}}),n(44114);var i=n(44397),r=n(45378),o=n(81353);function a(e,t,n){return(t-e)*n+e}var s="series\0",l="\0_ec_\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(e){return!(0,i.isObject)(e)||(0,i.isArray)(e)||e instanceof Date?e:e.value}function p(e){return(0,i.isObject)(e)&&!(e instanceof Array)}function f(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var l=(0,i.createHashMap)();(0,i.each)(t,(function(e,n){(0,i.isObject)(e)||(t[n]=null)}));var u,c,h=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||x(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(e,l,n);return(r||o)&&function(e,t,n,r){(0,i.each)(r,(function(o,a){if(o&&null!=o.id){var s=y(o.id),l=n.get(s);if(null!=l){var u=e[l];(0,i.assert)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=t[l],r[a]=null}}}))}(h,e,l,t),r&&function(e,t){(0,i.each)(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!x(n)&&!x(o)&&g("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}(h,t),r||o?function(e,t,n){(0,i.each)(t,(function(t){if(t){for(var i,r=0;(i=e[r])&&(i.newOption||x(i.existing)||i.existing&&null!=t.id&&!g("id",t,i.existing));)r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}(h,t,o):a&&function(e,t){(0,i.each)(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(h,t),u=h,c=(0,i.createHashMap)(),(0,i.each)(u,(function(e){var t=e.existing;t&&c.set(t.id,e)})),(0,i.each)(u,(function(e){var t=e.newOption;(0,i.assert)(!t||null==t.id||!c.get(t.id)||c.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&c.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),(0,i.each)(u,(function(e,t){var n=e.existing,r=e.newOption,o=e.keyInfo;if((0,i.isObject)(r)){if(o.name=null!=r.name?y(r.name):n?n.name:s+t,n)o.id=y(n.id);else if(null!=r.id)o.id=y(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(c.get(o.id))}c.set(o.id,e)}})),h}function g(e,t,n){var i=m(t[e],null),r=m(n[e],null);return null!=i&&null!=r&&i===r}function y(e){return m(e,"")}function m(e,t){return null==e?t:(0,i.isString)(e)?e:(0,i.isNumber)(e)||(0,i.isStringSafe)(e)?e+"":t}function v(e){var t=e.name;return!(!t||!t.indexOf(s))}function x(e){return e&&null!=e.id&&0===y(e.id).indexOf(l)}function _(e){return l+e}function b(e,t,n){(0,i.each)(e,(function(e){var r=e.newOption;(0,i.isObject)(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,i){return t.type?t.type:n?n.subType:i.determineSubType(e,t)}(t,r,e.existing,n))}))}function S(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=m(e[i].seriesId,null);if(null==o)return;for(var a=u(e[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var h=a[l];s&&s[h]?s[h]=null:(t[o]||(t[o]={}))[h]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function w(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?(0,i.isArray)(t.dataIndex)?(0,i.map)(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?(0,i.isArray)(t.name)?(0,i.map)(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function M(){var e="__ec_inner_"+A++;return function(t){return t[e]||(t[e]={})}}var A=(0,o.IH)();function I(e,t,n){var i=C(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(t,i){var r=L(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function C(e,t){var n;if((0,i.isString)(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=(0,i.createHashMap)(),a={},s=!1;return(0,i.each)(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();!l||!u||t&&t.includeMainTypes&&(0,i.indexOf)(t.includeMainTypes,l)<0||(s=s||!!l,(o.get(l)||o.set(l,{}))[u]=e)}else a[n]=e})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var T={useDefault:!0,enableAll:!1,enableNone:!1},D={useDefault:!1,enableAll:!0,enableNone:!0};function L(e,t,n,r){r=r||T;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===o||!1===o?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=e.queryComponents({mainType:t,index:o,id:a,name:s}),l)}function k(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function O(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function P(e){return"auto"===e?r.A.domSupported?"html":"richText":e||"html"}function N(e,t){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function R(e,t,n,r,s){var l=null==t||"auto"===t;if(null==r)return r;if((0,i.isNumber)(r)){var u=a(n||0,r,s);return(0,o.LI)(u,l?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):t)}if((0,i.isString)(r))return s<1?n:r;for(var c=[],h=n,d=r,p=Math.max(h?h.length:0,d.length),f=0;f<p;++f){var g=e.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&h?h:d)[f];else{var y=h&&h[f]?h[f]:0,m=d[f];u=a(y,m,s),c[f]=(0,o.LI)(u,l?Math.max((0,o.XV)(y),(0,o.XV)(m)):t)}}return c}},81353:function(e,t,n){n.d(t,{Cb:function(){return a},Cm:function(){return w},IH:function(){return T},Is:function(){return y},LI:function(){return l},NX:function(){return S},Sm:function(){return I},Tr:function(){return g},XV:function(){return c},Y6:function(){return u},YV:function(){return M},_7:function(){return m},_U:function(){return _},au:function(){return b},dh:function(){return v},hb:function(){return d},kM:function(){return f},kf:function(){return C},lQ:function(){return L},lo:function(){return s},sL:function(){return A},wp:function(){return p},y6:function(){return h}});var i=n(44397),r=1e-4,o=20;function a(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return i.isString(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function c(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return h(e)}function h(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function d(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function p(e,t,n){return e[t]&&f(e,n)[t]||0}function f(e,t){var n=i.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var r=Math.pow(10,t),o=i.map(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),a=100*r,s=i.map(o,(function(e){return Math.floor(e)})),l=i.reduce(s,(function(e,t){return e+t}),0),u=i.map(o,(function(e,t){return e-s[t]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return i.map(s,(function(e){return e/r}))}function g(e,t){var n=Math.max(c(e),c(t)),i=e+t;return n>o?i:l(i,n)}var y=9007199254740991;function m(e){var t=2*Math.PI;return(e%t+t)%t}function v(e){return e>-r&&e<r}var x=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function _(e){if(e instanceof Date)return e;if(i.isString(e)){var t=x.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function b(e){return Math.pow(10,S(e))}function S(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function w(e,t){var n=S(e),i=Math.pow(10,n),r=e/i;return e=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function M(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function A(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function I(e){var t=parseFloat(e);return t==e&&(0!==t||!i.isString(e)||e.indexOf("x")<=0)?t:NaN}function C(e){return!isNaN(I(e))}function T(){return Math.round(9*Math.random())}function D(e,t){return 0===t?e:D(t,e%t)}function L(e,t){return null==e?t:null==t?e:e*t/D(e,t)}},53731:function(e,t,n){var i=n(33590),r=n(6731),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return(0,i.C6)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(e.moveTo(p*r+n,f*r+i),e.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}(r.Ay);t.A=a},47658:function(e,t,n){n.d(t,{BV:function(){return g},CA:function(){return m},DW:function(){return E},Du:function(){return j},HY:function(){return B},Iz:function(){return J},JC:function(){return H},JI:function(){return W},Lm:function(){return ie},Lv:function(){return b},Lx:function(){return de},Mx:function(){return se},PW:function(){return _},Pk:function(){return N},Q6:function(){return w},QX:function(){return F},SD:function(){return G},T$:function(){return pe},Tl:function(){return $},U2:function(){return S},_m:function(){return K},_n:function(){return he},e3:function(){return f},fz:function(){return fe},gR:function(){return re},gd:function(){return Y},h5:function(){return x},iJ:function(){return ne},ix:function(){return le},jA:function(){return ee},lV:function(){return q},mc:function(){return te},ml:function(){return ce},qR:function(){return X},t6:function(){return Q},u6:function(){return ue},wV:function(){return y},zX:function(){return p}}),n(44114);var i=n(44397),r=n(98565),o=n(78987),a=n(23891),s=n(6731),l=1,u={},c=(0,a.$r)(),h=(0,a.$r)(),d=0,p=1,f=2,g=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,v=9,x="highlight",_="downplay",b="select",S="unselect",w="toggleSelect";function M(e){return null!=e&&"none"!==e}function A(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function I(e){A(e,"emphasis",f)}function C(e){e.hoverState===f&&A(e,"normal",d)}function T(e){A(e,"blur",p)}function D(e){e.hoverState===p&&A(e,"normal",d)}function L(e){e.selected=!0}function k(e){e.selected=!1}function O(e,t,n){t(e,n)}function P(e,t,n){O(e,t,n),e.isGroup&&e.traverse((function(e){O(e,t,n)}))}function N(e,t){switch(t){case"emphasis":e.hoverState=f;break;case"normal":e.hoverState=d;break;case"blur":e.hoverState=p;break;case"select":e.selected=!0}}function R(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,l=!1;if(e instanceof s.Ay){var u=c(e),h=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(M(h)||M(d)){var p=(r=r||{}).style||{};"inherit"===p.fill?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=h):!M(p.fill)&&M(h)?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=(0,o.liftColor)(h)):!M(p.stroke)&&M(d)&&(l||(r=(0,i.extend)({},r),p=(0,i.extend)({},p)),p.stroke=(0,o.liftColor)(d)),r.style=p}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var f=e.z2EmphasisLift;r.z2=e.z2+(null!=f?f:m)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=(0,i.indexOf)(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:function(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,i.extend)({},n),s=(0,i.extend)({opacity:r?o:.1*a.opacity},s),n.style=s),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=(0,i.extend)({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:v)}return n}(this,0,n)}return n}function E(e){e.stateProxy=R;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=R),n&&(n.stateProxy=R)}function V(e,t){!U(e,t)&&!e.__highByOuter&&P(e,I)}function z(e,t){!U(e,t)&&!e.__highByOuter&&P(e,C)}function B(e,t){e.__highByOuter|=1<<(t||0),P(e,I)}function G(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&P(e,C)}function F(e){P(e,T)}function H(e){P(e,D)}function W(e){P(e,L)}function Y(e){P(e,k)}function U(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function X(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=h(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){D(e)})),a&&n.push(i)),o.isBlured=!1})),(0,i.each)(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Z(e,t,n,r){var o=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&H(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var s=o.getSeriesByIndex(e),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(e){var o=s===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===t&&o)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&o&&"self"===t||T(e)})),(0,i.isArrayLike)(t))a(e.getData(),t);else if((0,i.isObject)(t))for(var d=(0,i.keys)(t),p=0;p<d.length;p++)a(e.getData(d[p]),t[d[p]]);u.push(e),h(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function j(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){h(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){T(e)}))}}}function q(e,t,n){var o=e.seriesIndex,s=e.getData(t.dataType);if(s){var l=(0,a.le)(s,t);l=((0,i.isArray)(l)?l[0]:l)||0;var u=s.getItemGraphicEl(l);if(!u)for(var c=s.count(),h=0;!u&&h<c;)u=s.getItemGraphicEl(h++);if(u){var d=(0,r.z)(u);Z(o,d.focus,d.blurScope,n)}else{var p=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);null!=p&&Z(o,p,f,n)}}}function $(e,t,n,i){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var a=i.getModel().getComponent(e,t);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,r.z)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function K(e,t,n){var o=(0,r.z)(e),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&j(o.componentMainType,o.componentIndex,n),(0,i.each)(s,(function(e){return V(e,t)}))):(Z(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&j(o.componentMainType,o.componentIndex,n),V(e,t))}function J(e,t,n){X(n);var o=(0,r.z)(e),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,i.each)(a,(function(e){return z(e,t)})):z(e,t)}function Q(e,t,n){if(de(t)){var r=t.dataType,o=e.getData(r),s=(0,a.le)(o,t);(0,i.isArray)(s)||(s=[s]),e[t.type===w?"toggleSelect":t.type===b?"select":"unselect"](s,r)}}function ee(e){var t=e.getAllData();(0,i.each)(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?W(t):Y(t)}))}))}function te(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();(0,i.each)(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function ne(e,t,n){le(e,!0),P(e,E),re(e,t,n)}function ie(e,t,n,i){i?function(e){le(e,!1)}(e):ne(e,t,n)}function re(e,t,n){var i=(0,r.z)(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var oe=["emphasis","blur","select"],ae={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function se(e,t,n,i){n=n||"itemStyle";for(var r=0;r<oe.length;r++){var o=oe[r],a=t.getModel([o,n]);e.ensureState(o).style=i?i(a):a[ae[n]]()}}function le(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ue(e){return!(!e||!e.__highDownDispatcher)}function ce(e,t,n){var i=(0,r.z)(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function he(e){var t=u[e];return null==t&&l<=32&&(t=u[e]=l++),t}function de(e){var t=e.type;return t===b||t===S||t===w}function pe(e){var t=e.type;return t===x||t===_}function fe(e){var t=c(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}},51756:function(e,t,n){n.d(t,{$V:function(){return v},hV:function(){return w},v5:function(){return b},xU:function(){return S}});var i=n(44397),r=n(6731),o=n(75832),a=n(65859),s=n(1350),l=n(3966),u=n(39295),c=n(1323),h=n(81353),d=r.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),p=r.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),f=r.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),e.closePath()}}),g=r.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),y={line:o.A,rect:a.A,roundRect:a.A,square:a.A,circle:s.A,diamond:p,pin:f,arrow:g,triangle:d},m={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},v={};(0,i.each)(y,(function(e,t){v[t]=new e}));var x=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=(0,c.X4)(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=v[i];r||(r=v[i="rect"]),m[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function _(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function b(e,t,n,i,r,o,a){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?l.makeImage(e.slice(8),new u.A(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?l.makePath(e.slice(7),{},new u.A(t,n,i,r),a?"center":"cover"):new x({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function S(e){return(0,i.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function w(e,t){if(null!=e)return(0,i.isArray)(e)||(e=[e,e]),[(0,h.lo)(e[0],t[0])||0,(0,h.lo)((0,i.retrieve2)(e[1],e[0]),t[1])||0]}},99076:function(e,t,n){n.d(t,{IU:function(){return l},N:function(){return s},nF:function(){return a}});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function s(e,t,n,s){var l=e[t];if(l){var u=l[i]||l,c=l[o];if(l[r]!==n||c!==s){if(null==n||!s)return e[t]=u;(l=e[t]=a(u,n,"debounce"===s))[i]=u,l[o]=s,l[r]=n}return l}}function l(e,t){var n=e[t];n&&n[i]&&(n.clear&&n.clear(),e[t]=n[i])}},72321:function(e,t,n){n.d(t,{$9:function(){return _},$H:function(){return h},CZ:function(){return c},F7:function(){return y},FP:function(){return z},GP:function(){return b},KF:function(){return E},Lm:function(){return f},MA:function(){return u},OY:function(){return s},Wf:function(){return L},X_:function(){return S},Yd:function(){return R},Zz:function(){return k},bP:function(){return C},ce:function(){return x},eV:function(){return m},g0:function(){return M},hY:function(){return A},iC:function(){return T},iW:function(){return l},jJ:function(){return I},tM:function(){return O},ti:function(){return N},ww:function(){return V},xu:function(){return P},yB:function(){return D},ym:function(){return v}});var i=n(44397),r=n(81353),o=n(47383),a=n(99713),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},p="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:p,hour:p+" "+d.hour,minute:p+" "+d.minute,second:p+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function m(e,t){return"0000".substr(0,t-(e+="").length)+e}function v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function x(e){return e===v(e)}function _(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(e,t,n,i){var s=r._U(e),l=s[A(n)](),u=s[I(n)]()+1,c=Math.floor((u-1)/3)+1,h=s[C(n)](),d=s["get"+(n?"UTC":"")+"Day"](),p=s[T(n)](),f=(p-1)%12+1,g=s[D(n)](),y=s[L(n)](),v=s[k(n)](),x=p>=12?"pm":"am",_=x.toUpperCase(),b=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),S=b.get("month"),w=b.get("monthAbbr"),M=b.get("dayOfWeek"),O=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,m(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,S[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,m(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,m(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,M[d]).replace(/{ee}/g,O[d]).replace(/{e}/g,d+"").replace(/{HH}/g,m(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,m(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,m(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,m(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,m(v,3)).replace(/{S}/g,v+"")}function S(e,t,n,r,o){var a=null;if(i.isString(n))a=n;else if(i.isFunction(n))a=n(e.value,t,{level:e.level});else{var s=i.extend({},d);if(e.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.defaults(n,s):s,c=w(e.value,o);if(u[c])a=u[c];else if(u.inherit){for(l=y.indexOf(c)-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(i.isArray(a)){var h=null==e.level?0:e.level>=0?e.level:a.length+e.level;a=a[h=Math.min(h,a.length-1)]}}return b(new Date(e.value),a,o,r)}function w(e,t){var n=r._U(e),i=n[I(t)]()+1,o=n[C(t)](),a=n[T(t)](),s=n[D(t)](),l=n[L(t)](),u=0===n[k(t)](),c=u&&0===l,h=c&&0===s,d=h&&0===a,p=d&&1===o;return p&&1===i?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function M(e,t,n){var o=i.isNumber(e)?r._U(e):e;switch(t=t||w(e,n)){case"year":return o[A(n)]();case"half-year":return o[I(n)]()>=6?1:0;case"quarter":return Math.floor((o[I(n)]()+1)/4);case"month":return o[I(n)]();case"day":return o[C(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[D(n)]();case"second":return o[L(n)]();case"millisecond":return o[k(n)]()}}function A(e){return e?"getUTCFullYear":"getFullYear"}function I(e){return e?"getUTCMonth":"getMonth"}function C(e){return e?"getUTCDate":"getDate"}function T(e){return e?"getUTCHours":"getHours"}function D(e){return e?"getUTCMinutes":"getMinutes"}function L(e){return e?"getUTCSeconds":"getSeconds"}function k(e){return e?"getUTCMilliseconds":"getMilliseconds"}function O(e){return e?"setUTCFullYear":"setFullYear"}function P(e){return e?"setUTCMonth":"setMonth"}function N(e){return e?"setUTCDate":"setDate"}function R(e){return e?"setUTCHours":"setHours"}function E(e){return e?"setUTCMinutes":"setMinutes"}function V(e){return e?"setUTCSeconds":"setSeconds"}function z(e){return e?"setUTCMilliseconds":"setMilliseconds"}},7019:function(e,t,n){n.d(t,{Km:function(){return o},Pe:function(){return i},Wk:function(){return a},XO:function(){return l},i_:function(){return c},mK:function(){return r},oC:function(){return h},t1:function(){return s},vm:function(){return u}});var i=(0,n(44397).createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),r="original",o="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",u="unknown",c="column",h="row"},1758:function(e,t,n){n.d(t,{J:function(){return a}}),n(16573),n(78100),n(77936),n(37467),n(44732),n(79577);var i=n(44397),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(e){return(0,i.isArray)(e)?r?new Float32Array(e):e:new o(e)}},47223:function(e,t,n){var i=n(44397),r=n(27989),o=n(40909),a=n(48096),s=n(23891),l=n(47658),u=n(228),c=n(8115),h=n(3966),d=s.$r(),p=(0,c.A)(),f=function(){function e(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,u.U)({plan:m,reset:v}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&y(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&y(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){(0,h.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){d(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function g(e,t,n){e&&(0,l.u6)(e)&&("emphasis"===t?l.HY:l.SD)(e,n)}function y(e,t,n){var r=s.le(e,t),o=t&&null!=t.highlightKey?(0,l._n)(t.highlightKey):null;null!=r?(0,i.each)(s.qB(r),(function(t){g(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){g(e,n,o)}))}function m(e){return p(e.model)}function v(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&d(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),x[l]}a.gq(f,["dispose"]),a.tQ(f);var x={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)}}};t.A=f},43484:function(e,t,n){var i=n(27989),r=n(40909),o=n(48096),a=function(){function e(){this.group=new i.A,this.uid=r.$Q("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o.gq(a),o.tQ(a),t.A=a},92288:function(e,t,n){function i(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function r(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function o(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i)}}n.d(t,{Ez:function(){return i},oZ:function(){return o},rI:function(){return r}})}}]); |