diff --git a/index.html b/index.html
index 143f8307..853b34ea 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
Pro React
\ No newline at end of file
+Pro React
\ No newline at end of file
diff --git a/static/js/3971.ca5531f7a8430d763cc8.js b/static/js/3971.20c5a168732a0363e328.js
similarity index 96%
rename from static/js/3971.ca5531f7a8430d763cc8.js
rename to static/js/3971.20c5a168732a0363e328.js
index 63c3ed52..3c8e9126 100644
--- a/static/js/3971.ca5531f7a8430d763cc8.js
+++ b/static/js/3971.20c5a168732a0363e328.js
@@ -1,8 +1,8 @@
-(self.webpackChunkpro_react_admin=self.webpackChunkpro_react_admin||[]).push([[3971],{43224:function(Rt,rt,E){"use strict";E.r(rt),E.d(rt,{default:function(){return VM}});var st={};E.r(st),E.d(st,{Axis:function(){return X._0},ChartView:function(){return X.OZ},ComponentModel:function(){return X.jT},ComponentView:function(){return X.bR},List:function(){return X.B8},Model:function(){return X.Kx},PRIORITY:function(){return X.FQ},SeriesModel:function(){return X.rP},color:function(){return X.yW},connect:function(){return X.Ng},dataTool:function(){return X.p5},dependencies:function(){return X.El},disConnect:function(){return X.zm},disconnect:function(){return X.Zf},dispose:function(){return X.AS},env:function(){return X._K},extendChartView:function(){return X.yX},extendComponentModel:function(){return X.rt},extendComponentView:function(){return X.NO},extendSeriesModel:function(){return X.NA},format:function(){return X.GP},getCoordinateSystemDimensions:function(){return X.Bo},getInstanceByDom:function(){return X.FP},getInstanceById:function(){return X.aQ},getMap:function(){return X.ZB},graphic:function(){return X.fA},helper:function(){return X.dw},init:function(){return X.Ts},innerDrawElementOnCanvas:function(){return X.UU},matrix:function(){return X.UP},number:function(){return X.ai},parseGeoJSON:function(){return X.l3},parseGeoJson:function(){return X.zI},registerAction:function(){return X.OH},registerCoordinateSystem:function(){return X.pX},registerLayout:function(){return X.Oh},registerLoading:function(){return X.Ej},registerLocale:function(){return X.E},registerMap:function(){return X.mz},registerPostInit:function(){return X.cf},registerPostUpdate:function(){return X.tb},registerPreprocessor:function(){return X.lP},registerProcessor:function(){return X.qg},registerTheme:function(){return X.bf},registerTransform:function(){return X.iY},registerUpdateLifecycle:function(){return X.xV},registerVisual:function(){return X.AF},setCanvasCreator:function(){return X.vV},setPlatformAPI:function(){return X.Gs},throttle:function(){return X.nF},time:function(){return X.kB},use:function(){return X.Yx},util:function(){return X.ZS},vector:function(){return X.i1},version:function(){return X.rE},zrUtil:function(){return X.F_},zrender:function(){return X.nd}});var pt=E(31635),Y=E(3087),X=E(30990),dt=E(73098),p=E(98026),Ft=E(15727),gt=E(57861),ht=E(53479),It=E(29571),vt=E(29308),ie=E(56448),ee=E(59741);function Te(a,e,t){var r=ee.yh.createCanvas(),i=e.getWidth(),n=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",r.setAttribute("data-zr-dom-id",a)),r.width=i*t,r.height=n*t,r}var ne=function(a){(0,Ft.C6)(e,a);function e(t,r,i){var n=a.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;i=i||dt.Y5,typeof t=="string"?o=Te(t,r,i):p.isObject(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(p.disableUserSelect(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=r,n.dpr=i,n}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Te("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new vt.A(0,0,0,0);function h(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new vt.A(0,0,0,0);x.copy(S),o.push(x)}else{for(var b=!1,_=1/0,A=0,w=0;w=s)}}for(var v=this.__startIndex;v15)break}}P.prevElClipPaths&&m.restore()};if(S)if(S.length===0)C=y.__endIndex;else for(var I=f.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},a.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i0?De:0),this._needsManuallyCompositing),h.__builtin__||p.logError("ZLevel "+u+" has been used by unkown layer "+h.id),h!==n&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),n=h),i.__dirty&ie.M&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(v,c){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(e){e.clear()},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e,p.each(this._layers,function(t){t.setUnpainted()})},a.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?p.merge(r[e],t,!0):r[e]=t;for(var i=0;i=N:-u>=N),f=u>0?u%N:u%N+N,d=!1;c?d=!0:(0,bt.Cv)(v)?d=!1:d=f>=sa==!!h;var g=e+r*Vr(o),y=t+i*oa(o);this._start&&this._add("M",g,y);var m=Math.round(n*G);if(c){var S=1/this._p,x=(h?1:-1)*(N-S);this._add("A",r,i,m,1,+h,e+r*Vr(o+x),t+i*oa(o+x)),S>.01&&this._add("A",r,i,m,0,+h,g,y)}else{var b=e+r*Vr(s),_=t+i*oa(s);this._add("A",r,i,m,+d,+h,b,_)}},a.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,i,n,o,s,l,u){for(var h=[],v=this._p,c=1;c"}function Qd(a){return""+a+">"}function yn(a,e){e=e||{};var t=e.newline?`
+(self.webpackChunkpro_react_admin=self.webpackChunkpro_react_admin||[]).push([[3971],{43224:function(Rt,rt,E){"use strict";E.r(rt),E.d(rt,{default:function(){return VM}});var st={};E.r(st),E.d(st,{Axis:function(){return X._0},ChartView:function(){return X.OZ},ComponentModel:function(){return X.jT},ComponentView:function(){return X.bR},List:function(){return X.B8},Model:function(){return X.Kx},PRIORITY:function(){return X.FQ},SeriesModel:function(){return X.rP},color:function(){return X.yW},connect:function(){return X.Ng},dataTool:function(){return X.p5},dependencies:function(){return X.El},disConnect:function(){return X.zm},disconnect:function(){return X.Zf},dispose:function(){return X.AS},env:function(){return X._K},extendChartView:function(){return X.yX},extendComponentModel:function(){return X.rt},extendComponentView:function(){return X.NO},extendSeriesModel:function(){return X.NA},format:function(){return X.GP},getCoordinateSystemDimensions:function(){return X.Bo},getInstanceByDom:function(){return X.FP},getInstanceById:function(){return X.aQ},getMap:function(){return X.ZB},graphic:function(){return X.fA},helper:function(){return X.dw},init:function(){return X.Ts},innerDrawElementOnCanvas:function(){return X.UU},matrix:function(){return X.UP},number:function(){return X.ai},parseGeoJSON:function(){return X.l3},parseGeoJson:function(){return X.zI},registerAction:function(){return X.OH},registerCoordinateSystem:function(){return X.pX},registerLayout:function(){return X.Oh},registerLoading:function(){return X.Ej},registerLocale:function(){return X.E},registerMap:function(){return X.mz},registerPostInit:function(){return X.cf},registerPostUpdate:function(){return X.tb},registerPreprocessor:function(){return X.lP},registerProcessor:function(){return X.qg},registerTheme:function(){return X.bf},registerTransform:function(){return X.iY},registerUpdateLifecycle:function(){return X.xV},registerVisual:function(){return X.AF},setCanvasCreator:function(){return X.vV},setPlatformAPI:function(){return X.Gs},throttle:function(){return X.nF},time:function(){return X.kB},use:function(){return X.Yx},util:function(){return X.ZS},vector:function(){return X.i1},version:function(){return X.rE},zrUtil:function(){return X.F_},zrender:function(){return X.nd}});var dt=E(31635),Y=E(3087),X=E(30990),gt=E(73098),p=E(98026),Ft=E(15727),ct=E(57861),ht=E(53479),It=E(29571),vt=E(29308),ie=E(56448),ee=E(59741);function Te(a,e,t){var r=ee.yh.createCanvas(),i=e.getWidth(),n=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",r.setAttribute("data-zr-dom-id",a)),r.width=i*t,r.height=n*t,r}var ne=function(a){(0,Ft.C6)(e,a);function e(t,r,i){var n=a.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;i=i||gt.Y5,typeof t=="string"?o=Te(t,r,i):p.isObject(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(p.disableUserSelect(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=r,n.dpr=i,n}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Te("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new vt.A(0,0,0,0);function h(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new vt.A(0,0,0,0);x.copy(S),o.push(x)}else{for(var b=!1,_=1/0,A=0,w=0;w=s)}}for(var v=this.__startIndex;v15)break}}P.prevElClipPaths&&m.restore()};if(S)if(S.length===0)C=y.__endIndex;else for(var I=f.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},a.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,i=0;i0?De:0),this._needsManuallyCompositing),h.__builtin__||p.logError("ZLevel "+u+" has been used by unkown layer "+h.id),h!==n&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),n=h),i.__dirty&ie.M&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(v,c){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(e){e.clear()},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e,p.each(this._layers,function(t){t.setUnpainted()})},a.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?p.merge(r[e],t,!0):r[e]=t;for(var i=0;i=N:-u>=N),f=u>0?u%N:u%N+N,d=!1;c?d=!0:(0,bt.Cv)(v)?d=!1:d=f>=sa==!!h;var g=e+r*Vr(o),y=t+i*oa(o);this._start&&this._add("M",g,y);var m=Math.round(n*G);if(c){var S=1/this._p,x=(h?1:-1)*(N-S);this._add("A",r,i,m,1,+h,e+r*Vr(o+x),t+i*oa(o+x)),S>.01&&this._add("A",r,i,m,0,+h,g,y)}else{var b=e+r*Vr(s),_=t+i*oa(s);this._add("A",r,i,m,+d,+h,b,_)}},a.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,i,n,o,s,l,u){for(var h=[],v=this._p,c=1;c"}function Qd(a){return""+a+">"}function yn(a,e){e=e||{};var t=e.newline?`
`:"";function r(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return Jd(o,s)+(o!=="style"?(0,He.Me)(l):l||"")+(n?""+t+(0,p.map)(n,function(u){return r(u)}).join(t)+t:"")+Qd(o)}return r(a)}function qd(a,e,t){t=t||{};var r=t.newline?`
-`:"",i=" {"+r,n=r+"}",o=(0,p.map)((0,p.keys)(a),function(l){return l+i+(0,p.map)((0,p.keys)(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+n}).join(r),s=(0,p.map)((0,p.keys)(e),function(l){return"@keyframes "+l+i+(0,p.map)((0,p.keys)(e[l]),function(u){return u+i+(0,p.map)((0,p.keys)(e[l][u]),function(h){var v=e[l][u][h];return h==="d"&&(v='path("'+v+'")'),h+":"+v+";"}).join(r)+n}).join(r)+n}).join(r);return!o&&!s?"":[""].join(r)}function mn(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function wl(a,e,t,r){return $t("svg","root",{width:a,height:e,xmlns:Et,"xmlns:xlink":oe,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var tg=E(12191),Me=E(92836),la=E(68717),Cl=E(82591),eg=E(96320),rg=0;function Tl(){return rg++}var Il={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},cr="transform-origin";function ag(a,e,t){var r=(0,p.extend)({},a.shape);(0,p.extend)(r,e),a.buildPath(t,r);var i=new F;return i.reset((0,bt.MD)(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function ig(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[cr]=t+"px "+r+"px")}var ng={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Dl(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function og(a,e,t){var r=a.shape.paths,i={},n,o;if((0,p.each)(r,function(l){var u=mn(t.zrId);u.animation=!0,ri(l,{},u,!0);var h=u.cssAnims,v=u.cssNodes,c=(0,p.keys)(h),f=c.length;if(f){o=c[f-1];var d=h[o];for(var g in d){var y=d[g];i[g]=i[g]||{d:""},i[g].d+=y.d||""}for(var m in v){var S=v[m].animation;S.indexOf(o)>=0&&(n=S)}}}),!!n){e.d=!1;var s=Dl(i,t);return n.replace(o,s)}}function Ll(a){return(0,p.isString)(a)?Il[a]?"cubic-bezier("+Il[a]+")":(0,eg.w)(a)?a:"":""}function ri(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof Cl.A){var s=og(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var xt=Dl(w,t);return xt+" "+S[0]+" both"}}for(var y in l){var s=g(l[y]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+Tl();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}var _t=E(32322),Wt=E(47698);function sg(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};Ml(r,e,t,!0)}else{var i=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},n=i.fill;if(!n){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(n=(0,Wt.liftColor)(l))}var u=i.lineWidth;if(u){var h=!i.strokeNoScale&&a.transform?a.transform[0]:1;u=u/h}var r={cursor:"pointer"};n&&(r.fill=n),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),Ml(r,e,t,!0)}}function Ml(a,e,t,r){var i=JSON.stringify(a),n=t.cssStyleCache[i];n||(n=t.zrId+"-cls-"+Tl(),t.cssStyleCache[i]=n,t.cssNodes["."+n+(r?":hover":"")]=a),e.class=e.class?e.class+" "+n:n}var lg=E(82755),ua=Math.round;function Pl(a){return a&&(0,p.isString)(a.src)}function Rl(a){return a&&(0,p.isFunction)(a.toDataURL)}function xn(a,e,t,r){Qt(function(i,n){var o=i==="fill"||i==="stroke";o&&(0,bt.bn)(n)?zl(e,a,i,r):o&&(0,bt.Pt)(n)?Bl(t,a,i,r):o&&n==="none"?a[i]="transparent":a[i]=n},e,t,!1),dg(t,a,r)}function Sn(a,e){var t=(0,lg.getElementSSRData)(e);t&&(t.each(function(r,i){r!=null&&(a[(Oe+i).toLowerCase()]=r+"")}),e.isSilent()&&(a[Oe+"silent"]="true"))}function El(a){return(0,bt.Cv)(a[0]-1)&&(0,bt.Cv)(a[1])&&(0,bt.Cv)(a[2])&&(0,bt.Cv)(a[3]-1)}function ug(a){return(0,bt.Cv)(a[4])&&(0,bt.Cv)(a[5])}function bn(a,e,t){if(e&&!(ug(e)&&El(e))){var r=t?10:1e4;a.transform=El(e)?"translate("+ua(e[4]*r)/r+" "+ua(e[5]*r)/r+")":(0,bt.nV)(e)}}function Vl(a,e,t){for(var r=a.points,i=[],n=0;nn?(d=t[l+1]==null?null:t[l+1].elm,Ul(a,d,t,i,l)):ai(a,e,r,n))}function Or(a,e){var t=e.elm=a.elm,r=a.children,i=e.children;a!==e&&(wn(a,e),An(e.text)?ke(r)&&ke(i)?r!==i&&Sg(t,r,i):ke(i)?(ke(a.text)&&_n(t,""),Ul(t,null,i,0,i.length-1)):ke(r)?ai(t,r,0,r.length-1):ke(a.text)&&_n(t,""):a.text!==e.text&&(ke(r)&&ai(t,r,0,r.length-1),_n(t,e.text)))}function bg(a,e){if(ha(a,e))Or(a,e);else{var t=a.elm,r=Wl(t);va(e),r!==null&&(fr(r,e.elm,Yl(t)),ai(r,[a],0,0))}return e}var _g=0,Ag=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Xl("refreshHover"),this.configLayer=Xl("configLayer"),this.storage=t,this._opts=r=(0,p.extend)({},r),this.root=e,this._id="zr"+_g++,this._oldVNode=wl(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Al("svg");wn(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",bg(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return Nl(e,mn(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,n=mn(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=wg(r,i,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=$t("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=(0,p.map)((0,p.keys)(n.defs),function(c){return n.defs[c]});if(u.length&&o.push($t("defs","defs",{},u)),e.animation){var h=qd(n.cssNodes,n.cssAnims,{newline:!0});if(h){var v=$t("style","stl",{},[],h);o.push(v)}}return wl(r,i,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},yn(this.renderToVNode({animation:(0,p.retrieve2)(e.cssAnimation,!0),emphasis:(0,p.retrieve2)(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,p.retrieve2)(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var i=e.length,n=[],o=0,s,l,u=0,h=0;h=0&&!(c&&l&&c[g]===l[g]);g--);for(var y=d-1;y>g;y--)o--,s=n[o-1];for(var m=g+1;m-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Ot.A),Dg=Ig,Q=E(5638),tt=E(43199),ct=E(69622),U=E(34833),jl=E(58267);function kr(a,e){var t=a.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=(0,jl.QE)(a,e,t[0]);return i!=null?i+"":null}else if(r){for(var n=[],o=0;o=0&&r.push(e[n])}return r.join(" ")}var q=E(89632),Lg=function(a){(0,O.C6)(e,a);function e(t,r,i,n){var o=a.call(this)||this;return o.updateData(t,r,i,n),o}return e.prototype._createSymbol=function(t,r,i,n,o){this.removeAll();var s=(0,Tt.v5)(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Mg,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,U.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,U.SD)(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,n){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,h=n&&n.disableAnimation;if(u){var v=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,v)}else{var c=this.childAt(0);c.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(f):Q.oi(c,f,s,r),(0,Q.ap)(c)}if(this._updateCommon(t,r,l,i,n),u){var c=this.childAt(0);if(!h){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Q.LW(c,f,s,r)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,n,o){var s=this.childAt(0),l=t.hostModel,u,h,v,c,f,d,g,y,m;if(n&&(u=n.emphasisItemStyle,h=n.blurItemStyle,v=n.selectItemStyle,c=n.focus,f=n.blurScope,g=n.labelStatesModels,y=n.hoverScale,m=n.cursorStyle,d=n.emphasisDisabled),!n||t.hasItemOption){var S=n&&n.itemModel?n.itemModel:t.getItemModel(r),x=S.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),v=S.getModel(["select","itemStyle"]).getItemStyle(),h=S.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),f=x.get("blurScope"),d=x.get("disabled"),g=(0,q.lx)(S),y=x.getShallow("scale"),m=S.getShallow("cursor")}var b=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var _=(0,Tt.hV)(t.getItemVisual(r,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var A=t.getItemVisual(r,"style"),w=A.fill;if(s instanceof ue.Ay){var C=s.style;s.useStyle((0,p.extend)({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},A))}else s.__isEmptyBrush?s.useStyle((0,p.extend)({},A)):s.useStyle(A),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(r,"liftZ"),I=this._z2;T!=null?I==null&&(this._z2=s.z2,s.z2+=T):I!=null&&(s.z2=I,this._z2=null);var D=o&&o.useNameLabel;(0,q.qM)(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:w,defaultOpacity:A.opacity});function L(R){return D?t.getName(R):kr(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=h;var P=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),(0,U.Lm)(this,c,f,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var n=this.childAt(0),o=(0,ct.z)(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Q.Nz(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Q.Nz(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return(0,Tt.xU)(t.getItemVisual(r,"symbolSize"))},e}(it.A);function Mg(a,e){this.parent.drift(a,e)}var ca=Lg;function Cn(a,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&a.getItemVisual(t,"symbol")!=="none"}function $l(a){return a!=null&&!(0,p.isObject)(a)&&(a={isIgnore:a}),a||{}}function Jl(a){var e=a.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:(0,q.lx)(e),cursorStyle:e.get("cursor")}}var Pg=function(){function a(e){this.group=new it.A,this._SymbolCtor=e||ca}return a.prototype.updateData=function(e,t){this._progressiveEls=null,t=$l(t);var r=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Jl(e),u={disableAnimation:s},h=t.getSymbolPoint||function(v){return e.getItemLayout(v)};n||r.removeAll(),e.diff(n).add(function(v){var c=h(v);if(Cn(e,c,v,t)){var f=new o(e,v,l,u);f.setPosition(c),e.setItemGraphicEl(v,f),r.add(f)}}).update(function(v,c){var f=n.getItemGraphicEl(c),d=h(v);if(!Cn(e,d,v,t)){r.remove(f);return}var g=e.getItemVisual(v,"symbol")||"circle",y=f&&f.getSymbolType&&f.getSymbolType();if(!f||y&&y!==g)r.remove(f),f=new o(e,v,l,u),f.setPosition(d);else{f.updateData(e,v,l,u);var m={x:d[0],y:d[1]};s?f.attr(m):Q.oi(f,m,i)}r.add(f),e.setItemGraphicEl(v,f)}).remove(function(v){var c=n.getItemGraphicEl(v);c&&c.fadeOut(function(){r.remove(c)},i)}).execute(),this._getSymbolPoint=h,this._data=e},a.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var n=e._getSymbolPoint(i);r.setPosition(n),r.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jl(e),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=$l(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=r[0]:r[1]<0&&(t=r[1]),t}function ql(a,e,t,r){var i=NaN;a.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=t.get(a.baseDim,r),o[1-n]=i,e.dataToPoint(o)}var dr=E(8957);function Eg(a,e){var t=[];return e.diff(a).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function Vg(a,e,t,r,i,n,o,s){for(var l=Eg(a,e),u=[],h=[],v=[],c=[],f=[],d=[],g=[],y=Ql(i,e,o),m=a.getLayout("points")||[],S=e.getLayout("points")||[],x=0;x=i||g<0)break;if(gr(m,S)){if(l){g+=n;continue}break}if(g===t)a[n>0?"moveTo":"lineTo"](m,S),v=m,c=S;else{var x=m-u,b=S-h;if(x*x+b*b<.5){g+=n;continue}if(o>0){for(var _=g+n,A=e[_*2],w=e[_*2+1];A===m&&w===S&&y=r||gr(A,w))f=m,d=S;else{I=A-u,D=w-h;var P=m-u,R=A-m,V=S-h,B=w-S,z=void 0,W=void 0;if(s==="x"){z=Math.abs(P),W=Math.abs(R);var $=I>0?1:-1;f=m-$*z*o,d=S,L=m+$*W*o,M=S}else if(s==="y"){z=Math.abs(V),W=Math.abs(B);var K=D>0?1:-1;f=m,d=S-K*z*o,L=m,M=S+K*W*o}else z=Math.sqrt(P*P+V*V),W=Math.sqrt(R*R+B*B),T=W/(W+z),f=m-I*o*(1-T),d=S-D*o*(1-T),L=m+I*o*T,M=S+D*o*T,L=$e(L,Je(A,m)),M=$e(M,Je(w,S)),L=Je(L,$e(A,m)),M=Je(M,$e(w,S)),I=L-m,D=M-S,f=m-I*z/W,d=S-D*z/W,f=$e(f,Je(u,m)),d=$e(d,Je(h,S)),f=Je(f,$e(u,m)),d=Je(d,$e(h,S)),I=m-f,D=S-d,L=m+I*W/z,M=S+D*W/z}a.bezierCurveTo(v,c,f,d,m,S),v=L,c=M}else a.lineTo(m,S)}u=m,h=S,g+=n}return y}var tu=function(){function a(){this.smooth=0,this.smoothConstraint=!0}return a}(),Og=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tu},e.prototype.buildPath=function(t,r){var i=r.points,n=0,o=i.length/2;if(r.connectNulls){for(;o>0&&gr(i[o*2-2],i[o*2-1]);o--);for(;n=0){var b=u?(d-l)*x+l:(f-s)*x+s;return u?[t,b]:[b,t]}s=f,l=d;break;case o.C:f=n[v++],d=n[v++],g=n[v++],y=n[v++],m=n[v++],S=n[v++];var _=u?(0,ge._E)(s,f,g,m,t,h):(0,ge._E)(l,d,y,S,t,h);if(_>0)for(var A=0;A<_;A++){var w=h[A];if(w<=1&&w>=0){var b=u?(0,ge.Yb)(l,d,y,S,w):(0,ge.Yb)(s,f,g,m,w);return u?[t,b]:[b,t]}}s=m,l=S;break}}},e}(Vt.Ay),kg=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e}(tu),eu=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new kg},e.prototype.buildPath=function(t,r){var i=r.points,n=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&gr(i[s*2-2],i[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Bg(a,e,t){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&e.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(n){var l=e.getAxis(i),u=p.map(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),h=u.length,v=n.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),v.reverse());var c=zg(u,i==="x"?t.getWidth():t.getHeight()),f=c.length;if(!f&&h)return u[0].coord<0?v[1]?v[1]:u[h-1].color:v[0]?v[0]:u[0].color;var d=10,g=c[0].coord-d,y=c[f-1].coord+d,m=y-g;if(m<.001)return"transparent";p.each(c,function(x){x.offset=(x.coord-g)/m}),c.push({offset:f?c[f-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:f?c[0].offset:.5,color:v[0]||"transparent"});var S=new ii.A(0,0,0,0,c,!0);return S[i]=g,S[i+"2"]=y,S}}}function Gg(a,e,t){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(i&&Hg(n,e))){var o=e.mapDimension(n.dim),s={};return p.each(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Hg(a,e){var t=a.getExtent(),r=Math.abs(t[1]-t[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function Fg(a,e){return isNaN(a)||isNaN(e)}function Wg(a){for(var e=a.length/2;e>0&&Fg(a[e*2-2],a[e*2-1]);e--);return e-1}function lu(a,e){return[a[e*2],a[e*2+1]]}function Yg(a,e,t){for(var r=a.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function uu(a){if(a.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var $=g.getState("emphasis").style;$.lineWidth=+g.style.lineWidth+1}(0,ct.z)(g).seriesIndex=t.seriesIndex,(0,U.Lm)(g,B,z,W);var K=su(t.get("smooth")),et=t.get("smoothMonotone");if(g.setShape({smooth:K,smoothMonotone:et,connectNulls:C}),y){var lt=l.getCalculationInfo("stackedOnSeries"),ot=0;y.useStyle(p.defaults(h.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),lt&&(ot=su(lt.get("smooth"))),y.setShape({smooth:K,stackedOnSmooth:ot,smoothMonotone:et,connectNulls:C}),(0,U.Mx)(y,t,"areaStyle"),(0,ct.z)(y).seriesIndex=t.seriesIndex,(0,U.Lm)(y,B,z,W)}var mt=function(At){n._changePolyState(At)};l.eachItemGraphicEl(function(At){At&&(At.onHoverStateChange=mt)}),this._polyline.onHoverStateChange=mt,this._data=l,this._coordSys=o,this._stackedOnPoints=A,this._points=v,this._step=D,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,r){(0,ct.z)(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,n){var o=t.getData(),s=J.le(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],v=l[s*2+1];if(isNaN(h)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,v))return;var c=t.get("zlevel")||0,f=t.get("z")||0;u=new ca(o,s),u.x=h,u.y=v,u.setZ(c,f);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=f,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Nt.A.prototype.highlight.call(this,t,r,i,n)},e.prototype.downplay=function(t,r,i,n){var o=t.getData(),s=J.le(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Nt.A.prototype.downplay.call(this,t,r,i,n)},e.prototype._changePolyState=function(t){var r=this._polygon;(0,U.Pk)(this._polyline,t),r&&(0,U.Pk)(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Og({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new eu({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var n,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,h=u.get("animationDuration");p.isFunction(h)&&(h=h(null));var v=u.get("animationDelay")||0,c=p.isFunction(v)?v(null):v;t.eachItemGraphicEl(function(f,d){var g=f;if(g){var y=[f.x,f.y],m=void 0,S=void 0,x=void 0;if(i)if(o){var b=i,_=r.pointToCoord(y);n?(m=b.startAngle,S=b.endAngle,x=-_[1]/180*Math.PI):(m=b.r0,S=b.r,x=_[0])}else{var A=i;n?(m=A.x,S=A.x+A.width,x=f.x):(m=A.y+A.height,S=A.y,x=f.y)}var w=S===m?0:(x-m)/(S-m);l&&(w=1-w);var C=p.isFunction(v)?v(d):h*w+c,T=g.getSymbolPath(),I=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var n=t.getModel("endLabel");if(uu(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new _t.Ay({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=Wg(l);h>=0&&((0,q.qM)(s,(0,q.lx)(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:h,defaultText:function(v,c,f){return f!=null?Kl(o,f):kr(o,v)},enableTextSetter:!0},Zg(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,n,o,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var v=i.getLayout("points"),c=i.hostModel,f=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),m=y.isHorizontal(),S=y.inverse,x=r.shape,b=S?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?g:0)*(S?-1:1),A=(m?0:-g)*(S?-1:1),w=m?"x":"y",C=Yg(v,b,w),T=C.range,I=T[1]-T[0],D=void 0;if(I>=1){if(I>1&&!f){var L=lu(v,T[0]);u.attr({x:L[0]+_,y:L[1]+A}),o&&(D=c.getRawValue(T[0]))}else{var L=h.getPointOn(b,w);L&&u.attr({x:L[0]+_,y:L[1]+A});var M=c.getRawValue(T[0]),P=c.getRawValue(T[1]);o&&(D=J.Il(i,d,M,P,C.t))}n.lastFrameIndex=T[0]}else{var R=t===1||n.lastFrameIndex>0?T[0]:0,L=lu(v,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+_,y:L[1]+A})}if(o){var V=(0,q.Lu)(u);typeof V.setLabelText=="function"&&V.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,r,i,n,o,s,l){var u=this._polyline,h=this._polygon,v=t.hostModel,c=Vg(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin,s),f=c.current,d=c.stackedOnCurrent,g=c.next,y=c.stackedOnNext;if(o&&(f=Qe(c.current,i,o,l),d=Qe(c.stackedOnCurrent,i,o,l),g=Qe(c.next,i,o,l),y=Qe(c.stackedOnNext,i,o,l)),ou(f,g)>3e3||h&&ou(d,y)>3e3){u.stopAnimation(),u.setShape({points:g}),h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=c.current,u.shape.points=f;var m={shape:{points:g}};c.current!==f&&(m.shape.__points=c.next),u.stopAnimation(),Q.oi(u,m,v),h&&(h.setShape({points:f,stackedOnPoints:d}),h.stopAnimation(),Q.oi(h,{shape:{stackedOnPoints:y}},v),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var S=[],x=c.status,b=0;be&&(e=a[t]);return isFinite(e)?e:NaN},min:function(a){for(var e=1/0,t=0;te&&(e=n,t=i)}return isFinite(t)?t:NaN},nearest:function(a){return a[0]}},Kg=function(a){return Math.round(a.length/2)};function hu(a){return{seriesType:a,reset:function(e,t,r){var i=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),v=r.getDevicePixelRatio(),c=Math.abs(h[1]-h[0])*(v||1),f=Math.round(s/c);if(isFinite(f)&&f>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f));var d=void 0;(0,p.isString)(n)?d=jg[n]:(0,p.isFunction)(n)&&(d=n),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/f,d,Kg))}}}}}function $g(a){a.registerChartView(Xg),a.registerSeriesModel(Dg),a.registerLayout(da("line",!0)),a.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hu("line"))}var ga=E(62536),vu=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(i)(0,p.each)(n.getAxes(),function(c,f){if(c.type==="category"&&r!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),y=o[f],m=r[f]==="x1"||r[f]==="y1";if(m&&!g&&(y+=1),d.length<2)return;if(d.length===2){s[f]=c.toGlobalCoord(c.getExtent()[m?1:0]);return}for(var S=void 0,x=void 0,b=1,_=0;_y){x=(A+S)/2;break}_===1&&(b=w-d[0].tickValue)}x==null&&(S?S&&(x=d[d.length-1].coord):x=d[0].coord),s[f]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),v=n.getBaseAxis().isHorizontal()?0:1;s[v]+=u+h/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ot.A);Ot.A.registerClass(vu);var oi=vu,Ne=E(12616),Jg=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,Ne.G_)(oi.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}),e}(oi),Qg=Jg,me=E(24711),qg=function(){function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return a}(),ty=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new qg},e.prototype.buildPath=function(t,r){var i=r.cx,n=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,h=r.startAngle,v=r.endAngle,c=r.clockwise,f=Math.PI*2,d=c?v-hMath.PI/2&&hs)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,n){if(this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var n=r.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){(0,Q.t5)(n,t,(0,ct.z)(n).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Nt.A),cu={cartesian2d:function(a,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=a.x+a.width,n=a.y+a.height,o=Dn(e.x,a.x),s=Ln(e.x+e.width,i),l=Dn(e.y,a.y),u=Ln(e.y+e.height,n),h=si?s:o,e.y=v&&l>n?u:l,e.width=h?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||v},polar:function(a,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=Ln(e.r,a.r),n=Dn(e.r0,a.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},fu={cartesian2d:function(a,e,t,r,i,n,o,s,l){var u=new Dt.A({shape:(0,p.extend)({},r),z2:1});if(u.__dataIndex=t,u.name="item",n){var h=u.shape,v=i?"height":"width";h[v]=0}return u},polar:function(a,e,t,r,i,n,o,s,l){var u=!i&&l?si:ye.A,h=new u({shape:r,z2:1});h.name="item";var v=yu(i);if(h.calculateTextPosition=ey(v,{isRoundCap:u===si}),n){var c=h.shape,f=i?"r":"endAngle",d={};c[f]=i?r.r0:r.startAngle,d[f]=r[f],(s?Q.oi:Q.LW)(h,{shape:d},n)}return h}};function ny(a,e){var t=a.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function pu(a,e,t,r,i,n,o,s){var l,u;n?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?Q.oi:Q.LW)(t,{shape:l},e,i,null);var h=e?a.baseAxis.model:null;(o?Q.oi:Q.LW)(t,{shape:u},h,i)}function du(a,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+n*i/2,y:r.y+o*i/2,width:r.width-n*i,height:r.height-o*i}},polar:function(a,e,t){var r=a.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ly(a){return a.startAngle!=null&&a.endAngle!=null&&a.startAngle===a.endAngle}function yu(a){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(a)}function mu(a,e,t,r,i,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var h=a.shape,v=mr(r.getModel("itemStyle"),h,!0);(0,p.extend)(h,v),a.setShape(h)}}else{var u=r.get(["itemStyle","borderRadius"])||0;a.setShape("r",u)}a.useStyle(l);var c=r.getShallow("cursor");c&&a.attr("cursor",c);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=(0,q.lx)(r);(0,q.qM)(a,d,{labelFetcher:n,labelDataIndex:t,defaultText:kr(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=a.getTextContent();if(s&&g){var y=r.get(["label","position"]);a.textConfig.inside=y==="middle"?!0:null,ry(a,y==="outside"?f:y,yu(o),r.get(["label","rotate"]))}(0,q.Oh)(g,d,n.getRawValue(t),function(S){return Kl(e,S)});var m=r.getModel(["emphasis"]);(0,U.Lm)(a,m.get("focus"),m.get("blurScope"),m.get("disabled")),(0,U.Mx)(a,r),ly(i)&&(a.style.fill="none",a.style.stroke="none",(0,p.each)(a.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function uy(a,e){var t=a.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=a.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,n)}var hy=function(){function a(){}return a}(),xu=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new hy},e.prototype.buildPath=function(t,r){for(var i=r.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?t:null},30,!1);function vy(a,e,t){for(var r=a.baseDimIdx,i=1-r,n=a.shape.points,o=a.largeDataIndices,s=[],l=[],u=a.barWidth,h=0,v=n.length/3;h=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[h]}return-1}function _u(a,e,t){if(yr(t,"cartesian2d")){var r=e,i=t.getArea();return{x:a?r.x:i.x,y:a?i.y:r.y,width:a?r.width:i.width,height:a?i.height:r.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:a?i.r0:n.r0,r:a?i.r:n.r,startAngle:a?n.startAngle:0,endAngle:a?n.endAngle:Math.PI*2}}}function cy(a,e,t){var r=a.type==="polar"?ye.A:Dt.A;return new r({shape:_u(e,t,a),silent:!0,z2:0})}var fy=iy;function py(a){a.registerChartView(fy),a.registerSeriesModel(Qg),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,p.curry(ga.Zp,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,ga.KF)("bar")),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hu("bar")),a.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Au=E(16884),yt=E(34253),wu=Math.PI*2,vi=Math.PI/180;function Cu(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Tu(a,e){var t=Cu(a,e),r=a.get("center"),i=a.get("radius");p.isArray(i)||(i=[0,i]);var n=(0,k.lo)(t.width,e.getWidth()),o=(0,k.lo)(t.height,e.getHeight()),s=Math.min(n,o),l=(0,k.lo)(i[0],s/2),u=(0,k.lo)(i[1],s/2),h,v,c=a.coordinateSystem;if(c){var f=c.dataToPoint(r);h=f[0]||0,v=f[1]||0}else p.isArray(r)||(r=[r,r]),h=(0,k.lo)(r[0],n)+t.x,v=(0,k.lo)(r[1],o)+t.y;return{cx:h,cy:v,r0:l,r:u}}function dy(a,e,t){e.eachSeriesByType(a,function(r){var i=r.getData(),n=i.mapDimension("value"),o=Cu(r,t),s=Tu(r,t),l=s.cx,u=s.cy,h=s.r,v=s.r0,c=-r.get("startAngle")*vi,f=r.get("endAngle"),d=r.get("padAngle")*vi;f=f==="auto"?c-wu:-f*vi;var g=r.get("minAngle")*vi,y=g+d,m=0;i.each(n,function(B){!isNaN(B)&&m++});var S=i.getSum(n),x=Math.PI/(S||m)*2,b=r.get("clockwise"),_=r.get("roseType"),A=r.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var C=b?1:-1,T=[c,f],I=C*d/2;(0,la.q)(T,!b),c=T[0],f=T[1];var D=Iu(r);D.startAngle=c,D.endAngle=f,D.clockwise=b;var L=Math.abs(f-c),M=L,P=0,R=c;if(i.setLayout({viewRect:o,r:h}),i.each(n,function(B,z){var W;if(isNaN(B)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:v,r:_?NaN:h});return}_!=="area"?W=S===0&&A?x:B*x:W=L/m,WW?(K=R+C*W/2,et=K):(K=R+I,et=$-I),i.setItemLayout(z,{angle:W,startAngle:K,endAngle:et,clockwise:b,cx:l,cy:u,r0:v,r:_?(0,k.Cb)(B,w,[v,h]):h}),R=$}),Mt?m:y,_=Math.abs(x.label.y-t);if(_>=b.maxY){var A=x.label.x-e-x.len2*i,w=r+x.len,C=Math.abs(A)a.unconstrainedWidth?null:f:null;r.setStyle("width",d)}var g=r.getBoundingRect();n.width=g.width;var y=(r.style.margin||0)+2.1;n.height=g.height+y,n.y-=(n.height-v)/2}}}function Pn(a){return a.position==="center"}function my(a){var e=a.getData(),t=[],r,i,n=!1,o=(a.get("minShowLabelAngle")||0)*gy,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,v=s.y,c=s.height;function f(A){A.ignore=!0}function d(A){if(!A.ignore)return!0;for(var w in A.states)if(A.states[w].ignore===!1)return!0;return!1}e.each(function(A){var w=e.getItemGraphicEl(A),C=w.shape,T=w.getTextContent(),I=w.getTextGuideLine(),D=e.getItemModel(A),L=D.getModel("label"),M=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),V=(0,k.lo)(L.get("edgeDistance"),u),B=L.get("bleedMargin"),z=D.getModel("labelLine"),W=z.get("length");W=(0,k.lo)(W,u);var $=z.get("length2");if($=(0,k.lo)($,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":et>0?"left":"right"}var jt=Math.PI,Zt=0,se=L.get("rotate");if((0,p.isNumber)(se))Zt=se*(jt/180);else if(M==="center")Zt=0;else if(se==="radial"||se===!0){var Ke=et<0?-K+jt:-K;Zt=Ke}else if(se==="tangential"&&M!=="outside"&&M!=="outer"){var ve=Math.atan2(et,lt);ve<0&&(ve=jt*2+ve);var dn=lt>0;dn&&(ve=jt+ve),Zt=ve-jt}if(n=!!Zt,T.x=ot,T.y=mt,T.rotation=Zt,T.setStyle({verticalAlign:"middle"}),nt){T.setStyle({align:xt});var _l=T.states.select;_l&&(_l.x+=T.x,_l.y+=T.y)}else{var vr=T.getBoundingRect().clone();vr.applyTransform(T.getComputedTransform());var $d=(T.style.margin||0)+2.1;vr.y-=$d/2,vr.height+=$d,t.push({label:T,labelLine:I,position:M,len:W,len2:$,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new Re.A(et,lt),linePoints:At,textAlign:xt,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:B,rect:vr,unconstrainedWidth:vr.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:nt})}}),!n&&a.get("avoidLabelOverlap")&&yy(t,r,i,l,u,c,h,v);for(var g=0;g0){for(var h=o.getItemLayout(0),v=1;isNaN(h&&h.startAngle)&&v=n.r0}},e.type="pie",e}(Nt.A),by=Sy,ci=E(97351),he=E(6006);function zr(a,e,t){e=(0,p.isArray)(e)&&{coordDimensions:e}||(0,p.extend)({encodeDefine:a.getEncode()},e);var r=a.getSource(),i=(0,ci.A)(r,e).dimensions,n=new he.A(i,a);return n.initData(r,t),n}var fi=E(23071),_y=function(){function a(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return a.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},a.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},a.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},a.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},a}(),ma=_y,Ay=J.$r(),wy=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ma(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zr(this,{coordDimensions:["value"],encodeDefaulter:p.curry(fi.ln,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=Ay(r),n=i.seats;if(!n){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),n=i.seats=(0,k.kM)(o,r.hostModel.get("percentPrecision"))}var s=a.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){J.M5(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Ot.A),Cy=wy;function Ty(a){return{seriesType:a,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var n=r.mapDimension("value"),o=r.get(n,i);return!((0,p.isNumber)(o)&&!isNaN(o)&&o<0)})}}}function Iy(a){a.registerChartView(by),a.registerSeriesModel(Cy),(0,Au.I)("pie",a.registerAction),a.registerLayout((0,p.curry)(dy,"pie")),a.registerProcessor(ya("pie")),a.registerProcessor(Ty("pie"))}var Dy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Ot.A),Ly=Dy,Mu=4,My=function(){function a(){}return a}(),Py=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new My},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var h=u*2,v=n[h]-s/2,c=n[h+1]-l/2;if(t>=v&&r>=c&&t<=v+s&&r<=c+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],l=1/0,u=1/0,h=-1/0,v=-1/0,c=0;c=0&&(u.dataIndex=v+(e.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),Ey=Ry,Vy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=da("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Ey:new fa,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Nt.A),Oy=Vy,Yt=E(59109),Ht=E(15915),ky=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Ht.A),Ny=ky,xa=E(12462),Rn=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",J.US).models[0]},e.type="cartesian2dAxis",e}(Ht.A);p.mixin(Rn,xa.L);var HM=null,Pu={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)"]}}},zy=p.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Pu),En=p.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}}},Pu),By=p.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},En),Gy=p.defaults({logBase:10},En),Ru={category:zy,value:En,time:By,log:Gy},Hy=E(15135),Fy={value:1,category:1,time:1,log:1};function Br(a,e,t,r){(0,p.each)(Fy,function(i,n){var o=(0,p.merge)((0,p.merge)({},Ru[n],!0),r,!0),s=function(l){(0,O.C6)(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+n,h}return u.prototype.mergeDefaultAndTheme=function(h,v){var c=(0,yt.ad)(this),f=c?(0,yt.vs)(h):{},d=v.getTheme();(0,p.merge)(h,d.get(n+"Axis")),(0,p.merge)(h,this.getDefaultOption()),h.type=Eu(h),c&&(0,yt.YA)(h,f,c)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Hy.A.createByAxisModel(this))},u.prototype.getCategories=function(h){var v=this.option;if(v.type==="category")return h?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);a.registerComponentModel(s)}),a.registerSubTypeDefaulter(e+"Axis",Eu)}function Eu(a){return a.type||(a.data?"category":"value")}var Ut=E(25751),Wy=function(){function a(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return a.prototype.getAxis=function(e){return this._axes[e]},a.prototype.getAxes=function(){return p.map(this._dimList,function(e){return this._axes[e]},this)},a.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),p.filter(this.getAxes(),function(t){return t.scale.type===e})},a.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},a}(),Yy=Wy,Lt=E(45587),at=E(83509),Vn=["x","y"];function Vu(a){return a.type==="interval"||a.type==="time"}var Zy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Vn,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Vu(t)||!Vu(r))){var i=t.getExtent(),n=r.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var h=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-i[0]*h,f=o[1]-n[0]*v,d=this._transform=[h,0,0,v,c,f];this._invTransform=(0,Lt.invert)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),n=this.dataToPoint(r),o=this.getArea(),s=new vt.A(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return(0,at.applyTransform)(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return(0,at.applyTransform)(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(r[0],r[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(r[0],r[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new vt.A(n,o,s,l)},e}(Yy),Uy=Zy,Ee=E(20912),Xy=function(a){(0,O.C6)(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ee.A),jy=Xy;function On(a,e,t){t=t||{};var r=a.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,h=r.getRect(),v=[h.x,h.x+h.width,h.y,h.y+h.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d=u==="x"?[v[2]-f,v[3]+f]:[v[0]-f,v[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}n.position=[u==="y"?d[c[l]]:v[0],u==="x"?d[c[l]]:v[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=y[s],n.labelOffset=o?d[c[s]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),p.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-m:m,n.z2=1,n}function Ou(a){return a.get("coordinateSystem")==="cartesian2d"}function ku(a){var e={xAxisModel:null,yAxisModel:null};return p.each(e,function(t,r){var i=r.replace(/Model$/,""),n=a.getReferringComponents(i,J.US).models[0];e[r]=n}),e}var Gr=E(67071),pi=E(74562),kn=Math.log;function Nu(a,e,t){var r=pi.A.prototype,i=r.getTicks.call(t),n=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=(0,Ut.Rx)(a,e),u=l.extent,h=l.fixMin,v=l.fixMax;if(a.type==="log"){var c=kn(a.base);u=[kn(u[0])/c,kn(u[1])/c]}a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:v});var f=r.getExtent.call(a);h&&(u[0]=f[0]),v&&(u[1]=f[1]);var d=r.getInterval.call(a),g=u[0],y=u[1];if(h&&v)d=(y-g)/o;else if(h)for(y=u[0]+d*o;yu[0]&&isFinite(g)&&isFinite(u[0]);)d=(0,Gr.kH)(d),g=u[1]-d*o;else{var m=a.getTicks().length-1;m>o&&(d=(0,Gr.kH)(d));var S=d*o;y=Math.ceil(u[1]/d)*d,g=(0,k.LI)(y-S),g<0&&u[0]>=0?(g=0,y=(0,k.LI)(S)):y>0&&u[1]<=0&&(y=0,g=-(0,k.LI)(S))}var x=(i[0].value-n[0].value)/s,b=(i[o].value-n[o].value)/s;if(r.setExtent.call(a,g+d*x,y+d*b),r.setInterval.call(a,d),(x||b)&&r.setNiceExtent.call(a,g+d,y-d),0)var _}var Ky=function(){function a(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vn,this._initCartesian(e,t,r),this.model=e}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=(0,p.keys)(o),u=l.length;if(u){for(var h=[],v=u-1;v>=0;v--){var c=+l[v],f=o[c],d=f.model,g=f.scale;(0,Gr.rf)(g)&&d.get("alignTicks")&&d.get("interval")==null?h.push(f):((0,Ut.af)(g,d),(0,Gr.rf)(g)&&(s=f))}h.length&&(s||(s=h.pop(),(0,Ut.af)(s.scale,s.model)),(0,p.each)(h,function(y){Nu(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var n={};(0,p.each)(r.x,function(o){zu(r,"y",o,n)}),(0,p.each)(r.y,function(o){zu(r,"x",o,n)}),this.resize(this.model,t)},a.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),n=!r&&e.get("containLabel"),o=(0,yt.dV)(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&((0,p.each)(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=(0,Ut.Og)(u);if(h){var v=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[v]-=h[v]+c,u.position==="top"?o.y+=h.height+c:u.position==="left"&&(o.x+=h.width+c)}}}),l()),(0,p.each)(this._coordsList,function(u){u.calcAffineTransform()});function l(){(0,p.each)(s,function(u){var h=u.isHorizontal(),v=h?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(v[c],v[1-c]),$y(u,h?o.x:o.y)})}},a.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},a.prototype.getAxes=function(){return this._axesList.slice()},a.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}(0,p.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):(0,k.dh)(i-qe)?(o=r>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=r>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},a.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},a.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},a}(),Gu={axisLine:function(a,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&a.handleAutoShown&&(i=a.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=r.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&((0,at.applyTransform)(s,s,o),(0,at.applyTransform)(l,l,o));var h=(0,p.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new le.A({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1});tt.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",t.add(v);var c=e.get(["axisLine","symbol"]);if(c!=null){var f=e.get(["axisLine","symbolSize"]);(0,p.isString)(c)&&(c=[c,c]),((0,p.isString)(f)||(0,p.isNumber)(f))&&(f=[f,f]);var d=(0,Tt.hV)(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],y=f[1];(0,p.each)([{rotate:a.rotation+Math.PI/2,offset:d[0],r:0},{rotate:a.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,S){if(c[S]!=="none"&&c[S]!=null){var x=(0,Tt.v5)(c[S],-g/2,-y/2,g,y,h.stroke,!0),b=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+b*Math.cos(a.rotation),y:_[1]-b*Math.sin(a.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(a,e,t,r){var i=t0(t,r,e,a),n=r0(t,r,e,a);if(qy(e,n,i),e0(t,r,e,a.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=(0,Mn.os)((0,p.map)(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));(0,Mn.If)(o)}},axisName:function(a,e,t,r){var i=(0,p.retrieve)(a.axisName,e.get("name"));if(i){var n=e.get("nameLocation"),o=a.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,v=[n==="start"?u[0]-h*l:n==="end"?u[1]+h*l:(u[0]+u[1])/2,Fu(n)?a.labelOffset+o*l:0],c,f=e.get("nameRotate");f!=null&&(f=f*qe/180);var d;Fu(n)?c=xr.innerTextLayout(a.rotation,f!=null?f:a.rotation,o):(c=Qy(a.rotation,n,f||0,u),d=a.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,S=(0,p.retrieve)(a.nameTruncateMaxWidth,y.maxWidth,d),x=new _t.Ay({x:v[0],y:v[1],rotation:c.rotation,silent:xr.isLabelSilent(e),style:(0,q.VB)(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(tt.setTooltipConfig({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var b=xr.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,(0,ct.z)(x).eventData=b}r.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function Qy(a,e,t,r){var i=(0,k._7)(t-a),n,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return(0,k.dh)(i-qe/2)?(o=l?"bottom":"top",n="center"):(0,k.dh)(i-qe*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",iqe/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function qy(a,e,t){if(!(0,Ut.PJ)(a.axis)){var r=a.get(["axisLabel","showMinLabel"]),i=a.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],v=t[t.length-1],c=t[t.length-2];r===!1?(xe(n),xe(u)):Hu(n,o)&&(r?(xe(o),xe(h)):(xe(n),xe(u))),i===!1?(xe(s),xe(v)):Hu(l,s)&&(i?(xe(l),xe(c)):(xe(s),xe(v)))}}function xe(a){a&&(a.ignore=!0)}function Hu(a,e){var t=a&&a.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=Lt.identity([]);return Lt.rotate(i,i,-a.rotation),t.applyTransform(Lt.mul([],i,a.getLocalTransform())),r.applyTransform(Lt.mul([],i,e.getLocalTransform())),t.intersect(r)}}function Fu(a){return a==="middle"||a==="center"}function Wu(a,e,t,r,i){for(var n=[],o=[],s=[],l=0;l=0||a===e}function l0(a){var e=Bn(a);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=Gn(t);n==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=p.defaults({color:d.color},l));var y=p.merge(p.clone(d),{boundaryGap:t,splitNumber:r,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:c},!1);if(p.isString(h)){var m=y.name;y.name=h.replace("{value}",m!=null?m:"")}else p.isFunction(h)&&(y.name=h(y.name,y));var S=new Xt.A(y,null,this.ecModel);return p.mixin(S,xa.L.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:p.merge({lineStyle:{color:"#bbb"}},ba.axisLine),axisLabel:di(ba.axisLabel,!1),axisTick:di(ba.axisTick,!1),splitLine:di(ba.splitLine,!0),splitArea:di(ba.splitArea,!0),indicator:[]},e}(Ht.A),w0=A0,_a=E(31571),qu=E(42933),C0=["axisLine","axisTickLabel","axisName"],T0=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),n=p.map(i,function(o){var s=o.model.get("showName")?o.name:"",l=new We(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});p.each(n,function(o){p.each(C0,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),h=o.get("show"),v=s.get("show"),c=l.get("color"),f=u.get("color"),d=p.isArray(c)?c:[c],g=p.isArray(f)?f:[f],y=[],m=[];function S(R,V,B){var z=B%V.length;return R[z]=R[z]||[],z}if(n==="circle")for(var x=i[0].getTicksCoords(),b=r.cx,_=r.cy,A=0;A3?1.4:o>1?1.2:1.1,h=n>0?u:1/u;Wn(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(i){var v=Math.abs(n),c=(n>0?1:-1)*(v>3?.4:v>1?.15:.05);Wn(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!eh(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;Wn(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(gt.A);function Wn(a,e,t,r,i){a.pointerChecker&&a.pointerChecker(r,i.originX,i.originY)&&(pe.ds(r.event),rh(a,e,t,r,i))}function rh(a,e,t,r,i){i.isAvailableBehavior=(0,p.bind)(yi,null,t,r),a.trigger(e,i)}function yi(a,e,t){var r=t[a];return!a||r&&(!(0,p.isString)(r)||e.event[r+"Key"])}var Aa=k0;function Yn(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function Zn(a,e,t,r){var i=a.target,n=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var N0={axisPointer:1,tooltip:1,brush:1};function mi(a,e,t){var r=e.getComponentByElement(a.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!N0.hasOwnProperty(r.mainType)&&i&&i.model!==t}var z0=E(18393),xi=E(59442),B0=E(82250);function ah(a){if((0,p.isString)(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Un,Si={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ih=(0,p.keys)(Si),bi={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nh=(0,p.keys)(bi),G0=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=ah(e);this._defsUsePending=[];var i=new it.A;this._root=i;var n=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),de(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;W0(this._defs,this._defsUsePending),this._defsUsePending=[];var h,v;if(o){var c=_i(o);c.length>=4&&(h={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(h&&s!=null&&l!=null&&(v=fh(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new it.A,i.add(f),f.scaleX=f.scaleY=v.scale,f.x=v.x,f.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Dt.A({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:h,viewBoxTransform:v,named:n}},a.prototype._parseNode=function(e,t,r,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var h=Un[s];if(h&&(0,p.hasOwn)(Un,s)){l=h.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};r.push(c),s==="g"&&(u=c)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var f=oh[s];if(f&&(0,p.hasOwn)(oh,s)){var d=f.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,r,u,n,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},a.prototype._parseText=function(e,t){var r=new na.A({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});be(t,r),de(e,r,this._defsUsePending,!1,!1),H0(r,t);var i=r.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=function(){Un={g:function(e,t){var r=new it.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new Dt.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new _a.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new le.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new z0.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=uh(r));var n=new Se.A({shape:{points:i||[]},silent:!0});return be(t,n),de(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=uh(r));var n=new Pe.A({shape:{points:i||[]},silent:!0});return be(t,n),de(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new ue.Ay;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new it.A;return be(t,s),de(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new it.A;return be(t,s),de(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=(0,xi.UJ)(r);return be(t,i),de(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),a}(),oh={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),i=parseInt(a.getAttribute("y2")||"0",10),n=new ii.A(e,t,r,i);return sh(a,n),lh(a,n),n},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),i=new B0.A(e,t,r);return sh(a,i),lh(a,i),i}};function sh(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function lh(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var n={};ch(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function be(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,p.defaults)(e.__inheritedStyle,a.__inheritedStyle))}function uh(a){for(var e=_i(a),t=[],r=0;r0;n-=2){var o=r[n],s=r[n-1],l=_i(o);switch(i=i||Lt.create(),s){case"translate":Lt.translate(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt.scale(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lt.rotate(i,i,-parseFloat(l[0])*Xn,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Xn);Lt.mul(i,[1,0,u,1,0,0],i);break;case"skewY":var h=Math.tan(parseFloat(l[0])*Xn);Lt.mul(i,[1,h,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var vh=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ch(a,e,t){var r=a.getAttribute("style");if(r){vh.lastIndex=0;for(var i;(i=vh.exec(r))!=null;){var n=i[1],o=(0,p.hasOwn)(Si,n)?Si[n]:null;o&&(e[o]=i[2]);var s=(0,p.hasOwn)(bi,n)?bi[n]:null;s&&(t[s]=i[2])}}}function X0(a,e,t){for(var r=0;r"].join(r)}function mn(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function wl(a,e,t,r){return $t("svg","root",{width:a,height:e,xmlns:Et,"xmlns:xlink":oe,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var tg=E(12191),Me=E(92836),la=E(68717),Cl=E(82591),eg=E(96320),rg=0;function Tl(){return rg++}var Il={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},cr="transform-origin";function ag(a,e,t){var r=(0,p.extend)({},a.shape);(0,p.extend)(r,e),a.buildPath(t,r);var i=new F;return i.reset((0,bt.MD)(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function ig(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[cr]=t+"px "+r+"px")}var ng={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Dl(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function og(a,e,t){var r=a.shape.paths,i={},n,o;if((0,p.each)(r,function(l){var u=mn(t.zrId);u.animation=!0,ri(l,{},u,!0);var h=u.cssAnims,v=u.cssNodes,c=(0,p.keys)(h),f=c.length;if(f){o=c[f-1];var d=h[o];for(var g in d){var y=d[g];i[g]=i[g]||{d:""},i[g].d+=y.d||""}for(var m in v){var S=v[m].animation;S.indexOf(o)>=0&&(n=S)}}}),!!n){e.d=!1;var s=Dl(i,t);return n.replace(o,s)}}function Ll(a){return(0,p.isString)(a)?Il[a]?"cubic-bezier("+Il[a]+")":(0,eg.w)(a)?a:"":""}function ri(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof Cl.A){var s=og(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var xt=Dl(w,t);return xt+" "+S[0]+" both"}}for(var y in l){var s=g(l[y]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+Tl();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}var _t=E(32322),Wt=E(47698);function sg(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};Ml(r,e,t,!0)}else{var i=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},n=i.fill;if(!n){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(n=(0,Wt.liftColor)(l))}var u=i.lineWidth;if(u){var h=!i.strokeNoScale&&a.transform?a.transform[0]:1;u=u/h}var r={cursor:"pointer"};n&&(r.fill=n),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),Ml(r,e,t,!0)}}function Ml(a,e,t,r){var i=JSON.stringify(a),n=t.cssStyleCache[i];n||(n=t.zrId+"-cls-"+Tl(),t.cssStyleCache[i]=n,t.cssNodes["."+n+(r?":hover":"")]=a),e.class=e.class?e.class+" "+n:n}var lg=E(82755),ua=Math.round;function Pl(a){return a&&(0,p.isString)(a.src)}function Rl(a){return a&&(0,p.isFunction)(a.toDataURL)}function xn(a,e,t,r){Qt(function(i,n){var o=i==="fill"||i==="stroke";o&&(0,bt.bn)(n)?zl(e,a,i,r):o&&(0,bt.Pt)(n)?Bl(t,a,i,r):o&&n==="none"?a[i]="transparent":a[i]=n},e,t,!1),dg(t,a,r)}function Sn(a,e){var t=(0,lg.getElementSSRData)(e);t&&(t.each(function(r,i){r!=null&&(a[(Oe+i).toLowerCase()]=r+"")}),e.isSilent()&&(a[Oe+"silent"]="true"))}function El(a){return(0,bt.Cv)(a[0]-1)&&(0,bt.Cv)(a[1])&&(0,bt.Cv)(a[2])&&(0,bt.Cv)(a[3]-1)}function ug(a){return(0,bt.Cv)(a[4])&&(0,bt.Cv)(a[5])}function bn(a,e,t){if(e&&!(ug(e)&&El(e))){var r=t?10:1e4;a.transform=El(e)?"translate("+ua(e[4]*r)/r+" "+ua(e[5]*r)/r+")":(0,bt.nV)(e)}}function Vl(a,e,t){for(var r=a.points,i=[],n=0;nn?(d=t[l+1]==null?null:t[l+1].elm,Ul(a,d,t,i,l)):ai(a,e,r,n))}function Or(a,e){var t=e.elm=a.elm,r=a.children,i=e.children;a!==e&&(wn(a,e),An(e.text)?ke(r)&&ke(i)?r!==i&&Sg(t,r,i):ke(i)?(ke(a.text)&&_n(t,""),Ul(t,null,i,0,i.length-1)):ke(r)?ai(t,r,0,r.length-1):ke(a.text)&&_n(t,""):a.text!==e.text&&(ke(r)&&ai(t,r,0,r.length-1),_n(t,e.text)))}function bg(a,e){if(ha(a,e))Or(a,e);else{var t=a.elm,r=Wl(t);va(e),r!==null&&(fr(r,e.elm,Yl(t)),ai(r,[a],0,0))}return e}var _g=0,Ag=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Xl("refreshHover"),this.configLayer=Xl("configLayer"),this.storage=t,this._opts=r=(0,p.extend)({},r),this.root=e,this._id="zr"+_g++,this._oldVNode=wl(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Al("svg");wn(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",bg(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return Nl(e,mn(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,n=mn(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=wg(r,i,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=$t("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=(0,p.map)((0,p.keys)(n.defs),function(c){return n.defs[c]});if(u.length&&o.push($t("defs","defs",{},u)),e.animation){var h=qd(n.cssNodes,n.cssAnims,{newline:!0});if(h){var v=$t("style","stl",{},[],h);o.push(v)}}return wl(r,i,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},yn(this.renderToVNode({animation:(0,p.retrieve2)(e.cssAnimation,!0),emphasis:(0,p.retrieve2)(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,p.retrieve2)(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var i=e.length,n=[],o=0,s,l,u=0,h=0;h=0&&!(c&&l&&c[g]===l[g]);g--);for(var y=d-1;y>g;y--)o--,s=n[o-1];for(var m=g+1;m-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Ot.A),Dg=Ig,Q=E(5638),tt=E(43199),ft=E(69622),U=E(34833),jl=E(58267);function kr(a,e){var t=a.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=(0,jl.QE)(a,e,t[0]);return i!=null?i+"":null}else if(r){for(var n=[],o=0;o=0&&r.push(e[n])}return r.join(" ")}var q=E(89632),Lg=function(a){(0,O.C6)(e,a);function e(t,r,i,n){var o=a.call(this)||this;return o.updateData(t,r,i,n),o}return e.prototype._createSymbol=function(t,r,i,n,o){this.removeAll();var s=(0,Tt.v5)(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Mg,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,U.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,U.SD)(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,n){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,h=n&&n.disableAnimation;if(u){var v=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,v)}else{var c=this.childAt(0);c.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(f):Q.oi(c,f,s,r),(0,Q.ap)(c)}if(this._updateCommon(t,r,l,i,n),u){var c=this.childAt(0);if(!h){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Q.LW(c,f,s,r)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,n,o){var s=this.childAt(0),l=t.hostModel,u,h,v,c,f,d,g,y,m;if(n&&(u=n.emphasisItemStyle,h=n.blurItemStyle,v=n.selectItemStyle,c=n.focus,f=n.blurScope,g=n.labelStatesModels,y=n.hoverScale,m=n.cursorStyle,d=n.emphasisDisabled),!n||t.hasItemOption){var S=n&&n.itemModel?n.itemModel:t.getItemModel(r),x=S.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),v=S.getModel(["select","itemStyle"]).getItemStyle(),h=S.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),f=x.get("blurScope"),d=x.get("disabled"),g=(0,q.lx)(S),y=x.getShallow("scale"),m=S.getShallow("cursor")}var b=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var _=(0,Tt.hV)(t.getItemVisual(r,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var A=t.getItemVisual(r,"style"),w=A.fill;if(s instanceof ue.Ay){var C=s.style;s.useStyle((0,p.extend)({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},A))}else s.__isEmptyBrush?s.useStyle((0,p.extend)({},A)):s.useStyle(A),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(r,"liftZ"),I=this._z2;T!=null?I==null&&(this._z2=s.z2,s.z2+=T):I!=null&&(s.z2=I,this._z2=null);var D=o&&o.useNameLabel;(0,q.qM)(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:w,defaultOpacity:A.opacity});function L(R){return D?t.getName(R):kr(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=h;var P=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),(0,U.Lm)(this,c,f,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var n=this.childAt(0),o=(0,ft.z)(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Q.Nz(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Q.Nz(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return(0,Tt.xU)(t.getItemVisual(r,"symbolSize"))},e}(it.A);function Mg(a,e){this.parent.drift(a,e)}var ca=Lg;function Cn(a,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&a.getItemVisual(t,"symbol")!=="none"}function $l(a){return a!=null&&!(0,p.isObject)(a)&&(a={isIgnore:a}),a||{}}function Jl(a){var e=a.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:(0,q.lx)(e),cursorStyle:e.get("cursor")}}var Pg=function(){function a(e){this.group=new it.A,this._SymbolCtor=e||ca}return a.prototype.updateData=function(e,t){this._progressiveEls=null,t=$l(t);var r=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Jl(e),u={disableAnimation:s},h=t.getSymbolPoint||function(v){return e.getItemLayout(v)};n||r.removeAll(),e.diff(n).add(function(v){var c=h(v);if(Cn(e,c,v,t)){var f=new o(e,v,l,u);f.setPosition(c),e.setItemGraphicEl(v,f),r.add(f)}}).update(function(v,c){var f=n.getItemGraphicEl(c),d=h(v);if(!Cn(e,d,v,t)){r.remove(f);return}var g=e.getItemVisual(v,"symbol")||"circle",y=f&&f.getSymbolType&&f.getSymbolType();if(!f||y&&y!==g)r.remove(f),f=new o(e,v,l,u),f.setPosition(d);else{f.updateData(e,v,l,u);var m={x:d[0],y:d[1]};s?f.attr(m):Q.oi(f,m,i)}r.add(f),e.setItemGraphicEl(v,f)}).remove(function(v){var c=n.getItemGraphicEl(v);c&&c.fadeOut(function(){r.remove(c)},i)}).execute(),this._getSymbolPoint=h,this._data=e},a.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var n=e._getSymbolPoint(i);r.setPosition(n),r.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jl(e),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=$l(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=r[0]:r[1]<0&&(t=r[1]),t}function ql(a,e,t,r){var i=NaN;a.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=t.get(a.baseDim,r),o[1-n]=i,e.dataToPoint(o)}var dr=E(8957);function Eg(a,e){var t=[];return e.diff(a).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function Vg(a,e,t,r,i,n,o,s){for(var l=Eg(a,e),u=[],h=[],v=[],c=[],f=[],d=[],g=[],y=Ql(i,e,o),m=a.getLayout("points")||[],S=e.getLayout("points")||[],x=0;x=i||g<0)break;if(gr(m,S)){if(l){g+=n;continue}break}if(g===t)a[n>0?"moveTo":"lineTo"](m,S),v=m,c=S;else{var x=m-u,b=S-h;if(x*x+b*b<.5){g+=n;continue}if(o>0){for(var _=g+n,A=e[_*2],w=e[_*2+1];A===m&&w===S&&y=r||gr(A,w))f=m,d=S;else{I=A-u,D=w-h;var P=m-u,R=A-m,V=S-h,B=w-S,z=void 0,W=void 0;if(s==="x"){z=Math.abs(P),W=Math.abs(R);var $=I>0?1:-1;f=m-$*z*o,d=S,L=m+$*W*o,M=S}else if(s==="y"){z=Math.abs(V),W=Math.abs(B);var K=D>0?1:-1;f=m,d=S-K*z*o,L=m,M=S+K*W*o}else z=Math.sqrt(P*P+V*V),W=Math.sqrt(R*R+B*B),T=W/(W+z),f=m-I*o*(1-T),d=S-D*o*(1-T),L=m+I*o*T,M=S+D*o*T,L=$e(L,Je(A,m)),M=$e(M,Je(w,S)),L=Je(L,$e(A,m)),M=Je(M,$e(w,S)),I=L-m,D=M-S,f=m-I*z/W,d=S-D*z/W,f=$e(f,Je(u,m)),d=$e(d,Je(h,S)),f=Je(f,$e(u,m)),d=Je(d,$e(h,S)),I=m-f,D=S-d,L=m+I*W/z,M=S+D*W/z}a.bezierCurveTo(v,c,f,d,m,S),v=L,c=M}else a.lineTo(m,S)}u=m,h=S,g+=n}return y}var tu=function(){function a(){this.smooth=0,this.smoothConstraint=!0}return a}(),Og=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tu},e.prototype.buildPath=function(t,r){var i=r.points,n=0,o=i.length/2;if(r.connectNulls){for(;o>0&&gr(i[o*2-2],i[o*2-1]);o--);for(;n=0){var b=u?(d-l)*x+l:(f-s)*x+s;return u?[t,b]:[b,t]}s=f,l=d;break;case o.C:f=n[v++],d=n[v++],g=n[v++],y=n[v++],m=n[v++],S=n[v++];var _=u?(0,ge._E)(s,f,g,m,t,h):(0,ge._E)(l,d,y,S,t,h);if(_>0)for(var A=0;A<_;A++){var w=h[A];if(w<=1&&w>=0){var b=u?(0,ge.Yb)(l,d,y,S,w):(0,ge.Yb)(s,f,g,m,w);return u?[t,b]:[b,t]}}s=m,l=S;break}}},e}(Vt.Ay),kg=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e}(tu),eu=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new kg},e.prototype.buildPath=function(t,r){var i=r.points,n=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&gr(i[s*2-2],i[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Bg(a,e,t){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&e.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(n){var l=e.getAxis(i),u=p.map(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),h=u.length,v=n.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),v.reverse());var c=zg(u,i==="x"?t.getWidth():t.getHeight()),f=c.length;if(!f&&h)return u[0].coord<0?v[1]?v[1]:u[h-1].color:v[0]?v[0]:u[0].color;var d=10,g=c[0].coord-d,y=c[f-1].coord+d,m=y-g;if(m<.001)return"transparent";p.each(c,function(x){x.offset=(x.coord-g)/m}),c.push({offset:f?c[f-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:f?c[0].offset:.5,color:v[0]||"transparent"});var S=new ii.A(0,0,0,0,c,!0);return S[i]=g,S[i+"2"]=y,S}}}function Gg(a,e,t){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(i&&Hg(n,e))){var o=e.mapDimension(n.dim),s={};return p.each(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Hg(a,e){var t=a.getExtent(),r=Math.abs(t[1]-t[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function Fg(a,e){return isNaN(a)||isNaN(e)}function Wg(a){for(var e=a.length/2;e>0&&Fg(a[e*2-2],a[e*2-1]);e--);return e-1}function lu(a,e){return[a[e*2],a[e*2+1]]}function Yg(a,e,t){for(var r=a.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function uu(a){if(a.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var $=g.getState("emphasis").style;$.lineWidth=+g.style.lineWidth+1}(0,ft.z)(g).seriesIndex=t.seriesIndex,(0,U.Lm)(g,B,z,W);var K=su(t.get("smooth")),et=t.get("smoothMonotone");if(g.setShape({smooth:K,smoothMonotone:et,connectNulls:C}),y){var lt=l.getCalculationInfo("stackedOnSeries"),ot=0;y.useStyle(p.defaults(h.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),lt&&(ot=su(lt.get("smooth"))),y.setShape({smooth:K,stackedOnSmooth:ot,smoothMonotone:et,connectNulls:C}),(0,U.Mx)(y,t,"areaStyle"),(0,ft.z)(y).seriesIndex=t.seriesIndex,(0,U.Lm)(y,B,z,W)}var mt=function(At){n._changePolyState(At)};l.eachItemGraphicEl(function(At){At&&(At.onHoverStateChange=mt)}),this._polyline.onHoverStateChange=mt,this._data=l,this._coordSys=o,this._stackedOnPoints=A,this._points=v,this._step=D,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,r){(0,ft.z)(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,n){var o=t.getData(),s=J.le(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],v=l[s*2+1];if(isNaN(h)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,v))return;var c=t.get("zlevel")||0,f=t.get("z")||0;u=new ca(o,s),u.x=h,u.y=v,u.setZ(c,f);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=f,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Nt.A.prototype.highlight.call(this,t,r,i,n)},e.prototype.downplay=function(t,r,i,n){var o=t.getData(),s=J.le(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Nt.A.prototype.downplay.call(this,t,r,i,n)},e.prototype._changePolyState=function(t){var r=this._polygon;(0,U.Pk)(this._polyline,t),r&&(0,U.Pk)(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Og({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new eu({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var n,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,h=u.get("animationDuration");p.isFunction(h)&&(h=h(null));var v=u.get("animationDelay")||0,c=p.isFunction(v)?v(null):v;t.eachItemGraphicEl(function(f,d){var g=f;if(g){var y=[f.x,f.y],m=void 0,S=void 0,x=void 0;if(i)if(o){var b=i,_=r.pointToCoord(y);n?(m=b.startAngle,S=b.endAngle,x=-_[1]/180*Math.PI):(m=b.r0,S=b.r,x=_[0])}else{var A=i;n?(m=A.x,S=A.x+A.width,x=f.x):(m=A.y+A.height,S=A.y,x=f.y)}var w=S===m?0:(x-m)/(S-m);l&&(w=1-w);var C=p.isFunction(v)?v(d):h*w+c,T=g.getSymbolPath(),I=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var n=t.getModel("endLabel");if(uu(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new _t.Ay({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=Wg(l);h>=0&&((0,q.qM)(s,(0,q.lx)(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:h,defaultText:function(v,c,f){return f!=null?Kl(o,f):kr(o,v)},enableTextSetter:!0},Zg(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,n,o,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var v=i.getLayout("points"),c=i.hostModel,f=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),m=y.isHorizontal(),S=y.inverse,x=r.shape,b=S?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?g:0)*(S?-1:1),A=(m?0:-g)*(S?-1:1),w=m?"x":"y",C=Yg(v,b,w),T=C.range,I=T[1]-T[0],D=void 0;if(I>=1){if(I>1&&!f){var L=lu(v,T[0]);u.attr({x:L[0]+_,y:L[1]+A}),o&&(D=c.getRawValue(T[0]))}else{var L=h.getPointOn(b,w);L&&u.attr({x:L[0]+_,y:L[1]+A});var M=c.getRawValue(T[0]),P=c.getRawValue(T[1]);o&&(D=J.Il(i,d,M,P,C.t))}n.lastFrameIndex=T[0]}else{var R=t===1||n.lastFrameIndex>0?T[0]:0,L=lu(v,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+_,y:L[1]+A})}if(o){var V=(0,q.Lu)(u);typeof V.setLabelText=="function"&&V.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,r,i,n,o,s,l){var u=this._polyline,h=this._polygon,v=t.hostModel,c=Vg(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin,s),f=c.current,d=c.stackedOnCurrent,g=c.next,y=c.stackedOnNext;if(o&&(f=Qe(c.current,i,o,l),d=Qe(c.stackedOnCurrent,i,o,l),g=Qe(c.next,i,o,l),y=Qe(c.stackedOnNext,i,o,l)),ou(f,g)>3e3||h&&ou(d,y)>3e3){u.stopAnimation(),u.setShape({points:g}),h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=c.current,u.shape.points=f;var m={shape:{points:g}};c.current!==f&&(m.shape.__points=c.next),u.stopAnimation(),Q.oi(u,m,v),h&&(h.setShape({points:f,stackedOnPoints:d}),h.stopAnimation(),Q.oi(h,{shape:{stackedOnPoints:y}},v),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var S=[],x=c.status,b=0;be&&(e=a[t]);return isFinite(e)?e:NaN},min:function(a){for(var e=1/0,t=0;te&&(e=n,t=i)}return isFinite(t)?t:NaN},nearest:function(a){return a[0]}},Kg=function(a){return Math.round(a.length/2)};function hu(a){return{seriesType:a,reset:function(e,t,r){var i=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),v=r.getDevicePixelRatio(),c=Math.abs(h[1]-h[0])*(v||1),f=Math.round(s/c);if(isFinite(f)&&f>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f));var d=void 0;(0,p.isString)(n)?d=jg[n]:(0,p.isFunction)(n)&&(d=n),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/f,d,Kg))}}}}}function $g(a){a.registerChartView(Xg),a.registerSeriesModel(Dg),a.registerLayout(da("line",!0)),a.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hu("line"))}var ga=E(62536),vu=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(i)(0,p.each)(n.getAxes(),function(c,f){if(c.type==="category"&&r!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),y=o[f],m=r[f]==="x1"||r[f]==="y1";if(m&&!g&&(y+=1),d.length<2)return;if(d.length===2){s[f]=c.toGlobalCoord(c.getExtent()[m?1:0]);return}for(var S=void 0,x=void 0,b=1,_=0;_y){x=(A+S)/2;break}_===1&&(b=w-d[0].tickValue)}x==null&&(S?S&&(x=d[d.length-1].coord):x=d[0].coord),s[f]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),v=n.getBaseAxis().isHorizontal()?0:1;s[v]+=u+h/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ot.A);Ot.A.registerClass(vu);var oi=vu,Ne=E(12616),Jg=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,Ne.G_)(oi.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}),e}(oi),Qg=Jg,me=E(24711),qg=function(){function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return a}(),ty=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new qg},e.prototype.buildPath=function(t,r){var i=r.cx,n=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,h=r.startAngle,v=r.endAngle,c=r.clockwise,f=Math.PI*2,d=c?v-hMath.PI/2&&hs)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,n){if(this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var n=r.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){(0,Q.t5)(n,t,(0,ft.z)(n).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Nt.A),cu={cartesian2d:function(a,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=a.x+a.width,n=a.y+a.height,o=Dn(e.x,a.x),s=Ln(e.x+e.width,i),l=Dn(e.y,a.y),u=Ln(e.y+e.height,n),h=si?s:o,e.y=v&&l>n?u:l,e.width=h?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||v},polar:function(a,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=Ln(e.r,a.r),n=Dn(e.r0,a.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},fu={cartesian2d:function(a,e,t,r,i,n,o,s,l){var u=new Dt.A({shape:(0,p.extend)({},r),z2:1});if(u.__dataIndex=t,u.name="item",n){var h=u.shape,v=i?"height":"width";h[v]=0}return u},polar:function(a,e,t,r,i,n,o,s,l){var u=!i&&l?si:ye.A,h=new u({shape:r,z2:1});h.name="item";var v=yu(i);if(h.calculateTextPosition=ey(v,{isRoundCap:u===si}),n){var c=h.shape,f=i?"r":"endAngle",d={};c[f]=i?r.r0:r.startAngle,d[f]=r[f],(s?Q.oi:Q.LW)(h,{shape:d},n)}return h}};function ny(a,e){var t=a.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function pu(a,e,t,r,i,n,o,s){var l,u;n?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?Q.oi:Q.LW)(t,{shape:l},e,i,null);var h=e?a.baseAxis.model:null;(o?Q.oi:Q.LW)(t,{shape:u},h,i)}function du(a,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+n*i/2,y:r.y+o*i/2,width:r.width-n*i,height:r.height-o*i}},polar:function(a,e,t){var r=a.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ly(a){return a.startAngle!=null&&a.endAngle!=null&&a.startAngle===a.endAngle}function yu(a){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(a)}function mu(a,e,t,r,i,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var h=a.shape,v=mr(r.getModel("itemStyle"),h,!0);(0,p.extend)(h,v),a.setShape(h)}}else{var u=r.get(["itemStyle","borderRadius"])||0;a.setShape("r",u)}a.useStyle(l);var c=r.getShallow("cursor");c&&a.attr("cursor",c);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=(0,q.lx)(r);(0,q.qM)(a,d,{labelFetcher:n,labelDataIndex:t,defaultText:kr(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=a.getTextContent();if(s&&g){var y=r.get(["label","position"]);a.textConfig.inside=y==="middle"?!0:null,ry(a,y==="outside"?f:y,yu(o),r.get(["label","rotate"]))}(0,q.Oh)(g,d,n.getRawValue(t),function(S){return Kl(e,S)});var m=r.getModel(["emphasis"]);(0,U.Lm)(a,m.get("focus"),m.get("blurScope"),m.get("disabled")),(0,U.Mx)(a,r),ly(i)&&(a.style.fill="none",a.style.stroke="none",(0,p.each)(a.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function uy(a,e){var t=a.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=a.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,n)}var hy=function(){function a(){}return a}(),xu=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new hy},e.prototype.buildPath=function(t,r){for(var i=r.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?t:null},30,!1);function vy(a,e,t){for(var r=a.baseDimIdx,i=1-r,n=a.shape.points,o=a.largeDataIndices,s=[],l=[],u=a.barWidth,h=0,v=n.length/3;h=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[h]}return-1}function _u(a,e,t){if(yr(t,"cartesian2d")){var r=e,i=t.getArea();return{x:a?r.x:i.x,y:a?i.y:r.y,width:a?r.width:i.width,height:a?i.height:r.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:a?i.r0:n.r0,r:a?i.r:n.r,startAngle:a?n.startAngle:0,endAngle:a?n.endAngle:Math.PI*2}}}function cy(a,e,t){var r=a.type==="polar"?ye.A:Dt.A;return new r({shape:_u(e,t,a),silent:!0,z2:0})}var fy=iy;function py(a){a.registerChartView(fy),a.registerSeriesModel(Qg),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,p.curry(ga.Zp,"bar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,ga.KF)("bar")),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hu("bar")),a.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Au=E(16884),yt=E(34253),wu=Math.PI*2,vi=Math.PI/180;function Cu(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Tu(a,e){var t=Cu(a,e),r=a.get("center"),i=a.get("radius");p.isArray(i)||(i=[0,i]);var n=(0,k.lo)(t.width,e.getWidth()),o=(0,k.lo)(t.height,e.getHeight()),s=Math.min(n,o),l=(0,k.lo)(i[0],s/2),u=(0,k.lo)(i[1],s/2),h,v,c=a.coordinateSystem;if(c){var f=c.dataToPoint(r);h=f[0]||0,v=f[1]||0}else p.isArray(r)||(r=[r,r]),h=(0,k.lo)(r[0],n)+t.x,v=(0,k.lo)(r[1],o)+t.y;return{cx:h,cy:v,r0:l,r:u}}function dy(a,e,t){e.eachSeriesByType(a,function(r){var i=r.getData(),n=i.mapDimension("value"),o=Cu(r,t),s=Tu(r,t),l=s.cx,u=s.cy,h=s.r,v=s.r0,c=-r.get("startAngle")*vi,f=r.get("endAngle"),d=r.get("padAngle")*vi;f=f==="auto"?c-wu:-f*vi;var g=r.get("minAngle")*vi,y=g+d,m=0;i.each(n,function(B){!isNaN(B)&&m++});var S=i.getSum(n),x=Math.PI/(S||m)*2,b=r.get("clockwise"),_=r.get("roseType"),A=r.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var C=b?1:-1,T=[c,f],I=C*d/2;(0,la.q)(T,!b),c=T[0],f=T[1];var D=Iu(r);D.startAngle=c,D.endAngle=f,D.clockwise=b;var L=Math.abs(f-c),M=L,P=0,R=c;if(i.setLayout({viewRect:o,r:h}),i.each(n,function(B,z){var W;if(isNaN(B)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:v,r:_?NaN:h});return}_!=="area"?W=S===0&&A?x:B*x:W=L/m,WW?(K=R+C*W/2,et=K):(K=R+I,et=$-I),i.setItemLayout(z,{angle:W,startAngle:K,endAngle:et,clockwise:b,cx:l,cy:u,r0:v,r:_?(0,k.Cb)(B,w,[v,h]):h}),R=$}),Mt?m:y,_=Math.abs(x.label.y-t);if(_>=b.maxY){var A=x.label.x-e-x.len2*i,w=r+x.len,C=Math.abs(A)a.unconstrainedWidth?null:f:null;r.setStyle("width",d)}var g=r.getBoundingRect();n.width=g.width;var y=(r.style.margin||0)+2.1;n.height=g.height+y,n.y-=(n.height-v)/2}}}function Pn(a){return a.position==="center"}function my(a){var e=a.getData(),t=[],r,i,n=!1,o=(a.get("minShowLabelAngle")||0)*gy,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,v=s.y,c=s.height;function f(A){A.ignore=!0}function d(A){if(!A.ignore)return!0;for(var w in A.states)if(A.states[w].ignore===!1)return!0;return!1}e.each(function(A){var w=e.getItemGraphicEl(A),C=w.shape,T=w.getTextContent(),I=w.getTextGuideLine(),D=e.getItemModel(A),L=D.getModel("label"),M=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),V=(0,k.lo)(L.get("edgeDistance"),u),B=L.get("bleedMargin"),z=D.getModel("labelLine"),W=z.get("length");W=(0,k.lo)(W,u);var $=z.get("length2");if($=(0,k.lo)($,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":et>0?"left":"right"}var jt=Math.PI,Zt=0,se=L.get("rotate");if((0,p.isNumber)(se))Zt=se*(jt/180);else if(M==="center")Zt=0;else if(se==="radial"||se===!0){var Ke=et<0?-K+jt:-K;Zt=Ke}else if(se==="tangential"&&M!=="outside"&&M!=="outer"){var ve=Math.atan2(et,lt);ve<0&&(ve=jt*2+ve);var dn=lt>0;dn&&(ve=jt+ve),Zt=ve-jt}if(n=!!Zt,T.x=ot,T.y=mt,T.rotation=Zt,T.setStyle({verticalAlign:"middle"}),nt){T.setStyle({align:xt});var _l=T.states.select;_l&&(_l.x+=T.x,_l.y+=T.y)}else{var vr=T.getBoundingRect().clone();vr.applyTransform(T.getComputedTransform());var $d=(T.style.margin||0)+2.1;vr.y-=$d/2,vr.height+=$d,t.push({label:T,labelLine:I,position:M,len:W,len2:$,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new Re.A(et,lt),linePoints:At,textAlign:xt,labelDistance:P,labelAlignTo:R,edgeDistance:V,bleedMargin:B,rect:vr,unconstrainedWidth:vr.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:nt})}}),!n&&a.get("avoidLabelOverlap")&&yy(t,r,i,l,u,c,h,v);for(var g=0;g0){for(var h=o.getItemLayout(0),v=1;isNaN(h&&h.startAngle)&&v=n.r0}},e.type="pie",e}(Nt.A),by=Sy,ci=E(97351),he=E(6006);function zr(a,e,t){e=(0,p.isArray)(e)&&{coordDimensions:e}||(0,p.extend)({encodeDefine:a.getEncode()},e);var r=a.getSource(),i=(0,ci.A)(r,e).dimensions,n=new he.A(i,a);return n.initData(r,t),n}var fi=E(23071),_y=function(){function a(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return a.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},a.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},a.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},a.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},a}(),ma=_y,Ay=J.$r(),wy=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ma(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zr(this,{coordDimensions:["value"],encodeDefaulter:p.curry(fi.ln,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=Ay(r),n=i.seats;if(!n){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),n=i.seats=(0,k.kM)(o,r.hostModel.get("percentPrecision"))}var s=a.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){J.M5(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Ot.A),Cy=wy;function Ty(a){return{seriesType:a,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var n=r.mapDimension("value"),o=r.get(n,i);return!((0,p.isNumber)(o)&&!isNaN(o)&&o<0)})}}}function Iy(a){a.registerChartView(by),a.registerSeriesModel(Cy),(0,Au.I)("pie",a.registerAction),a.registerLayout((0,p.curry)(dy,"pie")),a.registerProcessor(ya("pie")),a.registerProcessor(Ty("pie"))}var Dy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Ot.A),Ly=Dy,Mu=4,My=function(){function a(){}return a}(),Py=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new My},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var h=u*2,v=n[h]-s/2,c=n[h+1]-l/2;if(t>=v&&r>=c&&t<=v+s&&r<=c+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],l=1/0,u=1/0,h=-1/0,v=-1/0,c=0;c=0&&(u.dataIndex=v+(e.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),Ey=Ry,Vy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=da("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var r=t.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Ey:new fa,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Nt.A),Oy=Vy,Yt=E(59109),Ht=E(15915),ky=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Ht.A),Ny=ky,xa=E(12462),Rn=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",J.US).models[0]},e.type="cartesian2dAxis",e}(Ht.A);p.mixin(Rn,xa.L);var HM=null,Pu={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)"]}}},zy=p.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Pu),En=p.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}}},Pu),By=p.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},En),Gy=p.defaults({logBase:10},En),Ru={category:zy,value:En,time:By,log:Gy},Hy=E(15135),Fy={value:1,category:1,time:1,log:1};function Br(a,e,t,r){(0,p.each)(Fy,function(i,n){var o=(0,p.merge)((0,p.merge)({},Ru[n],!0),r,!0),s=function(l){(0,O.C6)(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+n,h}return u.prototype.mergeDefaultAndTheme=function(h,v){var c=(0,yt.ad)(this),f=c?(0,yt.vs)(h):{},d=v.getTheme();(0,p.merge)(h,d.get(n+"Axis")),(0,p.merge)(h,this.getDefaultOption()),h.type=Eu(h),c&&(0,yt.YA)(h,f,c)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Hy.A.createByAxisModel(this))},u.prototype.getCategories=function(h){var v=this.option;if(v.type==="category")return h?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);a.registerComponentModel(s)}),a.registerSubTypeDefaulter(e+"Axis",Eu)}function Eu(a){return a.type||(a.data?"category":"value")}var Ut=E(25751),Wy=function(){function a(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return a.prototype.getAxis=function(e){return this._axes[e]},a.prototype.getAxes=function(){return p.map(this._dimList,function(e){return this._axes[e]},this)},a.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),p.filter(this.getAxes(),function(t){return t.scale.type===e})},a.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},a}(),Yy=Wy,Lt=E(45587),at=E(83509),Vn=["x","y"];function Vu(a){return a.type==="interval"||a.type==="time"}var Zy=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Vn,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Vu(t)||!Vu(r))){var i=t.getExtent(),n=r.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var h=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-i[0]*h,f=o[1]-n[0]*v,d=this._transform=[h,0,0,v,c,f];this._invTransform=(0,Lt.invert)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),n=this.dataToPoint(r),o=this.getArea(),s=new vt.A(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return(0,at.applyTransform)(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return(0,at.applyTransform)(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(r[0],r[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(r[0],r[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new vt.A(n,o,s,l)},e}(Yy),Uy=Zy,Ee=E(20912),Xy=function(a){(0,O.C6)(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ee.A),jy=Xy;function On(a,e,t){t=t||{};var r=a.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,h=r.getRect(),v=[h.x,h.x+h.width,h.y,h.y+h.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d=u==="x"?[v[2]-f,v[3]+f]:[v[0]-f,v[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}n.position=[u==="y"?d[c[l]]:v[0],u==="x"?d[c[l]]:v[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=y[s],n.labelOffset=o?d[c[s]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),p.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-m:m,n.z2=1,n}function Ou(a){return a.get("coordinateSystem")==="cartesian2d"}function ku(a){var e={xAxisModel:null,yAxisModel:null};return p.each(e,function(t,r){var i=r.replace(/Model$/,""),n=a.getReferringComponents(i,J.US).models[0];e[r]=n}),e}var Gr=E(67071),pi=E(74562),kn=Math.log;function Nu(a,e,t){var r=pi.A.prototype,i=r.getTicks.call(t),n=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=(0,Ut.Rx)(a,e),u=l.extent,h=l.fixMin,v=l.fixMax;if(a.type==="log"){var c=kn(a.base);u=[kn(u[0])/c,kn(u[1])/c]}a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:v});var f=r.getExtent.call(a);h&&(u[0]=f[0]),v&&(u[1]=f[1]);var d=r.getInterval.call(a),g=u[0],y=u[1];if(h&&v)d=(y-g)/o;else if(h)for(y=u[0]+d*o;yu[0]&&isFinite(g)&&isFinite(u[0]);)d=(0,Gr.kH)(d),g=u[1]-d*o;else{var m=a.getTicks().length-1;m>o&&(d=(0,Gr.kH)(d));var S=d*o;y=Math.ceil(u[1]/d)*d,g=(0,k.LI)(y-S),g<0&&u[0]>=0?(g=0,y=(0,k.LI)(S)):y>0&&u[1]<=0&&(y=0,g=-(0,k.LI)(S))}var x=(i[0].value-n[0].value)/s,b=(i[o].value-n[o].value)/s;if(r.setExtent.call(a,g+d*x,y+d*b),r.setInterval.call(a,d),(x||b)&&r.setNiceExtent.call(a,g+d,y-d),0)var _}var Ky=function(){function a(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vn,this._initCartesian(e,t,r),this.model=e}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=(0,p.keys)(o),u=l.length;if(u){for(var h=[],v=u-1;v>=0;v--){var c=+l[v],f=o[c],d=f.model,g=f.scale;(0,Gr.rf)(g)&&d.get("alignTicks")&&d.get("interval")==null?h.push(f):((0,Ut.af)(g,d),(0,Gr.rf)(g)&&(s=f))}h.length&&(s||(s=h.pop(),(0,Ut.af)(s.scale,s.model)),(0,p.each)(h,function(y){Nu(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var n={};(0,p.each)(r.x,function(o){zu(r,"y",o,n)}),(0,p.each)(r.y,function(o){zu(r,"x",o,n)}),this.resize(this.model,t)},a.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),n=!r&&e.get("containLabel"),o=(0,yt.dV)(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&((0,p.each)(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=(0,Ut.Og)(u);if(h){var v=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[v]-=h[v]+c,u.position==="top"?o.y+=h.height+c:u.position==="left"&&(o.x+=h.width+c)}}}),l()),(0,p.each)(this._coordsList,function(u){u.calcAffineTransform()});function l(){(0,p.each)(s,function(u){var h=u.isHorizontal(),v=h?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(v[c],v[1-c]),$y(u,h?o.x:o.y)})}},a.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},a.prototype.getAxes=function(){return this._axesList.slice()},a.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}(0,p.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):(0,k.dh)(i-qe)?(o=r>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=r>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},a.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},a.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},a}(),Gu={axisLine:function(a,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&a.handleAutoShown&&(i=a.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=r.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&((0,at.applyTransform)(s,s,o),(0,at.applyTransform)(l,l,o));var h=(0,p.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new le.A({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1});tt.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",t.add(v);var c=e.get(["axisLine","symbol"]);if(c!=null){var f=e.get(["axisLine","symbolSize"]);(0,p.isString)(c)&&(c=[c,c]),((0,p.isString)(f)||(0,p.isNumber)(f))&&(f=[f,f]);var d=(0,Tt.hV)(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],y=f[1];(0,p.each)([{rotate:a.rotation+Math.PI/2,offset:d[0],r:0},{rotate:a.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,S){if(c[S]!=="none"&&c[S]!=null){var x=(0,Tt.v5)(c[S],-g/2,-y/2,g,y,h.stroke,!0),b=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+b*Math.cos(a.rotation),y:_[1]-b*Math.sin(a.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(a,e,t,r){var i=t0(t,r,e,a),n=r0(t,r,e,a);if(qy(e,n,i),e0(t,r,e,a.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=(0,Mn.os)((0,p.map)(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));(0,Mn.If)(o)}},axisName:function(a,e,t,r){var i=(0,p.retrieve)(a.axisName,e.get("name"));if(i){var n=e.get("nameLocation"),o=a.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,v=[n==="start"?u[0]-h*l:n==="end"?u[1]+h*l:(u[0]+u[1])/2,Fu(n)?a.labelOffset+o*l:0],c,f=e.get("nameRotate");f!=null&&(f=f*qe/180);var d;Fu(n)?c=xr.innerTextLayout(a.rotation,f!=null?f:a.rotation,o):(c=Qy(a.rotation,n,f||0,u),d=a.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,S=(0,p.retrieve)(a.nameTruncateMaxWidth,y.maxWidth,d),x=new _t.Ay({x:v[0],y:v[1],rotation:c.rotation,silent:xr.isLabelSilent(e),style:(0,q.VB)(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(tt.setTooltipConfig({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var b=xr.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,(0,ft.z)(x).eventData=b}r.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function Qy(a,e,t,r){var i=(0,k._7)(t-a),n,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return(0,k.dh)(i-qe/2)?(o=l?"bottom":"top",n="center"):(0,k.dh)(i-qe*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",iqe/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function qy(a,e,t){if(!(0,Ut.PJ)(a.axis)){var r=a.get(["axisLabel","showMinLabel"]),i=a.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],v=t[t.length-1],c=t[t.length-2];r===!1?(xe(n),xe(u)):Hu(n,o)&&(r?(xe(o),xe(h)):(xe(n),xe(u))),i===!1?(xe(s),xe(v)):Hu(l,s)&&(i?(xe(l),xe(c)):(xe(s),xe(v)))}}function xe(a){a&&(a.ignore=!0)}function Hu(a,e){var t=a&&a.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=Lt.identity([]);return Lt.rotate(i,i,-a.rotation),t.applyTransform(Lt.mul([],i,a.getLocalTransform())),r.applyTransform(Lt.mul([],i,e.getLocalTransform())),t.intersect(r)}}function Fu(a){return a==="middle"||a==="center"}function Wu(a,e,t,r,i){for(var n=[],o=[],s=[],l=0;l=0||a===e}function l0(a){var e=Bn(a);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=Gn(t);n==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=p.defaults({color:d.color},l));var y=p.merge(p.clone(d),{boundaryGap:t,splitNumber:r,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:c},!1);if(p.isString(h)){var m=y.name;y.name=h.replace("{value}",m!=null?m:"")}else p.isFunction(h)&&(y.name=h(y.name,y));var S=new Xt.A(y,null,this.ecModel);return p.mixin(S,xa.L.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:p.merge({lineStyle:{color:"#bbb"}},ba.axisLine),axisLabel:di(ba.axisLabel,!1),axisTick:di(ba.axisTick,!1),splitLine:di(ba.splitLine,!0),splitArea:di(ba.splitArea,!0),indicator:[]},e}(Ht.A),w0=A0,_a=E(31571),qu=E(42933),C0=["axisLine","axisTickLabel","axisName"],T0=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),n=p.map(i,function(o){var s=o.model.get("showName")?o.name:"",l=new We(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});p.each(n,function(o){p.each(C0,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),h=o.get("show"),v=s.get("show"),c=l.get("color"),f=u.get("color"),d=p.isArray(c)?c:[c],g=p.isArray(f)?f:[f],y=[],m=[];function S(R,V,B){var z=B%V.length;return R[z]=R[z]||[],z}if(n==="circle")for(var x=i[0].getTicksCoords(),b=r.cx,_=r.cy,A=0;A3?1.4:o>1?1.2:1.1,h=n>0?u:1/u;Wn(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(i){var v=Math.abs(n),c=(n>0?1:-1)*(v>3?.4:v>1?.15:.05);Wn(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!eh(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;Wn(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ct.A);function Wn(a,e,t,r,i){a.pointerChecker&&a.pointerChecker(r,i.originX,i.originY)&&(pe.ds(r.event),rh(a,e,t,r,i))}function rh(a,e,t,r,i){i.isAvailableBehavior=(0,p.bind)(yi,null,t,r),a.trigger(e,i)}function yi(a,e,t){var r=t[a];return!a||r&&(!(0,p.isString)(r)||e.event[r+"Key"])}var Aa=k0;function Yn(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function Zn(a,e,t,r){var i=a.target,n=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var N0={axisPointer:1,tooltip:1,brush:1};function mi(a,e,t){var r=e.getComponentByElement(a.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!N0.hasOwnProperty(r.mainType)&&i&&i.model!==t}var z0=E(18393),xi=E(59442),B0=E(82250);function ah(a){if((0,p.isString)(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Un,Si={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ih=(0,p.keys)(Si),bi={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nh=(0,p.keys)(bi),G0=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=ah(e);this._defsUsePending=[];var i=new it.A;this._root=i;var n=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),de(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;W0(this._defs,this._defsUsePending),this._defsUsePending=[];var h,v;if(o){var c=_i(o);c.length>=4&&(h={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(h&&s!=null&&l!=null&&(v=fh(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new it.A,i.add(f),f.scaleX=f.scaleY=v.scale,f.x=v.x,f.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Dt.A({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:h,viewBoxTransform:v,named:n}},a.prototype._parseNode=function(e,t,r,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var h=Un[s];if(h&&(0,p.hasOwn)(Un,s)){l=h.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};r.push(c),s==="g"&&(u=c)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var f=oh[s];if(f&&(0,p.hasOwn)(oh,s)){var d=f.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,r,u,n,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},a.prototype._parseText=function(e,t){var r=new na.A({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});be(t,r),de(e,r,this._defsUsePending,!1,!1),H0(r,t);var i=r.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=function(){Un={g:function(e,t){var r=new it.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new Dt.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new _a.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new le.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new z0.A;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=uh(r));var n=new Se.A({shape:{points:i||[]},silent:!0});return be(t,n),de(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=uh(r));var n=new Pe.A({shape:{points:i||[]},silent:!0});return be(t,n),de(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new ue.Ay;return be(t,r),de(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new it.A;return be(t,s),de(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new it.A;return be(t,s),de(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=(0,xi.UJ)(r);return be(t,i),de(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),a}(),oh={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),i=parseInt(a.getAttribute("y2")||"0",10),n=new ii.A(e,t,r,i);return sh(a,n),lh(a,n),n},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),i=new B0.A(e,t,r);return sh(a,i),lh(a,i),i}};function sh(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function lh(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var n={};ch(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function be(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,p.defaults)(e.__inheritedStyle,a.__inheritedStyle))}function uh(a){for(var e=_i(a),t=[],r=0;r0;n-=2){var o=r[n],s=r[n-1],l=_i(o);switch(i=i||Lt.create(),s){case"translate":Lt.translate(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt.scale(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lt.rotate(i,i,-parseFloat(l[0])*Xn,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Xn);Lt.mul(i,[1,0,u,1,0,0],i);break;case"skewY":var h=Math.tan(parseFloat(l[0])*Xn);Lt.mul(i,[1,h,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var vh=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ch(a,e,t){var r=a.getAttribute("style");if(r){vh.lastIndex=0;for(var i;(i=vh.exec(r))!=null;){var n=i[1],o=(0,p.hasOwn)(Si,n)?Si[n]:null;o&&(e[o]=i[2]);var s=(0,p.hasOwn)(bi,n)?bi[n]:null;s&&(t[s]=i[2])}}}function X0(a,e,t){for(var r=0;r0,y={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=p.createHashMap(),r=p.createHashMap(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(f,d){return d&&(f=d(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function v(f){for(var d=[],g=!u&&l&&l.project,y=0;y=0)&&(c=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,q.qM)(e,(0,q.lx)(r),{labelFetcher:c,labelDataIndex:v,defaultText:t},f);var d=e.getTextContent();if(d&&(gh(d).ignore=d.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Sh(a,e,t,r,i,n){a.data?a.data.setItemGraphicEl(n,e):(0,ct.z)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function bh(a,e,t,r,i){a.data||tt.setTooltipConfig({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function _h(a,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=r.getModel("emphasis"),o=n.get("focus");return(0,U.Lm)(e,o,n.get("blurScope"),n.get("disabled")),a.isGeo&&(0,U.ml)(e,i,t),o}function Ah(a,e,t){var r=[],i;function n(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),p.each(a,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Ot.A),gm=dm;function ym(a,e){var t={};return p.each(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,h=0;h1?(b.width=x,b.height=x/y):(b.height=x,b.width=x*y),b.y=S[1]-b.height/2,b.x=S[0]-b.width/2;else{var _=a.getBoxLayoutParams();_.aspect=y,b=yt.dV(_,{width:d,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function _m(a,e){p.each(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var Am=function(){function a(){this.dimensions=Ih}return a.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Mh(l+s,l,p.extend({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Ph,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),p.each(n,function(o,s){var l=p.map(o,function(h){return h.get("nameMap")}),u=new Mh(s,s,p.extend({nameMap:p.mergeAll(l)},i(o[0])));u.zoomLimit=p.retrieve.apply(null,p.map(o,function(h){return h.get("scaleLimit")})),r.push(u),u.resize=Ph,u.resize(o[0],t),p.each(o,function(h){h.coordinateSystem=u,_m(u,h)})}),r},a.prototype.getFilledRegions=function(e,t,r,i){for(var n=(e||[]).slice(),o=p.createHashMap(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function Rm(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,i=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){Om(a);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(a.hierNode.prelim=i.hierNode.prelim+e(a,i),a.hierNode.modifier=a.hierNode.prelim-n):a.hierNode.prelim=n}else i&&(a.hierNode.prelim=i.hierNode.prelim+e(a,i));a.parentNode.hierNode.defaultAncestor=km(a,i,a.parentNode.hierNode.defaultAncestor||r[0],e)}function Em(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function kh(a){return arguments.length?a:Bm}function Ta(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function Vm(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Om(a){for(var e=a.children,t=e.length,r=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=r,n.hierNode.modifier+=r,i+=n.hierNode.change,r+=n.hierNode.shift+i}}function km(a,e,t,r){if(e){for(var i=a,n=a,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,h=o.hierNode.modifier,v=s.hierNode.modifier;s=Qn(s),n=qn(n),s&&n;){i=Qn(i),o=qn(o),i.hierNode.ancestor=a;var c=s.hierNode.prelim+v-n.hierNode.prelim-u+r(s,n);c>0&&(zm(Nm(s,a,t),a,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,h+=o.hierNode.modifier}s&&!Qn(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=v-l),n&&!qn(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-h,t=a)}return t}function Qn(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function qn(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function Nm(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function zm(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function Bm(a,e){return a.parentNode===e.parentNode?1:2}var Ci=E(48813),Gm=function(){function a(){this.parentPoint=[],this.childPoints=[]}return a}(),Hm=function(a){(0,O.C6)(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Gm},e.prototype.buildPath=function(t,r){var i=r.childPoints,n=i.length,o=r.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,h=u==="TB"||u==="BT"?0:1,v=1-h,c=(0,k.lo)(r.forkPosition,1),f=[];f[h]=o[h],f[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[h]=s[h],t.lineTo(f[0],f[1]),f[h]=l[h],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var d=1;dS.x,_||(b=b-Math.PI));var w=_?"left":"right",C=s.getModel("label"),T=C.get("rotate"),I=T*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:C.get("position")||w,rotation:T==null?-b:I,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),M=L==="relative"?p.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;M&&((0,ct.z)(t).focus=M),Wm(i,o,h,t,d,f,g,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===U.zX||(0,U.Pk)(t.__edge,P)}})}function Wm(a,e,t,r,i,n,o,s){var l=e.getModel(),u=a.get("edgeShape"),h=a.get("layout"),v=a.getOrient(),c=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Oh.A({shape:to(h,v,c,i,i)})),Q.oi(g,{shape:to(h,v,c,n,o)},a));else if(u==="polyline"&&h==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,m=[],S=0;St&&(t=i.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,i=a.targetNode;if(p.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var n=a.targetNodeId;if(n!=null&&(i=r.getNodeById(n)))return{node:i}}}function Yh(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function ao(a,e){var t=Yh(a);return p.indexOf(t,e)>=0}function Ti(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var ex=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},n=new Xt.A(i,this,this.ecModel),o=ro.createTree(r,this,s);function s(v){v.wrapMethod("getItemModel",function(c,f){var d=o.getNodeByDataIndex(f);return d&&d.children.length&&d.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=h}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return(0,zt.Qx)("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ti(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.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},e}(Ot.A),rx=ex;function ax(a,e,t){for(var r=[a],i=[],n;n=r.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(i[n])}}function ix(a,e){a.eachSeriesByType("tree",function(t){nx(t,e)})}function nx(a,e){var t=Vm(a,e);a.layoutInfo=t;var r=a.get("layout"),i=0,n=0,o=null;r==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=kh(function(x,b){return(x.parentNode===b.parentNode?1:2)/x.depth})):(i=t.width,n=t.height,o=kh());var s=a.getData().tree.root,l=s.children[0];if(l){Pm(s),ax(l,Rm,o),s.hierNode.modifier=-l.hierNode.prelim,Da(l,Em);var u=l,h=l,v=l;Da(l,function(x){var b=x.getLayout().x;bh.getLayout().x&&(h=x),x.depth>v.depth&&(v=x)});var c=u===h?1:o(u,h)/2,f=c-u.getLayout().x,d=0,g=0,y=0,m=0;if(r==="radial")d=i/(h.getLayout().x+c+f),g=n/(v.depth-1||1),Da(l,function(x){y=(x.getLayout().x+f)*d,m=(x.depth-1)*g;var b=Ta(y,m);x.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var S=a.getOrient();S==="RL"||S==="LR"?(g=n/(h.getLayout().x+c+f),d=i/(v.depth-1||1),Da(l,function(x){m=(x.getLayout().x+f)*g,y=S==="LR"?(x.depth-1)*d:i-(x.depth-1)*d,x.setLayout({x:y,y:m},!0)})):(S==="TB"||S==="BT")&&(d=i/(h.getLayout().x+c+f),g=n/(v.depth-1||1),Da(l,function(x){y=(x.getLayout().x+f)*d,m=S==="TB"?(x.depth-1)*g:n-(x.depth-1)*g,x.setLayout({x:y,y:m},!0)}))}}}function ox(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");(0,p.extend)(s,o)})})}function sx(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,n=r.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var n=i.coordinateSystem,o=$n(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lx(a){a.registerChartView(Ym),a.registerSeriesModel(rx),a.registerLayout(ix),a.registerVisual(ox),sx(a)}var Zh=["treemapZoomToNode","treemapRender","treemapMove"];function ux(a){for(var e=0;e1;)n=n.parentNode;var o=(0,io.x)(a.ecModel,n.name||n.dataIndex+"",r);i.setVisual("decal",o)})}var hx=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Xh(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt.A({itemStyle:o},this,r);n=t.levels=vx(n,r);var l=p.map(n||[],function(v){return new Xt.A(v,s,r)},this),u=ro.createTree(i,this,h);function h(v){v.wrapMethod("getItemModel",function(c,f){var d=u.getNodeByDataIndex(f),g=d?l[d.depth]:null;return c.parentModel=g||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return(0,zt.Qx)("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ti(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},p.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=p.createHashMap(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Uh(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,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:[]},e}(Ot.A);function Xh(a){var e=0;p.each(a.children,function(r){Xh(r);var i=r.value;p.isArray(i)&&(i=i[0]),e+=i});var t=a.value;p.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),p.isArray(a.value)?a.value[0]=t:a.value=t}function vx(a,e){var t=(0,J.qB)(e.get("color")),r=(0,J.qB)(e.get(["aria","decal","decals"]));if(t){a=a||[];var i,n;p.each(a,function(s){var l=new Xt.A(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(n=!0)});var o=a[0]||(a[0]={});return i||(o.color=t.slice()),!n&&r&&(o.decal=r.slice()),a}}var cx=hx,tr=E(16563),fx=8,jh=8,no=5,px=function(){function a(e){this.group=new it.A,e.add(this.group)}return a.prototype.render=function(e,t,r,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!r)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),h=l.getModel(["itemStyle","textStyle"]),v={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,v,u),this._renderContent(e,v,s,l,u,h,i),yt.m$(o,v.pos,v.box)}},a.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var n=(0,J.vS)(i.getModel().get("name"),""),o=r.getTextRect(n),s=Math.max(o.width+fx*2,t.emptyItemWidth);t.totalWidth+=s+jh,t.renderList.push({node:i,text:n,width:s})}},a.prototype._renderContent=function(e,t,r,i,n,o,s){for(var l=0,u=t.emptyItemWidth,h=e.get(["breadcrumb","height"]),v=yt.HU(t.pos,t.box),c=t.totalWidth,f=t.renderList,d=i.getModel("itemStyle").getItemStyle(),g=f.length-1;g>=0;g--){var y=f[g],m=y.node,S=y.width,x=y.text;c>v.width&&(c-=S-u,S=u,x=null);var b=new Se.A({shape:{points:dx(l,0,S,h,g===f.length-1,g===0)},style:(0,p.defaults)(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new _t.Ay({style:(0,q.VB)(n,{text:x})}),textConfig:{position:"inside"},z2:U.CA*1e4,onclick:(0,p.curry)(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=(0,q.VB)(o,{text:x}),b.ensureState("emphasis").style=d,(0,U.Lm)(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),gx(b,e,m),l+=S+jh}},a.prototype.remove=function(){this.group.removeAll()},a}();function dx(a,e,t,r,i,n){var o=[[i?a:a-no,e],[a+t,e],[a+t,e+r],[i?a:a-no,e+r]];return!n&&o.splice(2,0,[a+t+no,e+r/2]),!i&&o.push([a,e+r/2]),o}function gx(a,e,t){(0,ct.z)(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ti(t,e)}}var yx=px,mx=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:n}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;iJh||Math.abs(t.dy)>Jh)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY,n=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new vt.A(s.x,s.y,s.width,s.height),u=null,h=this._controllerHost;u=h.zoomLimit;var v=h.zoom=h.zoom||1;if(v*=n,u){var c=u.min||0,f=u.max||1/0;v=Math.max(Math.min(f,v),c)}var d=v/h.zoom;h.zoom=v;var g=this.seriesModel.layoutInfo;r-=g.x,i-=g.y;var y=Lt.create();Lt.translate(y,y,[-r,-i]),Lt.scale(y,y,[d,d]),Lt.translate(y,y,[r,i]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var n=r.seriesModel.get("nodeClick",!0);if(n){var o=r.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(n==="zoomToNode")r._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),h=l.get("target",!0)||"blank";u&&(0,qt.JW)(u,h)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new yx(this.group))).render(t,r,i.node,function(o){n._state!=="animating"&&(ao(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=La(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Nt.A);function La(){return{nodeGroup:[],background:[],content:[]}}function wx(a,e,t,r,i,n,o,s,l,u){if(!o)return;var h=o.getLayout(),v=a.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var f=h.width,d=h.height,g=h.borderWidth,y=h.invisible,m=o.getRawIndex(),S=s&&s.getRawIndex(),x=o.viewChildren,b=h.upperHeight,_=x&&x.length,A=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),T=c.getModel(["select","itemStyle"]),I=A.get("borderRadius")||0,D=ot("nodeGroup",oo);if(!D)return;if(l.add(D),D.x=h.x||0,D.y=h.y||0,D.markRedraw(),Ii(D).nodeWidth=f,Ii(D).nodeHeight=d,h.isAboveViewRoot)return D;var L=ot("background",$h,u,bx);L&&W(D,L,_&&h.upperLabelHeight);var M=c.getModel("emphasis"),P=M.get("focus"),R=M.get("blurScope"),V=M.get("disabled"),B=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)(0,U.u6)(D)&&(0,U.ix)(D,!1),L&&((0,U.ix)(L,!V),v.setItemGraphicEl(o.dataIndex,L),(0,U.gR)(L,B,R));else{var z=ot("content",$h,u,_x);z&&$(D,z),L.disableMorphing=!0,L&&(0,U.u6)(L)&&(0,U.ix)(L,!1),(0,U.ix)(D,!V),v.setItemGraphicEl(o.dataIndex,D),(0,U.gR)(D,B,R)}return D;function W(xt,nt,Ct){var wt=(0,ct.z)(nt);if(wt.dataIndex=o.dataIndex,wt.seriesIndex=a.seriesIndex,nt.setShape({x:0,y:0,width:f,height:d,r:I}),y)K(nt);else{nt.invisible=!1;var Mt=o.getVisual("style"),Jt=Mt.stroke,te=tv(A);te.fill=Jt;var kt=wr(w);kt.fill=w.get("borderColor");var jt=wr(C);jt.fill=C.get("borderColor");var Zt=wr(T);if(Zt.fill=T.get("borderColor"),Ct){var se=f-2*g;et(nt,Jt,Mt.opacity,{x:g,y:0,width:se,height:b})}else nt.removeTextContent();nt.setStyle(te),nt.ensureState("emphasis").style=kt,nt.ensureState("blur").style=jt,nt.ensureState("select").style=Zt,(0,U.DW)(nt)}xt.add(nt)}function $(xt,nt){var Ct=(0,ct.z)(nt);Ct.dataIndex=o.dataIndex,Ct.seriesIndex=a.seriesIndex;var wt=Math.max(f-2*g,0),Mt=Math.max(d-2*g,0);if(nt.culling=!0,nt.setShape({x:g,y:g,width:wt,height:Mt,r:I}),y)K(nt);else{nt.invisible=!1;var Jt=o.getVisual("style"),te=Jt.fill,kt=tv(A);kt.fill=te,kt.decal=Jt.decal;var jt=wr(w),Zt=wr(C),se=wr(T);et(nt,te,Jt.opacity,null),nt.setStyle(kt),nt.ensureState("emphasis").style=jt,nt.ensureState("blur").style=Zt,nt.ensureState("select").style=se,(0,U.DW)(nt)}xt.add(nt)}function K(xt){!xt.invisible&&n.push(xt)}function et(xt,nt,Ct,wt){var Mt=c.getModel(wt?qh:Qh),Jt=(0,J.vS)(c.get("name"),null),te=Mt.getShallow("show");(0,q.qM)(xt,(0,q.lx)(c,wt?qh:Qh),{defaultText:te?Jt:null,inheritColor:nt,defaultOpacity:Ct,labelFetcher:a,labelDataIndex:o.dataIndex});var kt=xt.getTextContent();if(kt){var jt=kt.style,Zt=(0,p.normalizeCssArray)(jt.padding||0);wt&&(xt.setTextConfig({layoutRect:wt}),kt.disableLabelLayout=!0),kt.beforeUpdate=function(){var Ke=Math.max((wt?wt.width:xt.shape.width)-Zt[1]-Zt[3],0),ve=Math.max((wt?wt.height:xt.shape.height)-Zt[0]-Zt[2],0);(jt.width!==Ke||jt.height!==ve)&&kt.setStyle({width:Ke,height:ve})},jt.truncateMinChar=2,jt.lineOverflow="truncate",lt(jt,wt,h);var se=kt.getState("emphasis");lt(se?se.style:null,wt,h)}}function lt(xt,nt,Ct){var wt=xt?xt.text:null;if(!nt&&Ct.isLeafRoot&&wt!=null){var Mt=a.get("drillDownIcon",!0);xt.text=Mt?Mt+" "+wt:wt}}function ot(xt,nt,Ct,wt){var Mt=S!=null&&t[xt][S],Jt=i[xt];return Mt?(t[xt][S]=null,mt(Jt,Mt)):y||(Mt=new nt,Mt instanceof Ar.Ay&&(Mt.z2=Cx(Ct,wt)),At(Jt,Mt)),e[xt][m]=Mt}function mt(xt,nt){var Ct=xt[m]={};nt instanceof oo?(Ct.oldX=nt.x,Ct.oldY=nt.y):Ct.oldShape=(0,p.extend)({},nt.shape)}function At(xt,nt){var Ct=xt[m]={},wt=o.parentNode,Mt=nt instanceof it.A;if(wt&&(!r||r.direction==="drillDown")){var Jt=0,te=0,kt=i.background[wt.getRawIndex()];!r&&kt&&kt.oldShape&&(Jt=kt.oldShape.width,te=kt.oldShape.height),Mt?(Ct.oldX=0,Ct.oldY=te):Ct.oldShape={x:Jt,y:te,width:0,height:0}}Ct.fadein=!Mt}}function Cx(a,e){return a*Sx+e}var Tx=Ax,Ma=p.each,Ix=p.isObject,Di=-1,so=function(){function a(e){var t=e.mappingMethod,r=e.type,i=this.option=p.clone(e);this.type=r,this.mappingMethod=t,this._normalizeData=Mx[t];var n=a.visualHandlers[r];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(lo(i),Dx(i)):t==="category"?i.categories?Lx(i):lo(i,!0):(p.assert(t!=="linear"||i.dataExtent),lo(i))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return p.bind(this._normalizeData,this)},a.listVisualTypes=function(){return p.keys(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){p.isObject(e)?p.each(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var i,n=p.isArray(e)?[]:p.isObject(e)?{}:(i=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);i?n=l:n[s]=l}),n},a.retrieveVisuals=function(e){var t={},r;return e&&Ma(a.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(p.isArray(e))e=e.slice();else if(Ix(e)){var t=[];Ma(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var i,n=1/0,o=0,s=t.length;o=0;n--)r[n]==null&&(delete t[e[n]],e.pop())}function lo(a,e){var t=a.visual,r=[];p.isObject(t)?Ma(t,function(n){r.push(n)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(a.type)&&(r[1]=r[0]),rv(a,r)}function Li(a){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",a(t("color"),i))},_normalizedToVisual:uo([0,1])}}function ev(a){var e=this.option.visual;return e[Math.round((0,k.Cb)(a,[0,1],[0,e.length-1],!0))]||{}}function Pa(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function Ra(a){var e=this.option.visual;return e[this.option.loop&&a!==Di?a%e.length:a]}function Cr(){return this.option.visual[0]}function uo(a){return{linear:function(e){return(0,k.Cb)(e,a,this.option.visual,!0)},category:Ra,piecewise:function(e,t){var r=ho.call(this,t);return r==null&&(r=(0,k.Cb)(e,a,this.option.visual,!0)),r},fixed:Cr}}function ho(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=so.findPieceIndex(a,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function rv(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=p.map(e,function(t){var r=Wt.parse(t);return r||[0,0,0,1]})),e}var Mx={linear:function(a){return(0,k.Cb)(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=so.findPieceIndex(a,e,!0);if(t!=null)return(0,k.Cb)(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e==null?Di:e},fixed:p.noop};function Mi(a,e,t){return a?e<=t:e=t.length||g===t[g.depth]){var m=kx(i,l,g,y,d,r);iv(g,m,t,r)}})}}}function Ex(a,e,t){var r=(0,p.extend)({},e),i=t.designatedVisualItemStyle;return(0,p.each)(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=a.get(n);i[n]=null,o!=null&&(r[n]=o)}),r}function nv(a){var e=vo(a,"color");if(e){var t=vo(a,"colorAlpha"),r=vo(a,"colorSaturation");return r&&(e=(0,Wt.modifyHSL)(e,null,null,r)),t&&(e=(0,Wt.modifyAlpha)(e,t)),e}}function Vx(a,e){return e!=null?(0,Wt.modifyHSL)(e,null,null,a):null}function vo(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function Ox(a,e,t,r,i,n){if(!(!n||!n.length)){var o=co(e,"color")||i.color!=null&&i.color!=="none"&&(co(e,"colorAlpha")||co(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(h==="index"||h==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new ae(v);return av(c).drColorMappingBy=h,c}}}function co(a,e){var t=a.get(e);return(0,p.isArray)(t)&&t.length?{name:e,range:t}:null}function kx(a,e,t,r,i,n){var o=(0,p.extend)({},e);if(i){var s=i.type,l=s==="color"&&av(i).drColorMappingBy,u=l==="index"?r:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Ea=Math.max,Pi=Math.min,ov=p.retrieve,fo=p.each,sv=["itemStyle","borderWidth"],Nx=["itemStyle","gapWidth"],zx=["upperLabel","show"],Bx=["upperLabel","height"],Gx={seriesType:"treemap",reset:function(a,e,t,r){var i=t.getWidth(),n=t.getHeight(),o=a.option,s=yt.dV(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=(0,k.lo)(ov(s.width,l[0]),i),h=(0,k.lo)(ov(s.height,l[1]),n),v=r&&r.type,c=["treemapZoomToNode","treemapRootToNode"],f=Ia(r,c,a),d=v==="treemapRender"||v==="treemapMove"?r.rootRect:null,g=a.getViewRoot(),y=Yh(g);if(v!=="treemapMove"){var m=v==="treemapZoomToNode"?Ux(a,f,g,u,h):d?[d.width,d.height]:[u,h],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var x={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),lv(g,x,!1,0),b=g.getLayout(),fo(y,function(A,w){var C=(y[w+1]||g).getValue();A.setLayout(p.extend({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var _=a.getData().tree.root;_.setLayout(Xx(s,d,f),!0),a.setLayoutInfo(s),hv(_,new vt.A(-s.x,-s.y,i,n),y,g,0)}};function lv(a,e,t,r){var i,n;if(!a.isRemoved()){var o=a.getLayout();i=o.width,n=o.height;var s=a.getModel(),l=s.get(sv),u=s.get(Nx)/2,h=vv(s),v=Math.max(l,h),c=l-u,f=v-u;a.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:h},!0),i=Ea(i-2*c,0),n=Ea(n-c-f,0);var d=i*n,g=Hx(a,s,d,e,t,r);if(g.length){var y={x:c,y:f,width:i,height:n},m=Pi(i,n),S=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var A=g[b];x.push(A),x.area+=A.getLayout().area;var w=Zx(x,m,e.squareRatio);w<=S?(b++,S=w):(x.area-=x.pop().getLayout().area,uv(x,m,y,u,!1),m=Pi(y.width,y.height),x.length=x.area=0,S=1/0)}if(x.length&&uv(x,m,y,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&d=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Zx(a,e,t){for(var r=0,i=1/0,n=0,o=void 0,s=a.length;nr&&(r=o));var l=a.area*a.area,u=e*e*t;return l?Ea(u*r/l,l/(u*i)):1/0}function uv(a,e,t,r,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],h=e?a.area/e:0;(i||h>t[l[o]])&&(h=t[l[o]]);for(var v=0,c=a.length;vk.Is&&(u=k.Is),n=s}ur&&(r=e);var n=r%2?r+2:r+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=b[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(b[1],b[0]);v[0].8?"left":c[0]<-.8?"right":"center",g=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*m+h[0],n.y=-c[1]*S+h[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",g=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=m*w+h[0],n.y=h[1]+T,d=b[0]<0?"right":"left",n.originX=-m*w,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=A[0],n.y=A[1]+T,d="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-m*w+v[0],n.y=v[1]+T,d=b[0]>=0?"right":"left",n.originX=m*w,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||g,align:n.__align||d})}},e}(it.A),Co=cS,fS=function(){function a(e){this.group=new it.A,this._LineCtor=e||Co}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,n=r._lineData;r._lineData=e,n||i.removeAll();var o=_v(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_v(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!pS(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function _v(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:(0,q.lx)(e)}}function Av(a){return isNaN(a[0])||isNaN(a[1])}function To(a){return a&&!Av(a[0])&&!Av(a[1])}var Io=fS,Do=[],Lo=[],Mo=[],Wr=ge.k3,Po=at.distSquare,wv=Math.abs;function Cv(a,e,t){for(var r=a[0],i=a[1],n=a[2],o=1/0,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){Do[0]=Wr(r[0],i[0],n[0],h),Do[1]=Wr(r[1],i[1],n[1],h);var v=wv(Po(Do,e)-l);v=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ro(a,e){var t=[],r=ge.kx,i=[[],[],[]],n=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[at.clone(u[0]),at.clone(u[1])],u[2]&&u.__original.push(at.clone(u[2])));var c=u.__original;if(u[2]!=null){if(at.copy(i[0],c[0]),at.copy(i[1],c[2]),at.copy(i[2],c[1]),h&&h!=="none"){var f=ka(s.node1),d=Cv(i,c[0],f*e);r(i[0][0],i[1][0],i[2][0],d,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],d,t),i[0][1]=t[3],i[1][1]=t[4]}if(v&&v!=="none"){var f=ka(s.node2),d=Cv(i,c[1],f*e);r(i[0][0],i[1][0],i[2][0],d,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],d,t),i[1][1]=t[1],i[2][1]=t[2]}at.copy(u[0],i[0]),at.copy(u[1],i[2]),at.copy(u[2],i[1])}else{if(at.copy(n[0],c[0]),at.copy(n[1],c[1]),at.sub(o,n[1],n[0]),at.normalize(o,o),h&&h!=="none"){var f=ka(s.node1);at.scaleAndAdd(n[0],n[0],o,f*e)}if(v&&v!=="none"){var f=ka(s.node2);at.scaleAndAdd(n[1],n[1],o,-f*e)}at.copy(u[0],n[0]),at.copy(u[1],n[1])}})}function Tv(a){return a.type==="view"}var dS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new fa,n=new Io,o=this.group;this._controller=new Aa(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Tv(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(h):Q.oi(u,h,t)}Ro(t.getGraph(),Oa(t));var v=t.getData();s.updateData(v);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,d=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,d);var g=t.get("layout");v.graph.eachNode(function(x){var b=x.dataIndex,_=x.getGraphicEl(),A=x.getModel();if(_){_.off("drag").off("dragend");var w=A.get("draggable");w&&_.on("drag",function(T){switch(g){case"force":f.warmUp(),!n._layouting&&n._startForceLayoutIteration(f,d),f.setFixed(b),v.setItemLayout(b,[_.x,_.y]);break;case"circular":v.setItemLayout(b,[_.x,_.y]),x.setLayout({fixed:!0},!0),So(t,"symbolSize",x,[T.offsetX,T.offsetY]),n.updateLayout(t);break;case"none":default:v.setItemLayout(b,[_.x,_.y]),mo(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(b)}),_.setDraggable(w,!!A.get("cursor"));var C=A.get(["emphasis","focus"]);C==="adjacency"&&((0,ct.z)(_).focus=x.getAdjacentDataIndices())}}),v.graph.eachEdge(function(x){var b=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);b&&_==="adjacency"&&((0,ct.z)(b).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=v.getLayout("cx"),S=v.getLayout("cy");v.graph.eachNode(function(x){gv(x,y,m,S)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function n(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,h,v){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(h,v)&&!mi(u,i,t)}),!Tv(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Yn(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zn(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),Ro(t.getGraph(),Oa(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=Oa(t);r.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){Ro(t.getGraph(),Oa(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Nt.A),gS=dS;function Yr(a){return"_EC_"+a}var yS=function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Yr(e)]){var i=new Tr(e,t);return i.hostGraph=this,this.nodes.push(i),r[Yr(e)]=i,i}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[Yr(e)]},a.prototype.addEdge=function(e,t,r){var i=this._nodesMap,n=this._edgesMap;if(p.isNumber(e)&&(e=this.nodes[e]),p.isNumber(t)&&(t=this.nodes[t]),e instanceof Tr||(e=i[Yr(e)]),t instanceof Tr||(t=i[Yr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Iv(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof Tr&&(e=e.id),t instanceof Tr&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,i=r.length,n=0;n=0&&e.call(t,r[n],n)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,i=r.length,n=0;n=0&&r[n].node1.dataIndex>=0&&r[n].node2.dataIndex>=0&&e.call(t,r[n],n)},a.prototype.breadthFirstTraverse=function(e,t,r,i){if(t instanceof Tr||(t=this._nodesMap[Yr(t)]),!!t){for(var n=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}p.mixin(Tr,Dv("hostGraph","data")),p.mixin(Iv,Dv("hostGraph","edgeData"));var mS=yS,Lv=E(89737);function Mv(a,e,t,r,i){for(var n=new mS(r),o=0;o "+c)),u++)}var f=t.get("coordinateSystem"),d;if(f==="cartesian2d"||f==="polar")d=(0,Fe.A)(a,t);else{var g=Lv.A.get(f),y=g?g.dimensions||[]:[];p.indexOf(y,"value")<0&&y.concat(["value"]);var m=(0,ci.A)(a,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;d=new he.A(m,t),d.initData(a)}var S=new he.A(["value"],t);return S.initData(l,s),i&&i(d,S),Wh({mainData:d,struct:n,structAttr:"graph",datas:{node:d,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var xS=E(4235),SS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new ma(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,J.M5)(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){tS(this);var s=Mv(n,i,this,!0,l);return p.each(s.edges,function(u){eS(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(d){var g=o._categoriesModels,y=d.getShallow("category"),m=g[y];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var v=Xt.A.prototype.getModel;function c(d,g){var y=v.call(this,d,g);return y.resolveParentPath=f,y}h.wrapMethod("getItemModel",function(d){return d.resolveParentPath=f,d.getModel=c,d});function f(d){if(d&&(d[0]==="label"||d[1]==="label")){var g=d.slice();return d[0]==="label"?g[0]="edgeLabel":d[1]==="label"&&(g[1]="edgeLabel"),g}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),(0,zt.Qx)("nameValue",{name:h.join(" > "),value:o.value,noValue:o.value==null})}var v=(0,xS.J)({series:this,dataIndex:t,multipleSeries:r});return v},e.prototype._updateCategoriesData=function(){var t=p.map(this.option.categories||[],function(i){return i.value!=null?i:p.extend({value:0},i)}),r=new he.A(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(Ot.A),bS=SS,_S={type:"graphRoam",event:"graphRoam",update:"none"};function AS(a){a.registerChartView(gS),a.registerSeriesModel(bS),a.registerProcessor(Kx),a.registerVisual($x),a.registerVisual(Jx),a.registerLayout(rS),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,iS),a.registerLayout(oS),a.registerCoordinateSystem("graphView",{dimensions:Ca.dimensions,create:lS}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},p.noop),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},p.noop),a.registerAction(_S,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var n=i.coordinateSystem,o=$n(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var wS=function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a}(),CS=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new wS},e.prototype.buildPath=function(t,r){var i=Math.cos,n=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),h=r.y-n(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(r.x+i(l)*s,r.y+n(l)*s),t.lineTo(r.x+i(r.angle)*o,r.y+n(r.angle)*o),t.lineTo(r.x-i(l)*s,r.y-n(l)*s),t.lineTo(u,h)},e}(Vt.Ay),TS=CS;function IS(a,e){var t=a.get("center"),r=e.getWidth(),i=e.getHeight(),n=Math.min(r,i),o=(0,k.lo)(t[0],e.getWidth()),s=(0,k.lo)(t[1],e.getHeight()),l=(0,k.lo)(a.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Vi(a,e){var t=a==null?"":a+"";return e&&((0,p.isString)(e)?t=e.replace("{value}",t):(0,p.isFunction)(e)&&(t=e(a))),t}var DS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=IS(t,i);this._renderMain(t,r,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),f=c?si:ye.A,d=v.get("show"),g=v.getModel("lineStyle"),y=g.get("width"),m=[u,h];(0,la.q)(m,!l),u=m[0],h=m[1];for(var S=h-u,x=u,b=[],_=0;d&&_=T&&(I===0?0:n[I-1][0])Math.PI/2&&(ot+=Math.PI)):lt==="tangential"?ot=-C-Math.PI/2:(0,p.isNumber)(lt)&&(ot=lt*Math.PI/180),ot===0?v.add(new _t.Ay({style:(0,q.VB)(x,{text:W,x:K,y:et,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):v.add(new _t.Ay({style:(0,q.VB)(x,{text:W,x:K,y:et,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:K,originY:et,rotation:ot}))}if(S.get("show")&&V!==b){var B=S.get("distance");B=B?B+h:h;for(var mt=0;mt<=_;mt++){P=Math.cos(C),R=Math.sin(C);var At=new le.A({shape:{x1:P*(d-B)+c,y1:R*(d-B)+f,x2:P*(d-w-B)+c,y2:R*(d-w-B)+f},silent:!0,style:L});L.stroke==="auto"&&At.setStyle({stroke:n((V+mt/_)/b)}),v.add(At),C+=I}C-=I}else C+=T}},e.prototype._renderPointer=function(t,r,i,n,o,s,l,u,h){var v=this.group,c=this._data,f=this._progressEls,d=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),m=y.get("show"),S=t.getData(),x=S.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),A=[b,_],w=[s,l];function C(I,D){var L=S.getItemModel(I),M=L.getModel("pointer"),P=(0,k.lo)(M.get("width"),o.r),R=(0,k.lo)(M.get("length"),o.r),V=t.get(["pointer","icon"]),B=M.get("offsetCenter"),z=(0,k.lo)(B[0],o.r),W=(0,k.lo)(B[1],o.r),$=M.get("keepAspect"),K;return V?K=(0,Tt.v5)(V,z-P/2,W-R,P,R,null,$):K=new TS({shape:{angle:-Math.PI/2,width:P,r:R,x:z,y:W}}),K.rotation=-(D+Math.PI/2),K.x=o.cx,K.y=o.cy,K}function T(I,D){var L=y.get("roundCap"),M=L?si:ye.A,P=y.get("overlap"),R=P?y.get("width"):h/S.count(),V=P?o.r-R:o.r-(I+1)*R,B=P?o.r:o.r-I*R,z=new M({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:B}});return P&&(z.z2=_-S.get(x,I)%_),z}(m||g)&&(S.diff(c).add(function(I){var D=S.get(x,I);if(g){var L=C(I,s);Q.LW(L,{rotation:-((isNaN(+D)?w[0]:(0,k.Cb)(D,A,w,!0))+Math.PI/2)},t),v.add(L),S.setItemGraphicEl(I,L)}if(m){var M=T(I,s),P=y.get("clip");Q.LW(M,{shape:{endAngle:(0,k.Cb)(D,A,w,P)}},t),v.add(M),(0,ct.a)(t.seriesIndex,S.dataType,I,M),d[I]=M}}).update(function(I,D){var L=S.get(x,I);if(g){var M=c.getItemGraphicEl(D),P=M?M.rotation:s,R=C(I,P);R.rotation=P,Q.oi(R,{rotation:-((isNaN(+L)?w[0]:(0,k.Cb)(L,A,w,!0))+Math.PI/2)},t),v.add(R),S.setItemGraphicEl(I,R)}if(m){var V=f[D],B=V?V.shape.endAngle:s,z=T(I,B),W=y.get("clip");Q.oi(z,{shape:{endAngle:(0,k.Cb)(L,A,w,W)}},t),v.add(z),(0,ct.a)(t.seriesIndex,S.dataType,I,z),d[I]=z}}).execute(),S.each(function(I){var D=S.getItemModel(I),L=D.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(g){var V=S.getItemGraphicEl(I),B=S.getItemVisual(I,"style"),z=B.fill;if(V instanceof ue.Ay){var W=V.style;V.useStyle((0,p.extend)({image:W.image,x:W.x,y:W.y,width:W.width,height:W.height},B))}else V.useStyle(B),V.type!=="pointer"&&V.setColor(z);V.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",n((0,k.Cb)(S.get(x,I),A,[0,1],!0))),V.z2EmphasisLift=0,(0,U.Mx)(V,D),(0,U.Lm)(V,M,P,R)}if(m){var $=d[I];$.useStyle(S.getItemVisual(I,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,(0,U.Mx)($,D),(0,U.Lm)($,M,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),h=(0,Tt.v5)(s,r.cx-o/2+(0,k.lo)(l[0],r.r),r.cy-o/2+(0,k.lo)(l[1],r.r),o,o,null,u);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,r,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),v=+t.get("max"),c=new it.A,f=[],d=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){f[m]=new _t.Ay({silent:!0}),d[m]=new _t.Ay({silent:!0})}).update(function(m,S){f[m]=s._titleEls[S],d[m]=s._detailEls[S]}).execute(),l.each(function(m){var S=l.getItemModel(m),x=l.get(u,m),b=new it.A,_=n((0,k.Cb)(x,[h,v],[0,1],!0)),A=S.getModel("title");if(A.get("show")){var w=A.get("offsetCenter"),C=o.cx+(0,k.lo)(w[0],o.r),T=o.cy+(0,k.lo)(w[1],o.r),I=f[m];I.attr({z2:y?0:2,style:(0,q.VB)(A,{x:C,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),b.add(I)}var D=S.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),M=o.cx+(0,k.lo)(L[0],o.r),P=o.cy+(0,k.lo)(L[1],o.r),R=(0,k.lo)(D.get("width"),o.r),V=(0,k.lo)(D.get("height"),o.r),B=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,I=d[m],z=D.get("formatter");I.attr({z2:y?0:2,style:(0,q.VB)(D,{x:M,y:P,text:Vi(x,z),width:isNaN(R)?null:R,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:B})}),(0,q.Oh)(I,{normal:D},x,function($){return Vi($,z)}),g&&(0,q.xb)(I,m,l,t,{getFormattedLabel:function($,K,et,lt,ot,mt){return Vi(mt?mt.interpolatedValue:x,z)}}),b.add(I)}c.add(b)}),this.group.add(c),this._titleEls=f,this._detailEls=d},e.type="gauge",e}(Nt.A),LS=DS,MS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return zr(this,["value"])},e.type="series.gauge",e.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}},e}(Ot.A),PS=MS;function RS(a){a.registerChartView(LS),a.registerSeriesModel(PS)}var ES=["itemStyle","opacity"],VS=function(a){(0,O.C6)(e,a);function e(t,r){var i=a.call(this)||this,n=i,o=new Pe.A,s=new _t.Ay;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var n=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),h=s.get(ES);h=h==null?1:h,i||(0,Q.ap)(n),n.useStyle(t.getItemVisual(r,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Q.LW(n,{style:{opacity:h}},o,r)):Q.oi(n,{style:{opacity:h},shape:{points:l.points}},o,r),(0,U.Mx)(n,s),this._updateLabel(t,r),(0,U.Lm)(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),h=u.label,v=t.getItemVisual(r,"style"),c=v.fill;(0,q.qM)(o,(0,q.lx)(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:v.opacity,defaultText:t.getName(r)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:c,outsideFill:c});var f=h.linePoints;n.setShape({points:f}),i.textGuideLineConfig={anchor:f?new Re.A(f[0][0],f[0][1]):null},Q.oi(o,{style:{x:h.x,y:h.y}},s,r),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),(0,Nr.eR)(i,(0,Nr.rv)(l),{stroke:c})},e}(Se.A),OS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new VS(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=o.getItemGraphicEl(u);h.updateData(n,l),s.add(h),n.setItemGraphicEl(l,h)}).remove(function(l){var u=o.getItemGraphicEl(l);Q.t5(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Nt.A),kS=OS,NS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ma(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return zr(this,{coordDimensions:["value"],encodeDefaulter:p.curry(fi.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,J.M5)(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=a.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),o=r.getSum(n);return i.percent=o?+(r.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.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"}}},e}(Ot.A),zS=NS;function BS(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function GS(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=a.count();on1)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!Vo(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Vo(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var l1=o1,u1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&p.merge(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){p.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=p.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);p.each(i,function(n){t.push("dim"+n.get("dim")),r.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(Ht.A),h1=u1,v1=function(a){(0,O.C6)(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ee.A),c1=v1;function Ir(a,e,t,r,i,n){a=a||0;var o=t[1]-t[0];if(i!=null&&(i=Zr(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Zr(s,[0,o]),i=n=Zr(s,[i,n]),r=0}e[0]=Zr(e[0],t),e[1]=Zr(e[1],t);var l=Oo(e,r);e[r]+=a;var u=i||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[r]=Zr(e[r],h);var v;return v=Oo(e,r),i!=null&&(v.sign!==l.sign||v.spann&&(e[1-r]=e[r]+v.sign*n),e}function Oo(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Zr(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var ko=p.each,Vv=Math.min,Ov=Math.max,kv=Math.floor,f1=Math.ceil,Nv=k.LI,p1=Math.PI,d1=function(){function a(e,t,r){this.type="parallel",this._axesMap=p.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=e.dimensions,n=e.parallelAxisIndex;ko(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(o,new c1(o,Ut.f$(u),[0,0],u.get("type"),l)),v=h.type==="category";h.onBand=v&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();ko(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Ut.af(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=yt.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,h=Oi(e.get("axisExpandWidth"),l),v=Oi(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&h>0&&s>0,f=e.get("axisExpandWindow"),d;if(f)d=Oi(f[1]-f[0],l),f[1]=f[0]+d;else{d=Oi(h*(v-1),l);var g=e.get("axisExpandCenter")||kv(u/2);f=[h*g-d/2],f[1]=f[0]+d}var y=(s-d)/(u-v);y<3&&(y=0);var m=[kv(Nv(f[0]/h,1))+1,f1(Nv(f[1]/h,1))-1],S=y/h*f[0];return{layout:n,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:c,axisExpandWidth:h,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:S}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ko(r,function(o,s){var l=(i.axisExpandable?y1:g1)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},h={horizontal:p1/2,vertical:0},v=[u[n].x+e.x,u[n].y+e.y],c=h[n],f=Lt.create();Lt.rotate(f,f,c),Lt.translate(f,f,v),this._axesLayout[o]={position:v,rotation:c,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];p.each(o,function(y){s.push(e.mapDimension(y)),l.push(n.get(y).model)});for(var u=this.hasAxisBrushed(),h=r;hn*(1-v[0])?(u="jump",l=s-n*(1-v[2])):(l=s-n*v[1])>=0&&(l=s-n*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?Ir(l,i,o,"all"):u="none";else{var f=i[1]-i[0],d=o[1]*s/f;i=[Ov(0,d-f/2)],i[1]=Vv(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},a}();function Oi(a,e){return Vv(Ov(a,e[0]),e[1])}function g1(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function y1(a,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,h;return a=0;i--)k.Y6(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=r.length;nw1}function Xv(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function jv(a,e,t,r){var i=new it.A;return i.add(new Dt.A({name:"main",style:Fo(t),silent:!0,draggable:!0,cursor:"move",drift:(0,p.curry)(Jv,a,e,i,["n","s","w","e"]),ondragend:(0,p.curry)(Lr,e,{isEnd:!0})})),(0,p.each)(r,function(n){i.add(new Dt.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,p.curry)(Jv,a,e,i,n),ondragend:(0,p.curry)(Lr,e,{isEnd:!0})}))}),i}function Kv(a,e,t,r){var i=r.brushStyle.lineWidth||0,n=Ur(i,C1),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,h=t[0][1],v=t[1][1],c=h-n+i/2,f=v-n+i/2,d=h-o,g=v-s,y=d+i,m=g+i;Ze(a,e,"main",o,s,d,g),r.transformable&&(Ze(a,e,"w",l,u,n,m),Ze(a,e,"e",c,u,n,m),Ze(a,e,"n",l,u,y,n),Ze(a,e,"s",l,f,y,n),Ze(a,e,"nw",l,u,n,n),Ze(a,e,"ne",c,u,n,n),Ze(a,e,"sw",l,f,n,n),Ze(a,e,"se",c,f,n,n))}function Ho(a,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(Fo(t)),i.attr({silent:!r,cursor:r?"move":"default"}),(0,p.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?Wo(a,n[0]):R1(a,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?I1[s]+"-resize":null})})}function Ze(a,e,t,r,i,n,o){var s=e.childOfName(t);s&&s.setShape(V1(Yo(a,e,[[r,i],[r+n,i+o]])))}function Fo(a){return(0,p.defaults)({strokeNoScale:!0},a.brushStyle)}function $v(a,e,t,r){var i=[Na(a,t),Na(e,r)],n=[Ur(a,t),Ur(e,r)];return[[i[0],n[0]],[i[1],n[1]]]}function P1(a){return tt.getTransform(a.group)}function Wo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=tt.transformDirection(t[e],P1(a));return r[i]}function R1(a,e){var t=[Wo(a,e[0]),Wo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Jv(a,e,t,r,i,n){var o=t.__brushOption,s=a.toRectRange(o.range),l=Qv(e,i,n);(0,p.each)(r,function(u){var h=T1[u];s[h[0]][h[1]]+=l[h[0]]}),o.range=a.fromRectRange($v(s[0][0],s[1][0],s[0][1],s[1][1])),No(e,t),Lr(e,{isEnd:!1})}function E1(a,e,t,r){var i=e.__brushOption.range,n=Qv(a,t,r);(0,p.each)(i,function(o){o[0]+=n[0],o[1]+=n[1]}),No(a,e),Lr(a,{isEnd:!1})}function Qv(a,e,t){var r=a.group,i=r.transformCoordToLocal(e,t),n=r.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function Yo(a,e,t){var r=Uv(a,e);return r&&r!==Dr?r.clipPath(t,a._transform):(0,p.clone)(t)}function V1(a){var e=Na(a[0][0],a[1][0]),t=Na(a[0][1],a[1][1]),r=Ur(a[0][0],a[1][0]),i=Ur(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function O1(a,e,t){if(!(!a._brushType||N1(a,e.offsetX,e.offsetY))){var r=a._zr,i=a._covers,n=Bo(a,e,t);if(!a._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var ki={lineX:rc(0),lineY:rc(1),rect:{createCover:function(a,e){function t(r){return r}return jv({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=Xv(a);return $v(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){Kv(a,e,t,r)},updateCommon:Ho,contain:Uo},polygon:{createCover:function(a,e){var t=new it.A;return t.add(new Pe.A({name:"main",style:Fo(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new Se.A({name:"main",draggable:!0,drift:(0,p.curry)(E1,a,e),ondragend:(0,p.curry)(Lr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:Yo(a,e,t)})},updateCommon:Ho,contain:Uo}};function rc(a){return{createCover:function(e,t){return jv({toRectRange:function(r){var i=[r,[0,100]];return a&&i.reverse(),i},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=Xv(e),r=Na(t[0][a],t[1][a]),i=Ur(t[0][a],t[1][a]);return[r,i]},updateCoverShape:function(e,t,r,i){var n,o=Uv(e,t);if(o!==Dr&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(a);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,n];a&&l.reverse(),Kv(e,t,l,i)},updateCommon:Ho,contain:Uo}}var Xo=L1;function ac(a){return a=jo(a),function(e){return tt.clipPointsByRect(e,a)}}function ic(a,e){return a=jo(a),function(t){var r=e!=null?e:t,i=r?a.width:a.height,n=r?a.x:a.y;return[n,n+(i||0)]}}function nc(a,e,t){var r=jo(a);return function(i,n){return r.contain(n[0],n[1])&&!mi(i,e,t)}}function jo(a){return vt.A.create(a)}var z1=["axisLine","axisTickLabel","axisName"],B1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new Xo(r.getZr())).on("brush",p.bind(this._onBrush,this))},e.prototype.render=function(t,r,i,n){if(!G1(t,r,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it.A,this.group.add(this._axisGroup),!!t.get("show")){var s=F1(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,v=t.axis.dim,c=l.getAxisLayout(v),f=p.extend({strokeContainThreshold:h},c),d=new We(t,f);p.each(z1,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(f,u,t,s,h,i),tt.groupTransition(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),v=vt.A.create({x:l[0],y:-o/2,width:u,height:o});v.x-=h,v.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ac(v),isTargetByCursor:nc(v,s,n),getLinearBrushOtherExtent:ic(v,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(H1(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,n=i.axis,o=p.map(r,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Yt.A);function G1(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function H1(a){var e=a.axis;return p.map(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function F1(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}var W1=B1,Y1={type:"axisAreaSelect",event:"axisAreaSelected"};function Z1(a){a.registerAction(Y1,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var U1={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function oc(a){a.registerComponentView(l1),a.registerComponentModel(h1),a.registerCoordinateSystem("parallel",b1),a.registerPreprocessor(r1),a.registerComponentModel(Bv),a.registerComponentView(W1),Br(a,"parallel",Bv,U1),Z1(a)}function X1(a){(0,Y.Y)(oc),a.registerChartView(jS),a.registerSeriesModel(QS),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,e1)}var j1=function(){function a(){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}return a}(),K1=function(a){(0,O.C6)(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new j1},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){(0,U.HY)(this)},e.prototype.downplay=function(){(0,U.SD)(this)},e}(Vt.Ay),$1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,v=t.getData(),c=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var g=new K1,y=(0,ct.z)(g);y.dataIndex=d.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge";var m=d.getModel(),S=m.getModel("lineStyle"),x=S.get("curveness"),b=d.node1.getLayout(),_=d.node1.getModel(),A=_.get("localX"),w=_.get("localY"),C=d.node2.getLayout(),T=d.node2.getModel(),I=T.get("localX"),D=T.get("localY"),L=d.getLayout(),M,P,R,V,B,z,W,$;g.shape.extent=Math.max(1,L.dy),g.shape.orient=f,f==="vertical"?(M=(A!=null?A*u:b.x)+L.sy,P=(w!=null?w*h:b.y)+b.dy,R=(I!=null?I*u:C.x)+L.ty,V=D!=null?D*h:C.y,B=M,z=P*(1-x)+V*x,W=R,$=P*x+V*(1-x)):(M=(A!=null?A*u:b.x)+b.dx,P=(w!=null?w*h:b.y)+L.sy,R=I!=null?I*u:C.x,V=(D!=null?D*h:C.y)+L.ty,B=M*(1-x)+R*x,z=P,W=M*x+R*(1-x),$=V),g.setShape({x1:M,y1:P,x2:R,y2:V,cpx1:B,cpy1:z,cpx2:W,cpy2:$}),g.useStyle(S.getItemStyle()),sc(g.style,f,d);var K=""+m.get("value"),et=(0,q.lx)(m,"edgeLabel");(0,q.qM)(g,et,{labelFetcher:{getFormattedLabel:function(mt,At,xt,nt,Ct,wt){return t.getFormattedLabel(mt,At,"edge",nt,(0,p.retrieve3)(Ct,et.normal&&et.normal.get("formatter"),K),wt)}},labelDataIndex:d.dataIndex,defaultText:K}),g.setTextConfig({position:"inside"});var lt=m.getModel("emphasis");(0,U.Mx)(g,m,"lineStyle",function(mt){var At=mt.getItemStyle();return sc(At,f,d),At}),s.add(g),c.setItemGraphicEl(d.dataIndex,g);var ot=lt.get("focus");(0,U.Lm)(g,ot==="adjacency"?d.getAdjacentDataIndices():ot==="trajectory"?d.getTrajectoryDataIndices():ot,lt.get("blurScope"),lt.get("disabled"))}),o.eachNode(function(d){var g=d.getLayout(),y=d.getModel(),m=y.get("localX"),S=y.get("localY"),x=y.getModel("emphasis"),b=y.get(["itemStyle","borderRadius"])||0,_=new Dt.A({shape:{x:m!=null?m*u:g.x,y:S!=null?S*h:g.y,width:g.dx,height:g.dy,r:b},style:y.getModel("itemStyle").getItemStyle(),z2:10});(0,q.qM)(_,(0,q.lx)(y),{labelFetcher:{getFormattedLabel:function(w,C){return t.getFormattedLabel(w,C,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),_.disableLabelAnimation=!0,_.setStyle("fill",d.getVisual("color")),_.setStyle("decal",d.getVisual("style").decal),(0,U.Mx)(_,y),s.add(_),v.setItemGraphicEl(d.dataIndex,_),(0,ct.z)(_).dataType="node";var A=x.get("focus");(0,U.Lm)(_,A==="adjacency"?d.getAdjacentDataIndices():A==="trajectory"?d.getTrajectoryDataIndices():A,x.get("blurScope"),x.get("disabled"))}),v.eachItemGraphicEl(function(d,g){var y=v.getItemModel(g);y.get("draggable")&&(d.drift=function(m,S){n._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:v.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/h})},d.ondragend=function(){n._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(J1(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Nt.A);function sc(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),i=t.node2.getVisual("color");(0,p.isString)(r)&&(0,p.isString)(i)&&(a.fill=new ii.A(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function J1(a,e,t){var r=new Dt.A({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Q.LW(r,{shape:{width:a.width+20}},e,t),r}var Q1=$1,q1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt.A(o[l],this,r));if(n&&i){var u=Mv(n,i,this,!0,h);return u.data}function h(v,c){v.wrapMethod("getItemModel",function(f,d){var g=f.parentModel,y=g.getData().getItemLayout(d);if(y){var m=y.depth,S=g.levelModels[m];S&&(f.parentModel=S)}return f}),c.wrapMethod("getItemModel",function(f,d){var g=f.parentModel,y=g.getGraph().getEdgeByIndex(d),m=y.node1.getLayout();if(m){var S=m.depth,x=g.levelModels[S];x&&(f.parentModel=x)}return f})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,n=i[t];n.localX=r[0],n.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function n(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return(0,zt.Qx)("nameValue",{name:u,value:l,noValue:n(l)})}else{var h=this.getGraph().getNodeByIndex(t),v=h.getLayout().value,c=this.getDataParams(t,i).data.name;return(0,zt.Qx)("nameValue",{name:c!=null?c+"":null,value:v,noValue:n(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=a.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.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},e}(Ot.A),tb=q1;function eb(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),n=rb(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,h=l.edges;ib(u);var v=p.filter(u,function(g){return g.getLayout().value===0}),c=v.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),d=t.get("nodeAlign");ab(u,h,r,i,o,s,c,f,d)})}function rb(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ab(a,e,t,r,i,n,o,s,l){nb(a,e,t,i,n,s,l),ub(a,e,n,i,r,o,s),mb(a,s)}function ib(a){p.each(a,function(e){var t=rr(e.outEdges,Ni),r=rr(e.inEdges,Ni),i=e.getValue()||0,n=Math.max(t,r,i);e.setLayout({value:n},!0)})}function nb(a,e,t,r,i,n,o){for(var s=[],l=[],u=[],h=[],v=0,c=0;c=0;m&&y.depth>f&&(f=y.depth),g.setLayout({depth:m?y.depth:v},!0),n==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var S=0;Sv-1?f:v-1;o&&o!=="left"&&ob(a,o,n,w);var C=n==="vertical"?(i-t)/w:(r-t)/w;lb(a,C,n)}function lc(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function ob(a,e,t,r){if(e==="right"){for(var i=[],n=a,o=0;n.length;){for(var s=0;s0;n--)l*=.99,cb(s,l,o),Ko(s,i,t,r,o),yb(s,l,o),Ko(s,i,t,r,o)}function hb(a,e){var t=[],r=e==="vertical"?"y":"x",i=(0,J.Sq)(a,function(n){return n.getLayout()[r]});return i.keys.sort(function(n,o){return n-o}),p.each(i.keys,function(n){t.push(i.buckets.get(n))}),t}function vb(a,e,t,r,i,n){var o=1/0;p.each(a,function(s){var l=s.length,u=0;p.each(s,function(v){u+=v.getLayout().value});var h=n==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;h0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]+l.getLayout()[c]+e;var d=i==="vertical"?r:t;if(u=h-e-d,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var f=v-2;f>=0;--f)l=o[f],u=l.getLayout()[n]+l.getLayout()[c]+e-h,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]}})}function cb(a,e,t){p.each(a.slice().reverse(),function(r){p.each(r,function(i){if(i.outEdges.length){var n=rr(i.outEdges,fb,t)/rr(i.outEdges,Ni);if(isNaN(n)){var o=i.outEdges.length;n=o?rr(i.outEdges,pb,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-er(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-er(i,t))*e;i.setLayout({y:l},!0)}}})})}function fb(a,e){return er(a.node2,e)*a.getValue()}function pb(a,e){return er(a.node2,e)}function db(a,e){return er(a.node1,e)*a.getValue()}function gb(a,e){return er(a.node1,e)}function er(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function Ni(a){return a.getValue()}function rr(a,e,t){for(var r=0,i=a.length,n=-1;++no&&(o=l)}),p.each(r,function(s){var l=new ae({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),h=s.getModel().get(["itemStyle","color"]);h!=null?(s.setVisual("color",h),s.setVisual("style",{fill:h})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&p.each(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Sb(a){a.registerChartView(Q1),a.registerSeriesModel(tb),a.registerLayout(eb),a.registerVisual(xb),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var $o=E(29756),uc=function(){function a(){}return a.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=e.layout==="horizontal"?0:1,v=this._baseAxisDim=u[h],c=u[1-h],f=[i,n],d=f[h].get("type"),g=f[1-h].get("type"),y=e.data;if(y&&l){var m=[];p.each(y,function(b,_){var A;p.isArray(b)?(A=b.slice(),b.unshift(_)):p.isArray(b.value)?(A=p.extend({},b),A.value=A.value.slice(),b.value.unshift(_)):A=b,m.push(A)}),e.data=m}var S=this.defaultValueDimensions,x=[{name:v,type:(0,$o.B)(d),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:(0,$o.B)(g),dimsDef:S.slice()}];return zr(this,{coordDimensions:x,dimensionsCount:S.length+1,encodeDefaulter:p.curry(fi.OC,x,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a}(),hc=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ot.A);(0,p.mixin)(hc,uc,!0);var bb=hc,_b=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var h=n.getItemLayout(u),v=vc(h,n,u,l,!0);n.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,h){var v=s.getItemGraphicEl(h);if(!n.hasValue(u)){o.remove(v);return}var c=n.getItemLayout(u);v?((0,Q.ap)(v),cc(c,v,n,u)):v=vc(c,n,u,l),o.add(v),n.setItemGraphicEl(u,v)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&o.remove(h)}).execute(),this._data=n},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},e.type="boxplot",e}(Nt.A),Ab=function(){function a(){}return a}(),wb=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Ab},e.prototype.buildPath=function(t,r){var i=r.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();ng){var b=[m,x];r.push(b)}}}return{boxData:t,outliers:r}}var Gt=E(41025),zi=E(13430),Rb={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==zi.Km){var r="";(0,Gt.$8)(r)}var i=Pb(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Eb(a){a.registerSeriesModel(bb),a.registerChartView(Tb),a.registerLayout(Ib),a.registerTransform(Rb)}var Vb=["color","borderColor"],Ob=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){tt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var v=r.getItemLayout(h);if(s&&fc(u,v))return;var c=Jo(v,h,!0);Q.LW(c,{shape:{points:v.ends}},t,h),Qo(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}}).update(function(h,v){var c=i.getItemGraphicEl(v);if(!r.hasValue(h)){n.remove(c);return}var f=r.getItemLayout(h);if(s&&fc(u,f)){n.remove(c);return}c?(Q.oi(c,{shape:{points:f.ends}},t,h),(0,Q.ap)(c)):c=Jo(f,h),Qo(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&n.remove(v)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),pc(t,this.group);var r=t.get("clip",!0)?pa(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Jo(s,o);Qo(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){pc(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Nt.A),kb=function(){function a(){}return a}(),Nb=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new kb},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Vt.Ay);function Jo(a,e,t){var r=a.ends;return new Nb({shape:{points:t?zb(r,a):r},z2:100})}function fc(a,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",a>0?"color":"color0"]);a===0&&(i=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(Vb);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var Gb=Ob,dc=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var n=r.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ot.A);(0,p.mixin)(dc,uc,!0);var Hb=dc;function Fb(a){!a||!p.isArray(a.series)||p.each(a.series,function(e){p.isObject(e)&&e.type==="k"&&(e.type="candlestick")})}var Wb=["itemStyle","borderColor"],Yb=["itemStyle","borderColor0"],Zb=["itemStyle","borderColorDoji"],Ub=["itemStyle","color"],Xb=["itemStyle","color0"],jb={seriesType:"candlestick",plan:(0,ni.A)(),performRawSeries:!0,reset:function(a,e){function t(n,o){return o.get(n>0?Ub:Xb)}function r(n,o){return o.get(n===0?Zb:n>0?Wb:Yb)}if(!e.isSeriesFiltered(a)){var i=a.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,h=l.getItemStyle();h.fill=t(u,l),h.stroke=r(u,l)||h.fill;var v=o.ensureUniqueItemVisual(s,"style");(0,p.extend)(v,h)}}}}}},Kb=jb,$b={seriesType:"candlestick",plan:(0,ni.A)(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=Jb(a,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=(0,p.map)(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],h=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?d:f};function f(g,y){for(var m,S=y.getStore();(m=g.next())!=null;){var x=S.get(s,m),b=S.get(u,m),_=S.get(h,m),A=S.get(v,m),w=S.get(c,m),C=Math.min(b,_),T=Math.max(b,_),I=B(C,x),D=B(T,x),L=B(A,x),M=B(w,x),P=[];z(P,D,0),z(P,I,1),P.push($(M),$(D),$(L),$(I));var R=y.getItemModel(m),V=!!R.get(["itemStyle","borderColorDoji"]);y.setItemLayout(m,{sign:gc(S,m,b,_,h,V),initBaseline:b>_?D[n]:I[n],ends:P,brushRect:W(A,w,x)})}function B(K,et){var lt=[];return lt[i]=et,lt[n]=K,isNaN(et)||isNaN(K)?[NaN,NaN]:e.dataToPoint(lt)}function z(K,et,lt){var ot=et.slice(),mt=et.slice();ot[i]=(0,tt.subPixelOptimize)(ot[i]+r/2,1,!1),mt[i]=(0,tt.subPixelOptimize)(mt[i]-r/2,1,!0),lt?K.push(ot,mt):K.push(mt,ot)}function W(K,et,lt){var ot=B(K,lt),mt=B(et,lt);return ot[i]-=r/2,mt[i]-=r/2,{x:ot[0],y:ot[1],width:n?r:mt[0]-ot[0],height:n?mt[1]-ot[1]:r}}function $(K){return K[i]=(0,tt.subPixelOptimize)(K[i],1),K}}function d(g,y){for(var m=(0,dr.J)(g.count*4),S=0,x,b=[],_=[],A,w=y.getStore(),C=!!a.get(["itemStyle","borderColorDoji"]);(A=g.next())!=null;){var T=w.get(s,A),I=w.get(u,A),D=w.get(h,A),L=w.get(v,A),M=w.get(c,A);if(isNaN(T)||isNaN(L)||isNaN(M)){m[S++]=NaN,S+=3;continue}m[S++]=gc(w,A,I,D,h,C),b[i]=T,b[n]=L,x=e.dataToPoint(b,null,_),m[S++]=x?x[0]:NaN,m[S++]=x?x[1]:NaN,b[n]=M,x=e.dataToPoint(b,null,_),m[S++]=x?x[1]:NaN}y.setLayout("largePoints",m)}}};function gc(a,e,t,r,i,n){var o;return t>r?o=-1:t0?a.get(i,e-1)<=r?1:-1:1,o}function Jb(a,e){var t=a.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),n=(0,k.lo)((0,p.retrieve2)(a.get("barMaxWidth"),i),i),o=(0,k.lo)((0,p.retrieve2)(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?(0,k.lo)(s,i):Math.max(Math.min(i/2,n),o)}var Qb=$b;function qb(a){a.registerChartView(Gb),a.registerSeriesModel(Hb),a.registerPreprocessor(Fb),a.registerVisual(Kb),a.registerLayout(Qb)}function yc(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var t_=function(a){(0,O.C6)(e,a);function e(t,r){var i=a.call(this)||this,n=new ca(t,r),o=new it.A;return i.add(n),i.add(o),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/h*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;p.isFunction(v)?c=v(i):c=v,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,n,o){if(r>0){t.__t=0;var s=this,l=t.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return at.dist(t.__p1,t.__cp1)+at.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ge.k3,h=ge.z7;s[0]=u(r[0],n[0],i[0],o),s[1]=u(r[1],n[1],i[1],o);var v=t.__t<1?h(r[0],n[0],i[0],o):h(i[0],n[0],r[0],1-o),c=t.__t<1?h(r[1],n[1],i[1],o):h(i[1],n[1],r[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var h=(r-n[l])/(n[l+1]-n[l]),v=i[l],c=i[l+1];t.x=v[0]*(1-h)+h*c[0],t.y=v[1]*(1-h)+h*c[1];var f=t.__t<1?c[0]-v[0]:v[0]-c[0],d=t.__t<1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(mc),h_=u_,Sc=E(57043),v_=E(14423),c_=function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a}(),f_=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c_},e.prototype.buildPath=function(t,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(i[o++],i[o++]);for(var l=1;l0){var f=(u+v)/2-(h-c)*n,d=(h+c)/2-(v-u)*n;t.quadraticCurveTo(f,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var v=n[u++],c=n[u++],f=1;f0){var y=(v+d)/2-(c-g)*o,m=(c+g)/2-(d-v)*o;if(v_.l(v,c,y,m,d,g,s,t,r))return l}else if(Sc.l(v,c,d,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),d_=p_,g_={seriesType:"lines",plan:(0,ni.A)(),reset:function(a){var e=a.coordinateSystem;if(e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,h=i.start;h0&&(h||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var v=t.get("clip",!0)&&pa(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=bc.reset(t,r,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new d_:new Io(o?n?h_:xc:n?mc:Co),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Nt.A),m_=y_,x_=typeof Uint32Array=="undefined"?Array:Uint32Array,S_=typeof Float64Array=="undefined"?Array:Float64Array;function _c(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=(0,p.map)(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),(0,p.mergeAll)([i,t[0],t[1]])}))}var b_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],_c(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(_c(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=(0,p.concatArray)(this._flatCoords,r.flatCoords),this._flatCoordsOffset=(0,p.concatArray)(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;oi}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){if(0)var i;var n=new he.A(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var h=o.value;if(h!=null)return h instanceof Array?h[u]:h}),n},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),(0,zt.Qx)("nameValue",{name:h.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Ot.A),__=b_;function Bi(a){return a instanceof Array||(a=[a,a]),a}var A_={seriesType:"lines",reset:function(a){var e=Bi(a.get("symbol")),t=Bi(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=Bi(s.getShallow("symbol",!0)),u=Bi(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}},w_=A_;function C_(a){a.registerChartView(m_),a.registerSeriesModel(__),a.registerLayout(bc),a.registerVisual(w_)}var T_=256,I_=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ee.yh.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),h=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),f=e.length;v.width=t,v.height=r;for(var d=0;d0){var L=o(x)?l:u;x>0&&(x=x*I+C),_[A++]=L[D],_[A++]=L[D+1],_[A++]=L[D+2],_[A++]=L[D+3]*x*256}else A+=4}return c.putImageData(b,0,0),v},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ee.yh.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a}(),D_=I_;function L_(a,e,t){var r=a[1]-a[0];e=p.map(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function Ac(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var P_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Ac(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,n){var o=r.coordinateSystem;o&&(Ac(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){tt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,n,o){var s=t.coordinateSystem,l=yr(s,"cartesian2d"),u,h,v,c;if(l){var f=s.getAxis("x"),d=s.getAxis("y");u=f.getBandWidth()+.5,h=d.getBandWidth()+.5,v=f.scale.getExtent(),c=d.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),S=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),_=(0,q.lx)(t),A=t.getModel("emphasis"),w=A.get("focus"),C=A.get("blurScope"),T=A.get("disabled"),I=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=i;Dv[1]||Rc[1])continue;var V=s.dataToPoint([P,R]);L=new Dt.A({shape:{x:V[0]-u/2,y:V[1]-h/2,width:u,height:h},style:M})}else{if(isNaN(y.get(I[1],D)))continue;L=new Dt.A({z2:1,shape:s.dataToRect([y.get(I[0],D)]).contentShape,style:M})}if(y.hasItemOption){var B=y.getItemModel(D),z=B.getModel("emphasis");m=z.getModel("itemStyle").getItemStyle(),S=B.getModel(["blur","itemStyle"]).getItemStyle(),x=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),w=z.get("focus"),C=z.get("blurScope"),T=z.get("disabled"),_=(0,q.lx)(B)}L.shape.r=b;var W=t.getRawValue(D),$="-";W&&W[2]!=null&&($=W[2]+""),(0,q.qM)(L,_,{labelFetcher:t,labelDataIndex:D,defaultOpacity:M.opacity,defaultText:$}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=S,L.ensureState("select").style=x,(0,U.Lm)(L,w,C,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new D_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var h=t.getViewRect().clone(),v=t.getRoamTransform();h.applyTransform(v);var c=Math.max(h.x,0),f=Math.max(h.y,0),d=Math.min(h.width+h.x,n.getWidth()),g=Math.min(h.height+h.y,n.getHeight()),y=d-c,m=g-f,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(S,function(w,C,T){var I=t.dataToPoint([w,C]);return I[0]-=c,I[1]-=f,I.push(T),I}),b=i.getExtent(),_=i.type==="visualMap.continuous"?M_(b,i.option.range):L_(b,i.getPieceList(),i.option.selected);u.update(x,y,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var A=new ue.Ay({style:{width:y,height:m,x:c,y:f,image:u.canvas},silent:!0});this.group.add(A)},e.type="heatmap",e}(Nt.A),R_=P_,E_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Lv.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ot.A),V_=E_;function O_(a){a.registerChartView(R_),a.registerSeriesModel(V_)}var k_=["itemStyle","borderWidth"],wc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],es=new _a.A,N_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:h,valueDim:wc[+h],categoryDim:wc[1-+h]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=Pc(o,d),y=Cc(o,d,g,c),m=Rc(o,c,y);o.setItemGraphicEl(d,m),n.add(m),Oc(m,c,y)}}).update(function(d,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(d)){n.remove(y);return}var m=Pc(o,d),S=Cc(o,d,m,c),x=Vc(o,S);y&&x!==y.__pictorialShapeStr&&(n.remove(y),o.setItemGraphicEl(d,null),y=null),y?Y_(y,c,S):y=Rc(o,c,S,!0),o.setItemGraphicEl(d,y),y.__pictorialSymbolMeta=S,n.add(y),Oc(y,c,S)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&Ec(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var f=t.get("clip",!0)?pa(t.coordinateSystem,!1,t):null;return f?n.setClipPath(f):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){Ec(n,(0,ct.z)(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Nt.A);function Cc(a,e,t,r){var i=a.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:i,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};z_(t,n,i,r,c),B_(a,e,i,n,o,c.boundingLength,c.pxSign,h,r,c),G_(t,c.symbolScale,u,r,c);var f=c.symbolSize,d=(0,Tt.hV)(t.get("symbolOffset"),f);return H_(t,f,i,n,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,r,c),c}function z_(a,e,t,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),h;if(p.isArray(o)){var v=[rs(s,o[0])-l,rs(s,o[1])-l];v[1]0?1:-1}function rs(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function B_(a,e,t,r,i,n,o,s,l,u){var h=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),f=a.getItemVisual(e,"symbolSize"),d;p.isArray(f)?d=f.slice():f==null?d=["100%","100%"]:d=[f,f],d[v.index]=(0,k.lo)(d[v.index],c),d[h.index]=(0,k.lo)(d[h.index],r?c:Math.abs(n)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function G_(a,e,t,r,i){var n=a.get(k_)||0;n&&(es.attr({scaleX:e[0],scaleY:e[1],rotation:t}),es.updateTransform(),n/=es.getLineScale(),n*=e[r.valueDim.index]),i.valueLineWidth=n||0}function H_(a,e,t,r,i,n,o,s,l,u,h,v){var c=h.categoryDim,f=h.valueDim,d=v.pxSign,g=Math.max(e[f.index]+s,0),y=g;if(r){var m=Math.abs(l),S=p.retrieve(a.get("symbolMargin"),"15%")+"",x=!1;S.lastIndexOf("!")===S.length-1&&(x=!0,S=S.slice(0,S.length-1));var b=(0,k.lo)(S,e[f.index]),_=Math.max(g+b*2,0),A=x?0:b*2,w=(0,k.kf)(r),C=w?r:kc((m+A)/_),T=m-C*g;b=T/2/(x?C:Math.max(C-1,1)),_=g+b*2,A=x?0:b*2,!w&&r!=="fixed"&&(C=u?kc((Math.abs(u)+A)/_):0),y=C*_-A,v.repeatTimes=C,v.symbolMargin=b}var I=d*(y/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[f.index]=o==="start"?I:o==="end"?l-I:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=v.bundlePosition=[];L[c.index]=t[c.xy],L[f.index]=t[f.xy];var M=v.barRectShape=p.extend({},t);M[f.wh]=d*Math.max(Math.abs(t[f.wh]),Math.abs(D[f.index]+I)),M[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=h.ecSize[c.wh],P[f.xy]=0,P[f.wh]=t[f.wh]}function Tc(a){var e=a.symbolPatternSize,t=(0,Tt.v5)(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Ic(a,e,t,r){var i=a.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,v=n[e.valueDim.index]+o+t.symbolMargin*2;for(as(a,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h0:m<0)&&(S=u-1-g),y[l.index]=v*(S-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Dc(a,e,t,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?Xr(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(n=a.__pictorialMainPath=Tc(t),i.add(n),Xr(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Lc(a,e,t){var r=p.extend({},e.barRectShape),i=a.__pictorialBarRect;i?Xr(i,null,{shape:r},e,t):(i=a.__pictorialBarRect=new Dt.A({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function Mc(a,e,t,r){if(t.symbolClip){var i=a.__pictorialClipPath,n=p.extend({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)Q.oi(i,{shape:n},s,l);else{n[o.wh]=0,i=new Dt.A({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],tt[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Pc(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=F_,t.isAnimationEnabled=W_,t}function F_(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function W_(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rc(a,e,t,r){var i=new it.A,n=new it.A;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?Ic(i,e,t):Dc(i,e,t),Lc(i,t,r),Mc(i,e,t,r),i.__pictorialShapeStr=Vc(a,t),i.__pictorialSymbolMeta=t,i}function Y_(a,e,t){var r=t.animationModel,i=t.dataIndex,n=a.__pictorialBundle;Q.oi(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?Ic(a,e,t,!0):Dc(a,e,t,!0),Lc(a,t,!0),Mc(a,e,t,!0)}function Ec(a,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];as(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),p.each(n,function(o){Q.Nz(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function Vc(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function as(a,e,t){p.each(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Xr(a,e,t,r,i,n){e&&a.attr(e),r.symbolClip&&!i?t&&a.attr(t):t&&tt[i?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,n)}function Oc(a,e,t){var r=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),h=n.get("focus"),v=n.get("blurScope"),c=n.get("scale");as(a,function(g){if(g instanceof ue.Ay){var y=g.style;g.useStyle(p.extend({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},t.style))}else g.useStyle(t.style);var m=g.ensureState("emphasis");m.style=o,c&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],d=a.__pictorialBarRect;d.ignoreClip=!0,(0,q.qM)(d,(0,q.lx)(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:kr(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),(0,U.Lm)(a,h,v,n.get("disabled"))}function kc(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}var Z_=N_,U_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,Ne.G_)(oi.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"}}}),e}(oi),X_=U_;function j_(a){a.registerChartView(Z_),a.registerSeriesModel(X_),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,(0,p.curry)(ga.Zp,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,ga.KF)("pictorialBar"))}var K_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),h=u.rect,v=u.boundaryGap;s.x=0,s.y=h.y+v[0];function c(y){return y.name}var f=new tr.A(this._layersSeries||[],l,c,c),d=[];f.add((0,p.bind)(g,this,"add")).update((0,p.bind)(g,this,"update")).remove((0,p.bind)(g,this,"remove")).execute();function g(y,m,S){var x=o._layers;if(y==="remove"){s.remove(x[m]);return}for(var b=[],_=[],A,w=l[m].indices,C=0;Cn&&(n=s),r.push(s)}for(var u=0;un&&(n=v)}return{y0:i,max:n}}function rA(a){a.registerChartView(J_),a.registerSeriesModel(q_),a.registerLayout(tA),a.registerProcessor(ya("themeRiver"))}var Gi=E(41589),aA=2,iA=4,nA=function(a){(0,O.C6)(e,a);function e(t,r,i,n){var o=a.call(this)||this;o.z2=aA,o.textConfig={inside:!0},(0,ct.z)(o).seriesIndex=r.seriesIndex;var s=new _t.Ay({z2:iA,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,i,n),o}return e.prototype.updateData=function(t,r,i,n,o){this.node=r,r.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;(0,ct.z)(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),h=r.getLayout(),v=p.extend({},h);v.label=null;var c=r.getVisual("style");c.lineJoin="bevel";var f=r.getVisual("decal");f&&(c.decal=(0,Ai.w)(f,o));var d=mr(l.getModel("itemStyle"),v,!0);p.extend(v,d),p.each(U.BV,function(S){var x=s.ensureState(S),b=l.getModel([S,"itemStyle"]);x.style=b.getItemStyle();var _=mr(b,v);_&&(x.shape=_)}),t?(s.setShape(v),s.shape.r=h.r0,Q.LW(s,{shape:{r:h.r}},i,r.dataIndex)):(Q.oi(s,{shape:v},i),(0,Q.ap)(s)),s.useStyle(c),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var y=u.get("focus"),m=y==="ancestor"?r.getAncestorsIndices():y==="descendant"?r.getDescendantIndices():y;(0,U.Lm)(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),h=Math.sin(l),v=this,c=v.getTextContent(),f=this.node.dataIndex,d=n.get("minAngle")/180*Math.PI,g=n.get("show")&&!(d!=null&&Math.abs(s)P&&!(0,k.dh)(V-P)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,t,r,i):(o.virtualPiece=new zc(S,t,r,i),h.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(x.parentNode)})):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";(0,qt.JW)(u,h)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ns,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Nt.A),uA=lA,hA=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Gc(i);var n=this._levelModels=p.map(t.levels||[],function(l){return new Xt.A(l,this,r)},this),o=ro.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var v=o.getNodeByDataIndex(h),c=n[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=Ti(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Uh(this)},e.type="series.sunburst",e.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"},e}(Ot.A);function Gc(a){var e=0;p.each(a.children,function(r){Gc(r);var i=r.value;p.isArray(i)&&(i=i[0]),e+=i});var t=a.value;p.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),p.isArray(a.value)?a.value[0]=t:a.value=t}var vA=hA,Hc=Math.PI/180;function cA(a,e,t){e.eachSeriesByType(a,function(r){var i=r.get("center"),n=r.get("radius");p.isArray(n)||(n=[0,n]),p.isArray(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=(0,k.lo)(i[0],o),h=(0,k.lo)(i[1],s),v=(0,k.lo)(n[0],l/2),c=(0,k.lo)(n[1],l/2),f=-r.get("startAngle")*Hc,d=r.get("minAngle")*Hc,g=r.getData().tree.root,y=r.getViewRoot(),m=y.depth,S=r.get("sort");S!=null&&Fc(y,S);var x=0;p.each(y.children,function(V){!isNaN(V.getValue())&&x++});var b=y.getValue(),_=Math.PI/(b||x)*2,A=y.depth>0,w=y.height-(A?-1:1),C=(c-v)/(w||1),T=r.get("clockwise"),I=r.get("stillShowZeroSum"),D=T?1:-1,L=function(V,B){if(V){var z=B;if(V!==g){var W=V.getValue(),$=b===0&&I?_:W*_;$1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&(0,p.isString)(s)&&(s=(0,Wt.lift)(s,(r.depth-1)/(n-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var i=r.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");(0,p.extend)(u,l)})})}function dA(a){a.registerChartView(uA),a.registerSeriesModel(vA),a.registerLayout((0,p.curry)(cA,"sunburst")),a.registerProcessor((0,p.curry)(ya,"sunburst")),a.registerVisual(pA),sA(a)}var Wc={color:"fill",borderColor:"stroke"},gA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ue=(0,J.$r)(),yA=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this)},e.prototype.getDataParams=function(t,r,i){var n=a.prototype.getDataParams.call(this,t,r);return i&&(n.info=Ue(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ot.A),mA=yA;function xA(a,e){return e=e||[0,0],p.map(["x","y"],function(t,r){var i=this.getAxis(t),n=e[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function SA(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:p.bind(xA,a)}}}function bA(a,e){return e=e||[0,0],p.map([0,1],function(t){var r=e[t],i=a[t]/2,n=[],o=[];return n[t]=r-i,o[t]=r+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function _A(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:p.bind(bA,a)}}}function AA(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function wA(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:(0,p.bind)(AA,a)}}}function CA(a,e){return e=e||[0,0],p.map(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",n=this[i](),o=e[r],s=a[r]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function TA(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=a.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:p.bind(CA,a)}}}function IA(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}var YM={};function Yc(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||(0,p.hasOwn)(a,"text")))}function Zc(a,e,t){var r=a,i,n,o;if(e==="text")o=r;else{o={},(0,p.hasOwn)(r,"text")&&(o.text=r.text),(0,p.hasOwn)(r,"rich")&&(o.rich=r.rich),(0,p.hasOwn)(r,"textFill")&&(o.fill=r.textFill),(0,p.hasOwn)(r,"textStroke")&&(o.stroke=r.textStroke),(0,p.hasOwn)(r,"fontFamily")&&(o.fontFamily=r.fontFamily),(0,p.hasOwn)(r,"fontSize")&&(o.fontSize=r.fontSize),(0,p.hasOwn)(r,"fontStyle")&&(o.fontStyle=r.fontStyle),(0,p.hasOwn)(r,"fontWeight")&&(o.fontWeight=r.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=(0,p.hasOwn)(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),(0,p.hasOwn)(r,"textPosition")&&(i.position=r.textPosition),(0,p.hasOwn)(r,"textOffset")&&(i.offset=r.textOffset),(0,p.hasOwn)(r,"textRotation")&&(i.rotation=r.textRotation),(0,p.hasOwn)(r,"textDistance")&&(i.distance=r.textDistance)}return Uc(o,a),(0,p.each)(o.rich,function(l){Uc(l,l)}),{textConfig:i,textContent:n}}function Uc(a,e){e&&(e.font=e.textFont||e.font,(0,p.hasOwn)(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),(0,p.hasOwn)(e,"textAlign")&&(a.align=e.textAlign),(0,p.hasOwn)(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),(0,p.hasOwn)(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),(0,p.hasOwn)(e,"textWidth")&&(a.width=e.textWidth),(0,p.hasOwn)(e,"textHeight")&&(a.height=e.textHeight),(0,p.hasOwn)(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),(0,p.hasOwn)(e,"textPadding")&&(a.padding=e.textPadding),(0,p.hasOwn)(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),(0,p.hasOwn)(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),(0,p.hasOwn)(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),(0,p.hasOwn)(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),(0,p.hasOwn)(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),(0,p.hasOwn)(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),(0,p.hasOwn)(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function Xc(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,n=a.fill||"#000";jc(r,e);var o=r.textFill==null;return i?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=n),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,(0,p.each)(e.rich,function(s){jc(s,s)}),r}function jc(a,e){e&&((0,p.hasOwn)(e,"fill")&&(a.textFill=e.fill),(0,p.hasOwn)(e,"stroke")&&(a.textStroke=e.fill),(0,p.hasOwn)(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),(0,p.hasOwn)(e,"font")&&(a.font=e.font),(0,p.hasOwn)(e,"fontStyle")&&(a.fontStyle=e.fontStyle),(0,p.hasOwn)(e,"fontWeight")&&(a.fontWeight=e.fontWeight),(0,p.hasOwn)(e,"fontSize")&&(a.fontSize=e.fontSize),(0,p.hasOwn)(e,"fontFamily")&&(a.fontFamily=e.fontFamily),(0,p.hasOwn)(e,"align")&&(a.textAlign=e.align),(0,p.hasOwn)(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),(0,p.hasOwn)(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),(0,p.hasOwn)(e,"width")&&(a.textWidth=e.width),(0,p.hasOwn)(e,"height")&&(a.textHeight=e.height),(0,p.hasOwn)(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),(0,p.hasOwn)(e,"padding")&&(a.textPadding=e.padding),(0,p.hasOwn)(e,"borderColor")&&(a.textBorderColor=e.borderColor),(0,p.hasOwn)(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),(0,p.hasOwn)(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),(0,p.hasOwn)(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),(0,p.hasOwn)(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),(0,p.hasOwn)(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),(0,p.hasOwn)(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),(0,p.hasOwn)(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),(0,p.hasOwn)(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),(0,p.hasOwn)(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),(0,p.hasOwn)(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}function ZM(a,e){if(0)var t}var DA=E(21756),Kc={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$c=(0,p.keys)(Kc),UM=(0,p.reduce)(Me.Wx,function(a,e){return a[e]=1,a},{}),XM=Me.Wx.join(", "),Hi=["","style","shape","extra"],jr=(0,J.$r)();function os(a,e,t,r,i){var n=a+"Animation",o=(0,Q.Jw)(a,r,i)||{},s=jr(e).userDuring;return o.duration>0&&(o.during=s?(0,p.bind)(EA,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),(0,p.extend)(o,t[n]),o}function Fi(a,e,t,r){r=r||{};var i=r.dataIndex,n=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=jr(a),u=e.style;l.userDuring=e.during;var h={},v={};if(OA(a,e,v),qc("shape",e,v),qc("extra",e,v),!n&&s&&(VA(a,e,h),Qc("shape",a,e,h),Qc("extra",a,e,h),kA(a,e,u,h)),v.style=u,LA(a,v,o),PA(a,e),s)if(n){var c={};(0,p.each)(Hi,function(d){var g=d?e[d]:e;g&&g.enterFrom&&(d&&(c[d]=c[d]||{}),(0,p.extend)(d?c[d]:c,g.enterFrom))});var f=os("enter",a,e,t,i);f.duration>0&&a.animateFrom(c,f)}else MA(a,e,i||0,t,h);Jc(a,e),u?a.dirty():a.markRedraw()}function Jc(a,e){for(var t=jr(a).leaveToProps,r=0;r0&&a.animateFrom(i,n)}}function PA(a,e){(0,p.hasOwn)(e,"silent")&&(a.silent=e.silent),(0,p.hasOwn)(e,"ignore")&&(a.ignore=e.ignore),a instanceof Ar.Ay&&(0,p.hasOwn)(e,"invisible")&&(a.invisible=e.invisible),a instanceof Vt.Ay&&(0,p.hasOwn)(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var ze={},RA={setTransform:function(a,e){return ze.el[a]=e,this},getTransform:function(a){return ze.el[a]},setShape:function(a,e){var t=ze.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=ze.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=ze.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=ze.el.style;if(e)return e[a]},setExtra:function(a,e){var t=ze.el.extra||(ze.el.extra={});return t[a]=e,this},getExtra:function(a){var e=ze.el.extra;if(e)return e[a]}};function jM(a){}function EA(){var a=this,e=a.el;if(e){var t=jr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}ze.el=e,r(RA)}}function Qc(a,e,t,r){var i=t[a];if(i){var n=e[a],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[a]={}),Mr(l))(0,p.extend)(o,n);else for(var u=(0,J.qB)(l),h=0;h=0){!o&&(o=r[a]={});for(var f=(0,p.keys)(n),h=0;h=0)){var c=a.getAnimationStyleProps(),f=c?c.style:null;if(f){!n&&(n=r.style={});for(var d=(0,p.keys)(t),u=0;u=0?e.getStore().get(B,R):void 0}var z=e.get(V.name,R),W=V&&V.ordinalMeta;return W?W.categories[z]:z}function A(P,R){R==null&&(R=u);var V=e.getItemVisual(R,"style"),B=V&&V.fill,z=V&&V.opacity,W=S(R,ar).getItemStyle();B!=null&&(W.fill=B),z!=null&&(W.opacity=z);var $={inheritColor:(0,p.isString)(B)?B:"#000"},K=x(R,ar),et=q.VB(K,null,$,!1,!0);et.text=K.getShallow("show")?(0,p.retrieve2)(a.getFormattedLabel(R,ar),kr(e,R)):null;var lt=q.sD(K,$,!1);return T(P,W),W=Xc(W,et,lt),P&&C(W,P),W.legacy=!0,W}function w(P,R){R==null&&(R=u);var V=S(R,Xe).getItemStyle(),B=x(R,Xe),z=q.VB(B,null,null,!0,!0);z.text=B.getShallow("show")?(0,p.retrieve3)(a.getFormattedLabel(R,Xe),a.getFormattedLabel(R,ar),kr(e,R)):null;var W=q.sD(B,null,!0);return T(P,V),V=Xc(V,z,W),P&&C(V,P),V.legacy=!0,V}function C(P,R){for(var V in R)(0,p.hasOwn)(R,V)&&(P[V]=R[V])}function T(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function I(P,R){if(R==null&&(R=u),(0,p.hasOwn)(Wc,P)){var V=e.getItemVisual(R,"style");return V?V[Wc[P]]:null}if((0,p.hasOwn)(gA,P))return e.getItemVisual(R,P)}function D(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return(0,ga.DL)((0,p.defaults)({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function M(P){return q.c8(P,t)}}function XA(a){var e={};return(0,p.each)(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,n=e[i]=e[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function ds(a,e,t,r,i,n,o){if(!r){n.remove(e);return}var s=gs(a,e,t,r,i,n);return s&&o.setItemGraphicEl(t,s),s&&(0,U.Lm)(s,r.focus,r.blurScope,r.emphasisDisabled),s}function gs(a,e,t,r,i,n){var o=-1,s=e;e&&nf(e,r,i)&&(o=(0,p.indexOf)(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=fs(r),s&&FA(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ae.normal.cfg=Ae.normal.conOpt=Ae.emphasis.cfg=Ae.emphasis.conOpt=Ae.blur.cfg=Ae.blur.conOpt=Ae.select.cfg=Ae.select.conOpt=null,Ae.isLegacy=!1,KA(u,t,r,i,l,Ae),jA(u,t,r,i,l),ps(a,u,t,r,Ae,i,l),(0,p.hasOwn)(r,"info")&&(Ue(u).info=r.info);for(var h=0;h=0?n.replaceAt(u,o):n.add(u),u}function nf(a,e,t){var r=Ue(a),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&tw(n)&&uf(n)!==r.customPathData||i==="image"&&(0,p.hasOwn)(o,"image")&&o.image!==r.customImagePath}function jA(a,e,t,r,i){var n=t.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&nf(o,n,r)&&(o=null),o||(o=fs(n),a.setClipPath(o)),ps(null,o,e,n,null,r,i)}}function KA(a,e,t,r,i,n){if(!a.isGroup){of(t,null,n),of(t,Xe,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var h=a.getTextContent();if(o===!1)h&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=fs(o),a.setTextContent(h)),ps(null,h,e,o,null,r,i);for(var v=o&&o.style,c=0;c=h;f--){var d=e.childAt(f);JA(e,d,i)}}}function JA(a,e,t){e&&Wi(e,Ue(a).option,t)}function QA(a){new tr.A(a.oldChildren,a.newChildren,sf,sf,a).add(lf).update(lf).remove(qA).execute()}function sf(a,e){var t=a&&a.name;return t!=null?t:GA+e}function lf(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,i=e!=null?t.oldChildren[e]:null;gs(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function qA(a){var e=this.context,t=e.oldChildren[a];t&&Wi(t,Ue(t).option,e.seriesModel)}function uf(a){return a&&(a.pathData||a.d)}function tw(a){return a&&((0,p.hasOwn)(a,"pathData")||(0,p.hasOwn)(a,"d"))}function ew(a){a.registerChartView(YA),a.registerSeriesModel(mA)}var Pr=(0,J.$r)(),hf=p.clone,ms=p.bind,rw=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(e,t,r,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,r);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=h;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new it.A,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var c=p.curry(vf,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}pf(s,t,!0),this._renderHandle(n)}},a.prototype.remove=function(e){this.clear(e)},a.prototype.dispose=function(e){this.clear(e)},a.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=Bn(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},a.prototype.makeElOption=function(e,t,r,i,n){},a.prototype.createPointerEl=function(e,t,r,i){var n=t.pointer;if(n){var o=Pr(e).pointerEl=new tt[n.type](hf(t.pointer));e.add(o)}},a.prototype.createLabelEl=function(e,t,r,i){if(t.label){var n=Pr(e).labelEl=new _t.Ay(hf(t.label));e.add(n),ff(n,i)}},a.prototype.updatePointerEl=function(e,t,r){var i=Pr(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},a.prototype.updateLabelEl=function(e,t,r,i){var n=Pr(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),ff(n,i))},a.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=tt.createIcon(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pe.ds(u.event)},onmousedown:ms(this._onHandleDragMove,this,0,0),drift:ms(this._onHandleDragMove,this),ondragend:ms(this._onHandleDragEnd,this)}),r.add(i)),pf(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");p.isArray(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,me.N(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},a.prototype._moveHandleToValue=function(e,t){vf(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xs(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(xs(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(xs(i)),Pr(r).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),me.IU(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},a}();function vf(a,e,t,r){cf(Pr(t).lastProp,r)||(Pr(t).lastProp=r,e?Q.oi(t,r,a):(t.stopAnimation(),t.attr(r)))}function cf(a,e){if(p.isObject(a)&&p.isObject(e)){var t=!0;return p.each(e,function(r,i){t=t&&cf(a[i],r)}),!!t}else return a===e}function ff(a,e){a[e.get(["label","show"])?"show":"hide"]()}function xs(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function pf(a,e,t){var r=e.get("z"),i=e.get("zlevel");a&&a.traverse(function(n){n.type!=="group"&&(r!=null&&(n.z=r),i!=null&&(n.zlevel=i),n.silent=t)})}var Ss=rw;function bs(a){var e=a.get("type"),t=a.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function df(a,e,t,r,i){var n=t.get("value"),o=gf(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=qt.QX(s.get("padding")||0),u=s.getFont(),h=ce.NO(o,u),v=i.position,c=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=i.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(v[1]-=f),g==="middle"&&(v[1]-=f/2),aw(v,c,f,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),a.label={x:v[0],y:v[1],style:(0,q.VB)(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function aw(a,e,t,r){var i=r.getWidth(),n=r.getHeight();a[0]=Math.min(a[0]+e,i)-e,a[1]=Math.min(a[1]+t,n)-t,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}function gf(a,e,t,r,i){a=e.scale.parse(a);var n=e.scale.getLabel({value:a},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ut.Dt(e,{value:a}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};p.each(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,v=u&&u.getDataParams(h);v&&s.seriesData.push(v)}),p.isString(o)?n=o.replace("{value}",n):p.isFunction(o)&&(n=o(s))}return n}function _s(a,e,t){var r=Lt.create();return Lt.rotate(r,r,t.rotation),Lt.translate(r,r,t.position),tt.applyTransform([a.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function yf(a,e,t,r,i,n){var o=We.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),df(e,r,i,n,{position:_s(r.axis,a,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function As(a,e,t){return t=t||0,{x1:a[t],y1:a[1-t],x2:e[t],y2:e[1-t]}}function mf(a,e,t){return t=t||0,{x:a[t],y:a[1-t],width:e[t],height:e[1-t]}}function xf(a,e,t,r,i,n){return{cx:a,cy:e,r0:t,r,startAngle:i,endAngle:n,clockwise:!0}}var iw=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),h=Sf(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var c=bs(n),f=nw[u](s,v,h);f.style=c,t.graphicKey=f.type,t.pointer=f}var d=On(l.model,i);yf(r,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=On(r.axis.grid.model,r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=_s(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sf(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,v=[t.x,t.y];v[h]+=r[h],v[h]=Math.min(l[1],v[h]),v[h]=Math.max(l[0],v[h]);var c=(u[1]+u[0])/2,f=[c,c];f[h]=v[h];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:f,tooltipOption:d[h]}},e}(Ss);function Sf(a,e){var t={};return t[e.dim+"AxisIndex"]=e.index,a.getCartesian(t)}var nw={line:function(a,e,t){var r=As([e,t[0]],[e,t[1]],bf(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=Math.max(1,a.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:mf([e-r/2,t[0]],[r,i],bf(a))}}};function bf(a){return a.dim==="x"?0:1}var ow=iw,sw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(Ht.A),lw=sw,je=(0,J.$r)(),uw=p.each;function _f(a,e,t){if(!Kt.A.node){var r=e.getZr();je(r).records||(je(r).records={}),hw(r,e);var i=je(r).records[a]||(je(r).records[a]={});i.handler=t}}function hw(a,e){if(je(a).initialized)return;je(a).initialized=!0,t("click",p.curry(Af,"click")),t("mousemove",p.curry(Af,"mousemove")),t("globalout",cw);function t(r,i){a.on(r,function(n){var o=fw(e);uw(je(a).records,function(s){s&&i(s,n,o.dispatchAction)}),vw(o.pendings,e)})}}function vw(a,e){var t=a.showTip.length,r=a.hideTip.length,i;t?i=a.showTip[t-1]:r&&(i=a.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function cw(a,e,t){a.handler("leave",null,t)}function Af(a,e,t,r){e.handler(a,t,r)}function fw(a){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,a.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function ws(a,e){if(!Kt.A.node){var t=e.getZr(),r=(je(t).records||{})[a];r&&(je(t).records[a]=null)}}var pw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=r.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";_f("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){ws("axisPointer",r)},e.prototype.dispose=function(t,r){ws("axisPointer",r)},e.type="axisPointer",e}(Yt.A),dw=pw;function wf(a,e){var t=[],r=a.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var n=i.getData(),o=J.le(n,a);if(o==null||o<0||p.isArray(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(a.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),v=h.dim,c=u.dim,f=v==="x"||v==="radius"?1:0,d=n.mapDimension(c),g=[];g[f]=n.get(d,o),g[1-f]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(n.getValues(p.map(l.dimensions,function(m){return n.mapDimension(m)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var Cf=(0,J.$r)();function gw(a,e,t){var r=a.currTrigger,i=[a.x,a.y],n=a,o=a.dispatchAction||(0,p.bind)(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ui(i)&&(i=wf({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Ui(i),u=n.axesInfo,h=s.axesInfo,v=r==="leave"||Ui(i),c={},f={},d={list:[],map:{}},g={showPointer:(0,p.curry)(mw,f),showTooltip:(0,p.curry)(xw,d)};(0,p.each)(s.coordSysMap,function(m,S){var x=l||m.containPoint(i);(0,p.each)(s.coordSysAxesInfo[S],function(b,_){var A=b.axis,w=Aw(u,b);if(!v&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=A.pointToData(i)),C!=null&&Tf(b,C,g,!1,c)}})});var y={};return(0,p.each)(h,function(m,S){var x=m.linkGroup;x&&!f[S]&&(0,p.each)(x.axesInfo,function(b,_){var A=f[_];if(b!==m&&A){var w=A.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,If(b),If(m)))),y[m.key]=w}})}),(0,p.each)(y,function(m,S){Tf(h[S],m,g,!0,c)}),Sw(f,h,c),bw(d,i,a,o),_w(h,o,t),c}}function Tf(a,e,t,r,i){var n=a.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!a.involveSeries){t.showPointer(a,e);return}var o=yw(e,a),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&(0,p.extend)(i,s[0]),!r&&a.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(a,e,s),t.showTooltip(a,o,l)}}function yw(a,e){var t=e.axis,r=t.dim,i=a,n=[],o=Number.MAX_VALUE,s=-1;return(0,p.each)(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(r),v,c;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(h,a,t);c=f.dataIndices,v=f.nestestValue}else{if(c=l.getData().indicesOfNearest(h[0],a,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(h[0],c[0])}if(!(v==null||!isFinite(v))){var d=a-v,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=v,n.length=0),(0,p.each)(c,function(y){n.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:n,snapToValue:i}}function mw(a,e,t,r){a[e.key]={value:t,payloadBatch:r}}function xw(a,e,t,r){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Sa(l),h=a.map[u];h||(h=a.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},a.list.push(h)),h.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Sw(a,e,t){var r=t.axesInfo=[];(0,p.each)(e,function(i,n){var o=i.axisPointerModel.option,s=a[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function bw(a,e,t,r){if(Ui(e)||!a.list.length){r({type:"hideTip"});return}var i=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:a.list})}function _w(a,e,t){var r=t.getZr(),i="axisPointerLastHighlights",n=Cf(r)[i]||{},o=Cf(r)[i]={};(0,p.each)(a,function(u,h){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&(0,p.each)(v.seriesDataIndices,function(c){var f=c.seriesIndex+" | "+c.dataIndex;o[f]=c})});var s=[],l=[];(0,p.each)(n,function(u,h){!o[h]&&l.push(u)}),(0,p.each)(o,function(u,h){!n[h]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Aw(a,e){for(var t=0;t<(a||[]).length;t++){var r=a[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function If(a){var e=a.axis.model,t={},r=t.axisDim=a.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function Ui(a){return!a||a[0]==null||isNaN(a[0])||a[1]==null||isNaN(a[1])}function Ba(a){Sr.registerAxisPointerClass("CartesianAxisPointer",ow),a.registerComponentModel(lw),a.registerComponentView(dw),a.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!(0,p.isArray)(t)&&(e.axisPointer.link=[t])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=a0(e,t)}),a.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gw)}function ww(a){(0,Y.Y)($u),(0,Y.Y)(Ba)}var Cw=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),v=s.dataToCoord(r),c=n.get("type");if(c&&c!=="none"){var f=bs(n),d=Iw[c](s,l,v,h);d.style=f,t.graphicKey=d.type,t.pointer=d}var g=n.get(["label","margin"]),y=Tw(r,i,n,l,g);df(t,i,n,o,y)},e}(Ss);function Tw(a,e,t,r,i){var n=e.axis,o=n.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,h,v;if(n.dim==="radius"){var c=Lt.create();Lt.rotate(c,c,s),Lt.translate(c,c,[r.cx,r.cy]),u=tt.applyTransform([o,-i],c);var f=e.getModel("axisLabel").get("rotate")||0,d=We.innerTextLayout(s,f*Math.PI/180,-1);h=d.textAlign,v=d.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+i,o]);var y=r.cx,m=r.cy;h=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",v=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:h,verticalAlign:v}}var Iw={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:As(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var i=Math.max(1,a.getBandWidth()),n=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:xf(e.cx,e.cy,r[0],r[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:xf(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},Dw=Cw,Lw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(r=n)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Ht.A),Mw=Lw,Cs=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",J.US).models[0]},e.type="polarAxis",e}(Ht.A);p.mixin(Cs,xa.L);var Pw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Cs),Rw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Cs),Ts=function(a){(0,O.C6)(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(Ee.A);Ts.prototype.dataToRadius=Ee.A.prototype.dataToCoord,Ts.prototype.radiusToData=Ee.A.prototype.coordToData;var Ew=Ts,Vw=(0,J.$r)(),Is=function(a){(0,O.C6)(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=ce.NO(s==null?"":s+"",r.getFont(),"center","top"),v=Math.max(h.height,7),c=v/u;isNaN(c)&&(c=1/0);var f=Math.max(0,Math.floor(c)),d=Vw(t.model),g=d.lastAutoInterval,y=d.lastTickCount;return g!=null&&y!=null&&Math.abs(g-f)<=1&&Math.abs(y-o)<=1&&g>f?f=g:(d.lastTickCount=o,d.lastAutoInterval=f),f},e}(Ee.A);Is.prototype.dataToAngle=Ee.A.prototype.dataToCoord,Is.prototype.angleToData=Ee.A.prototype.coordToData;var Ow=Is,Df=["radius","angle"],kw=function(){function a(e){this.dimensions=Df,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ew,this._angleAxis=new Ow,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,h=us;)u+=h*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,n=-Math.sin(r)*t+this.cy;return[i,n]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,h=l*l+u*u-1e-4,v=this.r,c=this.r0;return h<=v*v&&h>=c*c}}},a.prototype.convertToPixel=function(e,t,r){var i=Lf(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=Lf(t);return i===this?this.pointToData(r):null},a}();function Lf(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var Nw=kw;function zw(a,e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight();a.cx=(0,k.lo)(r[0],i),a.cy=(0,k.lo)(r[1],n);var o=a.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:p.isArray(l)||(l=[0,l]);var u=[(0,k.lo)(l[0],s),(0,k.lo)(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bw(a,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();p.each((0,Ut.wq)(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),p.each((0,Ut.wq)(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),(0,Ut.af)(r.scale,r.model),(0,Ut.af)(i.scale,i.model),r.type==="category"&&!r.onBand){var n=r.getExtent(),o=360/r.scale.count();r.inverse?n[1]+=o:n[1]-=o,r.setExtent(n[0],n[1])}}function Gw(a){return a.mainType==="angleAxis"}function Mf(a,e){var t;if(a.type=e.get("type"),a.scale=(0,Ut.f$)(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),Gw(e)){a.inverse=a.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(a.inverse?-360:360);a.setExtent(r,i)}e.axis=a,a.model=e}var Hw={dimensions:Df,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,i){var n=new Nw(i+"");n.update=Bw;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Mf(o,l),Mf(s,u),zw(n,r,e),t.push(n),r.coordinateSystem=n,n.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",J.US).models[0];r.coordinateSystem=i.coordinateSystem}}),t}},Fw=Hw,Ww=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xi(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),i=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function ji(a){var e=a.getRadiusAxis();return e.inverse?0:1}function Pf(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var Yw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=p.map(i.getViewLabels(),function(h){h=p.clone(h);var v=i.scale,c=v.type==="ordinal"?v.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=i.dataToCoord(c),h});Pf(u),Pf(s),p.each(Ww,function(h){t.get([h,"show"])&&(!i.scale.isBlank()||h==="axisLine")&&Zw[h](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Sr),Zw={axisLine:function(a,e,t,r,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),h=ji(t),v=h?0:1,c,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[v]===0?c=new tt[f]({shape:{cx:t.cx,cy:t.cy,r:n[h],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new qu.A({shape:{cx:t.cx,cy:t.cy,r:n[h],r0:n[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,a.add(c)},axisTick:function(a,e,t,r,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[ji(t)],u=p.map(r,function(h){return new le.A({shape:Xi(t,[l,l+s],h.coord)})});a.add(tt.mergePath(u,{style:p.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,i,n){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[ji(t)],h=[],v=0;vm?"left":"right",b=Math.abs(y[1]-S)/g<.3?"middle":y[1]>S?"top":"bottom";if(s&&s[d]){var _=s[d];p.isObject(_)&&_.textStyle&&(f=new Xt.A(_.textStyle,l,l.ecModel))}var A=new _t.Ay({silent:We.isLabelSilent(e),style:(0,q.VB)(f,{x:y[0],y:y[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:x,verticalAlign:b})});if(a.add(A),h){var w=We.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=v.rawLabel,(0,ct.z)(A).eventData=w}},this)},splitLine:function(a,e,t,r,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],v=0;v=0?"p":"n",R=T;_&&(r[h][M]||(r[h][M]={p:T,n:T}),R=r[h][M][P]);var V=void 0,B=void 0,z=void 0,W=void 0;if(d.dim==="radius"){var $=d.dataToCoord(L)-T,K=l.dataToCoord(M);Math.abs($)=W})}}})}function tC(a){var e={};p.each(a,function(r,i){var n=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Ef(o,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),v=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=v.stacks;e[l]=v;var f=Rf(r);c[f]||v.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var d=(0,k.lo)(r.get("barWidth"),h),g=(0,k.lo)(r.get("barMaxWidth"),h),y=r.get("barGap"),m=r.get("barCategoryGap");d&&!c[f].width&&(d=Math.min(v.remainedWidth,d),c[f].width=d,v.remainedWidth-=d),g&&(c[f].maxWidth=g),y!=null&&(v.gap=y),m!=null&&(v.categoryGap=m)});var t={};return p.each(e,function(r,i){t[i]={};var n=r.stacks,o=r.bandWidth,s=(0,k.lo)(r.categoryGap,o),l=(0,k.lo)(r.gap,1),u=r.remainedWidth,h=r.autoWidthCount,v=(u-s)/(h+(h-1)*l);v=Math.max(v,0),p.each(n,function(g,y){var m=g.maxWidth;m&&m=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?r.y+r.height/2:r.x+r.width/2,i},a.prototype.convertToPixel=function(e,t,r){var i=kf(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=kf(t);return i===this?this.pointToData(r):null},a}();function kf(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var pC=fC;function dC(a,e){var t=[];return a.eachComponent("singleAxis",function(r,i){var n=new pC(r,a,e);n.name="single_"+i,n.resize(r,e),r.coordinateSystem=n,t.push(n)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",J.US).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),t}var gC={create:dC,dimensions:Of},yC=gC,Nf=["x","y"],mC=["width","height"],xC=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Ms(l,1-Ki(s)),h=l.dataToPoint(r)[0],v=n.get("type");if(v&&v!=="none"){var c=bs(n),f=SC[v](s,h,u);f.style=c,t.graphicKey=f.type,t.pointer=f}var d=Ds(i);yf(r,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=Ds(r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=_s(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.coordinateSystem,l=Ki(o),u=Ms(s,l),h=[t.x,t.y];h[l]+=r[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var v=Ms(s,1-l),c=(v[1]+v[0])/2,f=[c,c];return f[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e}(Ss),SC={line:function(a,e,t){var r=As([e,t[0]],[e,t[1]],Ki(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:mf([e-r/2,t[0]],[r,i],Ki(a))}}};function Ki(a){return a.isHorizontal()?0:1}function Ms(a,e){var t=a.getRect();return[t[Nf[e]],t[Nf[e]]+t[mC[e]]]}var bC=xC,_C=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Yt.A);function AC(a){(0,Y.Y)(Ba),Sr.registerAxisPointerClass("SingleAxisPointer",bC),a.registerComponentView(_C),a.registerComponentView(hC),a.registerComponentModel(Ls),Br(a,"single",Ls,Ls.defaultOption),a.registerCoordinateSystem("single",yC)}var wC=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var n=(0,yt.vs)(t);a.prototype.init.apply(this,arguments),zf(t,n)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),zf(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(Ht.A);function zf(a,e){var t=a.cellSize,r;p.isArray(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var i=p.map([0,1],function(n){return(0,yt.Qf)(e,n)&&(r[n]="auto"),r[n]!=null&&r[n]!=="auto"});(0,yt.YA)(a,e,{type:"box",ignoreSize:i})}var CC=wC,Bf=E(30182),TC=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,r,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=r.start.time;u<=r.end.time;u=n.getNextNDay(u,1).time){var h=n.dataToRect([u],!1).tl,v=new Dt.A({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:o});i.add(v)}},e.prototype._renderLines=function(t,r,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=r.start,c=0;v.time<=r.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(r.start.y+"-"+r.start.m));var f=v.date;f.setMonth(f.getMonth()+1),v=s.getDateInfo(f)}d(s.getNextNDay(r.end.time,1).formatedDate);function d(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var y=o._getLinePointsOfOneWeek(t,g,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,h,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,h,i),l,n)},e.prototype._getEdgesPoints=function(t,r,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-r/2,n[1][o]=n[1][o]+r/2,n},e.prototype._drawSplitline=function(t,r,i){var n=new Pe.A({z2:20,shape:{points:t},style:r});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,r,i){for(var n=t.coordinateSystem,o=n.getDateInfo(r),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),h=n.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return(0,p.isString)(t)&&t?(0,qt.io)(t,r):(0,p.isFunction)(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,i,n,o){var s=r[0],l=r[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var h=0;return(n==="left"||n==="right")&&(h=Math.PI/2),{rotation:h,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,i,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,c=i==="horizontal"?0:1,f={top:[h,u[c][1]],bottom:[h,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},d=r.start.y;+r.end.y>+r.start.y&&(d=d+"-"+r.end.y);var g=o.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:d},m=this._formatterLabel(g,y),S=new _t.Ay({z2:30,style:(0,q.VB)(o,{text:m})});S.attr(this._yearTextPositionControl(S,f[l],i,l,s)),n.add(S)}},e.prototype._monthTextPositionControl=function(t,r,i,n,o){var s="left",l="top",u=t[0],h=t[1];return i==="horizontal"?(h=h+o,r&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),n==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),h=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||(0,p.isString)(s))&&(s&&(r=(0,Bf.A4)(s)||r),s=r.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=h==="center",g=0;g=i.start.time&&r.times.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/Ps)-Math.floor(t[0].time/Ps)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var h=Math.floor((i+t[0].day+6)/7),v=r?-h+1:h-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:h,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&ti.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var n=new a(i,e,t);r.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a}();function Gf(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}var LC=DC;function MC(a){a.registerComponentModel(CC),a.registerComponentView(IC),a.registerCoordinateSystem("calendar",LC)}function PC(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Hf(a,e){var t;return p.each(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function RC(a,e,t){var r=p.extend({},t),i=a[e],n=t.$action||"merge";if(n==="merge")if(i){if(0)var o;p.merge(i,r,!0),(0,yt.YA)(i,r,{ignoreSize:!0}),(0,yt.Ir)(t,i),$i(t,i),$i(t,i,"shape"),$i(t,i,"style"),$i(t,i,"extra"),t.clipPath=i.clipPath}else a[e]=r;else n==="replace"?a[e]=r:n==="remove"&&i&&(a[e]=null)}var Ff=["transition","enterFrom","leaveTo"],EC=Ff.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function $i(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?Ff:EC,i=0;i=0;h--){var v=i[h],c=J.vS(v.id,null),f=c!=null?o.get(c):null;if(f){var d=f.parent,m=we(d),S=d===n?{width:s,height:l}:{width:m.width,height:m.height},x={},b=yt.m$(f,v,S,null,{hv:v.hv,boundingMode:v.bounding},x);if(!we(f).isNew&&b){for(var _=v.transition,A={},w=0;w=0)?A[C]=T:f[C]=T}(0,Q.oi)(f,A,t,0)}else f.attr(x)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){Ji(i,we(i).option,r,t._lastGraphicModel)}),this._elMap=p.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Yt.A);function Rs(a){var e=p.hasOwn(Wf,a)?Wf[a]:tt.getShapeClass(a),t=new e({});return we(t).type=a,t}function Yf(a,e,t,r){var i=Rs(t);return e.add(i),r.set(a,i),we(i).id=a,we(i).isNew=!0,i}function Ji(a,e,t,r){var i=a&&a.parent;i&&(a.type==="group"&&a.traverse(function(n){Ji(n,e,t,r)}),Wi(a,e,r),t.removeKey(we(a).id))}function Zf(a,e,t,r){a.isGroup||p.each([["cursor",Ar.Ay.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var n=i[0];p.hasOwn(e,n)?a[n]=p.retrieve2(e[n],i[1]):a[n]==null&&(a[n]=i[1])}),p.each(p.keys(e),function(i){if(i.indexOf("on")===0){var n=e[i];a[i]=p.isFunction(n)?n:null}}),p.hasOwn(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function NC(a){return a=p.extend({},a),p.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(yt.Tj),function(e){delete a[e]}),a}function zC(a,e,t){var r=(0,ct.z)(a).eventData;!a.silent&&!a.ignore&&!r&&(r=(0,ct.z)(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function BC(a){a.registerComponentModel(OC),a.registerComponentView(kC),a.registerPreprocessor(function(e){var t=e.graphic;(0,p.isArray)(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Uf=["x","y","radius","angle","single"],GC=["cartesian2d","polar","singleAxis"];function HC(a){var e=a.get("coordinateSystem");return(0,p.indexOf)(GC,e)>=0}function nr(a){return a+"Axis"}function $M(a){return a+"AxisIndex"}function JM(a){return a+"AxisId"}function FC(a,e){var t=(0,p.createHashMap)(),r=[],i=(0,p.createHashMap)();a.eachComponent({mainType:"dataZoom",query:e},function(h){i.get(h.uid)||s(h)});var n;do n=!1,a.eachComponent("dataZoom",o);while(n);function o(h){!i.get(h.uid)&&l(h)&&(s(h),n=!0)}function s(h){i.set(h.uid,!0),r.push(h),u(h)}function l(h){var v=!1;return h.eachTargetAxis(function(c,f){var d=t.get(c);d&&d[f]&&(v=!0)}),v}function u(h){h.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}return r}function Xf(a){var e=a.ecModel,t={infoList:[],infoMap:(0,p.createHashMap)()};return a.eachTargetAxis(function(r,i){var n=e.getComponent(nr(r),i);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Es=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a}(),WC=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var n=jf(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var r=jf(t);(0,p.merge)(this.option,t,!0),(0,p.merge)(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;(0,p.each)([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(r[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=(0,p.createHashMap)(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return(0,p.each)(Uf,function(i){var n=this.getReferringComponents(nr(i),J.UW);if(n.specified){r=!0;var o=new Es;(0,p.each)(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,n=!0;if(n){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===r}});l(s,"single")}function l(u,h){var v=u[0];if(v){var c=new Es;if(c.add(v.componentIndex),t.set(h,c),n=!1,h==="x"||h==="y"){var f=v.getReferringComponents("grid",J.US).models[0];f&&(0,p.each)(u,function(d){v.componentIndex!==d.componentIndex&&f===d.getReferringComponents("grid",J.US).models[0]&&c.add(d.componentIndex)})}}}n&&(0,p.each)(Uf,function(u){if(n){var h=i.findComponents({mainType:nr(u),filter:function(c){return c.get("type",!0)==="category"}});if(h[0]){var v=new Es;v.add(h[0].componentIndex),t.set(u,v),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");(0,p.each)([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(nr(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,n){(0,p.each)(i.indexList,function(o){t.call(r,n,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(nr(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;(0,p.each)([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(r[n[0]]=i[n[0]]=t[n[0]],r[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;(0,p.each)(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),n=0;no[1];if(x&&!b&&!_)return!0;x&&(y=!0),b&&(d=!0),_&&(g=!0)}return y&&d&&g})}else Kr(h,function(f){if(n==="empty")l.setData(u=u.map(f,function(g){return s(g)?g:NaN}));else{var d={};d[f]=o,u.selectRange(d)}});Kr(h,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;Kr(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=k.Cb(r[0]+o,r,[0,100],!0):n!=null&&(o=k.Cb(n,[0,100],r,!0)-r[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},a.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var i=k.hb(r,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+r[1].toFixed(i)),n.freeze()}},a}();function JC(a,e,t){var r=[1/0,-1/0];Kr(t,function(o){(0,Ut.PN)(r,o.getData(),e)});var i=a.getAxisModel(),n=(0,KC.Tc)(i.axis.scale,i,r).calculate();return[n.min,n.max]}var QC=$C,qC={getTargetSeries:function(a){function e(i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=a.getComponent(nr(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new QC(i,n,s,a),t.push(o.__dzAxisProxy))});var r=(0,p.createHashMap)();return(0,p.each)(t,function(i){(0,p.each)(i.getTargetSeriesModels(),function(n){r.set(n.uid,n)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),n=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}},tT=qC;function eT(a){a.registerAction("dataZoom",function(e,t){var r=FC(t,e);(0,p.each)(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var $f=!1;function Os(a){$f||($f=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,tT),eT(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rT(a){a.registerComponentModel(ZC),a.registerComponentView(jC),Os(a)}var Ce=function(){function a(){}return a}(),Jf={};function $r(a,e){Jf[a]=e}function Qf(a){return Jf[a]}var aT=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;p.each(this.option.feature,function(r,i){var n=Qf(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),p.merge(r,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(Ht.A),iT=aT;function nT(a,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=(0,yt.dV)(r,n,i);(0,yt.aP)(e.get("orient"),a,e.get("itemGap"),o.width,o.height),(0,yt.m$)(a,r,n,i)}function qf(a,e){var t=qt.QX(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),a=new Dt.A({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),a}var oT=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},h=this._features||(this._features={}),v=[];p.each(u,function(d,g){v.push(g)}),new tr.A(this._featureNames||[],v).add(c).update(c).remove(p.curry(c,null)).execute(),this._featureNames=v;function c(d,g){var y=v[d],m=v[g],S=u[y],x=new Xt.A(S,t,t.ecModel),b;if(n&&n.newTitle!=null&&n.featureName===y&&(S.title=n.newTitle),y&&!m){if(sT(y))b={onclick:x.option.onclick,featureName:y};else{var _=Qf(y);if(!_)return;b=new _}h[y]=b}else if(b=h[m],!b)return;b.uid=(0,Ne.$Q)("toolbox-feature"),b.model=x,b.ecModel=r,b.api=i;var A=b instanceof Ce;if(!y&&m){A&&b.dispose&&b.dispose(r,i);return}if(!x.get("show")||A&&b.unusable){A&&b.remove&&b.remove(r,i);return}f(x,b,y),x.setIconStatus=function(w,C){var T=this.option,I=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=C,I[w]&&(C==="emphasis"?U.HY:U.SD)(I[w])},b instanceof Ce&&b.render&&b.render(x,r,i,n)}function f(d,g,y){var m=d.getModel("iconStyle"),S=d.getModel(["emphasis","iconStyle"]),x=g instanceof Ce&&g.getIcons?g.getIcons():d.get("icon"),b=d.get("title")||{},_,A;p.isString(x)?(_={},_[y]=x):_=x,p.isString(b)?(A={},A[y]=b):A=b;var w=d.iconPaths={};p.each(_,function(C,T){var I=tt.createIcon(C,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(m.getItemStyle());var D=I.ensureState("emphasis");D.style=S.getItemStyle();var L=new _t.Ay({style:{text:A[T],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:(0,q.c8)({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},r)},ignore:!0});I.setTextContent(L),tt.setTooltipConfig({el:I,componentModel:t,itemName:T,formatterParamsExtra:{title:A[T]}}),I.__title=A[T],I.on("mouseover",function(){var M=S.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:S.get("textFill")||M.fill||M.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),I.setTextConfig({position:S.get("textPosition")||P}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?U.HY:U.SD)(I),o.add(I),I.on("click",p.bind(g.onclick,g,r,i,T)),w[T]=I})}nT(o,t,i),o.add(qf(o.getBoundingRect(),t)),l||o.eachChild(function(d){var g=d.__title,y=d.ensureState("emphasis"),m=y.textConfig||(y.textConfig={}),S=d.getTextContent(),x=S&&S.ensureState("emphasis");if(x&&!p.isFunction(x)&&g){var b=x.style||(x.style={}),_=ce.NO(g,_t.Ay.makeFont(b)),A=d.x+o.x,w=d.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var T=C?-5-_.height:s+10;A+_.width/2>i.getWidth()?(m.position=["100%",T],b.align="right"):A-_.width/2<0&&(m.position=[0,T],b.align="left")}})},e.prototype.updateView=function(t,r,i,n){p.each(this._features,function(o){o instanceof Ce&&o.updateView&&o.updateView(o.model,r,i,n)})},e.prototype.remove=function(t,r){p.each(this._features,function(i){i instanceof Ce&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){p.each(this._features,function(i){i instanceof Ce&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(Yt.A);function sT(a){return a.indexOf("my")===0}var lT=oT,uT=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Kt.A.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=n+"."+s,h.target="_blank",h.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),f=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];f&&(d=window.atob(d));var g=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=d.length,m=new Uint8Array(y);y--;)m[y]=d.charCodeAt(y);var S=new Blob([m]);window.navigator.msSaveOrOpenBlob(S,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var b=x.contentWindow,_=b.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),b.focus(),_.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var A=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=n}},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(Ce),hT=uT,tp="__ec_magicType_stack__",QM=null,qM=null,vT=[["line","bar"],["stack"]],cT=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return p.each(t.get("type"),function(n){r[n]&&(i[n]=r[n])}),i},e.getDefaultOption=function(t){var r={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var n=this.model,o=n.get(["seriesIndex",i]);if(ep[i]){var s={series:[]},l=function(v){var c=v.subType,f=v.id,d=ep[i](c,f,v,n);d&&(p.defaults(d,v.option),s.series.push(d));var g=v.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var m=y.dim,S=m+"Axis",x=v.getReferringComponents(S,J.US).models[0],b=x.componentIndex;s[S]=s[S]||[];for(var _=0;_<=b;_++)s[S][b]=s[S][b]||{};s[S][b].boundaryGap=i==="bar"}}};p.each(vT,function(v){p.indexOf(v,i)>=0&&p.each(v,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,h=i;i==="stack"&&(u=p.merge({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(h="tiled")),r.dispatchAction({type:"changeMagicType",currentType:h,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Ce),ep={line:function(a,e,t,r){if(a==="bar")return p.merge({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return p.merge({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var i=t.get("stack")===tp;if(a==="line"||a==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),p.merge({id:e,stack:i?"":tp},r.get(["option","stack"])||{},!0)}};gi.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});var fT=cT,Qi=new Array(60).join("-"),Jr=" ";function pT(a){var e={},t=[],r=[];return a.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function dT(a){var e=[];return p.each(a,function(t,r){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(p.map(t.series,function(f){return f.name})),l=[i.model.getCategories()];p.each(t.series,function(f){var d=f.getRawData();l.push(f.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(Jr)],h=0;h0,y={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=p.createHashMap(),r=p.createHashMap(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(f,d){return d&&(f=d(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function v(f){for(var d=[],g=!u&&l&&l.project,y=0;y=0)&&(c=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,q.qM)(e,(0,q.lx)(r),{labelFetcher:c,labelDataIndex:v,defaultText:t},f);var d=e.getTextContent();if(d&&(gh(d).ignore=d.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Sh(a,e,t,r,i,n){a.data?a.data.setItemGraphicEl(n,e):(0,ft.z)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function bh(a,e,t,r,i){a.data||tt.setTooltipConfig({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function _h(a,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=r.getModel("emphasis"),o=n.get("focus");return(0,U.Lm)(e,o,n.get("blurScope"),n.get("disabled")),a.isGeo&&(0,U.ml)(e,i,t),o}function Ah(a,e,t){var r=[],i;function n(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),p.each(a,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Ot.A),gm=dm;function ym(a,e){var t={};return p.each(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,h=0;h1?(b.width=x,b.height=x/y):(b.height=x,b.width=x*y),b.y=S[1]-b.height/2,b.x=S[0]-b.width/2;else{var _=a.getBoxLayoutParams();_.aspect=y,b=yt.dV(_,{width:d,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function _m(a,e){p.each(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var Am=function(){function a(){this.dimensions=Ih}return a.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Mh(l+s,l,p.extend({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Ph,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),p.each(n,function(o,s){var l=p.map(o,function(h){return h.get("nameMap")}),u=new Mh(s,s,p.extend({nameMap:p.mergeAll(l)},i(o[0])));u.zoomLimit=p.retrieve.apply(null,p.map(o,function(h){return h.get("scaleLimit")})),r.push(u),u.resize=Ph,u.resize(o[0],t),p.each(o,function(h){h.coordinateSystem=u,_m(u,h)})}),r},a.prototype.getFilledRegions=function(e,t,r,i){for(var n=(e||[]).slice(),o=p.createHashMap(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function Rm(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,i=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){Om(a);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(a.hierNode.prelim=i.hierNode.prelim+e(a,i),a.hierNode.modifier=a.hierNode.prelim-n):a.hierNode.prelim=n}else i&&(a.hierNode.prelim=i.hierNode.prelim+e(a,i));a.parentNode.hierNode.defaultAncestor=km(a,i,a.parentNode.hierNode.defaultAncestor||r[0],e)}function Em(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function kh(a){return arguments.length?a:Bm}function Ta(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function Vm(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Om(a){for(var e=a.children,t=e.length,r=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=r,n.hierNode.modifier+=r,i+=n.hierNode.change,r+=n.hierNode.shift+i}}function km(a,e,t,r){if(e){for(var i=a,n=a,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,h=o.hierNode.modifier,v=s.hierNode.modifier;s=Qn(s),n=qn(n),s&&n;){i=Qn(i),o=qn(o),i.hierNode.ancestor=a;var c=s.hierNode.prelim+v-n.hierNode.prelim-u+r(s,n);c>0&&(zm(Nm(s,a,t),a,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,h+=o.hierNode.modifier}s&&!Qn(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=v-l),n&&!qn(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-h,t=a)}return t}function Qn(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function qn(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function Nm(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function zm(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function Bm(a,e){return a.parentNode===e.parentNode?1:2}var Ci=E(48813),Gm=function(){function a(){this.parentPoint=[],this.childPoints=[]}return a}(),Hm=function(a){(0,O.C6)(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Gm},e.prototype.buildPath=function(t,r){var i=r.childPoints,n=i.length,o=r.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,h=u==="TB"||u==="BT"?0:1,v=1-h,c=(0,k.lo)(r.forkPosition,1),f=[];f[h]=o[h],f[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[h]=s[h],t.lineTo(f[0],f[1]),f[h]=l[h],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var d=1;dS.x,_||(b=b-Math.PI));var w=_?"left":"right",C=s.getModel("label"),T=C.get("rotate"),I=T*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:C.get("position")||w,rotation:T==null?-b:I,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),M=L==="relative"?p.concatArray(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;M&&((0,ft.z)(t).focus=M),Wm(i,o,h,t,d,f,g,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===U.zX||(0,U.Pk)(t.__edge,P)}})}function Wm(a,e,t,r,i,n,o,s){var l=e.getModel(),u=a.get("edgeShape"),h=a.get("layout"),v=a.getOrient(),c=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Oh.A({shape:to(h,v,c,i,i)})),Q.oi(g,{shape:to(h,v,c,n,o)},a));else if(u==="polyline"&&h==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,m=[],S=0;St&&(t=i.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,i=a.targetNode;if(p.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var n=a.targetNodeId;if(n!=null&&(i=r.getNodeById(n)))return{node:i}}}function Yh(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function ao(a,e){var t=Yh(a);return p.indexOf(t,e)>=0}function Ti(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var ex=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},n=new Xt.A(i,this,this.ecModel),o=ro.createTree(r,this,s);function s(v){v.wrapMethod("getItemModel",function(c,f){var d=o.getNodeByDataIndex(f);return d&&d.children.length&&d.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=h}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return(0,zt.Qx)("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ti(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.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},e}(Ot.A),rx=ex;function ax(a,e,t){for(var r=[a],i=[],n;n=r.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(i[n])}}function ix(a,e){a.eachSeriesByType("tree",function(t){nx(t,e)})}function nx(a,e){var t=Vm(a,e);a.layoutInfo=t;var r=a.get("layout"),i=0,n=0,o=null;r==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=kh(function(x,b){return(x.parentNode===b.parentNode?1:2)/x.depth})):(i=t.width,n=t.height,o=kh());var s=a.getData().tree.root,l=s.children[0];if(l){Pm(s),ax(l,Rm,o),s.hierNode.modifier=-l.hierNode.prelim,Da(l,Em);var u=l,h=l,v=l;Da(l,function(x){var b=x.getLayout().x;bh.getLayout().x&&(h=x),x.depth>v.depth&&(v=x)});var c=u===h?1:o(u,h)/2,f=c-u.getLayout().x,d=0,g=0,y=0,m=0;if(r==="radial")d=i/(h.getLayout().x+c+f),g=n/(v.depth-1||1),Da(l,function(x){y=(x.getLayout().x+f)*d,m=(x.depth-1)*g;var b=Ta(y,m);x.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var S=a.getOrient();S==="RL"||S==="LR"?(g=n/(h.getLayout().x+c+f),d=i/(v.depth-1||1),Da(l,function(x){m=(x.getLayout().x+f)*g,y=S==="LR"?(x.depth-1)*d:i-(x.depth-1)*d,x.setLayout({x:y,y:m},!0)})):(S==="TB"||S==="BT")&&(d=i/(h.getLayout().x+c+f),g=n/(v.depth-1||1),Da(l,function(x){y=(x.getLayout().x+f)*d,m=S==="TB"?(x.depth-1)*g:n-(x.depth-1)*g,x.setLayout({x:y,y:m},!0)}))}}}function ox(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");(0,p.extend)(s,o)})})}function sx(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,n=r.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var n=i.coordinateSystem,o=$n(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lx(a){a.registerChartView(Ym),a.registerSeriesModel(rx),a.registerLayout(ix),a.registerVisual(ox),sx(a)}var Zh=["treemapZoomToNode","treemapRender","treemapMove"];function ux(a){for(var e=0;e1;)n=n.parentNode;var o=(0,io.x)(a.ecModel,n.name||n.dataIndex+"",r);i.setVisual("decal",o)})}var hx=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Xh(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt.A({itemStyle:o},this,r);n=t.levels=vx(n,r);var l=p.map(n||[],function(v){return new Xt.A(v,s,r)},this),u=ro.createTree(i,this,h);function h(v){v.wrapMethod("getItemModel",function(c,f){var d=u.getNodeByDataIndex(f),g=d?l[d.depth]:null;return c.parentModel=g||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return(0,zt.Qx)("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ti(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},p.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=p.createHashMap(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Uh(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,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:[]},e}(Ot.A);function Xh(a){var e=0;p.each(a.children,function(r){Xh(r);var i=r.value;p.isArray(i)&&(i=i[0]),e+=i});var t=a.value;p.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),p.isArray(a.value)?a.value[0]=t:a.value=t}function vx(a,e){var t=(0,J.qB)(e.get("color")),r=(0,J.qB)(e.get(["aria","decal","decals"]));if(t){a=a||[];var i,n;p.each(a,function(s){var l=new Xt.A(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(n=!0)});var o=a[0]||(a[0]={});return i||(o.color=t.slice()),!n&&r&&(o.decal=r.slice()),a}}var cx=hx,tr=E(16563),fx=8,jh=8,no=5,px=function(){function a(e){this.group=new it.A,e.add(this.group)}return a.prototype.render=function(e,t,r,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!r)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),h=l.getModel(["itemStyle","textStyle"]),v={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,v,u),this._renderContent(e,v,s,l,u,h,i),yt.m$(o,v.pos,v.box)}},a.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var n=(0,J.vS)(i.getModel().get("name"),""),o=r.getTextRect(n),s=Math.max(o.width+fx*2,t.emptyItemWidth);t.totalWidth+=s+jh,t.renderList.push({node:i,text:n,width:s})}},a.prototype._renderContent=function(e,t,r,i,n,o,s){for(var l=0,u=t.emptyItemWidth,h=e.get(["breadcrumb","height"]),v=yt.HU(t.pos,t.box),c=t.totalWidth,f=t.renderList,d=i.getModel("itemStyle").getItemStyle(),g=f.length-1;g>=0;g--){var y=f[g],m=y.node,S=y.width,x=y.text;c>v.width&&(c-=S-u,S=u,x=null);var b=new Se.A({shape:{points:dx(l,0,S,h,g===f.length-1,g===0)},style:(0,p.defaults)(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new _t.Ay({style:(0,q.VB)(n,{text:x})}),textConfig:{position:"inside"},z2:U.CA*1e4,onclick:(0,p.curry)(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=(0,q.VB)(o,{text:x}),b.ensureState("emphasis").style=d,(0,U.Lm)(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),gx(b,e,m),l+=S+jh}},a.prototype.remove=function(){this.group.removeAll()},a}();function dx(a,e,t,r,i,n){var o=[[i?a:a-no,e],[a+t,e],[a+t,e+r],[i?a:a-no,e+r]];return!n&&o.splice(2,0,[a+t+no,e+r/2]),!i&&o.push([a,e+r/2]),o}function gx(a,e,t){(0,ft.z)(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ti(t,e)}}var yx=px,mx=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:n}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;iJh||Math.abs(t.dy)>Jh)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY,n=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new vt.A(s.x,s.y,s.width,s.height),u=null,h=this._controllerHost;u=h.zoomLimit;var v=h.zoom=h.zoom||1;if(v*=n,u){var c=u.min||0,f=u.max||1/0;v=Math.max(Math.min(f,v),c)}var d=v/h.zoom;h.zoom=v;var g=this.seriesModel.layoutInfo;r-=g.x,i-=g.y;var y=Lt.create();Lt.translate(y,y,[-r,-i]),Lt.scale(y,y,[d,d]),Lt.translate(y,y,[r,i]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var n=r.seriesModel.get("nodeClick",!0);if(n){var o=r.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(n==="zoomToNode")r._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),h=l.get("target",!0)||"blank";u&&(0,qt.JW)(u,h)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new yx(this.group))).render(t,r,i.node,function(o){n._state!=="animating"&&(ao(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=La(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Nt.A);function La(){return{nodeGroup:[],background:[],content:[]}}function wx(a,e,t,r,i,n,o,s,l,u){if(!o)return;var h=o.getLayout(),v=a.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var f=h.width,d=h.height,g=h.borderWidth,y=h.invisible,m=o.getRawIndex(),S=s&&s.getRawIndex(),x=o.viewChildren,b=h.upperHeight,_=x&&x.length,A=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),T=c.getModel(["select","itemStyle"]),I=A.get("borderRadius")||0,D=ot("nodeGroup",oo);if(!D)return;if(l.add(D),D.x=h.x||0,D.y=h.y||0,D.markRedraw(),Ii(D).nodeWidth=f,Ii(D).nodeHeight=d,h.isAboveViewRoot)return D;var L=ot("background",$h,u,bx);L&&W(D,L,_&&h.upperLabelHeight);var M=c.getModel("emphasis"),P=M.get("focus"),R=M.get("blurScope"),V=M.get("disabled"),B=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)(0,U.u6)(D)&&(0,U.ix)(D,!1),L&&((0,U.ix)(L,!V),v.setItemGraphicEl(o.dataIndex,L),(0,U.gR)(L,B,R));else{var z=ot("content",$h,u,_x);z&&$(D,z),L.disableMorphing=!0,L&&(0,U.u6)(L)&&(0,U.ix)(L,!1),(0,U.ix)(D,!V),v.setItemGraphicEl(o.dataIndex,D),(0,U.gR)(D,B,R)}return D;function W(xt,nt,Ct){var wt=(0,ft.z)(nt);if(wt.dataIndex=o.dataIndex,wt.seriesIndex=a.seriesIndex,nt.setShape({x:0,y:0,width:f,height:d,r:I}),y)K(nt);else{nt.invisible=!1;var Mt=o.getVisual("style"),Jt=Mt.stroke,te=tv(A);te.fill=Jt;var kt=wr(w);kt.fill=w.get("borderColor");var jt=wr(C);jt.fill=C.get("borderColor");var Zt=wr(T);if(Zt.fill=T.get("borderColor"),Ct){var se=f-2*g;et(nt,Jt,Mt.opacity,{x:g,y:0,width:se,height:b})}else nt.removeTextContent();nt.setStyle(te),nt.ensureState("emphasis").style=kt,nt.ensureState("blur").style=jt,nt.ensureState("select").style=Zt,(0,U.DW)(nt)}xt.add(nt)}function $(xt,nt){var Ct=(0,ft.z)(nt);Ct.dataIndex=o.dataIndex,Ct.seriesIndex=a.seriesIndex;var wt=Math.max(f-2*g,0),Mt=Math.max(d-2*g,0);if(nt.culling=!0,nt.setShape({x:g,y:g,width:wt,height:Mt,r:I}),y)K(nt);else{nt.invisible=!1;var Jt=o.getVisual("style"),te=Jt.fill,kt=tv(A);kt.fill=te,kt.decal=Jt.decal;var jt=wr(w),Zt=wr(C),se=wr(T);et(nt,te,Jt.opacity,null),nt.setStyle(kt),nt.ensureState("emphasis").style=jt,nt.ensureState("blur").style=Zt,nt.ensureState("select").style=se,(0,U.DW)(nt)}xt.add(nt)}function K(xt){!xt.invisible&&n.push(xt)}function et(xt,nt,Ct,wt){var Mt=c.getModel(wt?qh:Qh),Jt=(0,J.vS)(c.get("name"),null),te=Mt.getShallow("show");(0,q.qM)(xt,(0,q.lx)(c,wt?qh:Qh),{defaultText:te?Jt:null,inheritColor:nt,defaultOpacity:Ct,labelFetcher:a,labelDataIndex:o.dataIndex});var kt=xt.getTextContent();if(kt){var jt=kt.style,Zt=(0,p.normalizeCssArray)(jt.padding||0);wt&&(xt.setTextConfig({layoutRect:wt}),kt.disableLabelLayout=!0),kt.beforeUpdate=function(){var Ke=Math.max((wt?wt.width:xt.shape.width)-Zt[1]-Zt[3],0),ve=Math.max((wt?wt.height:xt.shape.height)-Zt[0]-Zt[2],0);(jt.width!==Ke||jt.height!==ve)&&kt.setStyle({width:Ke,height:ve})},jt.truncateMinChar=2,jt.lineOverflow="truncate",lt(jt,wt,h);var se=kt.getState("emphasis");lt(se?se.style:null,wt,h)}}function lt(xt,nt,Ct){var wt=xt?xt.text:null;if(!nt&&Ct.isLeafRoot&&wt!=null){var Mt=a.get("drillDownIcon",!0);xt.text=Mt?Mt+" "+wt:wt}}function ot(xt,nt,Ct,wt){var Mt=S!=null&&t[xt][S],Jt=i[xt];return Mt?(t[xt][S]=null,mt(Jt,Mt)):y||(Mt=new nt,Mt instanceof Ar.Ay&&(Mt.z2=Cx(Ct,wt)),At(Jt,Mt)),e[xt][m]=Mt}function mt(xt,nt){var Ct=xt[m]={};nt instanceof oo?(Ct.oldX=nt.x,Ct.oldY=nt.y):Ct.oldShape=(0,p.extend)({},nt.shape)}function At(xt,nt){var Ct=xt[m]={},wt=o.parentNode,Mt=nt instanceof it.A;if(wt&&(!r||r.direction==="drillDown")){var Jt=0,te=0,kt=i.background[wt.getRawIndex()];!r&&kt&&kt.oldShape&&(Jt=kt.oldShape.width,te=kt.oldShape.height),Mt?(Ct.oldX=0,Ct.oldY=te):Ct.oldShape={x:Jt,y:te,width:0,height:0}}Ct.fadein=!Mt}}function Cx(a,e){return a*Sx+e}var Tx=Ax,Ma=p.each,Ix=p.isObject,Di=-1,so=function(){function a(e){var t=e.mappingMethod,r=e.type,i=this.option=p.clone(e);this.type=r,this.mappingMethod=t,this._normalizeData=Mx[t];var n=a.visualHandlers[r];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(lo(i),Dx(i)):t==="category"?i.categories?Lx(i):lo(i,!0):(p.assert(t!=="linear"||i.dataExtent),lo(i))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return p.bind(this._normalizeData,this)},a.listVisualTypes=function(){return p.keys(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){p.isObject(e)?p.each(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var i,n=p.isArray(e)?[]:p.isObject(e)?{}:(i=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);i?n=l:n[s]=l}),n},a.retrieveVisuals=function(e){var t={},r;return e&&Ma(a.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(p.isArray(e))e=e.slice();else if(Ix(e)){var t=[];Ma(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var i,n=1/0,o=0,s=t.length;o=0;n--)r[n]==null&&(delete t[e[n]],e.pop())}function lo(a,e){var t=a.visual,r=[];p.isObject(t)?Ma(t,function(n){r.push(n)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(a.type)&&(r[1]=r[0]),rv(a,r)}function Li(a){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",a(t("color"),i))},_normalizedToVisual:uo([0,1])}}function ev(a){var e=this.option.visual;return e[Math.round((0,k.Cb)(a,[0,1],[0,e.length-1],!0))]||{}}function Pa(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function Ra(a){var e=this.option.visual;return e[this.option.loop&&a!==Di?a%e.length:a]}function Cr(){return this.option.visual[0]}function uo(a){return{linear:function(e){return(0,k.Cb)(e,a,this.option.visual,!0)},category:Ra,piecewise:function(e,t){var r=ho.call(this,t);return r==null&&(r=(0,k.Cb)(e,a,this.option.visual,!0)),r},fixed:Cr}}function ho(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=so.findPieceIndex(a,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function rv(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=p.map(e,function(t){var r=Wt.parse(t);return r||[0,0,0,1]})),e}var Mx={linear:function(a){return(0,k.Cb)(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=so.findPieceIndex(a,e,!0);if(t!=null)return(0,k.Cb)(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e==null?Di:e},fixed:p.noop};function Mi(a,e,t){return a?e<=t:e=t.length||g===t[g.depth]){var m=kx(i,l,g,y,d,r);iv(g,m,t,r)}})}}}function Ex(a,e,t){var r=(0,p.extend)({},e),i=t.designatedVisualItemStyle;return(0,p.each)(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=a.get(n);i[n]=null,o!=null&&(r[n]=o)}),r}function nv(a){var e=vo(a,"color");if(e){var t=vo(a,"colorAlpha"),r=vo(a,"colorSaturation");return r&&(e=(0,Wt.modifyHSL)(e,null,null,r)),t&&(e=(0,Wt.modifyAlpha)(e,t)),e}}function Vx(a,e){return e!=null?(0,Wt.modifyHSL)(e,null,null,a):null}function vo(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function Ox(a,e,t,r,i,n){if(!(!n||!n.length)){var o=co(e,"color")||i.color!=null&&i.color!=="none"&&(co(e,"colorAlpha")||co(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(h==="index"||h==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new ae(v);return av(c).drColorMappingBy=h,c}}}function co(a,e){var t=a.get(e);return(0,p.isArray)(t)&&t.length?{name:e,range:t}:null}function kx(a,e,t,r,i,n){var o=(0,p.extend)({},e);if(i){var s=i.type,l=s==="color"&&av(i).drColorMappingBy,u=l==="index"?r:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Ea=Math.max,Pi=Math.min,ov=p.retrieve,fo=p.each,sv=["itemStyle","borderWidth"],Nx=["itemStyle","gapWidth"],zx=["upperLabel","show"],Bx=["upperLabel","height"],Gx={seriesType:"treemap",reset:function(a,e,t,r){var i=t.getWidth(),n=t.getHeight(),o=a.option,s=yt.dV(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=(0,k.lo)(ov(s.width,l[0]),i),h=(0,k.lo)(ov(s.height,l[1]),n),v=r&&r.type,c=["treemapZoomToNode","treemapRootToNode"],f=Ia(r,c,a),d=v==="treemapRender"||v==="treemapMove"?r.rootRect:null,g=a.getViewRoot(),y=Yh(g);if(v!=="treemapMove"){var m=v==="treemapZoomToNode"?Ux(a,f,g,u,h):d?[d.width,d.height]:[u,h],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var x={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),lv(g,x,!1,0),b=g.getLayout(),fo(y,function(A,w){var C=(y[w+1]||g).getValue();A.setLayout(p.extend({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var _=a.getData().tree.root;_.setLayout(Xx(s,d,f),!0),a.setLayoutInfo(s),hv(_,new vt.A(-s.x,-s.y,i,n),y,g,0)}};function lv(a,e,t,r){var i,n;if(!a.isRemoved()){var o=a.getLayout();i=o.width,n=o.height;var s=a.getModel(),l=s.get(sv),u=s.get(Nx)/2,h=vv(s),v=Math.max(l,h),c=l-u,f=v-u;a.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:h},!0),i=Ea(i-2*c,0),n=Ea(n-c-f,0);var d=i*n,g=Hx(a,s,d,e,t,r);if(g.length){var y={x:c,y:f,width:i,height:n},m=Pi(i,n),S=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var A=g[b];x.push(A),x.area+=A.getLayout().area;var w=Zx(x,m,e.squareRatio);w<=S?(b++,S=w):(x.area-=x.pop().getLayout().area,uv(x,m,y,u,!1),m=Pi(y.width,y.height),x.length=x.area=0,S=1/0)}if(x.length&&uv(x,m,y,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&d=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Zx(a,e,t){for(var r=0,i=1/0,n=0,o=void 0,s=a.length;nr&&(r=o));var l=a.area*a.area,u=e*e*t;return l?Ea(u*r/l,l/(u*i)):1/0}function uv(a,e,t,r,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],h=e?a.area/e:0;(i||h>t[l[o]])&&(h=t[l[o]]);for(var v=0,c=a.length;vk.Is&&(u=k.Is),n=s}ur&&(r=e);var n=r%2?r+2:r+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=b[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(b[1],b[0]);v[0].8?"left":c[0]<-.8?"right":"center",g=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*m+h[0],n.y=-c[1]*S+h[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",g=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=m*w+h[0],n.y=h[1]+T,d=b[0]<0?"right":"left",n.originX=-m*w,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=A[0],n.y=A[1]+T,d="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-m*w+v[0],n.y=v[1]+T,d=b[0]>=0?"right":"left",n.originX=m*w,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||g,align:n.__align||d})}},e}(it.A),Co=cS,fS=function(){function a(e){this.group=new it.A,this._LineCtor=e||Co}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,n=r._lineData;r._lineData=e,n||i.removeAll();var o=_v(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_v(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!pS(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function _v(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:(0,q.lx)(e)}}function Av(a){return isNaN(a[0])||isNaN(a[1])}function To(a){return a&&!Av(a[0])&&!Av(a[1])}var Io=fS,Do=[],Lo=[],Mo=[],Wr=ge.k3,Po=at.distSquare,wv=Math.abs;function Cv(a,e,t){for(var r=a[0],i=a[1],n=a[2],o=1/0,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){Do[0]=Wr(r[0],i[0],n[0],h),Do[1]=Wr(r[1],i[1],n[1],h);var v=wv(Po(Do,e)-l);v=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ro(a,e){var t=[],r=ge.kx,i=[[],[],[]],n=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[at.clone(u[0]),at.clone(u[1])],u[2]&&u.__original.push(at.clone(u[2])));var c=u.__original;if(u[2]!=null){if(at.copy(i[0],c[0]),at.copy(i[1],c[2]),at.copy(i[2],c[1]),h&&h!=="none"){var f=ka(s.node1),d=Cv(i,c[0],f*e);r(i[0][0],i[1][0],i[2][0],d,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],d,t),i[0][1]=t[3],i[1][1]=t[4]}if(v&&v!=="none"){var f=ka(s.node2),d=Cv(i,c[1],f*e);r(i[0][0],i[1][0],i[2][0],d,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],d,t),i[1][1]=t[1],i[2][1]=t[2]}at.copy(u[0],i[0]),at.copy(u[1],i[2]),at.copy(u[2],i[1])}else{if(at.copy(n[0],c[0]),at.copy(n[1],c[1]),at.sub(o,n[1],n[0]),at.normalize(o,o),h&&h!=="none"){var f=ka(s.node1);at.scaleAndAdd(n[0],n[0],o,f*e)}if(v&&v!=="none"){var f=ka(s.node2);at.scaleAndAdd(n[1],n[1],o,-f*e)}at.copy(u[0],n[0]),at.copy(u[1],n[1])}})}function Tv(a){return a.type==="view"}var dS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new fa,n=new Io,o=this.group;this._controller=new Aa(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Tv(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(h):Q.oi(u,h,t)}Ro(t.getGraph(),Oa(t));var v=t.getData();s.updateData(v);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,d=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,d);var g=t.get("layout");v.graph.eachNode(function(x){var b=x.dataIndex,_=x.getGraphicEl(),A=x.getModel();if(_){_.off("drag").off("dragend");var w=A.get("draggable");w&&_.on("drag",function(T){switch(g){case"force":f.warmUp(),!n._layouting&&n._startForceLayoutIteration(f,d),f.setFixed(b),v.setItemLayout(b,[_.x,_.y]);break;case"circular":v.setItemLayout(b,[_.x,_.y]),x.setLayout({fixed:!0},!0),So(t,"symbolSize",x,[T.offsetX,T.offsetY]),n.updateLayout(t);break;case"none":default:v.setItemLayout(b,[_.x,_.y]),mo(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(b)}),_.setDraggable(w,!!A.get("cursor"));var C=A.get(["emphasis","focus"]);C==="adjacency"&&((0,ft.z)(_).focus=x.getAdjacentDataIndices())}}),v.graph.eachEdge(function(x){var b=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);b&&_==="adjacency"&&((0,ft.z)(b).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=v.getLayout("cx"),S=v.getLayout("cy");v.graph.eachNode(function(x){gv(x,y,m,S)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function n(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,h,v){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(h,v)&&!mi(u,i,t)}),!Tv(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Yn(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zn(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),Ro(t.getGraph(),Oa(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=Oa(t);r.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){Ro(t.getGraph(),Oa(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Nt.A),gS=dS;function Yr(a){return"_EC_"+a}var yS=function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Yr(e)]){var i=new Tr(e,t);return i.hostGraph=this,this.nodes.push(i),r[Yr(e)]=i,i}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[Yr(e)]},a.prototype.addEdge=function(e,t,r){var i=this._nodesMap,n=this._edgesMap;if(p.isNumber(e)&&(e=this.nodes[e]),p.isNumber(t)&&(t=this.nodes[t]),e instanceof Tr||(e=i[Yr(e)]),t instanceof Tr||(t=i[Yr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Iv(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof Tr&&(e=e.id),t instanceof Tr&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,i=r.length,n=0;n=0&&e.call(t,r[n],n)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,i=r.length,n=0;n=0&&r[n].node1.dataIndex>=0&&r[n].node2.dataIndex>=0&&e.call(t,r[n],n)},a.prototype.breadthFirstTraverse=function(e,t,r,i){if(t instanceof Tr||(t=this._nodesMap[Yr(t)]),!!t){for(var n=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}p.mixin(Tr,Dv("hostGraph","data")),p.mixin(Iv,Dv("hostGraph","edgeData"));var mS=yS,Lv=E(89737);function Mv(a,e,t,r,i){for(var n=new mS(r),o=0;o "+c)),u++)}var f=t.get("coordinateSystem"),d;if(f==="cartesian2d"||f==="polar")d=(0,Fe.A)(a,t);else{var g=Lv.A.get(f),y=g?g.dimensions||[]:[];p.indexOf(y,"value")<0&&y.concat(["value"]);var m=(0,ci.A)(a,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;d=new he.A(m,t),d.initData(a)}var S=new he.A(["value"],t);return S.initData(l,s),i&&i(d,S),Wh({mainData:d,struct:n,structAttr:"graph",datas:{node:d,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var xS=E(4235),SS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new ma(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,J.M5)(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){tS(this);var s=Mv(n,i,this,!0,l);return p.each(s.edges,function(u){eS(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(d){var g=o._categoriesModels,y=d.getShallow("category"),m=g[y];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var v=Xt.A.prototype.getModel;function c(d,g){var y=v.call(this,d,g);return y.resolveParentPath=f,y}h.wrapMethod("getItemModel",function(d){return d.resolveParentPath=f,d.getModel=c,d});function f(d){if(d&&(d[0]==="label"||d[1]==="label")){var g=d.slice();return d[0]==="label"?g[0]="edgeLabel":d[1]==="label"&&(g[1]="edgeLabel"),g}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),(0,zt.Qx)("nameValue",{name:h.join(" > "),value:o.value,noValue:o.value==null})}var v=(0,xS.J)({series:this,dataIndex:t,multipleSeries:r});return v},e.prototype._updateCategoriesData=function(){var t=p.map(this.option.categories||[],function(i){return i.value!=null?i:p.extend({value:0},i)}),r=new he.A(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(Ot.A),bS=SS,_S={type:"graphRoam",event:"graphRoam",update:"none"};function AS(a){a.registerChartView(gS),a.registerSeriesModel(bS),a.registerProcessor(Kx),a.registerVisual($x),a.registerVisual(Jx),a.registerLayout(rS),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,iS),a.registerLayout(oS),a.registerCoordinateSystem("graphView",{dimensions:Ca.dimensions,create:lS}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},p.noop),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},p.noop),a.registerAction(_S,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var n=i.coordinateSystem,o=$n(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var wS=function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a}(),CS=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new wS},e.prototype.buildPath=function(t,r){var i=Math.cos,n=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),h=r.y-n(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(r.x+i(l)*s,r.y+n(l)*s),t.lineTo(r.x+i(r.angle)*o,r.y+n(r.angle)*o),t.lineTo(r.x-i(l)*s,r.y-n(l)*s),t.lineTo(u,h)},e}(Vt.Ay),TS=CS;function IS(a,e){var t=a.get("center"),r=e.getWidth(),i=e.getHeight(),n=Math.min(r,i),o=(0,k.lo)(t[0],e.getWidth()),s=(0,k.lo)(t[1],e.getHeight()),l=(0,k.lo)(a.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Vi(a,e){var t=a==null?"":a+"";return e&&((0,p.isString)(e)?t=e.replace("{value}",t):(0,p.isFunction)(e)&&(t=e(a))),t}var DS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=IS(t,i);this._renderMain(t,r,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),f=c?si:ye.A,d=v.get("show"),g=v.getModel("lineStyle"),y=g.get("width"),m=[u,h];(0,la.q)(m,!l),u=m[0],h=m[1];for(var S=h-u,x=u,b=[],_=0;d&&_=T&&(I===0?0:n[I-1][0])Math.PI/2&&(ot+=Math.PI)):lt==="tangential"?ot=-C-Math.PI/2:(0,p.isNumber)(lt)&&(ot=lt*Math.PI/180),ot===0?v.add(new _t.Ay({style:(0,q.VB)(x,{text:W,x:K,y:et,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):v.add(new _t.Ay({style:(0,q.VB)(x,{text:W,x:K,y:et,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:K,originY:et,rotation:ot}))}if(S.get("show")&&V!==b){var B=S.get("distance");B=B?B+h:h;for(var mt=0;mt<=_;mt++){P=Math.cos(C),R=Math.sin(C);var At=new le.A({shape:{x1:P*(d-B)+c,y1:R*(d-B)+f,x2:P*(d-w-B)+c,y2:R*(d-w-B)+f},silent:!0,style:L});L.stroke==="auto"&&At.setStyle({stroke:n((V+mt/_)/b)}),v.add(At),C+=I}C-=I}else C+=T}},e.prototype._renderPointer=function(t,r,i,n,o,s,l,u,h){var v=this.group,c=this._data,f=this._progressEls,d=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),m=y.get("show"),S=t.getData(),x=S.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),A=[b,_],w=[s,l];function C(I,D){var L=S.getItemModel(I),M=L.getModel("pointer"),P=(0,k.lo)(M.get("width"),o.r),R=(0,k.lo)(M.get("length"),o.r),V=t.get(["pointer","icon"]),B=M.get("offsetCenter"),z=(0,k.lo)(B[0],o.r),W=(0,k.lo)(B[1],o.r),$=M.get("keepAspect"),K;return V?K=(0,Tt.v5)(V,z-P/2,W-R,P,R,null,$):K=new TS({shape:{angle:-Math.PI/2,width:P,r:R,x:z,y:W}}),K.rotation=-(D+Math.PI/2),K.x=o.cx,K.y=o.cy,K}function T(I,D){var L=y.get("roundCap"),M=L?si:ye.A,P=y.get("overlap"),R=P?y.get("width"):h/S.count(),V=P?o.r-R:o.r-(I+1)*R,B=P?o.r:o.r-I*R,z=new M({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:B}});return P&&(z.z2=_-S.get(x,I)%_),z}(m||g)&&(S.diff(c).add(function(I){var D=S.get(x,I);if(g){var L=C(I,s);Q.LW(L,{rotation:-((isNaN(+D)?w[0]:(0,k.Cb)(D,A,w,!0))+Math.PI/2)},t),v.add(L),S.setItemGraphicEl(I,L)}if(m){var M=T(I,s),P=y.get("clip");Q.LW(M,{shape:{endAngle:(0,k.Cb)(D,A,w,P)}},t),v.add(M),(0,ft.a)(t.seriesIndex,S.dataType,I,M),d[I]=M}}).update(function(I,D){var L=S.get(x,I);if(g){var M=c.getItemGraphicEl(D),P=M?M.rotation:s,R=C(I,P);R.rotation=P,Q.oi(R,{rotation:-((isNaN(+L)?w[0]:(0,k.Cb)(L,A,w,!0))+Math.PI/2)},t),v.add(R),S.setItemGraphicEl(I,R)}if(m){var V=f[D],B=V?V.shape.endAngle:s,z=T(I,B),W=y.get("clip");Q.oi(z,{shape:{endAngle:(0,k.Cb)(L,A,w,W)}},t),v.add(z),(0,ft.a)(t.seriesIndex,S.dataType,I,z),d[I]=z}}).execute(),S.each(function(I){var D=S.getItemModel(I),L=D.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(g){var V=S.getItemGraphicEl(I),B=S.getItemVisual(I,"style"),z=B.fill;if(V instanceof ue.Ay){var W=V.style;V.useStyle((0,p.extend)({image:W.image,x:W.x,y:W.y,width:W.width,height:W.height},B))}else V.useStyle(B),V.type!=="pointer"&&V.setColor(z);V.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",n((0,k.Cb)(S.get(x,I),A,[0,1],!0))),V.z2EmphasisLift=0,(0,U.Mx)(V,D),(0,U.Lm)(V,M,P,R)}if(m){var $=d[I];$.useStyle(S.getItemVisual(I,"style")),$.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,(0,U.Mx)($,D),(0,U.Lm)($,M,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),h=(0,Tt.v5)(s,r.cx-o/2+(0,k.lo)(l[0],r.r),r.cy-o/2+(0,k.lo)(l[1],r.r),o,o,null,u);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,r,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),v=+t.get("max"),c=new it.A,f=[],d=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){f[m]=new _t.Ay({silent:!0}),d[m]=new _t.Ay({silent:!0})}).update(function(m,S){f[m]=s._titleEls[S],d[m]=s._detailEls[S]}).execute(),l.each(function(m){var S=l.getItemModel(m),x=l.get(u,m),b=new it.A,_=n((0,k.Cb)(x,[h,v],[0,1],!0)),A=S.getModel("title");if(A.get("show")){var w=A.get("offsetCenter"),C=o.cx+(0,k.lo)(w[0],o.r),T=o.cy+(0,k.lo)(w[1],o.r),I=f[m];I.attr({z2:y?0:2,style:(0,q.VB)(A,{x:C,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),b.add(I)}var D=S.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),M=o.cx+(0,k.lo)(L[0],o.r),P=o.cy+(0,k.lo)(L[1],o.r),R=(0,k.lo)(D.get("width"),o.r),V=(0,k.lo)(D.get("height"),o.r),B=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,I=d[m],z=D.get("formatter");I.attr({z2:y?0:2,style:(0,q.VB)(D,{x:M,y:P,text:Vi(x,z),width:isNaN(R)?null:R,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:B})}),(0,q.Oh)(I,{normal:D},x,function($){return Vi($,z)}),g&&(0,q.xb)(I,m,l,t,{getFormattedLabel:function($,K,et,lt,ot,mt){return Vi(mt?mt.interpolatedValue:x,z)}}),b.add(I)}c.add(b)}),this.group.add(c),this._titleEls=f,this._detailEls=d},e.type="gauge",e}(Nt.A),LS=DS,MS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return zr(this,["value"])},e.type="series.gauge",e.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}},e}(Ot.A),PS=MS;function RS(a){a.registerChartView(LS),a.registerSeriesModel(PS)}var ES=["itemStyle","opacity"],VS=function(a){(0,O.C6)(e,a);function e(t,r){var i=a.call(this)||this,n=i,o=new Pe.A,s=new _t.Ay;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var n=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),h=s.get(ES);h=h==null?1:h,i||(0,Q.ap)(n),n.useStyle(t.getItemVisual(r,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Q.LW(n,{style:{opacity:h}},o,r)):Q.oi(n,{style:{opacity:h},shape:{points:l.points}},o,r),(0,U.Mx)(n,s),this._updateLabel(t,r),(0,U.Lm)(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),h=u.label,v=t.getItemVisual(r,"style"),c=v.fill;(0,q.qM)(o,(0,q.lx)(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:v.opacity,defaultText:t.getName(r)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:c,outsideFill:c});var f=h.linePoints;n.setShape({points:f}),i.textGuideLineConfig={anchor:f?new Re.A(f[0][0],f[0][1]):null},Q.oi(o,{style:{x:h.x,y:h.y}},s,r),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),(0,Nr.eR)(i,(0,Nr.rv)(l),{stroke:c})},e}(Se.A),OS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new VS(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=o.getItemGraphicEl(u);h.updateData(n,l),s.add(h),n.setItemGraphicEl(l,h)}).remove(function(l){var u=o.getItemGraphicEl(l);Q.t5(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Nt.A),kS=OS,NS=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ma(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return zr(this,{coordDimensions:["value"],encodeDefaulter:p.curry(fi.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,J.M5)(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=a.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),o=r.getSum(n);return i.percent=o?+(r.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.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"}}},e}(Ot.A),zS=NS;function BS(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function GS(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=a.count();on1)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!Vo(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Vo(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var l1=o1,u1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&p.merge(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){p.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=p.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);p.each(i,function(n){t.push("dim"+n.get("dim")),r.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(Ht.A),h1=u1,v1=function(a){(0,O.C6)(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ee.A),c1=v1;function Ir(a,e,t,r,i,n){a=a||0;var o=t[1]-t[0];if(i!=null&&(i=Zr(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Zr(s,[0,o]),i=n=Zr(s,[i,n]),r=0}e[0]=Zr(e[0],t),e[1]=Zr(e[1],t);var l=Oo(e,r);e[r]+=a;var u=i||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[r]=Zr(e[r],h);var v;return v=Oo(e,r),i!=null&&(v.sign!==l.sign||v.spann&&(e[1-r]=e[r]+v.sign*n),e}function Oo(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Zr(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var ko=p.each,Vv=Math.min,Ov=Math.max,kv=Math.floor,f1=Math.ceil,Nv=k.LI,p1=Math.PI,d1=function(){function a(e,t,r){this.type="parallel",this._axesMap=p.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=e.dimensions,n=e.parallelAxisIndex;ko(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(o,new c1(o,Ut.f$(u),[0,0],u.get("type"),l)),v=h.type==="category";h.onBand=v&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();ko(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Ut.af(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=yt.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,h=Oi(e.get("axisExpandWidth"),l),v=Oi(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&h>0&&s>0,f=e.get("axisExpandWindow"),d;if(f)d=Oi(f[1]-f[0],l),f[1]=f[0]+d;else{d=Oi(h*(v-1),l);var g=e.get("axisExpandCenter")||kv(u/2);f=[h*g-d/2],f[1]=f[0]+d}var y=(s-d)/(u-v);y<3&&(y=0);var m=[kv(Nv(f[0]/h,1))+1,f1(Nv(f[1]/h,1))-1],S=y/h*f[0];return{layout:n,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:c,axisExpandWidth:h,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:S}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ko(r,function(o,s){var l=(i.axisExpandable?y1:g1)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},h={horizontal:p1/2,vertical:0},v=[u[n].x+e.x,u[n].y+e.y],c=h[n],f=Lt.create();Lt.rotate(f,f,c),Lt.translate(f,f,v),this._axesLayout[o]={position:v,rotation:c,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];p.each(o,function(y){s.push(e.mapDimension(y)),l.push(n.get(y).model)});for(var u=this.hasAxisBrushed(),h=r;hn*(1-v[0])?(u="jump",l=s-n*(1-v[2])):(l=s-n*v[1])>=0&&(l=s-n*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?Ir(l,i,o,"all"):u="none";else{var f=i[1]-i[0],d=o[1]*s/f;i=[Ov(0,d-f/2)],i[1]=Vv(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},a}();function Oi(a,e){return Vv(Ov(a,e[0]),e[1])}function g1(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function y1(a,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,h;return a=0;i--)k.Y6(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=r.length;nw1}function Xv(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function jv(a,e,t,r){var i=new it.A;return i.add(new Dt.A({name:"main",style:Fo(t),silent:!0,draggable:!0,cursor:"move",drift:(0,p.curry)(Jv,a,e,i,["n","s","w","e"]),ondragend:(0,p.curry)(Lr,e,{isEnd:!0})})),(0,p.each)(r,function(n){i.add(new Dt.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,p.curry)(Jv,a,e,i,n),ondragend:(0,p.curry)(Lr,e,{isEnd:!0})}))}),i}function Kv(a,e,t,r){var i=r.brushStyle.lineWidth||0,n=Ur(i,C1),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,h=t[0][1],v=t[1][1],c=h-n+i/2,f=v-n+i/2,d=h-o,g=v-s,y=d+i,m=g+i;Ze(a,e,"main",o,s,d,g),r.transformable&&(Ze(a,e,"w",l,u,n,m),Ze(a,e,"e",c,u,n,m),Ze(a,e,"n",l,u,y,n),Ze(a,e,"s",l,f,y,n),Ze(a,e,"nw",l,u,n,n),Ze(a,e,"ne",c,u,n,n),Ze(a,e,"sw",l,f,n,n),Ze(a,e,"se",c,f,n,n))}function Ho(a,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(Fo(t)),i.attr({silent:!r,cursor:r?"move":"default"}),(0,p.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?Wo(a,n[0]):R1(a,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?I1[s]+"-resize":null})})}function Ze(a,e,t,r,i,n,o){var s=e.childOfName(t);s&&s.setShape(V1(Yo(a,e,[[r,i],[r+n,i+o]])))}function Fo(a){return(0,p.defaults)({strokeNoScale:!0},a.brushStyle)}function $v(a,e,t,r){var i=[Na(a,t),Na(e,r)],n=[Ur(a,t),Ur(e,r)];return[[i[0],n[0]],[i[1],n[1]]]}function P1(a){return tt.getTransform(a.group)}function Wo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=tt.transformDirection(t[e],P1(a));return r[i]}function R1(a,e){var t=[Wo(a,e[0]),Wo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Jv(a,e,t,r,i,n){var o=t.__brushOption,s=a.toRectRange(o.range),l=Qv(e,i,n);(0,p.each)(r,function(u){var h=T1[u];s[h[0]][h[1]]+=l[h[0]]}),o.range=a.fromRectRange($v(s[0][0],s[1][0],s[0][1],s[1][1])),No(e,t),Lr(e,{isEnd:!1})}function E1(a,e,t,r){var i=e.__brushOption.range,n=Qv(a,t,r);(0,p.each)(i,function(o){o[0]+=n[0],o[1]+=n[1]}),No(a,e),Lr(a,{isEnd:!1})}function Qv(a,e,t){var r=a.group,i=r.transformCoordToLocal(e,t),n=r.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function Yo(a,e,t){var r=Uv(a,e);return r&&r!==Dr?r.clipPath(t,a._transform):(0,p.clone)(t)}function V1(a){var e=Na(a[0][0],a[1][0]),t=Na(a[0][1],a[1][1]),r=Ur(a[0][0],a[1][0]),i=Ur(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function O1(a,e,t){if(!(!a._brushType||N1(a,e.offsetX,e.offsetY))){var r=a._zr,i=a._covers,n=Bo(a,e,t);if(!a._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var ki={lineX:rc(0),lineY:rc(1),rect:{createCover:function(a,e){function t(r){return r}return jv({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=Xv(a);return $v(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){Kv(a,e,t,r)},updateCommon:Ho,contain:Uo},polygon:{createCover:function(a,e){var t=new it.A;return t.add(new Pe.A({name:"main",style:Fo(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new Se.A({name:"main",draggable:!0,drift:(0,p.curry)(E1,a,e),ondragend:(0,p.curry)(Lr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:Yo(a,e,t)})},updateCommon:Ho,contain:Uo}};function rc(a){return{createCover:function(e,t){return jv({toRectRange:function(r){var i=[r,[0,100]];return a&&i.reverse(),i},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=Xv(e),r=Na(t[0][a],t[1][a]),i=Ur(t[0][a],t[1][a]);return[r,i]},updateCoverShape:function(e,t,r,i){var n,o=Uv(e,t);if(o!==Dr&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(a);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,n];a&&l.reverse(),Kv(e,t,l,i)},updateCommon:Ho,contain:Uo}}var Xo=L1;function ac(a){return a=jo(a),function(e){return tt.clipPointsByRect(e,a)}}function ic(a,e){return a=jo(a),function(t){var r=e!=null?e:t,i=r?a.width:a.height,n=r?a.x:a.y;return[n,n+(i||0)]}}function nc(a,e,t){var r=jo(a);return function(i,n){return r.contain(n[0],n[1])&&!mi(i,e,t)}}function jo(a){return vt.A.create(a)}var z1=["axisLine","axisTickLabel","axisName"],B1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new Xo(r.getZr())).on("brush",p.bind(this._onBrush,this))},e.prototype.render=function(t,r,i,n){if(!G1(t,r,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it.A,this.group.add(this._axisGroup),!!t.get("show")){var s=F1(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,v=t.axis.dim,c=l.getAxisLayout(v),f=p.extend({strokeContainThreshold:h},c),d=new We(t,f);p.each(z1,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(f,u,t,s,h,i),tt.groupTransition(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),v=vt.A.create({x:l[0],y:-o/2,width:u,height:o});v.x-=h,v.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ac(v),isTargetByCursor:nc(v,s,n),getLinearBrushOtherExtent:ic(v,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(H1(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,n=i.axis,o=p.map(r,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Yt.A);function G1(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function H1(a){var e=a.axis;return p.map(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function F1(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}var W1=B1,Y1={type:"axisAreaSelect",event:"axisAreaSelected"};function Z1(a){a.registerAction(Y1,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var U1={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function oc(a){a.registerComponentView(l1),a.registerComponentModel(h1),a.registerCoordinateSystem("parallel",b1),a.registerPreprocessor(r1),a.registerComponentModel(Bv),a.registerComponentView(W1),Br(a,"parallel",Bv,U1),Z1(a)}function X1(a){(0,Y.Y)(oc),a.registerChartView(jS),a.registerSeriesModel(QS),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,e1)}var j1=function(){function a(){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}return a}(),K1=function(a){(0,O.C6)(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new j1},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){(0,U.HY)(this)},e.prototype.downplay=function(){(0,U.SD)(this)},e}(Vt.Ay),$1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,v=t.getData(),c=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var g=new K1,y=(0,ft.z)(g);y.dataIndex=d.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge";var m=d.getModel(),S=m.getModel("lineStyle"),x=S.get("curveness"),b=d.node1.getLayout(),_=d.node1.getModel(),A=_.get("localX"),w=_.get("localY"),C=d.node2.getLayout(),T=d.node2.getModel(),I=T.get("localX"),D=T.get("localY"),L=d.getLayout(),M,P,R,V,B,z,W,$;g.shape.extent=Math.max(1,L.dy),g.shape.orient=f,f==="vertical"?(M=(A!=null?A*u:b.x)+L.sy,P=(w!=null?w*h:b.y)+b.dy,R=(I!=null?I*u:C.x)+L.ty,V=D!=null?D*h:C.y,B=M,z=P*(1-x)+V*x,W=R,$=P*x+V*(1-x)):(M=(A!=null?A*u:b.x)+b.dx,P=(w!=null?w*h:b.y)+L.sy,R=I!=null?I*u:C.x,V=(D!=null?D*h:C.y)+L.ty,B=M*(1-x)+R*x,z=P,W=M*x+R*(1-x),$=V),g.setShape({x1:M,y1:P,x2:R,y2:V,cpx1:B,cpy1:z,cpx2:W,cpy2:$}),g.useStyle(S.getItemStyle()),sc(g.style,f,d);var K=""+m.get("value"),et=(0,q.lx)(m,"edgeLabel");(0,q.qM)(g,et,{labelFetcher:{getFormattedLabel:function(mt,At,xt,nt,Ct,wt){return t.getFormattedLabel(mt,At,"edge",nt,(0,p.retrieve3)(Ct,et.normal&&et.normal.get("formatter"),K),wt)}},labelDataIndex:d.dataIndex,defaultText:K}),g.setTextConfig({position:"inside"});var lt=m.getModel("emphasis");(0,U.Mx)(g,m,"lineStyle",function(mt){var At=mt.getItemStyle();return sc(At,f,d),At}),s.add(g),c.setItemGraphicEl(d.dataIndex,g);var ot=lt.get("focus");(0,U.Lm)(g,ot==="adjacency"?d.getAdjacentDataIndices():ot==="trajectory"?d.getTrajectoryDataIndices():ot,lt.get("blurScope"),lt.get("disabled"))}),o.eachNode(function(d){var g=d.getLayout(),y=d.getModel(),m=y.get("localX"),S=y.get("localY"),x=y.getModel("emphasis"),b=y.get(["itemStyle","borderRadius"])||0,_=new Dt.A({shape:{x:m!=null?m*u:g.x,y:S!=null?S*h:g.y,width:g.dx,height:g.dy,r:b},style:y.getModel("itemStyle").getItemStyle(),z2:10});(0,q.qM)(_,(0,q.lx)(y),{labelFetcher:{getFormattedLabel:function(w,C){return t.getFormattedLabel(w,C,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),_.disableLabelAnimation=!0,_.setStyle("fill",d.getVisual("color")),_.setStyle("decal",d.getVisual("style").decal),(0,U.Mx)(_,y),s.add(_),v.setItemGraphicEl(d.dataIndex,_),(0,ft.z)(_).dataType="node";var A=x.get("focus");(0,U.Lm)(_,A==="adjacency"?d.getAdjacentDataIndices():A==="trajectory"?d.getTrajectoryDataIndices():A,x.get("blurScope"),x.get("disabled"))}),v.eachItemGraphicEl(function(d,g){var y=v.getItemModel(g);y.get("draggable")&&(d.drift=function(m,S){n._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:v.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/h})},d.ondragend=function(){n._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(J1(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Nt.A);function sc(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),i=t.node2.getVisual("color");(0,p.isString)(r)&&(0,p.isString)(i)&&(a.fill=new ii.A(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function J1(a,e,t){var r=new Dt.A({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Q.LW(r,{shape:{width:a.width+20}},e,t),r}var Q1=$1,q1=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt.A(o[l],this,r));if(n&&i){var u=Mv(n,i,this,!0,h);return u.data}function h(v,c){v.wrapMethod("getItemModel",function(f,d){var g=f.parentModel,y=g.getData().getItemLayout(d);if(y){var m=y.depth,S=g.levelModels[m];S&&(f.parentModel=S)}return f}),c.wrapMethod("getItemModel",function(f,d){var g=f.parentModel,y=g.getGraph().getEdgeByIndex(d),m=y.node1.getLayout();if(m){var S=m.depth,x=g.levelModels[S];x&&(f.parentModel=x)}return f})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,n=i[t];n.localX=r[0],n.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function n(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return(0,zt.Qx)("nameValue",{name:u,value:l,noValue:n(l)})}else{var h=this.getGraph().getNodeByIndex(t),v=h.getLayout().value,c=this.getDataParams(t,i).data.name;return(0,zt.Qx)("nameValue",{name:c!=null?c+"":null,value:v,noValue:n(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=a.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.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},e}(Ot.A),tb=q1;function eb(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),n=rb(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,h=l.edges;ib(u);var v=p.filter(u,function(g){return g.getLayout().value===0}),c=v.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),d=t.get("nodeAlign");ab(u,h,r,i,o,s,c,f,d)})}function rb(a,e){return yt.dV(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ab(a,e,t,r,i,n,o,s,l){nb(a,e,t,i,n,s,l),ub(a,e,n,i,r,o,s),mb(a,s)}function ib(a){p.each(a,function(e){var t=rr(e.outEdges,Ni),r=rr(e.inEdges,Ni),i=e.getValue()||0,n=Math.max(t,r,i);e.setLayout({value:n},!0)})}function nb(a,e,t,r,i,n,o){for(var s=[],l=[],u=[],h=[],v=0,c=0;c=0;m&&y.depth>f&&(f=y.depth),g.setLayout({depth:m?y.depth:v},!0),n==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var S=0;Sv-1?f:v-1;o&&o!=="left"&&ob(a,o,n,w);var C=n==="vertical"?(i-t)/w:(r-t)/w;lb(a,C,n)}function lc(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function ob(a,e,t,r){if(e==="right"){for(var i=[],n=a,o=0;n.length;){for(var s=0;s0;n--)l*=.99,cb(s,l,o),Ko(s,i,t,r,o),yb(s,l,o),Ko(s,i,t,r,o)}function hb(a,e){var t=[],r=e==="vertical"?"y":"x",i=(0,J.Sq)(a,function(n){return n.getLayout()[r]});return i.keys.sort(function(n,o){return n-o}),p.each(i.keys,function(n){t.push(i.buckets.get(n))}),t}function vb(a,e,t,r,i,n){var o=1/0;p.each(a,function(s){var l=s.length,u=0;p.each(s,function(v){u+=v.getLayout().value});var h=n==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;h0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]+l.getLayout()[c]+e;var d=i==="vertical"?r:t;if(u=h-e-d,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var f=v-2;f>=0;--f)l=o[f],u=l.getLayout()[n]+l.getLayout()[c]+e-h,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]}})}function cb(a,e,t){p.each(a.slice().reverse(),function(r){p.each(r,function(i){if(i.outEdges.length){var n=rr(i.outEdges,fb,t)/rr(i.outEdges,Ni);if(isNaN(n)){var o=i.outEdges.length;n=o?rr(i.outEdges,pb,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-er(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-er(i,t))*e;i.setLayout({y:l},!0)}}})})}function fb(a,e){return er(a.node2,e)*a.getValue()}function pb(a,e){return er(a.node2,e)}function db(a,e){return er(a.node1,e)*a.getValue()}function gb(a,e){return er(a.node1,e)}function er(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function Ni(a){return a.getValue()}function rr(a,e,t){for(var r=0,i=a.length,n=-1;++no&&(o=l)}),p.each(r,function(s){var l=new ae({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),h=s.getModel().get(["itemStyle","color"]);h!=null?(s.setVisual("color",h),s.setVisual("style",{fill:h})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&p.each(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Sb(a){a.registerChartView(Q1),a.registerSeriesModel(tb),a.registerLayout(eb),a.registerVisual(xb),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var $o=E(29756),uc=function(){function a(){}return a.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=e.layout==="horizontal"?0:1,v=this._baseAxisDim=u[h],c=u[1-h],f=[i,n],d=f[h].get("type"),g=f[1-h].get("type"),y=e.data;if(y&&l){var m=[];p.each(y,function(b,_){var A;p.isArray(b)?(A=b.slice(),b.unshift(_)):p.isArray(b.value)?(A=p.extend({},b),A.value=A.value.slice(),b.value.unshift(_)):A=b,m.push(A)}),e.data=m}var S=this.defaultValueDimensions,x=[{name:v,type:(0,$o.B)(d),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:(0,$o.B)(g),dimsDef:S.slice()}];return zr(this,{coordDimensions:x,dimensionsCount:S.length+1,encodeDefaulter:p.curry(fi.OC,x,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a}(),hc=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ot.A);(0,p.mixin)(hc,uc,!0);var bb=hc,_b=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var h=n.getItemLayout(u),v=vc(h,n,u,l,!0);n.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,h){var v=s.getItemGraphicEl(h);if(!n.hasValue(u)){o.remove(v);return}var c=n.getItemLayout(u);v?((0,Q.ap)(v),cc(c,v,n,u)):v=vc(c,n,u,l),o.add(v),n.setItemGraphicEl(u,v)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&o.remove(h)}).execute(),this._data=n},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},e.type="boxplot",e}(Nt.A),Ab=function(){function a(){}return a}(),wb=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Ab},e.prototype.buildPath=function(t,r){var i=r.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();ng){var b=[m,x];r.push(b)}}}return{boxData:t,outliers:r}}var Gt=E(41025),zi=E(13430),Rb={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==zi.Km){var r="";(0,Gt.$8)(r)}var i=Pb(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Eb(a){a.registerSeriesModel(bb),a.registerChartView(Tb),a.registerLayout(Ib),a.registerTransform(Rb)}var Vb=["color","borderColor"],Ob=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){tt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var v=r.getItemLayout(h);if(s&&fc(u,v))return;var c=Jo(v,h,!0);Q.LW(c,{shape:{points:v.ends}},t,h),Qo(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}}).update(function(h,v){var c=i.getItemGraphicEl(v);if(!r.hasValue(h)){n.remove(c);return}var f=r.getItemLayout(h);if(s&&fc(u,f)){n.remove(c);return}c?(Q.oi(c,{shape:{points:f.ends}},t,h),(0,Q.ap)(c)):c=Jo(f,h),Qo(c,r,h,o),n.add(c),r.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&n.remove(v)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),pc(t,this.group);var r=t.get("clip",!0)?pa(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Jo(s,o);Qo(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){pc(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Nt.A),kb=function(){function a(){}return a}(),Nb=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new kb},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Vt.Ay);function Jo(a,e,t){var r=a.ends;return new Nb({shape:{points:t?zb(r,a):r},z2:100})}function fc(a,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",a>0?"color":"color0"]);a===0&&(i=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(Vb);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var Gb=Ob,dc=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var n=r.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Ot.A);(0,p.mixin)(dc,uc,!0);var Hb=dc;function Fb(a){!a||!p.isArray(a.series)||p.each(a.series,function(e){p.isObject(e)&&e.type==="k"&&(e.type="candlestick")})}var Wb=["itemStyle","borderColor"],Yb=["itemStyle","borderColor0"],Zb=["itemStyle","borderColorDoji"],Ub=["itemStyle","color"],Xb=["itemStyle","color0"],jb={seriesType:"candlestick",plan:(0,ni.A)(),performRawSeries:!0,reset:function(a,e){function t(n,o){return o.get(n>0?Ub:Xb)}function r(n,o){return o.get(n===0?Zb:n>0?Wb:Yb)}if(!e.isSeriesFiltered(a)){var i=a.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,h=l.getItemStyle();h.fill=t(u,l),h.stroke=r(u,l)||h.fill;var v=o.ensureUniqueItemVisual(s,"style");(0,p.extend)(v,h)}}}}}},Kb=jb,$b={seriesType:"candlestick",plan:(0,ni.A)(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=Jb(a,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=(0,p.map)(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],h=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?d:f};function f(g,y){for(var m,S=y.getStore();(m=g.next())!=null;){var x=S.get(s,m),b=S.get(u,m),_=S.get(h,m),A=S.get(v,m),w=S.get(c,m),C=Math.min(b,_),T=Math.max(b,_),I=B(C,x),D=B(T,x),L=B(A,x),M=B(w,x),P=[];z(P,D,0),z(P,I,1),P.push($(M),$(D),$(L),$(I));var R=y.getItemModel(m),V=!!R.get(["itemStyle","borderColorDoji"]);y.setItemLayout(m,{sign:gc(S,m,b,_,h,V),initBaseline:b>_?D[n]:I[n],ends:P,brushRect:W(A,w,x)})}function B(K,et){var lt=[];return lt[i]=et,lt[n]=K,isNaN(et)||isNaN(K)?[NaN,NaN]:e.dataToPoint(lt)}function z(K,et,lt){var ot=et.slice(),mt=et.slice();ot[i]=(0,tt.subPixelOptimize)(ot[i]+r/2,1,!1),mt[i]=(0,tt.subPixelOptimize)(mt[i]-r/2,1,!0),lt?K.push(ot,mt):K.push(mt,ot)}function W(K,et,lt){var ot=B(K,lt),mt=B(et,lt);return ot[i]-=r/2,mt[i]-=r/2,{x:ot[0],y:ot[1],width:n?r:mt[0]-ot[0],height:n?mt[1]-ot[1]:r}}function $(K){return K[i]=(0,tt.subPixelOptimize)(K[i],1),K}}function d(g,y){for(var m=(0,dr.J)(g.count*4),S=0,x,b=[],_=[],A,w=y.getStore(),C=!!a.get(["itemStyle","borderColorDoji"]);(A=g.next())!=null;){var T=w.get(s,A),I=w.get(u,A),D=w.get(h,A),L=w.get(v,A),M=w.get(c,A);if(isNaN(T)||isNaN(L)||isNaN(M)){m[S++]=NaN,S+=3;continue}m[S++]=gc(w,A,I,D,h,C),b[i]=T,b[n]=L,x=e.dataToPoint(b,null,_),m[S++]=x?x[0]:NaN,m[S++]=x?x[1]:NaN,b[n]=M,x=e.dataToPoint(b,null,_),m[S++]=x?x[1]:NaN}y.setLayout("largePoints",m)}}};function gc(a,e,t,r,i,n){var o;return t>r?o=-1:t0?a.get(i,e-1)<=r?1:-1:1,o}function Jb(a,e){var t=a.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),n=(0,k.lo)((0,p.retrieve2)(a.get("barMaxWidth"),i),i),o=(0,k.lo)((0,p.retrieve2)(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?(0,k.lo)(s,i):Math.max(Math.min(i/2,n),o)}var Qb=$b;function qb(a){a.registerChartView(Gb),a.registerSeriesModel(Hb),a.registerPreprocessor(Fb),a.registerVisual(Kb),a.registerLayout(Qb)}function yc(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var t_=function(a){(0,O.C6)(e,a);function e(t,r){var i=a.call(this)||this,n=new ca(t,r),o=new it.A;return i.add(n),i.add(o),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/h*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;p.isFunction(v)?c=v(i):c=v,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,n,o){if(r>0){t.__t=0;var s=this,l=t.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return at.dist(t.__p1,t.__cp1)+at.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ge.k3,h=ge.z7;s[0]=u(r[0],n[0],i[0],o),s[1]=u(r[1],n[1],i[1],o);var v=t.__t<1?h(r[0],n[0],i[0],o):h(i[0],n[0],r[0],1-o),c=t.__t<1?h(r[1],n[1],i[1],o):h(i[1],n[1],r[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var h=(r-n[l])/(n[l+1]-n[l]),v=i[l],c=i[l+1];t.x=v[0]*(1-h)+h*c[0],t.y=v[1]*(1-h)+h*c[1];var f=t.__t<1?c[0]-v[0]:v[0]-c[0],d=t.__t<1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(mc),h_=u_,Sc=E(57043),v_=E(14423),c_=function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a}(),f_=function(a){(0,O.C6)(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c_},e.prototype.buildPath=function(t,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(i[o++],i[o++]);for(var l=1;l0){var f=(u+v)/2-(h-c)*n,d=(h+c)/2-(v-u)*n;t.quadraticCurveTo(f,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var v=n[u++],c=n[u++],f=1;f0){var y=(v+d)/2-(c-g)*o,m=(c+g)/2-(d-v)*o;if(v_.l(v,c,y,m,d,g,s,t,r))return l}else if(Sc.l(v,c,d,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),d_=p_,g_={seriesType:"lines",plan:(0,ni.A)(),reset:function(a){var e=a.coordinateSystem;if(e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,h=i.start;h0&&(h||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var v=t.get("clip",!0)&&pa(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=bc.reset(t,r,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new d_:new Io(o?n?h_:xc:n?mc:Co),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Nt.A),m_=y_,x_=typeof Uint32Array=="undefined"?Array:Uint32Array,S_=typeof Float64Array=="undefined"?Array:Float64Array;function _c(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=(0,p.map)(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),(0,p.mergeAll)([i,t[0],t[1]])}))}var b_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],_c(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(_c(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=(0,p.concatArray)(this._flatCoords,r.flatCoords),this._flatCoordsOffset=(0,p.concatArray)(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;oi}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){if(0)var i;var n=new he.A(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var h=o.value;if(h!=null)return h instanceof Array?h[u]:h}),n},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),(0,zt.Qx)("nameValue",{name:h.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Ot.A),__=b_;function Bi(a){return a instanceof Array||(a=[a,a]),a}var A_={seriesType:"lines",reset:function(a){var e=Bi(a.get("symbol")),t=Bi(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=Bi(s.getShallow("symbol",!0)),u=Bi(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}},w_=A_;function C_(a){a.registerChartView(m_),a.registerSeriesModel(__),a.registerLayout(bc),a.registerVisual(w_)}var T_=256,I_=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ee.yh.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),h=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),f=e.length;v.width=t,v.height=r;for(var d=0;d0){var L=o(x)?l:u;x>0&&(x=x*I+C),_[A++]=L[D],_[A++]=L[D+1],_[A++]=L[D+2],_[A++]=L[D+3]*x*256}else A+=4}return c.putImageData(b,0,0),v},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ee.yh.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a}(),D_=I_;function L_(a,e,t){var r=a[1]-a[0];e=p.map(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function Ac(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var P_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Ac(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,n){var o=r.coordinateSystem;o&&(Ac(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){tt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,n,o){var s=t.coordinateSystem,l=yr(s,"cartesian2d"),u,h,v,c;if(l){var f=s.getAxis("x"),d=s.getAxis("y");u=f.getBandWidth()+.5,h=d.getBandWidth()+.5,v=f.scale.getExtent(),c=d.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),S=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),_=(0,q.lx)(t),A=t.getModel("emphasis"),w=A.get("focus"),C=A.get("blurScope"),T=A.get("disabled"),I=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=i;Dv[1]||Rc[1])continue;var V=s.dataToPoint([P,R]);L=new Dt.A({shape:{x:V[0]-u/2,y:V[1]-h/2,width:u,height:h},style:M})}else{if(isNaN(y.get(I[1],D)))continue;L=new Dt.A({z2:1,shape:s.dataToRect([y.get(I[0],D)]).contentShape,style:M})}if(y.hasItemOption){var B=y.getItemModel(D),z=B.getModel("emphasis");m=z.getModel("itemStyle").getItemStyle(),S=B.getModel(["blur","itemStyle"]).getItemStyle(),x=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),w=z.get("focus"),C=z.get("blurScope"),T=z.get("disabled"),_=(0,q.lx)(B)}L.shape.r=b;var W=t.getRawValue(D),$="-";W&&W[2]!=null&&($=W[2]+""),(0,q.qM)(L,_,{labelFetcher:t,labelDataIndex:D,defaultOpacity:M.opacity,defaultText:$}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=S,L.ensureState("select").style=x,(0,U.Lm)(L,w,C,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new D_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var h=t.getViewRect().clone(),v=t.getRoamTransform();h.applyTransform(v);var c=Math.max(h.x,0),f=Math.max(h.y,0),d=Math.min(h.width+h.x,n.getWidth()),g=Math.min(h.height+h.y,n.getHeight()),y=d-c,m=g-f,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(S,function(w,C,T){var I=t.dataToPoint([w,C]);return I[0]-=c,I[1]-=f,I.push(T),I}),b=i.getExtent(),_=i.type==="visualMap.continuous"?M_(b,i.option.range):L_(b,i.getPieceList(),i.option.selected);u.update(x,y,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var A=new ue.Ay({style:{width:y,height:m,x:c,y:f,image:u.canvas},silent:!0});this.group.add(A)},e.type="heatmap",e}(Nt.A),R_=P_,E_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Lv.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ot.A),V_=E_;function O_(a){a.registerChartView(R_),a.registerSeriesModel(V_)}var k_=["itemStyle","borderWidth"],wc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],es=new _a.A,N_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:h,valueDim:wc[+h],categoryDim:wc[1-+h]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=Pc(o,d),y=Cc(o,d,g,c),m=Rc(o,c,y);o.setItemGraphicEl(d,m),n.add(m),Oc(m,c,y)}}).update(function(d,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(d)){n.remove(y);return}var m=Pc(o,d),S=Cc(o,d,m,c),x=Vc(o,S);y&&x!==y.__pictorialShapeStr&&(n.remove(y),o.setItemGraphicEl(d,null),y=null),y?Y_(y,c,S):y=Rc(o,c,S,!0),o.setItemGraphicEl(d,y),y.__pictorialSymbolMeta=S,n.add(y),Oc(y,c,S)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&Ec(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var f=t.get("clip",!0)?pa(t.coordinateSystem,!1,t):null;return f?n.setClipPath(f):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){Ec(n,(0,ft.z)(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Nt.A);function Cc(a,e,t,r){var i=a.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:i,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};z_(t,n,i,r,c),B_(a,e,i,n,o,c.boundingLength,c.pxSign,h,r,c),G_(t,c.symbolScale,u,r,c);var f=c.symbolSize,d=(0,Tt.hV)(t.get("symbolOffset"),f);return H_(t,f,i,n,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,r,c),c}function z_(a,e,t,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),h;if(p.isArray(o)){var v=[rs(s,o[0])-l,rs(s,o[1])-l];v[1]0?1:-1}function rs(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function B_(a,e,t,r,i,n,o,s,l,u){var h=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),f=a.getItemVisual(e,"symbolSize"),d;p.isArray(f)?d=f.slice():f==null?d=["100%","100%"]:d=[f,f],d[v.index]=(0,k.lo)(d[v.index],c),d[h.index]=(0,k.lo)(d[h.index],r?c:Math.abs(n)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function G_(a,e,t,r,i){var n=a.get(k_)||0;n&&(es.attr({scaleX:e[0],scaleY:e[1],rotation:t}),es.updateTransform(),n/=es.getLineScale(),n*=e[r.valueDim.index]),i.valueLineWidth=n||0}function H_(a,e,t,r,i,n,o,s,l,u,h,v){var c=h.categoryDim,f=h.valueDim,d=v.pxSign,g=Math.max(e[f.index]+s,0),y=g;if(r){var m=Math.abs(l),S=p.retrieve(a.get("symbolMargin"),"15%")+"",x=!1;S.lastIndexOf("!")===S.length-1&&(x=!0,S=S.slice(0,S.length-1));var b=(0,k.lo)(S,e[f.index]),_=Math.max(g+b*2,0),A=x?0:b*2,w=(0,k.kf)(r),C=w?r:kc((m+A)/_),T=m-C*g;b=T/2/(x?C:Math.max(C-1,1)),_=g+b*2,A=x?0:b*2,!w&&r!=="fixed"&&(C=u?kc((Math.abs(u)+A)/_):0),y=C*_-A,v.repeatTimes=C,v.symbolMargin=b}var I=d*(y/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[f.index]=o==="start"?I:o==="end"?l-I:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=v.bundlePosition=[];L[c.index]=t[c.xy],L[f.index]=t[f.xy];var M=v.barRectShape=p.extend({},t);M[f.wh]=d*Math.max(Math.abs(t[f.wh]),Math.abs(D[f.index]+I)),M[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=h.ecSize[c.wh],P[f.xy]=0,P[f.wh]=t[f.wh]}function Tc(a){var e=a.symbolPatternSize,t=(0,Tt.v5)(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Ic(a,e,t,r){var i=a.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,v=n[e.valueDim.index]+o+t.symbolMargin*2;for(as(a,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h0:m<0)&&(S=u-1-g),y[l.index]=v*(S-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Dc(a,e,t,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?Xr(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(n=a.__pictorialMainPath=Tc(t),i.add(n),Xr(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Lc(a,e,t){var r=p.extend({},e.barRectShape),i=a.__pictorialBarRect;i?Xr(i,null,{shape:r},e,t):(i=a.__pictorialBarRect=new Dt.A({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function Mc(a,e,t,r){if(t.symbolClip){var i=a.__pictorialClipPath,n=p.extend({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)Q.oi(i,{shape:n},s,l);else{n[o.wh]=0,i=new Dt.A({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],tt[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Pc(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=F_,t.isAnimationEnabled=W_,t}function F_(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function W_(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rc(a,e,t,r){var i=new it.A,n=new it.A;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?Ic(i,e,t):Dc(i,e,t),Lc(i,t,r),Mc(i,e,t,r),i.__pictorialShapeStr=Vc(a,t),i.__pictorialSymbolMeta=t,i}function Y_(a,e,t){var r=t.animationModel,i=t.dataIndex,n=a.__pictorialBundle;Q.oi(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?Ic(a,e,t,!0):Dc(a,e,t,!0),Lc(a,t,!0),Mc(a,e,t,!0)}function Ec(a,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];as(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),p.each(n,function(o){Q.Nz(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function Vc(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function as(a,e,t){p.each(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Xr(a,e,t,r,i,n){e&&a.attr(e),r.symbolClip&&!i?t&&a.attr(t):t&&tt[i?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,n)}function Oc(a,e,t){var r=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),h=n.get("focus"),v=n.get("blurScope"),c=n.get("scale");as(a,function(g){if(g instanceof ue.Ay){var y=g.style;g.useStyle(p.extend({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},t.style))}else g.useStyle(t.style);var m=g.ensureState("emphasis");m.style=o,c&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],d=a.__pictorialBarRect;d.ignoreClip=!0,(0,q.qM)(d,(0,q.lx)(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:kr(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),(0,U.Lm)(a,h,v,n.get("disabled"))}function kc(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}var Z_=N_,U_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,Ne.G_)(oi.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"}}}),e}(oi),X_=U_;function j_(a){a.registerChartView(Z_),a.registerSeriesModel(X_),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,(0,p.curry)(ga.Zp,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,ga.KF)("pictorialBar"))}var K_=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),h=u.rect,v=u.boundaryGap;s.x=0,s.y=h.y+v[0];function c(y){return y.name}var f=new tr.A(this._layersSeries||[],l,c,c),d=[];f.add((0,p.bind)(g,this,"add")).update((0,p.bind)(g,this,"update")).remove((0,p.bind)(g,this,"remove")).execute();function g(y,m,S){var x=o._layers;if(y==="remove"){s.remove(x[m]);return}for(var b=[],_=[],A,w=l[m].indices,C=0;Cn&&(n=s),r.push(s)}for(var u=0;un&&(n=v)}return{y0:i,max:n}}function rA(a){a.registerChartView(J_),a.registerSeriesModel(q_),a.registerLayout(tA),a.registerProcessor(ya("themeRiver"))}var Gi=E(41589),aA=2,iA=4,nA=function(a){(0,O.C6)(e,a);function e(t,r,i,n){var o=a.call(this)||this;o.z2=aA,o.textConfig={inside:!0},(0,ft.z)(o).seriesIndex=r.seriesIndex;var s=new _t.Ay({z2:iA,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,i,n),o}return e.prototype.updateData=function(t,r,i,n,o){this.node=r,r.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;(0,ft.z)(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),h=r.getLayout(),v=p.extend({},h);v.label=null;var c=r.getVisual("style");c.lineJoin="bevel";var f=r.getVisual("decal");f&&(c.decal=(0,Ai.w)(f,o));var d=mr(l.getModel("itemStyle"),v,!0);p.extend(v,d),p.each(U.BV,function(S){var x=s.ensureState(S),b=l.getModel([S,"itemStyle"]);x.style=b.getItemStyle();var _=mr(b,v);_&&(x.shape=_)}),t?(s.setShape(v),s.shape.r=h.r0,Q.LW(s,{shape:{r:h.r}},i,r.dataIndex)):(Q.oi(s,{shape:v},i),(0,Q.ap)(s)),s.useStyle(c),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var y=u.get("focus"),m=y==="ancestor"?r.getAncestorsIndices():y==="descendant"?r.getDescendantIndices():y;(0,U.Lm)(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),h=Math.sin(l),v=this,c=v.getTextContent(),f=this.node.dataIndex,d=n.get("minAngle")/180*Math.PI,g=n.get("show")&&!(d!=null&&Math.abs(s)P&&!(0,k.dh)(V-P)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,t,r,i):(o.virtualPiece=new zc(S,t,r,i),h.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(x.parentNode)})):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";(0,qt.JW)(u,h)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ns,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Nt.A),uA=lA,hA=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};Gc(i);var n=this._levelModels=p.map(t.levels||[],function(l){return new Xt.A(l,this,r)},this),o=ro.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var v=o.getNodeByDataIndex(h),c=n[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=Ti(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Uh(this)},e.type="series.sunburst",e.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"},e}(Ot.A);function Gc(a){var e=0;p.each(a.children,function(r){Gc(r);var i=r.value;p.isArray(i)&&(i=i[0]),e+=i});var t=a.value;p.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),p.isArray(a.value)?a.value[0]=t:a.value=t}var vA=hA,Hc=Math.PI/180;function cA(a,e,t){e.eachSeriesByType(a,function(r){var i=r.get("center"),n=r.get("radius");p.isArray(n)||(n=[0,n]),p.isArray(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=(0,k.lo)(i[0],o),h=(0,k.lo)(i[1],s),v=(0,k.lo)(n[0],l/2),c=(0,k.lo)(n[1],l/2),f=-r.get("startAngle")*Hc,d=r.get("minAngle")*Hc,g=r.getData().tree.root,y=r.getViewRoot(),m=y.depth,S=r.get("sort");S!=null&&Fc(y,S);var x=0;p.each(y.children,function(V){!isNaN(V.getValue())&&x++});var b=y.getValue(),_=Math.PI/(b||x)*2,A=y.depth>0,w=y.height-(A?-1:1),C=(c-v)/(w||1),T=r.get("clockwise"),I=r.get("stillShowZeroSum"),D=T?1:-1,L=function(V,B){if(V){var z=B;if(V!==g){var W=V.getValue(),$=b===0&&I?_:W*_;$1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&(0,p.isString)(s)&&(s=(0,Wt.lift)(s,(r.depth-1)/(n-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var i=r.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");(0,p.extend)(u,l)})})}function dA(a){a.registerChartView(uA),a.registerSeriesModel(vA),a.registerLayout((0,p.curry)(cA,"sunburst")),a.registerProcessor((0,p.curry)(ya,"sunburst")),a.registerVisual(pA),sA(a)}var Wc={color:"fill",borderColor:"stroke"},gA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ue=(0,J.$r)(),yA=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return(0,Fe.A)(null,this)},e.prototype.getDataParams=function(t,r,i){var n=a.prototype.getDataParams.call(this,t,r);return i&&(n.info=Ue(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ot.A),mA=yA;function xA(a,e){return e=e||[0,0],p.map(["x","y"],function(t,r){var i=this.getAxis(t),n=e[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function SA(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:p.bind(xA,a)}}}function bA(a,e){return e=e||[0,0],p.map([0,1],function(t){var r=e[t],i=a[t]/2,n=[],o=[];return n[t]=r-i,o[t]=r+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function _A(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:p.bind(bA,a)}}}function AA(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function wA(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:(0,p.bind)(AA,a)}}}function CA(a,e){return e=e||[0,0],p.map(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",n=this[i](),o=e[r],s=a[r]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function TA(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=a.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:p.bind(CA,a)}}}function IA(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}var YM={};function Yc(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||(0,p.hasOwn)(a,"text")))}function Zc(a,e,t){var r=a,i,n,o;if(e==="text")o=r;else{o={},(0,p.hasOwn)(r,"text")&&(o.text=r.text),(0,p.hasOwn)(r,"rich")&&(o.rich=r.rich),(0,p.hasOwn)(r,"textFill")&&(o.fill=r.textFill),(0,p.hasOwn)(r,"textStroke")&&(o.stroke=r.textStroke),(0,p.hasOwn)(r,"fontFamily")&&(o.fontFamily=r.fontFamily),(0,p.hasOwn)(r,"fontSize")&&(o.fontSize=r.fontSize),(0,p.hasOwn)(r,"fontStyle")&&(o.fontStyle=r.fontStyle),(0,p.hasOwn)(r,"fontWeight")&&(o.fontWeight=r.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=(0,p.hasOwn)(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),(0,p.hasOwn)(r,"textPosition")&&(i.position=r.textPosition),(0,p.hasOwn)(r,"textOffset")&&(i.offset=r.textOffset),(0,p.hasOwn)(r,"textRotation")&&(i.rotation=r.textRotation),(0,p.hasOwn)(r,"textDistance")&&(i.distance=r.textDistance)}return Uc(o,a),(0,p.each)(o.rich,function(l){Uc(l,l)}),{textConfig:i,textContent:n}}function Uc(a,e){e&&(e.font=e.textFont||e.font,(0,p.hasOwn)(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),(0,p.hasOwn)(e,"textAlign")&&(a.align=e.textAlign),(0,p.hasOwn)(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),(0,p.hasOwn)(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),(0,p.hasOwn)(e,"textWidth")&&(a.width=e.textWidth),(0,p.hasOwn)(e,"textHeight")&&(a.height=e.textHeight),(0,p.hasOwn)(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),(0,p.hasOwn)(e,"textPadding")&&(a.padding=e.textPadding),(0,p.hasOwn)(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),(0,p.hasOwn)(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),(0,p.hasOwn)(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),(0,p.hasOwn)(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),(0,p.hasOwn)(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),(0,p.hasOwn)(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),(0,p.hasOwn)(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function Xc(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,n=a.fill||"#000";jc(r,e);var o=r.textFill==null;return i?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=n),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,(0,p.each)(e.rich,function(s){jc(s,s)}),r}function jc(a,e){e&&((0,p.hasOwn)(e,"fill")&&(a.textFill=e.fill),(0,p.hasOwn)(e,"stroke")&&(a.textStroke=e.fill),(0,p.hasOwn)(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),(0,p.hasOwn)(e,"font")&&(a.font=e.font),(0,p.hasOwn)(e,"fontStyle")&&(a.fontStyle=e.fontStyle),(0,p.hasOwn)(e,"fontWeight")&&(a.fontWeight=e.fontWeight),(0,p.hasOwn)(e,"fontSize")&&(a.fontSize=e.fontSize),(0,p.hasOwn)(e,"fontFamily")&&(a.fontFamily=e.fontFamily),(0,p.hasOwn)(e,"align")&&(a.textAlign=e.align),(0,p.hasOwn)(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),(0,p.hasOwn)(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),(0,p.hasOwn)(e,"width")&&(a.textWidth=e.width),(0,p.hasOwn)(e,"height")&&(a.textHeight=e.height),(0,p.hasOwn)(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),(0,p.hasOwn)(e,"padding")&&(a.textPadding=e.padding),(0,p.hasOwn)(e,"borderColor")&&(a.textBorderColor=e.borderColor),(0,p.hasOwn)(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),(0,p.hasOwn)(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),(0,p.hasOwn)(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),(0,p.hasOwn)(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),(0,p.hasOwn)(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),(0,p.hasOwn)(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),(0,p.hasOwn)(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),(0,p.hasOwn)(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),(0,p.hasOwn)(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),(0,p.hasOwn)(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}function ZM(a,e){if(0)var t}var DA=E(21756),Kc={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$c=(0,p.keys)(Kc),UM=(0,p.reduce)(Me.Wx,function(a,e){return a[e]=1,a},{}),XM=Me.Wx.join(", "),Hi=["","style","shape","extra"],jr=(0,J.$r)();function os(a,e,t,r,i){var n=a+"Animation",o=(0,Q.Jw)(a,r,i)||{},s=jr(e).userDuring;return o.duration>0&&(o.during=s?(0,p.bind)(EA,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),(0,p.extend)(o,t[n]),o}function Fi(a,e,t,r){r=r||{};var i=r.dataIndex,n=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=jr(a),u=e.style;l.userDuring=e.during;var h={},v={};if(OA(a,e,v),qc("shape",e,v),qc("extra",e,v),!n&&s&&(VA(a,e,h),Qc("shape",a,e,h),Qc("extra",a,e,h),kA(a,e,u,h)),v.style=u,LA(a,v,o),PA(a,e),s)if(n){var c={};(0,p.each)(Hi,function(d){var g=d?e[d]:e;g&&g.enterFrom&&(d&&(c[d]=c[d]||{}),(0,p.extend)(d?c[d]:c,g.enterFrom))});var f=os("enter",a,e,t,i);f.duration>0&&a.animateFrom(c,f)}else MA(a,e,i||0,t,h);Jc(a,e),u?a.dirty():a.markRedraw()}function Jc(a,e){for(var t=jr(a).leaveToProps,r=0;r0&&a.animateFrom(i,n)}}function PA(a,e){(0,p.hasOwn)(e,"silent")&&(a.silent=e.silent),(0,p.hasOwn)(e,"ignore")&&(a.ignore=e.ignore),a instanceof Ar.Ay&&(0,p.hasOwn)(e,"invisible")&&(a.invisible=e.invisible),a instanceof Vt.Ay&&(0,p.hasOwn)(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var ze={},RA={setTransform:function(a,e){return ze.el[a]=e,this},getTransform:function(a){return ze.el[a]},setShape:function(a,e){var t=ze.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=ze.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=ze.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=ze.el.style;if(e)return e[a]},setExtra:function(a,e){var t=ze.el.extra||(ze.el.extra={});return t[a]=e,this},getExtra:function(a){var e=ze.el.extra;if(e)return e[a]}};function jM(a){}function EA(){var a=this,e=a.el;if(e){var t=jr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}ze.el=e,r(RA)}}function Qc(a,e,t,r){var i=t[a];if(i){var n=e[a],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[a]={}),Mr(l))(0,p.extend)(o,n);else for(var u=(0,J.qB)(l),h=0;h=0){!o&&(o=r[a]={});for(var f=(0,p.keys)(n),h=0;h=0)){var c=a.getAnimationStyleProps(),f=c?c.style:null;if(f){!n&&(n=r.style={});for(var d=(0,p.keys)(t),u=0;u=0?e.getStore().get(B,R):void 0}var z=e.get(V.name,R),W=V&&V.ordinalMeta;return W?W.categories[z]:z}function A(P,R){R==null&&(R=u);var V=e.getItemVisual(R,"style"),B=V&&V.fill,z=V&&V.opacity,W=S(R,ar).getItemStyle();B!=null&&(W.fill=B),z!=null&&(W.opacity=z);var $={inheritColor:(0,p.isString)(B)?B:"#000"},K=x(R,ar),et=q.VB(K,null,$,!1,!0);et.text=K.getShallow("show")?(0,p.retrieve2)(a.getFormattedLabel(R,ar),kr(e,R)):null;var lt=q.sD(K,$,!1);return T(P,W),W=Xc(W,et,lt),P&&C(W,P),W.legacy=!0,W}function w(P,R){R==null&&(R=u);var V=S(R,Xe).getItemStyle(),B=x(R,Xe),z=q.VB(B,null,null,!0,!0);z.text=B.getShallow("show")?(0,p.retrieve3)(a.getFormattedLabel(R,Xe),a.getFormattedLabel(R,ar),kr(e,R)):null;var W=q.sD(B,null,!0);return T(P,V),V=Xc(V,z,W),P&&C(V,P),V.legacy=!0,V}function C(P,R){for(var V in R)(0,p.hasOwn)(R,V)&&(P[V]=R[V])}function T(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function I(P,R){if(R==null&&(R=u),(0,p.hasOwn)(Wc,P)){var V=e.getItemVisual(R,"style");return V?V[Wc[P]]:null}if((0,p.hasOwn)(gA,P))return e.getItemVisual(R,P)}function D(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return(0,ga.DL)((0,p.defaults)({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function M(P){return q.c8(P,t)}}function XA(a){var e={};return(0,p.each)(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,n=e[i]=e[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function ds(a,e,t,r,i,n,o){if(!r){n.remove(e);return}var s=gs(a,e,t,r,i,n);return s&&o.setItemGraphicEl(t,s),s&&(0,U.Lm)(s,r.focus,r.blurScope,r.emphasisDisabled),s}function gs(a,e,t,r,i,n){var o=-1,s=e;e&&nf(e,r,i)&&(o=(0,p.indexOf)(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=fs(r),s&&FA(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ae.normal.cfg=Ae.normal.conOpt=Ae.emphasis.cfg=Ae.emphasis.conOpt=Ae.blur.cfg=Ae.blur.conOpt=Ae.select.cfg=Ae.select.conOpt=null,Ae.isLegacy=!1,KA(u,t,r,i,l,Ae),jA(u,t,r,i,l),ps(a,u,t,r,Ae,i,l),(0,p.hasOwn)(r,"info")&&(Ue(u).info=r.info);for(var h=0;h=0?n.replaceAt(u,o):n.add(u),u}function nf(a,e,t){var r=Ue(a),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&tw(n)&&uf(n)!==r.customPathData||i==="image"&&(0,p.hasOwn)(o,"image")&&o.image!==r.customImagePath}function jA(a,e,t,r,i){var n=t.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&nf(o,n,r)&&(o=null),o||(o=fs(n),a.setClipPath(o)),ps(null,o,e,n,null,r,i)}}function KA(a,e,t,r,i,n){if(!a.isGroup){of(t,null,n),of(t,Xe,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var h=a.getTextContent();if(o===!1)h&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=fs(o),a.setTextContent(h)),ps(null,h,e,o,null,r,i);for(var v=o&&o.style,c=0;c=h;f--){var d=e.childAt(f);JA(e,d,i)}}}function JA(a,e,t){e&&Wi(e,Ue(a).option,t)}function QA(a){new tr.A(a.oldChildren,a.newChildren,sf,sf,a).add(lf).update(lf).remove(qA).execute()}function sf(a,e){var t=a&&a.name;return t!=null?t:GA+e}function lf(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,i=e!=null?t.oldChildren[e]:null;gs(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function qA(a){var e=this.context,t=e.oldChildren[a];t&&Wi(t,Ue(t).option,e.seriesModel)}function uf(a){return a&&(a.pathData||a.d)}function tw(a){return a&&((0,p.hasOwn)(a,"pathData")||(0,p.hasOwn)(a,"d"))}function ew(a){a.registerChartView(YA),a.registerSeriesModel(mA)}var Pr=(0,J.$r)(),hf=p.clone,ms=p.bind,rw=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(e,t,r,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,r);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=h;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new it.A,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var c=p.curry(vf,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}pf(s,t,!0),this._renderHandle(n)}},a.prototype.remove=function(e){this.clear(e)},a.prototype.dispose=function(e){this.clear(e)},a.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=Bn(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},a.prototype.makeElOption=function(e,t,r,i,n){},a.prototype.createPointerEl=function(e,t,r,i){var n=t.pointer;if(n){var o=Pr(e).pointerEl=new tt[n.type](hf(t.pointer));e.add(o)}},a.prototype.createLabelEl=function(e,t,r,i){if(t.label){var n=Pr(e).labelEl=new _t.Ay(hf(t.label));e.add(n),ff(n,i)}},a.prototype.updatePointerEl=function(e,t,r){var i=Pr(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},a.prototype.updateLabelEl=function(e,t,r,i){var n=Pr(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),ff(n,i))},a.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=tt.createIcon(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pe.ds(u.event)},onmousedown:ms(this._onHandleDragMove,this,0,0),drift:ms(this._onHandleDragMove,this),ondragend:ms(this._onHandleDragEnd,this)}),r.add(i)),pf(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");p.isArray(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,me.N(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},a.prototype._moveHandleToValue=function(e,t){vf(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xs(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(xs(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(xs(i)),Pr(r).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),me.IU(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},a}();function vf(a,e,t,r){cf(Pr(t).lastProp,r)||(Pr(t).lastProp=r,e?Q.oi(t,r,a):(t.stopAnimation(),t.attr(r)))}function cf(a,e){if(p.isObject(a)&&p.isObject(e)){var t=!0;return p.each(e,function(r,i){t=t&&cf(a[i],r)}),!!t}else return a===e}function ff(a,e){a[e.get(["label","show"])?"show":"hide"]()}function xs(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function pf(a,e,t){var r=e.get("z"),i=e.get("zlevel");a&&a.traverse(function(n){n.type!=="group"&&(r!=null&&(n.z=r),i!=null&&(n.zlevel=i),n.silent=t)})}var Ss=rw;function bs(a){var e=a.get("type"),t=a.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function df(a,e,t,r,i){var n=t.get("value"),o=gf(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=qt.QX(s.get("padding")||0),u=s.getFont(),h=ce.NO(o,u),v=i.position,c=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=i.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(v[1]-=f),g==="middle"&&(v[1]-=f/2),aw(v,c,f,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),a.label={x:v[0],y:v[1],style:(0,q.VB)(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function aw(a,e,t,r){var i=r.getWidth(),n=r.getHeight();a[0]=Math.min(a[0]+e,i)-e,a[1]=Math.min(a[1]+t,n)-t,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}function gf(a,e,t,r,i){a=e.scale.parse(a);var n=e.scale.getLabel({value:a},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ut.Dt(e,{value:a}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};p.each(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,v=u&&u.getDataParams(h);v&&s.seriesData.push(v)}),p.isString(o)?n=o.replace("{value}",n):p.isFunction(o)&&(n=o(s))}return n}function _s(a,e,t){var r=Lt.create();return Lt.rotate(r,r,t.rotation),Lt.translate(r,r,t.position),tt.applyTransform([a.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function yf(a,e,t,r,i,n){var o=We.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),df(e,r,i,n,{position:_s(r.axis,a,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function As(a,e,t){return t=t||0,{x1:a[t],y1:a[1-t],x2:e[t],y2:e[1-t]}}function mf(a,e,t){return t=t||0,{x:a[t],y:a[1-t],width:e[t],height:e[1-t]}}function xf(a,e,t,r,i,n){return{cx:a,cy:e,r0:t,r,startAngle:i,endAngle:n,clockwise:!0}}var iw=function(a){(0,O.C6)(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),h=Sf(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var c=bs(n),f=nw[u](s,v,h);f.style=c,t.graphicKey=f.type,t.pointer=f}var d=On(l.model,i);yf(r,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=On(r.axis.grid.model,r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=_s(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sf(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,v=[t.x,t.y];v[h]+=r[h],v[h]=Math.min(l[1],v[h]),v[h]=Math.max(l[0],v[h]);var c=(u[1]+u[0])/2,f=[c,c];f[h]=v[h];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:f,tooltipOption:d[h]}},e}(Ss);function Sf(a,e){var t={};return t[e.dim+"AxisIndex"]=e.index,a.getCartesian(t)}var nw={line:function(a,e,t){var r=As([e,t[0]],[e,t[1]],bf(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=Math.max(1,a.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:mf([e-r/2,t[0]],[r,i],bf(a))}}};function bf(a){return a.dim==="x"?0:1}var ow=iw,sw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(Ht.A),lw=sw,je=(0,J.$r)(),uw=p.each;function _f(a,e,t){if(!Kt.A.node){var r=e.getZr();je(r).records||(je(r).records={}),hw(r,e);var i=je(r).records[a]||(je(r).records[a]={});i.handler=t}}function hw(a,e){if(je(a).initialized)return;je(a).initialized=!0,t("click",p.curry(Af,"click")),t("mousemove",p.curry(Af,"mousemove")),t("globalout",cw);function t(r,i){a.on(r,function(n){var o=fw(e);uw(je(a).records,function(s){s&&i(s,n,o.dispatchAction)}),vw(o.pendings,e)})}}function vw(a,e){var t=a.showTip.length,r=a.hideTip.length,i;t?i=a.showTip[t-1]:r&&(i=a.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function cw(a,e,t){a.handler("leave",null,t)}function Af(a,e,t,r){e.handler(a,t,r)}function fw(a){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,a.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function ws(a,e){if(!Kt.A.node){var t=e.getZr(),r=(je(t).records||{})[a];r&&(je(t).records[a]=null)}}var pw=function(a){(0,O.C6)(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=r.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";_f("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){ws("axisPointer",r)},e.prototype.dispose=function(t,r){ws("axisPointer",r)},e.type="axisPointer",e}(Yt.A),dw=pw;function wf(a,e){var t=[],r=a.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var n=i.getData(),o=J.le(n,a);if(o==null||o<0||p.isArray(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(a.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),v=h.dim,c=u.dim,f=v==="x"||v==="radius"?1:0,d=n.mapDimension(c),g=[];g[f]=n.get(d,o),g[1-f]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(n.getValues(p.map(l.dimensions,function(m){return n.mapDimension(m)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var Cf=(0,J.$r)();function gw(a,e,t){var r=a.currTrigger,i=[a.x,a.y],n=a,o=a.dispatchAction||(0,p.bind)(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ui(i)&&(i=wf({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Ui(i),u=n.axesInfo,h=s.axesInfo,v=r==="leave"||Ui(i),c={},f={},d={list:[],map:{}},g={showPointer:(0,p.curry)(mw,f),showTooltip:(0,p.curry)(xw,d)};(0,p.each)(s.coordSysMap,function(m,S){var x=l||m.containPoint(i);(0,p.each)(s.coordSysAxesInfo[S],function(b,_){var A=b.axis,w=Aw(u,b);if(!v&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=A.pointToData(i)),C!=null&&Tf(b,C,g,!1,c)}})});var y={};return(0,p.each)(h,function(m,S){var x=m.linkGroup;x&&!f[S]&&(0,p.each)(x.axesInfo,function(b,_){var A=f[_];if(b!==m&&A){var w=A.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,If(b),If(m)))),y[m.key]=w}})}),(0,p.each)(y,function(m,S){Tf(h[S],m,g,!0,c)}),Sw(f,h,c),bw(d,i,a,o),_w(h,o,t),c}}function Tf(a,e,t,r,i){var n=a.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!a.involveSeries){t.showPointer(a,e);return}var o=yw(e,a),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&(0,p.extend)(i,s[0]),!r&&a.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(a,e,s),t.showTooltip(a,o,l)}}function yw(a,e){var t=e.axis,r=t.dim,i=a,n=[],o=Number.MAX_VALUE,s=-1;return(0,p.each)(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(r),v,c;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(h,a,t);c=f.dataIndices,v=f.nestestValue}else{if(c=l.getData().indicesOfNearest(h[0],a,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(h[0],c[0])}if(!(v==null||!isFinite(v))){var d=a-v,g=Math.abs(d);g<=o&&((g