(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-44220faa"],{"22d1":function(t,e,n){var i,o,r,a,s,l,u=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},c=new function(){this.browser=new u,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(c.wxa=!0,c.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?c.worker=!0:!c.hasGlobalWindow||"Deno"in window?(c.node=!0,c.svgSupported=!0):(l=navigator.userAgent,o=(i=c).browser,r=l.match(/Firefox\/([\d.]+)/),a=l.match(/MSIE\s([\d.]+)/)||l.match(/Trident\/.+?rv:(([\d.]+))/),s=l.match(/Edge?\/([\d.]+)/),l=/micromessenger/i.test(l),r&&(o.firefox=!0,o.version=r[1]),a&&(o.ie=!0,o.version=a[1]),s&&(o.edge=!0,o.version=s[1],o.newEdge=18<+s[1].split(".")[0]),l&&(o.weChat=!0),i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,i.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&11<=+o.version),i.domSupported="undefined"!=typeof document,r=document.documentElement.style,i.transform3dSupported=(o.ie&&"transition"in r||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in r)&&!("OTransition"in r),i.transformSupported=i.transform3dSupported||o.ie&&9<=+o.version),e.a=c},"2de2":function(t,e,n){n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return l}));let i="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",a="/duoduo-service",s="/duoduo-service/",l="/duoduo-service/custom-service/"},"313e":function(t,e,n){n.d(e,"b",(function(){return Cm})),n.d(e,"a",(function(){return o}));var i={},o=(n.r(i),n.d(i,"updateProps",(function(){return vs})),n.d(i,"initProps",(function(){return xs})),n.d(i,"removeElement",(function(){return bs})),n.d(i,"removeElementWithFadeOut",(function(){return Ss})),n.d(i,"isElementRemoved",(function(){return _s})),n.d(i,"extendShape",(function(){return xf})),n.d(i,"extendPath",(function(){return bf})),n.d(i,"registerShape",(function(){return wf})),n.d(i,"getShapeClass",(function(){return Sf})),n.d(i,"makePath",(function(){return Mf})),n.d(i,"makeImage",(function(){return If})),n.d(i,"mergePath",(function(){return Tf})),n.d(i,"resizePath",(function(){return Cf})),n.d(i,"subPixelOptimizeLine",(function(){return kf})),n.d(i,"subPixelOptimizeRect",(function(){return Df})),n.d(i,"subPixelOptimize",(function(){return Af})),n.d(i,"getTransform",(function(){return Lf})),n.d(i,"applyTransform",(function(){return Pf})),n.d(i,"transformDirection",(function(){return jf})),n.d(i,"groupTransition",(function(){return Nf})),n.d(i,"clipPointsByRect",(function(){return Ef})),n.d(i,"clipRectByRect",(function(){return zf})),n.d(i,"createIcon",(function(){return Vf})),n.d(i,"linePolygonIntersect",(function(){return Bf})),n.d(i,"lineLineIntersect",(function(){return Ff})),n.d(i,"setTooltipConfig",(function(){return Gf})),n.d(i,"traverseElements",(function(){return Wf})),n.d(i,"Group",(function(){return qn})),n.d(i,"Image",(function(){return Vr})),n.d(i,"Text",(function(){return pa})),n.d(i,"Circle",(function(){return tp})),n.d(i,"Ellipse",(function(){return ip})),n.d(i,"Sector",(function(){return bp})),n.d(i,"Ring",(function(){return Mp})),n.d(i,"Polygon",(function(){return Dp})),n.d(i,"Polyline",(function(){return jp})),n.d(i,"Rect",(function(){return qr})),n.d(i,"Line",(function(){return zp})),n.d(i,"BezierCurve",(function(){return Yp})),n.d(i,"Arc",(function(){return qp})),n.d(i,"IncrementalDisplayable",(function(){return gf})),n.d(i,"CompoundPath",(function(){return Qp})),n.d(i,"LinearGradient",(function(){return nf})),n.d(i,"RadialGradient",(function(){return rf})),n.d(i,"BoundingRect",(function(){return wt})),n.d(i,"OrientedBoundingRect",(function(){return df})),n.d(i,"Point",(function(){return dt})),n.d(i,"Path",(function(){return Ar})),{}),r=(n.r(o),n.d(o,"extendShape",(function(){return xf})),n.d(o,"extendPath",(function(){return bf})),n.d(o,"makePath",(function(){return Mf})),n.d(o,"makeImage",(function(){return If})),n.d(o,"mergePath",(function(){return Tf})),n.d(o,"resizePath",(function(){return Cf})),n.d(o,"createIcon",(function(){return Vf})),n.d(o,"updateProps",(function(){return vs})),n.d(o,"initProps",(function(){return xs})),n.d(o,"getTransform",(function(){return Lf})),n.d(o,"clipPointsByRect",(function(){return Ef})),n.d(o,"clipRectByRect",(function(){return zf})),n.d(o,"registerShape",(function(){return wf})),n.d(o,"getShapeClass",(function(){return Sf})),n.d(o,"Group",(function(){return qn})),n.d(o,"Image",(function(){return Vr})),n.d(o,"Text",(function(){return pa})),n.d(o,"Circle",(function(){return tp})),n.d(o,"Ellipse",(function(){return ip})),n.d(o,"Sector",(function(){return bp})),n.d(o,"Ring",(function(){return Mp})),n.d(o,"Polygon",(function(){return Dp})),n.d(o,"Polyline",(function(){return jp})),n.d(o,"Rect",(function(){return qr})),n.d(o,"Line",(function(){return zp})),n.d(o,"BezierCurve",(function(){return Yp})),n.d(o,"Arc",(function(){return qp})),n.d(o,"IncrementalDisplayable",(function(){return gf})),n.d(o,"CompoundPath",(function(){return Qp})),n.d(o,"LinearGradient",(function(){return nf})),n.d(o,"RadialGradient",(function(){return rf})),n.d(o,"BoundingRect",(function(){return wt})),function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)});function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;var s=n("22d1"),l=n("6d8b"),u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function h(t,e){return[t=null==t?0:t,e=null==e?0:e]}function d(t,e){return t[0]=e[0],t[1]=e[1],t}function p(t){return[t[0],t[1]]}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function g(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function m(t){return Math.sqrt(v(t))}function v(t){return t[0]*t[0]+t[1]*t[1]}function x(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n}function _(t,e){var n=m(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}Object.create;var w=b,S=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function M(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function I(t,e,n){var i=e[0];e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function O(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var C=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};function k(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}k.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new C(e,t),"dragstart",t.event))},k.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(i=(e=t.offsetX)-this._x,o=(n=t.offsetY)-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new C(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new C(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new C(i,t),"dragenter",t.event)},k.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new C(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new C(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null};var D=k;function A(t){t&&(this._$eventProcessor=t)}A.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a{for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left;c=c.top;a.push(d,c),l=l&&r&&d===r[h]&&c===r[1+h],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?R(s,a):R(a,s))})(((t,e)=>{var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n})(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function V(t){return"CANVAS"===t.nodeName.toUpperCase()}var B=/([&<>"'])/g,F={"&":"&","<":"<",">":">",'"':""","'":"'"};function G(t){return null==t?"":(t+"").replace(B,(function(t,e){return F[e]}))}var H=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,W=[],Y=s.a.browser.firefox&&+s.a.browser.version.split(".")[0]<39;function X(t,e,n,i){return n=n||{},i?U(t,e,n):Y&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):U(t,e,n),n}function U(t,e,n){if(s.a.domSupported&&t.getBoundingClientRect){var i,o=e.clientX;e=e.clientY;if(V(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(z(W,t,o,e))return n.zrX=W[0],void(n.zrY=W[1])}n.zrX=n.zrY=0}function Z(t){return t||window.event}function q(t,e,n){var i;return null==(e=Z(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&X(t,i,e,n):(X(t,e,e,n),i=(t=>{var e,n=t.wheelDelta;return n||(e=t.deltaX,t=t.deltaY,null!=e&&null!=t?3*(0!==t?Math.abs(t):Math.abs(e))*(0=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},bt.prototype.clone=function(){return new bt(this.x,this.y,this.width,this.height)},bt.prototype.copy=function(t){bt.copy(this,t)},bt.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},bt.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},bt.prototype.isZero=function(){return 0===this.width||0===this.height},bt.create=function(t){return new bt(t.x,t.y,t.width,t.height)},bt.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},bt.applyTransform=function(t,e,n){var i,o,r;n?n[1]<1e-5&&-1e-5{if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=!!i.ignoreClip||r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(o=!0),a=i.__hostTarget,i=a||i.parent}return!o||St}return!1})(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==St)){e.target=a;break}}}function Rt(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}l.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Lt.prototype[t]=function(e){var n,i,o=e.zrX,r=e.zrY,a=Rt(this,o,r);if("mouseup"===t&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);r(t,e[n+c])<0?l=c:a=c+1}return l}function Ht(t,e){var n,i,o=zt,r=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===r-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),r--,s=Gt(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=Ft(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var d=l,p=u,f=(s=c,h),g=0;for(g=0;gi[t+1])break;s(t)}},forceMergeRuns:function(){for(;1{for(var e=0;Et<=t;)e|=1&t,t>>=1;return t+e})(o);do{}while((r=Vt(t,n,i,e))e);y++);y=g(y-1,h-2)}i=c[y+1],n=c[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,f=i.percent-n.percent,o=0==f?1:g((e-n.percent)/f,1),i.easingFunc&&(o=i.easingFunc(o)),g=a?this._additiveValue:p?Ee:t[d],(Ne(u)||p)&&(g=g||(this._additiveValue=[])),this.discrete?t[d]=(o<1?n:i).rawValue:Ne(u)?(1===u?De:(t,e,n,i)=>{for(var o=e.length,r=o&&e[0].length,a=0;a{var t=Gn.prototype;function e(e,n,i,o){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(t,e,{get:function(){var t;return this[n]||(t=this[n]=[],r(this,t)),this[n]},set:function(t){this[i]=t[0],this[o]=t[1],this[n]=t,r(this,t)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Yt,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),e=Gn;function Gn(t){this.id=Object(l.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Hn(t,e,n,i,o){function r(){c=!0,--u<=0&&(c?h&&h():d&&d())}function a(){--u<=0&&(c?h&&h():d&&d())}var s=[],u=(function t(e,n,i,o,r,a,s,u){for(var c=Object(l.F)(o),h=r.duration,d=r.delay,p=r.additive,f=r.setToFinal,g=!Object(l.A)(a),y=e.animators,m=[],v=0;v{var n=t.length;if(n!==e.length)return!1;for(var i=0;i{if(t){if("string"==typeof t)return Object(Oe.e)(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;othis._sleepAfterStill)&&this.animation.stop()},ti.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},ti.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},ti.prototype.refreshHover=function(){this._needsRefreshHover=!0},ti.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},ti.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},ti.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},ti.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},ti.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},ti.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},ti.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},ti.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},ti.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},ti.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},ti.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;eu&&(u=s[h],c=h);++r[c],s[c]=0,++a}return l.H(r,(function(t){return t/i}))}var ci=9007199254740991;function hi(t){var e=2*Math.PI;return(t%e+e)%e}function di(t){return-1e-4{var i=[];if("replaceAll"!==n)for(var o=0;o{var n=e[t.main];return n&&n[qi]?n:e[t.main]={___EC__COMPONENT__CONTAINER___:!0}})(n)[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[qi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){t=Qi(t);var n=[];t=e[t.main];return t&&t[qi]?l.k(t,(function(t,e){e!==qi&&n.push(t)})):n.push(t),n},t.hasClass=function(t){return t=Qi(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return l.k(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){return t=Qi(t),t=e[t.main],t&&t[qi]}}function io(t,e){for(var n=0;n=n.maxIterations){e+=n.ellipsis;break}var s=0===a?((t,e,n,i)=>{for(var o=0,r=0,a=t.length;rr){I=n.lines.length,0i.width&&(r=e.split("\n"),h=!0),i.accumWidth=t):(t=wo(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var d=0;d(Do.copy(t.getBoundingRect()),t.transform&&Do.applyTransform(t.transform),Ao.width=e,Ao.height=n,!Do.intersect(Ao)))(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;rthis._ux||i>this._uy;return this.addData(Yo.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},ur.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Yo.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},ur.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Yo.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},ur.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),ar[0]=i,ar[1]=o,lr(ar,r),this.addData(Yo.A,t,e,n,n,i=ar[0],(o=ar[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=tr(o)*n+t,this._yi=er(o)*n+e,this},ur.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},ur.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Yo.R,t,e,n,i),this},ur.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},ur.prototype.fill=function(t){t&&t.fill(),this.toStatic()},ur.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},ur.prototype.len=function(){return this._len},ur.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!rr||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;cn||nr(y)>i||h===e-1)&&(f=Math.sqrt(T*T+y*y),o=g,r=x);break;case Yo.C:var m=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=((t,e,n,i,o,r,a,s,l)=>{for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=he(t,n,o,a,f),y=(f=he(e,i,r,s,f),g-u),m=f-c;h+=Math.sqrt(y*y+m*m),u=g,c=f}return h})(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case Yo.Q:f=((t,e,n,i,o,r,a)=>{for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=me(t,n,o,d),f=(d=me(e,i,r,d),p-s),g=d-l;u+=Math.sqrt(f*f+g*g),s=p,l=d}return u})(o,r,m=t[h++],v=t[h++],g=t[h++],x=t[h++],10),o=g,r=x;break;case Yo.A:_=t[h++],b=t[h++];var w=t[h++],S=t[h++],M=t[h++],I=t[h++],O=I+M;h+=1,p&&(a=tr(M)*w+_,s=er(M)*S+b),f=Jo(w,S)*$o(or,Math.abs(I)),o=tr(O)*w+_,r=er(O)*S+b;break;case Yo.R:a=o=t[h++],s=r=t[h++],f=2*t[h++]+2*t[h++];break;case Yo.Z:var T=a-o;y=s-r;f=Math.sqrt(T*T+y*y),o=a,r=s}0<=f&&(u+=l[c++]=f)}return this._pathLen=u},ur.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,c=this.data,h=this._ux,d=this._uy,p=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v0!==l&&!(e+(l=l)0!==a&&(a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a{if(n<(s-=e)||s<-n)return 0;e=Math.sqrt(n*n-s*s);if(_r[0]=-e,_r[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(vr-1e-4<=n)return o=vr,c=r?1:-1,a>=_r[i=0]+t&&a<=_r[1]+t?c:0;oMath.PI/2&&h<1.5*Math.PI?-c:c)}return l})(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,c=Math.sin(_+b)*x+m;break;case mr.R:if(h=u=a[p++],d=c=a[p++],S=h+a[p++],M=d+a[p++],n){if(hr(h,d,S,d,e,i,o)||hr(S,d,S,M,e,i,o)||hr(S,M,h,M,e,i,o)||hr(h,M,h,d,e,i,o))return!0}else l=(l+=yr(S,d,S,M,i,o))+yr(h,M,h,d,i,o);break;case mr.Z:if(n){if(hr(u,c,h,d,e,i,o))return!0}else l+=yr(u,c,h,d,i,o);u=h,c=d}}return n||(t=c,r=d,Math.abs(t-r){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=jn(r),u=Object(l.P)(e.lineHeight,s),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,d=!1,p=e.width,f=(i=(n=null==p||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?wo(t,e.font,p,"breakAll"===i,0).lines:[]).length*u,Object(l.P)(e.height,i));if(fh,n=n.slice(0,h)),t&&a&&null!=p)for(var g=fo(p,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m{for(var o=t.style,r={},a=0;a{for(var e;t&&t!==t.ecModel;){var n=(t.option||Is).rich;if(n){e=e||{};for(var i=Object(l.F)(n),o=0;o{for(var t={},a={},s=[],l=0,u=Math.min(5,n);l{for(var n=t.length,i=0;ie)return t[i];return t[n-1]})(i,a):n)||n)&&i.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0}function Gu(t){throw new Error(t)}var Hu="\0_ec_inner";a(Yu,Wu=el),Yu.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new el(i),this._locale=new el(o),this._optionManager=r},Yu.prototype.setOption=function(t,e,n){e=Zu(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Yu.prototype.resetOption=function(t,e){return this._resetOption(t,Zu(e))},Yu.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):ju(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&Object(l.k)(n,(function(t){i=!0,this._mergeOption(t,e)}),this),i},Yu.prototype.mergeOption=function(t){this._mergeOption(t,null)},Yu.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=Object(l.f)(),s=e&&e.replaceMergeMainTypeMap;Ou(this).datasetMap=Object(l.f)(),Object(l.k)(t,(function(t,e){null!=t&&(fu.hasClass(e)?e&&(r.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(l.d)(t):Object(l.I)(n[e],t,!0))})),s&&s.each((function(t,e){fu.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),fu.topologicalTravel(r,fu.getAllClassMainTypes(),(function(e){var r,a=((t,e,n)=>(e=(e=Ru.get(e))&&e(t))?n.concat(e):n)(this,e,Oi(t[e])),u=i.get(e),c=u?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=(u=Di(u,a,c),Ni(u,e,fu),n[e]=null,i.set(e,null),o.set(e,0),[]),d=[],p=0;Object(l.k)(u,(function(t,n){var i=t.existing,o=t.newOption;if(o){var a=fu.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(i=new a(o,this,this,a=Object(l.m)({componentIndex:n},t.keyInfo)),Object(l.m)(i,a),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,i.set(e,d),o.set(e,p),"series"===e&&Lu(this)}),this),this._seriesIndices||Lu(this)},Yu.prototype.getOption=function(){var t=Object(l.d)(this.option);return Object(l.k)(t,(function(e,n){if(fu.hasClass(n)){for(var i=Oi(e),o=i.length,r=!1,a=o-1;0<=a;a--)i[a]&&!Ri(i[a])?r=!0:(i[a]=null,r||o--);i.length=o,t[n]=i}})),delete t[Hu],t},Yu.prototype.getTheme=function(){return this._theme},Yu.prototype.getLocaleModel=function(){return this._locale},Yu.prototype.setUpdatePayload=function(t){this._payload=t},Yu.prototype.getUpdatePayload=function(){return this._payload},Yu.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0],t)return t;if(null==e)for(var i=0;i{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e})(e,t)||e.restoreData()}))}))},Yu.internalField=(Lu=function(t){var e=t._seriesIndices=[];Object(l.k)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(l.f)(e)},Pu=function(t){},void(ju=function(t,e){t.option={},t.option[Hu]=1,t._componentsMap=Object(l.f)({series:[]}),t._componentsCount=Object(l.f)();var n,i,o=e.aria;Object(l.A)(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,Object(l.k)(o,(function(t,e){"colorLayer"===e&&i||fu.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(l.I)(n[e],t,!1):Object(l.d)(t):null==n[e]&&(n[e]=t))})),Object(l.I)(e,gu,!1),t._mergeOption(e,null)}));var Wu;n=Yu;function Yu(){return null!==Wu&&Wu.apply(this,arguments)||this}function Xu(t,e,n){var i,o;return Object(l.t)(e)?(i=Object(l.f)(),Object(l.k)(e,(function(t){null!=t&&null!=Pi(t,null)&&i.set(t,!0)})),Object(l.n)(n,(function(e){return e&&i.get(e[t])}))):(o=Pi(e,null),Object(l.n)(n,(function(e){return e&&null!=o&&e[t]===o})))}function Uu(t,e){return e.hasOwnProperty("subType")?Object(l.n)(t,(function(t){return t&&t.subType===e.subType})):t}function Zu(t){var e=Object(l.f)();return t&&Object(l.k)(Oi(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function qu(t){l.k(Qu,(function(e){this[e]=l.c(t[e],t)}),this)}Object(l.K)(n,zu);var Ku=n,Qu=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],$u={};function Ju(){this._coordinateSystems=[]}Ju.prototype.create=function(t,e){var n=[];l.k($u,(function(i,o){i=i.create(t,e),n=n.concat(i||[])})),this._coordinateSystems=n},Ju.prototype.update=function(t,e){l.k(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},Ju.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Ju.register=function(t,e){$u[t]=e},Ju.get=function(t){return $u[t]};var tc=Ju,ec=/^(min|max)?(.+)$/;function nc(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}nc.prototype.setOption=function(t,e,n){t&&(Object(l.k)(Oi(t.series),(function(t){t&&t.data&&Object(l.E)(t.data)&&Object(l.R)(t.data)})),Object(l.k)(Oi(t.dataset),(function(t){t&&t.source&&Object(l.E)(t.source)&&Object(l.R)(t.source)}))),t=Object(l.d)(t);var i=this._optionBackup;t=((t,e,n)=>{var i,o,r=[],a=t.baseOption,s=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||s||a&&a.timeline);function p(t){Object(l.k)(e,(function(e){e(t,n)}))}return a?(o=a).timeline||(o.timeline=s):((d||h)&&(t.options=t.media=null),o=t),h&&Object(l.t)(c)&&Object(l.k)(c,(function(t){t&&t.option&&(t.query?r.push(t):i=i||t)})),p(o),Object(l.k)(u,p),Object(l.k)(r,(function(t){return p(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:r}})(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},nc.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(l.d)(t?e.baseOption:this._newBaseOption)},nc.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return n.length&&(t=t.getComponent("timeline"))?Object(l.d)(n[t.getCurrentIndex()]):e},nc.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(i.length||o){for(var s,u,c=0,h=i.length;c{var i={width:e,height:n,aspectratio:e/n},o=!0;return Object(l.k)(t,(function(t,e){var n;e=e.match(ec);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))})),o})(i[c].query,e,n)&&r.push(c);(r=!r.length&&o?[-1]:r).length&&(s=r,u=this._currentMediaIndices,s.join(",")!==u.join(","))&&(a=Object(l.H)(r,(function(t){return Object(l.d)((-1===t?o:i[t]).option)}))),this._currentMediaIndices=r}return a};var ic=nc,oc=l.k,rc=l.A,ac=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function sc(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ac.length;n{for(var n=e.split(","),i=t,o=0;o{var r,a;return t?(e===vu?(a=t,"auto"===i||null==i?Lc((function(t){null!=t&&"-"!==t&&(Object(l.C)(t)?null==r&&(r=1):r=0)}),n,a,10):r=Object(l.z)(i)?i:i?1:0,o||1!==r||(o=[],Lc((function(t,e){o[e]=null!=t?t+"":""}),n,a,1/0)),a=o?o.length:n===Mu?a.length:a[0]?a[0].length:null):e===xu?o=o||(t=>{for(var e,n=0;n{e.length||Gu(""),Object(l.A)(t)||Gu("");var n=t.type,i=kh.get(n);return i||Gu(""),n=Object(l.H)(e,(function(t){var e=t,n=(t=i,new Sh),o=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Su&&Gu(""),[]),u={};if(d=e.dimensionsDefine)Object(l.k)(d,(function(t,e){var n=t.name;e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(Object(l.q)(u,n)&&Gu(""),u[n]=e)}));else for(var c=0;c=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return r;o=r-1}}}return-1},Bh.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();lt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sc[1]&&(c[1]=y),h[d++]=m}return o._count=d,o._indices=h,o._updateGetRawIdx(),o},Bh.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+G(c)+""+h,n))}function id(t,e,n,i){var o,r,a,s,u,c=t.renderMode,h=e.noName,d=e.noValue,p=!e.markerType,f=e.name,g=t.useUTC,y=e.valueFormatter||t.valueFormatter||function(t){return t=Object(l.t)(t)?t:[t],Object(l.H)(t,(function(t,e){return Hl(t,Object(l.t)(r)?r[e]:r,g)}))};if(!h||!d)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",c),f=h?"":Hl(f,"ordinal",g),r=e.valueType,y=d?[]:y(e.value,e.dataIndex),e=!p||!h,a=!p&&h,u=Kh(i,c),s=u.nameStyle,u=u.valueStyle,"richText"===c?(p?"":o)+(h?"":ad(t,f,s))+(d?"":((t,e,n,i,o)=>(o=[o],i=i?10:20,n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(l.t)(e)?e.join(" "):e,o)))(t,y,e,a,u)):rd(i,(p?"":o)+(h?"":''+G(f)+"")+(d?"":((t,e,n,i)=>(n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=Object(l.t)(t)?t:[t],''+Object(l.H)(t,G).join("  ")+""))(y,e,a,u)),n)}function od(t,e,n,i,o,r){if(t)return ed(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function rd(t,e,n){return'
'+e+'
'}function ad(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function sd(t,e){return Ul(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ld(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}cd.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},cd.prototype.makeTooltipMarker=function(t,e,n){var i,o="richText"===n?this._generateStyleName():null,r=(e={color:e,type:t,renderMode:n,markerId:o},t=(e=l.C(e)?{color:e,extraCssText:r}:e||{}).color,n=e.type,r=e.extraCssText,i=e.renderMode||"html",t?"html"===i?"subItem"===n?'':'':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:t}:{width:10,height:10,borderRadius:5,backgroundColor:t}}:"");return Object(l.C)(r)?r:(this.richTextStyles[o]=r.style,r.content)},cd.prototype.wrapRichTextStyle=function(t,e){var n={};Object(l.t)(e)?Object(l.k)(e,(function(t){return Object(l.m)(n,t)})):Object(l.m)(n,e),e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var ud=cd;function cd(){this.richTextStyles={},this._nextStyleNameId=bi()}function hd(t){var e,n,i,o,r,a,s,u,c,h,d,p=t.series,f=t.dataIndex,g=(t=t.multipleSeries,p.getData()),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=p.getRawValue(f),x=Object(l.t)(v),_=sd(p,f);function b(t,e){e=s.getDimensionInfo(e),e&&!1!==e.otherDims.tooltip&&(u?d.push(Jh("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(c.push(t),h.push(e.type)))}return 1this.getShallow("animationThreshold"))&&t)},yd.prototype.restoreData=function(){this.dataTask.dirty()},yd.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return zu.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},yd.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},yd.prototype.getProgressive=function(){return this.get("progressive")},yd.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},yd.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},yd.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bd(t,e){l.k(l.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,l.h(wd,e))}))}function wd(t,e){return t=Sd(t),t&&t.setOutputEnd((e||this).count()),e}function Sd(t){var e,n=(t.ecModel||{}).scheduler;n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}l.K(vl,$c),l.K(vl,zu),Ji(vl,fu);var Md=vl;Id.prototype.init=function(t,e){},Id.prototype.render=function(t,e,n,i){},Id.prototype.dispose=function(t,e){},Id.prototype.updateView=function(t,e,n,i){},Id.prototype.updateLayout=function(t,e,n,i){},Id.prototype.updateVisual=function(t,e,n,i){},Id.prototype.toggleBlurSeries=function(t,e,n){},Id.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},Xs=Id;function Id(){this.group=new qn,this.uid=il("viewComponent")}$i(Xs),no(Xs);var Od=Xs;function Td(){var t=zi();return function(e){var n=t(e),i=(e=e.pipelineContext,!!n.large),o=!!n.progressiveRender,r=n.large=!(!e||!e.large);n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==r&&o==n)&&"reset"}}var Cd=cr.CMD,kd=[[],[],[]],Dd=Math.sqrt,Ad=Math.atan2;function Ld(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=Cd.M,u=Cd.C,c=Cd.L,h=Cd.R,d=Cd.A,p=Cd.Q,f=0,g=0;f{var e=new cr;if(t){var n,i=0,o=0,r=i,a=o,s=cr.CMD,l=t.match(Fd);if(l){for(var u=0;u{if(Object(l.t)(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e})(e))[0],s=e[1],u=e[2],c=e[3]),e=cp(P-j)/2,I=pp(e,u),O=pp(e,c),T=pp(e,a),C=pp(e,s),x=h=dp(I,O),_=d=dp(T,C),fp{var l=(s-=r)*(n-=t)-(a-=o)*(i-=e);if(!(l*l{var o,r,a=[],s=[],l=[],u=[];if(i){for(var c=[1/0,1/0],h=[-1/0,-1/0],d=0,g=t.length;di.len()&&(uMath.abs(i[1])?0n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},pg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},pg.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=(e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,t.get("large")&&i>=t.get("largeThreshold"));i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},pg.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(l.f)();t.eachSeries((function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},pg.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(l.k)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(l.b)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},pg.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},pg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},pg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},pg.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,r=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(l.k)(t,(function(t,s){var l,u,c,h,d;i.visualType&&i.visualType!==t.visualType||(l=(u=r._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((h=u.agentStubMap).each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),r.updatePayload(u,n),d=r.getPerformArgs(u,i.block),h.each((function(t){t.perform(d)})),u.perform(d)&&(o=!0)):l&&l.each((function(s,l){a(i,s)&&s.dirty();var u=r.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(u)&&(o=!0)})))})),this.unfinished=o||this.unfinished},pg.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},pg.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())}))},pg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},pg.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,r=e.seriesTaskMap,a=e.seriesTaskMap=Object(l.f)(),s=(e=t.seriesType,t.getTargetSeries);function u(e){var s=e.uid;s=a.set(s,r&&r.get(s)||eh({plan:vg,reset:xg,count:wg}));s.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,s)}t.createOnAllSeries?n.eachRawSeries(u):e?n.eachRawSeriesByType(e,u):s&&s(n,i).each(u)},pg.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||eh({reset:fg}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=Object(l.f)(),u=(e=t.seriesType,t.getTargetSeries),c=!0,h=!1;function d(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(h=!0,eh({reset:gg,onDirty:mg})));e.context={model:t,overallProgress:c},e.agent=r,e.__block=c,o._pipe(t,e)}Object(l.b)(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,d):u?u(n,i).each(d):(c=!1,Object(l.k)(n.getSeries(),d)),h&&r.dirty()},pg.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},pg.wrapStageHandler=function(t,e){return(t=Object(l.w)(t)?{overallReset:t,seriesType:(t=>{Sg=null;try{t(Mg,Ig)}catch(t){}return Sg})(t)}:t).uid=il("stageHandler"),e&&(t.visualType=e),t},n=pg;var _g=bg(0);function bg(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r{if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n{var e;return!t||"object"==typeof t&&0===t.length?[0,0]:Object(l.z)(t)?[e=Math.ceil(t),e]:(e=Object(l.H)(t,(function(t){return Math.ceil(t)})),t.length%2?e.concat(e):e)})(a.dashArrayY),y=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(l.C)(e))return[[e]];for(var n=!0,i=0;iObject(l.H)(t,ky))(f),v=ky(g),x=!o&&Tn.d.createCanvas(),_=o&&{tag:"g",attrs:{},key:"dcl",children:[]},b=(()=>{for(var t=1,e=0,n=m.length;e{var u=o?1:n;l=Qg(l,t*u,e*u,r*u,s*u,a.color,a.symbolKeepAspect);o?(t=i.painter.renderOneToVNode(l))&&_.children.push(t):Sy(p,l)})(L,P,j,R,y[C][N])),k+=f[T][D],++A,++D===f[T].length&&(D=0)}++T===f.length&&(T=0)}M+=g[I],++O,++I===g.length&&(I=0)}return c&&Oy.put(r,x||_),s.image=x,s.svgElement=_,s.svgWidth=b.width,s.svgHeight=b.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/n,Iy.set(t,e),t.dirty=!1,e}function ky(t){for(var e=0,n=0;n'+t.dom+""})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(t.connectedBackgroundColor&&g.add(new qr({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(l.k)(c,(function(t){t=new Vr({style:{x:t.left*h-r,y:t.top*h-a,image:t.dom}}),g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);ym(this.id)},um.prototype.convertToPixel=function(t,e){return Uy(this,"convertToPixel",t,e)},um.prototype.convertFromPixel=function(t,e){return Uy(this,"convertFromPixel",t,e)},um.prototype.containPixel=function(t,e){var n;if(!this._disposed)return t=Bi(this._model,t),Object(l.k)(t,(function(t,i){0<=i.indexOf("Models")&&Object(l.k)(t,(function(t){var o=t.coordinateSystem;o&&o.containPoint?n=n||!!o.containPoint(e):"seriesModels"===i&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(n=n||o.containPoint(e,t))}),this)}),this),!!n;ym(this.id)},um.prototype.getVisual=function(t,e){t=Bi(this._model,t,{defaultMainType:"series"});var n=t.seriesModel.getData();t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?jg(n,t,e):Rg(n,e)},um.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},um.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},um.prototype._initEvents=function(){var t,e,n,i=this;Object(l.k)(gm,(function(t){function e(e){var n,o,r,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Vg(s,(function(t){var e;t=fa(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(n=Object(l.m)({},t.eventData),1)}),!0),n&&(o=n.componentType,r=n.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=n.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&i["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:o,view:r},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),Object(l.k)(vm,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),Object(l.k)(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(zg("map","selectchanged",e,i,t),zg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(zg("map","selected",e,i,t),zg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(zg("map","unselected",e,i,t),zg("pie","unselected",e,i,t))}))},um.prototype.isDisposed=function(){return this._disposed},um.prototype.clear=function(){this._disposed?ym(this.id):this.setOption({series:[]},!0)},um.prototype.dispose=function(){var t,e,n;this._disposed?ym(this.id):(this._disposed=!0,this.getDom()&&Yi(this.getDom(),Tm,""),e=(t=this)._api,n=t._model,Object(l.k)(t._componentsViews,(function(t){t.dispose(n,e)})),Object(l.k)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Mm[t.id])},um.prototype.resize=function(t){if(!this[Ly])if(this._disposed)ym(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){e=e.resetOption("media");var n=t&&t.silent;this[Py]&&(null==n&&(n=this[Py].silent),e=!0,this[Py]=null),this[Ly]=!0;try{e&&Hy(this),Xy.update.call(this,{type:"resize",animation:Object(l.m)({duration:0},t&&t.animation)})}catch(t){throw this[Ly]=!1,t}this[Ly]=!1,Ky.call(this,n),Qy.call(this,n)}}},um.prototype.showLoading=function(t,e){this._disposed?ym(this.id):(Object(l.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Sm[t]&&(t=Sm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},um.prototype.hideLoading=function(){this._disposed?ym(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},um.prototype.makeActionFromEvent=function(t){var e=Object(l.m)({},t);return e.type=vm[t.type],e},um.prototype.dispatchAction=function(t,e){var n;this._disposed?ym(this.id):(Object(l.A)(e)||(e={silent:!!e}),mm[t.type]&&this._model&&(this[Ly]?this._pendingActions.push(t):(n=e.silent,qy.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&s.a.browser.weChat&&this._throttledZrFlush(),Ky.call(this,n),Qy.call(this,n))))},um.prototype.updateLabelLayout=function(){Dy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},um.prototype.appendData=function(t){var e;this._disposed?ym(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},um.internalField=(Hy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Wy(t,!0),Wy(t,!1),e.plan()},Wy=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;lu.get("hoverLayerThreshold")&&!s.a.node&&!s.a.worker&&u.eachSeries((function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))})),Dy.trigger("series:afterupdate",e,n,o)},rm=function(t){t[jy]=!0,t.getZr().wakeUp()},am=function(t){t[jy]&&(t.getZr().storage.traverse((function(t){_s(t)||hm(t)})),t[jy]=!1)},im=function(t){return a(e,n=qu),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){Ua(e,n),rm(t)},e.prototype.leaveEmphasis=function(e,n){Za(e,n),rm(t)},e.prototype.enterBlur=function(e){qa(e),rm(t)},e.prototype.leaveBlur=function(e){Ka(e),rm(t)},e.prototype.enterSelect=function(e){Qa(e),rm(t)},e.prototype.leaveSelect=function(e){$a(e),rm(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);function e(){return null!==n&&n.apply(this,arguments)||this}var n},void(om=function(t){function e(t,e){for(var n=0;n{if(t){for(var e=[],n=0;nfunction(){ev(t,e)})(a,d.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},_v.prototype.layout=function(t){var e,n=t.getWidth(),i=(t=t.getHeight(),uv(this._labelList)),o=Object(l.n)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=Object(l.n)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));cv(o,"x","width",0,n,e),hv(r,0,t),dv(Object(l.n)(i,(function(t){return t.layoutOption.hideOverlap})))},_v.prototype.processLabelsOverall=function(){var t=this;Object(l.k)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,o=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!i,a=e.getTextContent();(r=!r&&a?yv(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,n),o&&t._animateLabels(e,n)}))}))},_v.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=fa(t),o=i.dataIndex;n&&null!=o&&(e=(n=e.getData(i.dataType)).getItemModel(o),i={},(o=n.getItemVisual(o,"style"))&&(n=n.getVisual("drawType"),i.stroke=o[n]),o=e.getModel("labelLine"),sv(t,lv(e),i),ev(t,o))},_v.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),u=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||_s(t))||(r=(o=yv(s)).oldLayout,n=(i=fa(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=Object(l.r)(t,"select")&&s.attr(o.oldLayoutSelect),0<=Object(l.r)(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),vs(s,a,e,n)):(s.attr(a),Es(s).valueAnimation||(t=Object(l.P)(s.style.opacity,1),s.style.opacity=0,xs(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(vv(t=o.oldLayoutSelect={},a,xv),vv(t,s.states.select,xv)),s.states.emphasis&&(vv(t=o.oldLayoutEmphasis={},a,xv),vv(t,s.states.emphasis,xv)),Vs(s,n,i,e,e)),!u||u.ignore||u.invisible||(r=(o=mv(u)).oldLayout,a={points:u.shape.points},r?(u.attr({shape:r}),vs(u,{shape:a},e)):(u.setShape(a),u.style.strokePercent=0,xs(u,{style:{strokePercent:1}},e)),o.oldLayout=a)};var bv,wv=_v,Sv=zi();function Mv(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(Sv(e).labelManager||(Sv(e).labelManager=new wv)).clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=Sv(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function Iv(t,e,n){var i=Tn.d.createCanvas(),o=e.getWidth(),r=(e=e.getHeight(),i.style);return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}function Ov(t,e,n){var i,o=bv.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||pn,"string"==typeof t?i=Iv(t,e,n):l.A(t)&&(t=(i=t).id),o.id=t,t=(o.dom=i).style;return t&&(l.j(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}Gm(Mv),c(Ov,bv=L),Ov.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Ov.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Ov.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Ov.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Ov.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Iv("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Ov.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],r=this.maxRepaintRectCount,a=!1,s=new wt(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new wt(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,l=0,u=0;u=r}}for(var u,c=this.__startIndex;co[0]){for(l=0;lt);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},kv.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i{var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"})(o,e.attrs)+("style"!==o?G(r):r||"")+(i?n+Object(l.H)(i,t).join(n)+n:"")+""}(t)}function Qv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $v(t,e,n,i){return qv("svg","root",{width:t,height:e,xmlns:Hv,"xmlns:xlink":Wv,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Jv=0,tx={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"},ex="transform-origin",nx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ix(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function ox(t){return Object(l.C)(t)?tx[t]?"cubic-bezier("+tx[t]+")":Se(t)?t:"":""}function rx(t,e,n,i){var o=t.animators,r=o.length,a=[];if(t instanceof Qp){if(u=((t,e,n)=>{t=t.shape.paths;var i,o,r={};if(Object(l.k)(t,(function(t){var e=Qv(n.zrId),a=(t=(e.animation=!0,rx(t,{},e,!0),e.cssAnims),e.cssNodes),s=(e=Object(l.F)(t),e.length);if(s){var u,c,h=t[o=e[s-1]];for(u in h){var d=h[u];r[u]=r[u]||{d:""},r[u].d+=d.d||""}for(c in a){var p=a[c].animation;0<=p.indexOf(o)&&(i=p)}}})),i)return e.d=!1,t=ix(r,n),i.replace(o,t)})(t,e,n))a.push(u);else if(!r)return}else if(!r)return;for(var s,u,c,h={},d=0;d{if("function"==typeof $n)return $n(t)})(e);n&&(n.each((function(e,n){null!=e&&(t[(Uv+n).toLowerCase()]=e+"")})),e.isSilent())&&(t[Uv+"silent"]="true")}function dx(t){return Object(Te.j)(t[0]-1)&&Object(Te.j)(t[1])&&Object(Te.j)(t[2])&&Object(Te.j)(t[3]-1)}function px(t,e,n){var i;!e||(i=e,Object(Te.j)(i[4])&&Object(Te.j)(i[5])&&dx(e))||(i=n?10:1e4,t.transform=dx(e)?"translate("+sx(e[4]*i)/i+" "+sx(e[5]*i)/i+")":Object(Te.e)(e))}function fx(t,e,n){for(var i=t.points,o=[],r=0;r{for(var e=t.animators,n=0;n{for(var i={},o=e;o<=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i})(e,a,l)),Lx(o=i[d.key])||(r=e[o]).tag!==d.tag?Sx(t,Rx(d),u.elm):(Bx(r,d),e[o]=void 0,Sx(t,r.elm,u.elm))),d=n[++s]);(a<=l||s<=h)&&(l{var o;return n&&"none"!==n&&(o=qv("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(Te.k)(n)?_x({fill:n},o.attrs,"fill",i):Object(Te.n)(n)?bx({style:{fill:n},dirty:l.L,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i):(i=Object(Te.p)(n),n=i.color,i=i.opacity,o.attrs.fill=n,i<1&&(o.attrs["fill-opacity"]=i))),o})(s,u,this._backgroundColor,c);d&&h.push(d),d=t.compress?null:this._mainVNode=qv("g","main",{},[]),this._paintList(a,c,d?d.children:h),d&&h.push(d),a=Object(l.H)(Object(l.F)(c.defs),(function(t){return c.defs[t]}));return a.length&&h.push(qv("defs","defs",{},a)),t.animation&&(e=c.cssNodes,n=c.cssAnims,i=(d=(d={newline:!0})||{}).newline?"\n":"",o=" {"+i,r=i+"}",d=Object(l.H)(Object(l.F)(e),(function(t){return t+o+Object(l.H)(Object(l.F)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+r})).join(i),a=Object(l.H)(Object(l.F)(n),(function(t){return"@keyframes "+t+o+Object(l.H)(Object(l.F)(n[t]),(function(e){return e+o+Object(l.H)(Object(l.F)(n[t][e]),(function(i){var o=n[t][e][i];return i+":"+(o="d"===i?'path("'+o+'")':o)+";"})).join(i)+r})).join(i)+r})).join(i),d=d||a?[""].join(i):"")&&h.push(qv("style","stl",{},[],d)),$v(s,u,h,t.useViewBox)},Gx.prototype.renderToString=function(t){return t=t||{},Kv(this.renderToVNode({animation:Object(l.P)(t.cssAnimation,!0),emphasis:Object(l.P)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(l.P)(t.useViewBox,!0)}),{newline:!0})},Gx.prototype.setBackgroundColor=function(t){this._backgroundColor=t},Gx.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},Gx.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,c=t.length,h=[],d=0,p=0,f=0;f{if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t})(S,a,b),O.coordDimIndex=0,(!_||w<=0)&&(O.isExtraCoord=!0),w--),M(O),null!=O.type||Du(t,I)!==Iu.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}for(var T=s,C=Object(l.f)(),k=0;k{var e=t.get("coordinateSystem"),n=new S_(e);if(e=M_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n})(e)),o=t,d=(d=e).get("coordinateSystem"),d=tc.get(d),p=(p=o&&o.coordSysDims?l.H(o.coordSysDims,(function(t){var e={name:t};t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type=Jx(t)),e})):p)||d&&(d.getDimensionsInfo?d.getDimensionsInfo():d.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,f=(p=l.w(p)?p:p?l.h(Tu,d,e):null,d=w_(i,{coordDimensions:d,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h}),p=d.dimensions,r=n.createInvertedIndices,(a=t)&&l.k(p,(function(t,e){var n=t.coordDim;n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(u=!0)})),u||null==s||(p[s].otherDims.itemName=0),s);n=h?null:c.getSharedDataStore(d),t=O_(e,{schema:d,store:n}),(p=new b_(d,e)).setCalculationInfo(t),c=null!=f&&(t=>{if(t.sourceFormat===mu)return t=(t=>{for(var e=0;e{var n=0;t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:Object(l.z)(e)&&!isNaN(e)?n=e:0e[c-1].coord&&(e.reverse(),h.reverse()),((t,e)=>{var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;i=(n-i)/(e.coord-i);return{coord:n,color:Object(Oe.b)(i,[t.color,e.color])}}for(var s=0;s{for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;ai)return;return 1})(a,e)))return o=e.mapDimension(a.dim),r={},l.k(a.getViewLabels(),(function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1})),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function bb(t){for(var e,n,i=t.length/2;0{if(!n.valueDim)return[];for(var i=e.count(),o=Z_(2*i),r=0;r{for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u{a=[],e.diff(t).add((function(t){a.push({cmd:"+",idx:t})})).update((function(t,e){a.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){a.push({cmd:"-",idx:t})})).execute();for(var a,s=a,l=[],u=[],c=[],h=[],d=[],p=[],f=[],g=W_(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v{var e,n={},i=(Object(l.k)(t,(function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type){t=t.getData();for(var i=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a{var e=t.model.get("startValue");return e=e||0,t.toGlobalCoord(t.dataToCoord("log"!==t.type||0{t=t.get("realtimeSort",!0);var n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}})(t,c),f=(p&&this._enableRealtimeSort(p,l,n),t.get("clip",!0)||p),g=(n=l,a=(r=c).getArea&&r.getArea(),!pb(r,"cartesian2d")||"category"===(r=r.getBaseAxis()).type&&r.onBand||(n=n.getLayout("bandWidth"),r.isHorizontal()?(a.x-=n,a.width+=2*n):(a.y-=n,a.height+=2*n)),a),y=(s.removeClipPath(),t.get("roundCap",!0)),m=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),x=v.get("borderRadius")||0,_=[],b=this._backgroundEls,w=i&&i.isInitSort,S=i&&"changeAxisOrder"===i.type;function M(t){var e=cw[c.type](l,t),n=(n=o,new("polar"===c.type?bp:qr)({shape:xw(n,e,c),silent:!0,z2:0}));return n.useStyle(v.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",x):n.setShape("cornerRadius",x),_[t]=n}l.diff(u).add((function(e){var n,i,r=l.getItemModel(e),a=cw[c.type](l,e,r);m&&M(e),l.hasValue(e)&&uw[c.type](a)&&(n=!1,f&&(n=iw[c.type](g,a)),i=ow[c.type](t,l,e,a,o,d,h.model,!1,y),p&&(i.forceLabelAnimation=!0),dw(i,l,e,r,a,t,o,"polar"===c.type),w?i.attr({shape:a}):p?rw(p,d,i,a,e,o,!1,!1):xs(i,{shape:a},t,e),l.setItemGraphicEl(e,i),s.add(i),i.ignore=n)})).update((function(e,n){var i,r=l.getItemModel(e),a=cw[c.type](l,e,r),I=(m&&(I=void 0,0===b.length?I=M(n):((I=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===c.type?I.setShape("r",x):I.setShape("cornerRadius",x),_[e]=I),i=cw[c.type](l,e),vs(I,{shape:xw(o,i,c)},d,e)),u.getItemGraphicEl(n));l.hasValue(e)&&uw[c.type](a)?(i=!1,f&&(i=iw[c.type](g,a))&&s.remove(I),I?Ms(I):I=ow[c.type](t,l,e,a,o,d,h.model,!!I,y),p&&(I.forceLabelAnimation=!0),S?(n=I.getTextContent())&&null!=(n=Es(n)).prevValue&&(n.prevValue=n.value):dw(I,l,e,r,a,t,o,"polar"===c.type),w?I.attr({shape:a}):p?rw(p,d,I,a,e,o,!0,S):vs(I,{shape:a},t,e,null),l.setItemGraphicEl(e,I),I.ignore=i,s.add(I)):s.remove(I)})).remove((function(e){var n=u.getItemGraphicEl(e);n&&Ss(n,t,e)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new qn);I.removeAll();for(var O=0;O<_.length;++O)I.add(_[O]);s.add(I),this._backgroundEls=_,this._data=l},nw.prototype._renderLarge=function(t,e,n){this._clear(),mw(t,this.group),this._updateLargeClip(t)},nw.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),mw(e,this.group,this._progressiveEls,!0)},nw.prototype._updateLargeClip=function(t){t=t.get("clip",!0)&&db(t.coordinateSystem,!1,t);var e=this.group;t?e.setClipPath(t):e.removeClipPath()},nw.prototype._enableRealtimeSort=function(t,e,n){var i,o,r=this;e.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(o=function(t){return t=e.getItemGraphicEl(t),t=t&&t.shape,t&&Math.abs(i.isHorizontal()?t.height:t.width)||0},this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)))},nw.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var o=n(e);i.push({dataIndex:e,mappedValue:null==o?NaN:o,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(l.H)(i,(function(t){return t.ordinalNumber}))}},nw.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left");c=ks(i),Cs(t,c,{labelFetcher:r,labelDataIndex:n,defaultText:j_(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h}),u=t.getTextContent(),s&&u&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,((t,e,n,i)=>{if(Object(l.z)(i))t.setTextConfig({rotation:i});else if(Object(l.t)(e))t.setTextConfig({rotation:0});else{i=t.shape;var o,r=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(r+a)/2;i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-o,"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}})(t,"outside"===s?h:s,hw(a),i.get(["label","rotate"]))),zs(u,c,r.getRawValue(n),(function(t){return R_(e,t)})),h=i.getModel(["emphasis"]);as(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),cs(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",Object(l.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var pw,fw=function(){},gw=(a(yw,pw=Ar),yw.prototype.getDefaultShape=function(){return new fw},yw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l{for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=r.length/3;cn?_:x,(g=Math.abs(p.label.y-n))>=f.maxY&&(m=p.label.x-e-p.len2*o,y=i+p.len,m=Math.abs(m)t.unconstrainedWidth)?s:null,i.setStyle("width",l)),u=i.getBoundingRect(),o.width=u.width,e=(i.style.margin||0)+2.1,o.height=u.height+e,o.y-=(o.height-a)/2)}function Aw(t){return"center"===t.position}function Lw(t){var e,n,i=t.getData(),o=[],r=!1,a=(t.get("minShowLabelAngle")||0)*Cw,s=i.getLayout("viewRect"),u=i.getLayout("r"),c=s.width,h=s.x,d=s.y;s=s.height;function p(t){t.ignore=!0}if(i.each((function(t){var s,d,f,g,y,m,v,x,_,b,w=i.getItemGraphicEl(t),S=w.shape,M=w.getTextContent(),I=w.getTextGuideLine(),O=(t=i.getItemModel(t),t.getModel("label")),T=O.get("position")||t.get(["emphasis","label","position"]),C=O.get("distanceToLabelLine"),k=O.get("alignTo"),D=oi(O.get("edgeDistance"),c),A=O.get("bleedMargin"),L=(t=t.getModel("labelLine"),oi(t.get("length"),c)),P=oi(t.get("length2"),c);Math.abs(S.endAngle-S.startAngle){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1})(M)&&(b=(S.startAngle+S.endAngle)/2,s=Math.cos(b),d=Math.sin(b),e=S.cx,n=S.cy,f="inside"===T||"inner"===T,v="center"===T?(g=S.cx,y=S.cy,"center"):(g=(v=(f?(S.r+S.r0)/2*s:S.r*s)+e)+3*s,y=(x=(f?(S.r+S.r0)/2*d:S.r*d)+n)+3*d,f||(m=v+s*(L+u-S.r),S=x+d*(L+u-S.r),_=m+(s<0?-1:1)*P,g="edge"===k?s<0?h+D:h+c-D:_+(s<0?-C:C),m=[[v,x],[m,y=S],[_,S]]),f?"center":"edge"===k?0{if(n<=180&&0=e.r0},Ew.type="pie";var zw=Ew;function Vw(t,e,n){e=Object(l.t)(e)?{coordDimensions:e}:Object(l.m)({encodeDefine:t.getEncode()},e);var i=t.getSource();e=w_(i,e).dimensions,e=new b_(e,t);return e.initData(i,n),e}function Bw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}Bw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Bw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Bw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Bw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Fw,Gw=Bw,Hw=zi();function Ww(){return null!==Fw&&Fw.apply(this,arguments)||this}a(Ww,Fw=Md),Ww.prototype.init=function(t){Fw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},Ww.prototype.mergeOption=function(){Fw.prototype.mergeOption.apply(this,arguments)},Ww.prototype.getInitialData=function(){return Vw(this,{coordDimensions:["value"],encodeDefaulter:l.h(Cu,this)})},Ww.prototype.getDataParams=function(t){var e,n=this.getData(),i=Hw(n),o=i.seats;o||(e=[],n.each(n.mapDimension("value"),(function(t){e.push(t)})),o=i.seats=ui(e,n.hostModel.get("percentPrecision"))),i=Fw.prototype.getDataParams.call(this,t);return i.percent=o[t]||0,i.$vars.push("percent"),i},Ww.prototype._defaultLabelLine=function(t){Ti(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},Ww.type="series.pie",Ww.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"};var Yw,Xw=Ww;function Uw(){var t=null!==Yw&&Yw.apply(this,arguments)||this;return t.type=Uw.type,t.hasSymbolVisual=!0,t}a(Uw,Yw=Md),Uw.prototype.getInitialData=function(t,e){return D_(null,this,{useEncodeDefaulter:!0})},Uw.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},Uw.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},Uw.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Uw.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},Uw.type="series.scatter",Uw.dependencies=["grid","polar","geo","singleAxis","calendar"],Uw.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"}};var Zw,qw=Uw,Kw=function(){},Qw=(a($w,Zw=Ar),$w.prototype.getDefaultShape=function(){return new Kw},$w.prototype.reset=function(){this.notClear=!1,this._off=0},$w.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=(e=t.getContext?t.getContext():t,e&&o[0]<4),l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;n=t},_S.prototype.isBlank=function(){return this._isBlank},_S.prototype.setBlank=function(t){this._isBlank=t},Zs=_S,no(Zs);var bS=Zs;function wS(t){return"interval"===t.type||"log"===t.type}function SS(t,e,n,i){var o={},r=t[1]-t[0];r=o.interval=yi(r/e,!0),null!=n&&ri[1]&&(i[0]=i[1]),o}function MS(t){var e=Math.pow(10,gi(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ri(t*e)}function IS(t){return si(t)+2}function OS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function TS(t,e){return t>=e[0]&&t<=e[1]}function CS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kS(t,e){return t*(e[1]-e[0])+e[0]}a(AS,DS=bS),AS.prototype.parse=function(t){return null==t?NaN:Object(l.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},AS.prototype.contain=function(t){return TS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},AS.prototype.normalize=function(t){return CS(t=this._getTickNumber(this.parse(t)),this._extent)},AS.prototype.scale=function(t){return t=Math.round(kS(t,this._extent)),this.getRawOrdinalNumber(t)},AS.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},AS.prototype.getMinorTicks=function(t){},AS.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o=t},AS.prototype.getOrdinalMeta=function(){return this._ordinalMeta},AS.prototype.calcNiceTicks=function(){},AS.prototype.calcNiceExtent=function(){},AS.type="ordinal";var DS;Ws=AS;function AS(t){t=DS.call(this,t)||this,t.type="ordinal";var e=(e=t.getSetting("ordinalMeta"))||new yS({});return Object(l.t)(e)&&(e=new yS({categories:Object(l.H)(e,(function(t){return Object(l.A)(t)?t.value:t}))})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}bS.registerClass(Ws);var LS,PS=Ws,jS=ri;a(RS,LS=bS),RS.prototype.parse=function(t){return t},RS.prototype.contain=function(t){return TS(t,this._extent)},RS.prototype.normalize=function(t){return CS(t,this._extent)},RS.prototype.scale=function(t){return kS(t,this._extent)},RS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},RS.prototype.unionExtent=function(t){var e=this._extent;t[0]i[0]&&c{switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}})(Sl(this._minLevelUnit))]||xl.second,e,this.getSetting("locale"))},zS.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(l.C(n))r=n;else if(l.w(n))r=n(t.value,e,{level:t.level});else{var a=l.m({},ml);if(0{var o=bl,r=0;function a(t,o,r){var a=[],s=!o.length;if(!((t,e,n,i)=>{function o(t){return Ol(h,t,i)===Ol(d,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function c(){return u()&&o("second")}var h=fi(e),d=fi(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return c();case"millisecond":return c()&&o("millisecond")}})(Sl(t),i[0],i[1],n)){s&&(o=[{value:((t,e,n)=>{var i=new Date(t);switch(Sl(e)){case"year":case"month":i[jl(n)](0);case"day":i[Rl(n)](1);case"hour":i[Nl(n)](0);case"minute":i[El(n)](0);case"second":i[zl(n)](0),i[Vl(n)](0)}return i.getTime()})(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,c=0;ct===Sl(t))(o[d])){a(o[d],s[s.length-1]||[],u);var f=o[d+1]?Sl(o[d+1]):null;if(p!==f){if(u.length){h=c,u.sort((function(t,e){return t.value-e.value}));for(var g=[],y=0;y=i[0]&&m<=i[1]&&c++)}if(p=(i[1]-i[0])/e,1.5*p=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return 0n&&(this._approxInterval=n),i=VS.length,t=Math.min(((t,e,n,i)=>{for(;n>>1;t[o][1]{if(t&&e)return null!=(t=t[Pb(e)])&&null!=n?t[Lb(n)]:t})(d,o.axis))&&(r=1/0,l.k(d,(function(t){r=Math.min(t.offset,r)})),a=-1/0,l.k(d,(function(t){a=Math.max(t.offset+t.width,a)})),r=Math.abs(r),a=Math.abs(a),i+=a/(o=r+a)*(s=(d=i-u)/(1-(r+a)/s)-d),u-=r/o*s),t=(d={min:u,max:i}).min,h=d.max),{extent:[t,h],fixMin:c.minFixed,fixMax:c.maxFixed}}function aM(t,e){var n=rM(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof $S&&(t.base=e.get("logBase")),t.type),a=e.get("interval");r="interval"===r||"time"===r;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function sM(t,e){if(e=e||t.get("type"))switch(e){case"category":return new PS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(bS.getClass(e)||ES)}}function lM(t){var e,n,i,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=o,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):l.C(o)?(n=o,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):l.w(o)?(e=o,function(n,i){return null!=r&&(i=n.value-r),e(uM(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function uM(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function cM(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof PS?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=lM(t),u=1;40=n[0]&&t<=n[1]})),{labels:l.H(s,(function(n){var i={value:n};return{formattedLabel:e(i),rawLabel:t.scale.getLabel(i),tickValue:n}}))}):"category"===t.type?(r=(s=t).getLabelModel(),a=MM(s,r),!r.get("show")||s.scale.isBlank()?{labels:[],labelCategoryInterval:a.labelCategoryInterval}:a):(r=(i=t).scale.getTicks(),o=lM(i),{labels:l.H(r,(function(t,e){return{level:t.level,formattedLabel:o(t,e),rawLabel:i.scale.getLabel(t),tickValue:t.value}}))})}function SM(t,e){var n,i,o,r,a,s,u=t.getTickModel().get("customValues");return u?(n=t.scale.getExtent(),u=bM(t,u),{ticks:l.n(u,(function(t){return t>=n[0]&&t<=n[1]}))}):"category"===t.type?(u=e,r=IM(e=t,"ticks"),a=hM(u),(s=OM(r,a))||(u.get("show")&&!e.scale.isBlank()||(i=[]),i=l.w(a)?kM(e,a,!0):"auto"===a?(s=MM(e,e.getLabelModel()),o=s.labelCategoryInterval,l.H(s.labels,(function(t){return t.tickValue}))):CM(e,o=a,!0),TM(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:l.H(t.scale.getTicks(),(function(t){return t.value}))}}function MM(t,e){var n,i=IM(t,"labels"),o=(e=hM(e),OM(i,e));return o||TM(i,e,{labels:l.w(e)?kM(t,e):CM(t,n="auto"===e?null!=(i=_M(o=t).autoInterval)?i:_M(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function IM(t,e){return _M(t)[e]||(_M(t)[e]=[])}function OM(t,e){for(var n=0;nu[1],h(n[0].coord,u[0])&&(t?n[0].coord=u[0]:n.shift()),t&&h(u[0],n[0].coord)&&n.unshift({coord:u[0]}),h(u[1],i.coord)&&(t?i.coord=u[1]:n.pop()),t)&&h(i.coord,u[1])&&n.push({coord:u[1]}),c},AM.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),t=this.scale.getMinorTicks(t=0e[1]&&e.reverse(),e},jM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},jM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var RM=jM;function NM(t,e,n){n=n||{};t=t.coordinateSystem;var i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,u=(i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],{left:0,right:1,top:0,bottom:1,onZero:2}),c=e.get("offset")||0,h=(c="x"===i?[t[2]-c,t[3]+c]:[t[0]-c,t[1]+c],r&&(h=r.toGlobalCoord(r.dataToCoord(0)),c[u.onZero]=Math.max(Math.min(h,c[1]),c[0])),o.position=["y"===i?c[u[s]]:t[0],"x"===i?c[u[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?c[u[a]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function EM(t){return"cartesian2d"===t.get("coordinateSystem")}function zM(t){var e={xAxisModel:null,yAxisModel:null};return l.k(e,(function(n,i){var o=i.replace(/Model$/,"");o=t.getReferringComponents(o,Gi).models[0];e[i]=o})),e}var VM=Math.log;function BM(t,e,n){var i=ES.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=(n=i.getInterval.call(n),e=rM(t,e),e.extent),l=e.fixMin,u=(e=e.fixMax,"log"===t.type&&(u=VM(t.base),s=[VM(s[0])/u,VM(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),c=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),h=s[0],d=s[1];if(l&&e)c=(d-h)/a;else if(l)for(d=s[0]+c*a;ds[0]&&isFinite(h)&&isFinite(s[0]);)c=MS(c),h=s[1]-c*a;else u=(c=a{var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if((a="auto"===a&&i.handleAutoShown?i.handleAutoShown("axisTick"):a)&&!o.scale.isBlank()){a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length");for(var s=JM(o.getTicksCoords(),e.transform,i,Object(l.i)(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u{var o,r,a,s,u,c,h,d,p=n.axis,f=Object(l.O)(i.axisLabelShow,n.get(["axisLabel","show"]));if(f&&!p.scale.isBlank())return o=n.getModel("axisLabel"),r=o.get("margin"),a=p.getViewLabels(),f=(Object(l.O)(i.labelRotate,o.get("rotate"))||0)*XM/180,s=UM.innerTextLayout(i.rotation,f,i.labelDirection),u=n.getCategories&&n.getCategories(!0),c=[],h=UM.isLabelSilent(n),d=n.get("triggerEvent"),Object(l.k)(a,(function(f,g){var y="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,m=f.formattedLabel,v=f.rawLabel,x=o,_=(x=u&&u[y]&&(_=u[y],Object(l.A)(_))&&_.textStyle?new el(_.textStyle,o,n.ecModel):x).getTextColor()||n.get(["axisLine","lineStyle","color"]),b=p.dataToCoord(y),w=x.getShallow("align",!0)||s.textAlign,S=Object(l.P)(x.getShallow("alignMinLabel",!0),w),M=Object(l.P)(x.getShallow("alignMaxLabel",!0),w),I=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||s.textVerticalAlign,O=Object(l.P)(x.getShallow("verticalAlignMinLabel",!0),I),T=Object(l.P)(x.getShallow("verticalAlignMaxLabel",!0),I),C=new pa({x:b,y:i.labelOffset+i.labelDirection*r,rotation:s.rotation,silent:h,z2:10+(f.level||0),style:Ds(x,{text:m,align:0===g?S:g===a.length-1?M:w,verticalAlign:0===g?O:g===a.length-1?T:I,fill:Object(l.w)(_)?_("category"===p.type?v:"value"===p.type?y+"":y,g):_})});C.anid="label_"+y,Gf({el:C,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return C.isTruncated},value:v,tickIndex:g}}),d&&((b=UM.makeAxisEventDataBase(n)).targetType="axisLabel",b.value=v,b.tickIndex=g,"category"===p.type&&(b.dataIndex=y),fa(C).eventData=b),e.add(C),C.updateTransform(),c.push(C),t.add(C),C.decomposeTransform()})),c})(n,i,e,t),d=(r=h,c=c,dM((o=e).axis)||(f=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),m=(r=r||[])[0],g=r[1],a=r[r.length-1],r=r[r.length-2],s=(c=c||[])[0],y=c[1],u=c[c.length-1],c=c[c.length-2],!1===f?(KM(m),KM(s)):QM(m,g)&&(f?(KM(g),KM(y)):(KM(m),KM(s))),!1===o?(KM(a),KM(u)):QM(r,a)&&(o?(KM(r),KM(c)):(KM(a),KM(u)))),n),p=i,f=e,g=t.tickDirection,y=f.axis,m=f.getModel("minorTick");if(m.get("show")&&!y.scale.isBlank()){var v=y.getMinorTicksCoords();if(v.length){y=m.getModel("lineStyle");for(var x=g*m.get("length"),_=Object(l.i)(y.getLineStyle(),Object(l.i)(f.getModel("axisTick").getLineStyle(),{stroke:f.get(["axisLine","lineStyle","color"])})),b=0;bh[1]?-1:1,r=["start"===d?h[0]-r*c:"end"===d?h[1]+r*c:(h[0]+h[1])/2,$M(d)?t.labelOffset+u*c:0],null!=(c=e.get("nameRotate"))&&(c=c*XM/180),$M(d)?a=UM.innerTextLayout(t.rotation,null!=c?c:t.rotation,u):(a=((t,e,n,i)=>{var o;n=hi(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=di(n-XM/2)?(o=i?"bottom":"top","center"):di(n-1.5*XM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*XM&&XM/2{var a=e.getModel("axisPointer"),s={};return Object(l.k)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Object(l.d)(a.get(t))})),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line"),null==(e=s.label||(s.label={})).show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&Object(l.i)(e,o.textStyle)),t.model.getModel("axisPointer",new el(s,n,i))})(h,u,r,i,o,c):f).get("snap"),o=f.get("triggerEmphasis"),d=rI(h.model),p=c||g||"category"===h.type,c=n.axesInfo[d]={key:d,axis:h,coordSys:t,axisPointerModel:f,triggerTooltip:c,triggerEmphasis:o,involveSeries:p,snap:g,useHandle:oI(f),seriesModels:[],linkGroup:null},e[d]=c,n.seriesInvolved=n.seriesInvolved||p,null!=(o=((t,e)=>{for(var n=e.model,i=e.dim,o=0;ou[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s){var n,i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i)return n=$g(t.getItemVisual(e,"symbolSize")),i=Qg(i,-1,-1,2,2),t=t.getItemVisual(e,"symbolRotate")||0,i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:t*Math.PI/180||0}),i})(r,a);u&&(e[u.__dimIdx=l]?(u.setPosition(e[l]),i[s?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),o.add(u))}}function c(t){return l.H(t,(function(t){return[o.cx,o.cy]}))}a.diff(s).add((function(e){var n,i,o,r,s=a.getItemLayout(e);s&&(n=new Dp,i=new jp,o={shape:{points:s}},n.shape.points=c(s),i.shape.points=c(s),xs(n,o,t,e),xs(i,o,t,e),o=new qn,r=new qn,o.add(i),o.add(n),o.add(r),u(i.shape.points,s,r,a,e,!0),a.setItemGraphicEl(e,o))})).update((function(e,n){n=s.getItemGraphicEl(n);var i=n.childAt(0),o=n.childAt(1),r=n.childAt(2),l={shape:{points:a.getItemLayout(e)}};l.shape.points&&(u(i.shape.points,l.shape.points,r,a,e,!1),Ms(o),Ms(i),vs(i,l,t),vs(o,l,t),a.setItemGraphicEl(e,n))})).remove((function(t){r.remove(s.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill,h=(i=(r.add(t),i.useStyle(l.i(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),cs(i,n,"lineStyle"),cs(o,n,"areaStyle"),n.getModel("areaStyle")),i.isEmpty()&&i.parentModel.isEmpty()),d=(i=(o.ignore=h,l.k(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]);e=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=e&&h})),o.useStyle(l.i(i.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal})),n.getModel("emphasis")),i.getModel("itemStyle").getItemStyle());s.eachChild((function(t){t instanceof Vr?(i=t.style,t.useStyle(l.m({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},u))):(t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0),t.ensureState("emphasis").style=l.d(d);var i=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);null!=i&&!isNaN(i)||(i=""),Cs(t,ks(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:u.opacity})})),as(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))})),this._data=a},jI.prototype.remove=function(){this.group.removeAll(),this._data=null},jI.type="radar";var RI,NI=jI;function EI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type=EI.type,t.hasSymbolVisual=!0,t}a(EI,RI=Md),EI.prototype.init=function(t){RI.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this))},EI.prototype.getInitialData=function(t,e){return Vw(this,{generateCoord:"indicator_",generateCoordCount:1/0})},EI.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(t),a=(r=""===r?this.name:r,sd(this,t));return Jh("section",{header:r,sortBlocks:!0,blocks:l.H(o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Jh("nameValue",{markerType:"subItem",markerColor:a,name:e.name,value:n,sortParam:n})}))})},EI.prototype.getTooltipPosition=function(t){if(null!=t)for(var e,n=this.getData(),i=this.coordinateSystem,o=n.getValues(l.H(i.dimensions,(function(t){return n.mapDimension(t)})),t),r=0,a=o.length;r>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function eT(t,e){var n,i,o;return t=(n=t).UTF8Encoding?(null==(o=(i=n).UTF8Scale)&&(o=1024),l.k(i.features,(function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=tT(i,n,o);break;case"Polygon":case"MultiLineString":JO(i,n,o);break;case"MultiPolygon":l.k(i,(function(t,e){return JO(t,n[e],o)}))}})),i.UTF8Encoding=!1,i):n,l.H(l.n(t.features,(function(t){return t.geometry&&t.properties&&0{for(var e,n=0;n{if("china"===t){for(var n=0;n{for(var e=[],n=!u&&s&&s.project,i=0;i{if(e){for(var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=lC(s),r=uC(r),s&&r;){o=lC(o),a=uC(a),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);0{var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i})(((t,e,n)=>t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n)(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!lC(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!uC(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,n=t)}return n})(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function rC(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function aC(t){return arguments.length?t:cC}function sC(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function lC(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function uC(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function cC(t,e){return t.parentNode===e.parentNode?1:2}var hC,dC,pC=function(){this.parentPoint=[],this.childPoints=[]},fC=(a(gC,hC=Ar),gC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},gC.prototype.getDefaultShape=function(){return new pC},gC.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)t.moveTo(o[0],o[1]),t.lineTo(r[0],r[1]);else{var s=e.orient,l="TB"===s||"BT"===s?0:1,u=(s=1-l,e=oi(e.forkPosition,1),[]);u[l]=o[l],u[s]=o[s]+(a[s]-o[s])*e,t.moveTo(o[0],o[1]),t.lineTo(u[0],u[1]),t.moveTo(r[0],r[1]),u[l]=r[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var c=1;ce.x)||(y-=Math.PI)),f=m?"left":"right",e=(g=(u=s.getModel("label")).get("rotate"))*(Math.PI/180),m=r.getTextContent())&&(r.setTextConfig({position:u.get("position")||f,rotation:null==g?-y:e,origin:"center"}),m.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),u="relative"===r?l.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,u&&(fa(n).focus=u),o),g=a,y=c,m=(e=n,d),v=(s=h,r=p,u=i,o=g.getModel(),c=f.get("edgeShape"),d=f.get("layout"),h=f.getOrient(),p=f.get(["lineStyle","curveness"]),i=f.get("edgeForkPosition"),o.getModel("lineStyle").getLineStyle()),x=e.__edge;if("curve"===c)g.parentNode&&g.parentNode!==y&&vs(x=x||(e.__edge=new Yp({shape:wC(d,h,p,m,m)})),{shape:wC(d,h,p,s,r)},f);else if("polyline"===c&&"orthogonal"===d&&g!==y&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var _=g.children,b=[],w=0;w<_.length;w++){var S=_[w].getLayout();b.push([S.x,S.y])}vs(x=x||(e.__edge=new fC({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:i}})),{shape:{parentPoint:[r.x,r.y],childPoints:b}},f)}x&&("polyline"!==c||g.isExpand)&&(x.useStyle(l.i({strokeNoScale:!0,fill:null},v)),cs(x,o,"lineStyle"),Wa(x),u.add(x)),n.__edge&&(n.onHoverStateChange=function(e){var i;"blur"===e||(i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex))&&i.hoverState===_a||Fa(n.__edge,e)})}function xC(t,e,n,i,o){var r,a,s=_C(e.tree.root,t),l=s.source;s=s.sourceLayout,t=e.getItemGraphicEl(t.dataIndex);t&&(e=e.getItemGraphicEl(l.dataIndex).__edge,r=t.__edge||(!1===l.isExpand||1===l.children.length?e:void 0),t=i.get("edgeShape"),l=i.get("layout"),e=i.get("orient"),a=i.get(["lineStyle","curveness"]),r)&&("curve"===t?bs(r,{shape:wC(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&bs(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function _C(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function bC(t,e,n,i,o){var r=t.tree.getNodeByDataIndex(e),a=_C(t.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};bs(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach((function(e){xC(e,t,i,o,s)})),xC(r,t,i,o,s)}function wC(t,e,n,i,o){var r,a,s,l,u,c,h,d,p,f,g;return"radial"===t?(u=i.rawX,h=o.rawX,d=o.rawY,t=sC(u,c=i.rawY),p=sC(u,c+(d-c)*n),f=sC(h,d+(c-d)*n),g=sC(h,d),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,c=i.y,h=o.x,d=o.y,"LR"!==e&&"RL"!==e||(r=u+(h-u)*n,a=c,s=h+(u-h)*n,l=d),"TB"!==e&&"BT"!==e||(r=u,a=c+(d-c)*n,s=h,l=d+(c-d)*n),{x1:u,y1:c,x2:h,y2:d,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}a(yC,dC=Jf),yC.prototype.init=function(t,e){this._controller=new sO(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},yC.prototype.render=function(t,e,n){var i=t.getData(),o=t.layoutInfo,r=this._mainGroup,a=("radial"===t.get("layout")?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n),this._data);i.diff(a).add((function(e){mC(i,e)&&vC(i,e,null,r,t)})).update((function(e,n){var o=a.getItemGraphicEl(n);mC(i,e)?vC(i,e,o,r,t):o&&bC(a,n,o,r,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&bC(a,e,n,r,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},yC.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[],o=(n.each((function(t){t=n.getItemLayout(t),!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])})),[]),r=[],a=(Fo(i,o,r),this._min),s=this._max;r[0]-o[0]==0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]==0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1),a=t.coordinateSystem=new VT;a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),a.setCenter(t.get("center"),e),a.setZoom(t.get("zoom")),this.group.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY}),this._min=o,this._max=r},yC.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!dO(e,n,t)})),o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){lO(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uO(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},yC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},yC.prototype._getNodeGlobalScale=function(t){var e,n;t=t.coordinateSystem;return"view"!==t.type?1:(e=this._nodeScaleRatio,n=t.scaleX||1,((t.getZoom()-1)*e+1)/n)},yC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},yC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},yC.type="tree";var SC=yC,MC=zi();function IC(t,e){var n;return MC(n=this).mainData===n?DC((n=Object(l.m)({},MC(this).datas))[this.dataType]=e,n,t):AC(e,this.dataType,MC(this).mainData,t),e}function OC(t,e){return t.struct&&t.struct.update(),e}function TC(t,e){return Object(l.k)(MC(e).datas,(function(n,i){n!==e&&AC(n.cloneShallow(),i,e,t)})),e}function CC(t){var e=MC(this).mainData;return null==t||null==e?e:MC(e).datas[t]}function kC(){var t=MC(this).mainData;return null==t?[{data:t}]:Object(l.H)(Object(l.F)(MC(t).datas),(function(e){return{type:e,data:MC(t).datas[e]}}))}function DC(t,e,n){MC(t).datas={},Object(l.k)(e,(function(e,i){AC(e,i,t,n)}))}function AC(t,e,n,i){MC(n).datas[e]=t,MC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=CC,t.getLinkedDataAll=kC}var LC=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,DC(e,n,t),Object(l.k)(n,(function(n){Object(l.k)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(l.h)(IC,t))}))})),e.wrapMethod("cloneShallow",Object(l.h)(TC,t)),Object(l.k)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(l.h)(OC,t))})),Object(l.b)(n[e.dataType]===e)},PC=(jC.prototype.isRemoved=function(){return this.dataIndex<0},jC.prototype.eachNode=function(t,e,n){l.w(t)&&(n=e,e=t,t=null);var i,o=(t=l.C(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},jC.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;eo&&(o=t.depth)}));var r=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r})),i.data},HC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},HC.prototype.setZoom=function(t){this.option.zoom=t},HC.prototype.setCenter=function(t){this.option.center=t},HC.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),a=(i=r.getValue(),r.name);r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Jh("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},HC.prototype.getDataParams=function(t){var e=EC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=GC(t,this),e.collapsed=!t.isExpand,e},HC.type="series.tree",HC.layoutMode="box",HC.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};var WC=HC;function YC(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function XC(t,e){t.eachSeriesByType("tree",(function(t){var n=((t,e)=>tu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}))(t,n=e),i=(t.layoutInfo=n,t.get("layout")),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,aC((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,r=n.height,aC());var s,l,u,c,h,d,p,f,g,y=(n=t.getData().tree.root).children[0];if(y){var m=n;m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var v,x,_=[m];v=_.pop();)if(x=v.children,v.isExpand&&x.length)for(var b=x.length-1;0<=b;b--){var w=x[b];w.hierNode={defaultAncestor:null,ancestor:w,prelim:0,modifier:0,change:0,shift:0,i:b,thread:null},_.push(w)}for(var S,M=oC,I=a,O=[y],T=[];S=O.pop();)if(T.push(S),S.isExpand){var C=S.children;if(C.length)for(var k=0;kl.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)})),n=s===l?1:a(s,l)/2,c=n-s.getLayout().x,f=p=d=h=0,"radial"===i?(h=o/(l.getLayout().x+n+c),d=r/(u.depth-1||1),YC(y,(function(t){p=(t.getLayout().x+c)*h,f=(t.depth-1)*d;var e=sC(p,f);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:f},!0)}))):"RL"===(g=t.getOrient())||"LR"===g?(d=r/(l.getLayout().x+n+c),h=o/(u.depth-1||1),YC(y,(function(t){f=(t.getLayout().x+c)*d,p="LR"===g?(t.depth-1)*h:o-(t.depth-1)*h,t.setLayout({x:p,y:f},!0)}))):"TB"!==g&&"BT"!==g||(h=o/(l.getLayout().x+n+c),d=r/(u.depth-1||1),YC(y,(function(t){p=(t.getLayout().x+c)*h,f="TB"===g?(t.depth-1)*d:r-(t.depth-1)*d,t.setLayout({x:p,y:f},!0)})))}}))}function UC(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();t=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(l.m)(t,n)}))}))}var ZC,qC=["treemapZoomToNode","treemapRender","treemapMove"];function KC(t){for(var e=0;e{var n,i,o,r=Oi(e.get("color"));e=Oi(e.get(["aria","decal","decals"]));if(r)return t=t||[],l.k(t,(function(t){t=new el(t);var e=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||e&&"none"!==e)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)})),o=t[0]||(t[0]={}),n||(o.color=r.slice()),!i&&e&&(o.decal=e.slice()),t})(i,e),l.H(i||[],(function(t){return new el(t,r,e)}),this)),s=zC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=s.getNodeByDataIndex(e),e=e?a[e.depth]:null,t.parentModel=e||r,t}))}));return s.data},$C.prototype.optionUpdated=function(){this.resetViewRoot()},$C.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return Jh("nameValue",{name:i.getName(t),value:o})},$C.prototype.getDataParams=function(t){var e=ZC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=GC(t,this),e.treePathInfo=e.treeAncestors,e},$C.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},l.m(this.layoutInfo,t)},$C.prototype.mapIdToIndex=function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=l.f(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},$C.prototype.getViewRoot=function(){return this._viewRoot},$C.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},$C.prototype.enableAriaDecal=function(){QC(this)},$C.type="series.treemap",$C.layoutMode="box",$C.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]};var JC=$C;function tk(t){this.group=new qn,t.add(this.group)}tk.prototype.render=function(t,e,n,i){var o,r,a,s,l=t.getModel("breadcrumb"),u=this.group;u.removeAll(),l.get("show")&&n&&(o=l.getModel("itemStyle"),r=l.getModel("emphasis"),a=o.getModel("textStyle"),s=r.getModel(["itemStyle","textStyle"]),e={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,e,a),this._renderContent(t,e,o,r,a,s,i),eu(u,e.pos,e.box))},tk.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Pi(i.getModel().get("name"),""),r=n.getTextRect(o);r=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},tk.prototype._renderContent=function(t,e,n,i,o,r,a){for(var s,u,c,h,d,p,f,g,y,m,v,x,_,b=0,w=e.emptyItemWidth,S=t.get(["breadcrumb","height"]),M=(s=e.pos,h=(u=e.box).width,u=u.height,d=oi(s.left,h),p=oi(s.top,u),f=oi(s.right,h),g=oi(s.bottom,u),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=u),c=Gl(c||0),{width:Math.max(f-d-c[1]-c[3],0),height:Math.max(g-p-c[0]-c[2],0)}),I=e.totalWidth,O=e.renderList,T=i.getModel("itemStyle").getItemStyle(),C=O.length-1;0<=C;C--){var k=O[C],D=k.node,A=k.width,L=(k=k.text,M.width{var i,o,r,a,s,l=fa(e);l.dataIndex=m.dataIndex,l.seriesIndex=h.seriesIndex,e.setShape({x:0,y:0,width:S,height:M,r:j}),(O?N:(e.invisible=!1,l=m.getVisual("style"),i=l.stroke,(o=pk(D)).fill=i,(r=dk(A)).fill=A.get("borderColor"),(a=dk(L)).fill=L.get("borderColor"),(s=dk(P)).fill=P.get("borderColor"),n?(n=S-2*I,E(e,i,l.opacity,{x:I,y:0,width:n,height:k})):e.removeTextContent(),e.setStyle(o),e.ensureState("emphasis").style=r,e.ensureState("blur").style=a,e.ensureState("select").style=s,Wa))(e),t.add(e)})(R,i,t&&v.upperLabelHeight),b=x.getModel("emphasis"),w=b.get("focus"),_=b.get("blurScope"),b=b.get("disabled"),w="ancestor"===w?m.getAncestorsIndices():"descendant"===w?m.getDescendantIndices():w,t?(ds(R)&&hs(R,!1),i&&(hs(i,!b),c.setItemGraphicEl(m.dataIndex,i),ss(i,w,_))):((t=V("content",ak,o,hk))&&((t,e)=>{(a=fa(e)).dataIndex=m.dataIndex,a.seriesIndex=h.seriesIndex;var n,i,o,r,a=Math.max(S-2*I,0),s=Math.max(M-2*I,0);e.culling=!0,e.setShape({x:I,y:I,width:a,height:s,r:j}),(O?N:(e.invisible=!1,a=m.getVisual("style"),s=a.fill,(n=pk(D)).fill=s,n.decal=a.decal,i=dk(A),o=dk(L),r=dk(P),E(e,s,a.opacity,null),e.setStyle(n),e.ensureState("emphasis").style=i,e.ensureState("blur").style=o,e.ensureState("select").style=r,Wa))(e),t.add(e)})(R,t),i.disableMorphing=!0,i&&ds(i)&&hs(i,!1),hs(R,!b),c.setItemGraphicEl(m.dataIndex,R),(o=x.getShallow("cursor"))&&t.attr("cursor",o),ss(R,w,_))),R}}function N(t){t.invisible||y.push(t)}function E(t,e,n,i){var o,r,a=x.getModel(i?lk:sk),s=Pi(x.get("name"),null),u=(a=a.getShallow("show"),Cs(t,ks(x,i?lk:sk),{defaultText:a?s:null,inheritColor:e,defaultOpacity:n,labelFetcher:h,labelDataIndex:m.dataIndex}),t.getTextContent());u&&(o=u.style,r=Object(l.M)(o.padding||0),i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i||t.shape).width-r[1]-r[3],0),n=Math.max((i||t.shape).height-r[0]-r[2],0);o.width===e&&o.height===n||u.setStyle({width:e,height:n})},o.truncateMinChar=2,o.lineOverflow="truncate",z(o,i,v),z((a=u.getState("emphasis"))?a.style:null,i,v))}function z(t,e,n){var i=t?t.text:null;!e&&n.isLeafRoot&&null!=i&&(e=h.get("drillDownIcon",!0),t.text=e?e+" "+i:i)}function V(t,e,n,i){var o,r,a=null!=C&&p[t][C],s=g[t];return a?(p[t][C]=null,o=a,r=(r=s)[T]={},o instanceof rk?(r.oldX=o.x,r.oldY=o.y):r.oldShape=Object(l.m)({},o.shape)):O||((a=new e)instanceof Lo&&(a.z2=n*uk+i),r=a,o=(o=s)[T]={},e=m.parentNode,r=r instanceof qn,!e||f&&"drillDown"!==f.direction||(i=n=0,e=g.background[e.getRawIndex()],!f&&e&&e.oldShape&&(n=e.oldShape.width,i=e.oldShape.height),r?(o.oldX=0,o.oldY=i):o.oldShape={x:n,y:i,width:0,height:0}),o.fadein=!r),d[t][T]=a}}!function t(e,n,i,o,r){function a(t){return t.getId()}function s(a,s){a=null!=a?e[a]:null,s=null!=s?n[s]:null;var l=c(a,s,i,r);l&&t(a&&a.viewChildren||[],s&&s.viewChildren||[],l,o,r+1)}o?(n=e,Object(l.k)(e,(function(t,e){t.isRemoved()||s(e,e)}))):new Zx(n,e,a,a).add(s).update(s).remove(Object(l.h)(s,null)).execute()}(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0),h=yk(),(t=s)&&Object(l.k)(t,(function(t,e){var n=h[e];Object(l.k)(t,(function(t){t&&(n.push(t),fk(t).willDelete=!0)}))}));var h,d=h;return this._oldTree=i,this._storage=a,this._controllerHost&&(o=this.seriesModel.layoutInfo,(t=i.root.getLayout()).width===o.width)&&t.height===o.height&&(this._controllerHost.zoom=1),{lastsForAnimation:r,willDeleteEls:d,renderFinally:function(){Object(l.k)(d,(function(t){Object(l.k)(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(l.k)(u,(function(t){t.invisible=!0,t.dirty()}))}}},gk.prototype._doAnimation=function(t,e,n,i){var o=n.get("animationDurationUpdate"),r=(n=n.get("animationEasing"),(Object(l.w)(o)?0:o)||0),a=(Object(l.w)(n)?null:n)||"cubicOut",s=new nk;Object(l.k)(e.willDeleteEls,(function(t,e){Object(l.k)(t,(function(t,n){var o,l,u;!t.invisible&&(u=fk(o=t.parent),u=i&&"drillDown"===i.direction?o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(l=o=0,u.willDelete||(o=u.nodeWidth/2,l=u.nodeHeight/2),"nodeGroup"===e?{x:o,y:l,style:{opacity:0}}:{shape:{x:o,y:l,width:0,height:0},style:{opacity:0}}))&&s.add(t,u,r,0,a)}))})),Object(l.k)(this._storage,(function(t,n){Object(l.k)(t,(function(t,i){i=e.lastsForAnimation[n][i];var o={};i&&(t instanceof qn?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Object(l.m)({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),s.add(t,o,r,0,a))}))}),this),this._state="animating",s.finished(Object(l.c)((function(){this._state="ready",e.renderFinally()}),this)).start()},gk.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost,i=(n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new sO(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Object(l.c)(this._onPan,this)),e.on("zoom",Object(l.c)(this._onZoom,this))),new wt(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},gk.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&t.dispose()},gk.prototype._onPan=function(t){var e;"animating"!==this._state&&(3=i.length||e===i[e.depth])&&(n=Wk(r,c,e,n,d,o),t(e,n,i,o))}))):(h=Vk(c),n.fill=h)}}(e,{},t.getViewRoot().getAncestors(),t)}};function zk(t,e,n){var i=Object(l.m)({},e),o=n.designatedVisualItemStyle;return Object(l.k)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var r=t.get(n);(o[n]=null)!=r&&(i[n]=r)})),i}function Vk(t){var e,n=Fk(t,"color");if(n)return e=Fk(t,"colorAlpha"),(t=Fk(t,"colorSaturation"))&&(n=Object(Oe.g)(n,null,null,t)),e?Object(Oe.f)(n,e):n}function Bk(t,e){return null!=e?Object(Oe.g)(e,null,null,t):null}function Fk(t,e){if(t=t[e],null!=t&&"none"!==t)return t}function Gk(t,e,n,i,o,r){if(r&&r.length){var a;r=Hk(e,"color")||null!=o.color&&"none"!==o.color&&(Hk(e,"colorAlpha")||Hk(e,"colorSaturation"));if(r)return o=e.get("visualMin"),a=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&on[1]&&(n[1]=a),o=e.get("colorMappingBy"),"color"!==(a={type:r.name,dataExtent:n,visual:r.range}).type||"index"!==o&&"id"!==o?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0),e=new jk(a),Nk(e).drColorMappingBy=o,e}}function Hk(t,e){return t=t.get(e),Object(l.t)(t)&&t.length?{name:e,range:t}:null}function Wk(t,e,n,i,o,r){var a,s;e=Object(l.m)({},e);return o&&(i="index"===(s="color"===(a=o.type)&&Nk(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var Yk=Math.max,Xk=Math.min,Uk=l.O,Zk=l.k,qk=["itemStyle","borderWidth"],Kk=["itemStyle","gapWidth"],Qk=["upperLabel","show"],$k=["upperLabel","height"],Jk={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,u=(n=tu(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),s.size||[]),c=oi(Uk(n.width,u[0]),r),h=(u=oi(Uk(n.height,u[1]),a),i&&i.type),d=VC(i,["treemapZoomToNode","treemapRootToNode"],t),p=(i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,t.getViewRoot()),f=BC(p);"treemapMove"!==h&&(h="treemapZoomToNode"===h?((t,e,n,i,o)=>{var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;for(var l=(e=i*o)*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,c=r.children,h=0,d=c.length;h{if(e)return{x:e.x,y:e.y};if(e={x:0,y:0},!n)return e;var i=(n=n.node).getLayout();if(!i)return e;for(var o=[i.width/2,i.height/2],r=n;r;){var a=r.getLayout();o[0]+=a.x,o[1]+=a.y,r=r.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}})(n,i,d),!0),t.setLayoutInfo(n),function t(e,n,i,o,r){var a=e.getLayout(),s=i[r],l=s&&s===e;if(!(s&&!l||r===i.length&&e!==o)){e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new wt(n.x-a.x,n.y-a.y,n.width,n.height);Zk(e.viewChildren||[],(function(e){t(e,u,i,o,r+1)}))}}(c,new wt(-n.x,-n.y,r,a),f,p,0)}};function tD(t,e,n,i,o,r){var a,s=t.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null),i=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!i)return t.viewChildren=[];s=l.n(s,(function(t){return!t.isRemoved()})),r=s,(a=u)&&r.sort((function(t,e){var n="asc"===a?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===a?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n}));var c=((t,e,n)=>{for(var i=0,o=0,r=e.length;oa[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}})(e,s,u);if(0===c.sum)return t.viewChildren=[];if(c.sum=((t,e,n,i,o)=>{if(i){for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*en[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h "+p)),c++)}var f;i=n.get("coordinateSystem"),"cartesian2d"===i||"polar"===i?f=D_(t,n):(i=(i=tc.get(i))&&i.dimensions||[],l.r(i,"value")<0&&i.concat(["value"]),i=w_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(f=new b_(i,n)).initData(t)),i=new b_(["value"],n);return i.initData(u,s),o&&o(f,i),LC({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}function wA(){var t=null!==xA&&xA.apply(this,arguments)||this;return t.type=wA.type,t.hasSymbolVisual=!0,t}a(wA,xA=Md),wA.prototype.init=function(t){xA.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Gw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wA.prototype.mergeOption=function(t){xA.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wA.prototype.mergeDefaultAndTheme=function(t){xA.prototype.mergeDefaultAndTheme.apply(this,arguments),Ti(t,"edgeLabel",["show"])},wA.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],o=(t=t.data||t.nodes||[],this);if(t&&i)return uD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},cD(n)),n=bA(t,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=el.prototype.getModel;function i(t,e){return t=n.call(this,t,e),t.resolveParentPath=r,t}function r(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))})),l.k(n.edges,(function(t){var e,n,i;e=t.node1,n=t.node2,t=t.dataIndex,uD(i=this)&&(e=hD(e,n,i),i=(n=i.__edgeMap)[dD(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))}),this),n.data},wA.prototype.getGraph=function(){return this.getData().graph},wA.prototype.getEdgeData=function(){return this.getGraph().edgeData},wA.prototype.getCategoriesData=function(){return this._categoriesData},wA.prototype.formatTooltip=function(t,e,n){var i,o,r;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),r=o.graph.getEdgeByIndex(t),i=o.getName(r.node1.dataIndex),o=o.getName(r.node2.dataIndex),r=[],null!=i&&r.push(i),null!=o&&r.push(o),Jh("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):hd({series:this,dataIndex:t,multipleSeries:e})},wA.prototype._updateCategoriesData=function(){var t=l.H(this.option.categories||[],(function(t){return null!=t.value?t:l.m({value:0},t)})),e=new b_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},wA.prototype.setZoom=function(t){this.option.zoom=t},wA.prototype.setCenter=function(t){this.option.center=t},wA.prototype.isAnimationEnabled=function(){return xA.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},wA.type="series.graph",wA.dependencies=["grid","polar","geo","singleAxis","calendar"],wA.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"}}};var SA,MA=wA,IA={type:"graphRoam",event:"graphRoam",update:"none"},OA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};function TA(t){return t=SA.call(this,t)||this,t.type="pointer",t}a(TA,SA=Ar),TA.prototype.getDefaultShape=function(){return new OA},TA.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.x-n(l=e.angle)*r*(o/3<=r?1:2),s=e.y-i(l)*r*(o/3<=r?1:2),l=e.angle-Math.PI/2;t.moveTo(a,s),t.lineTo(e.x+n(l)*r,e.y+i(l)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(l)*r,e.y-i(l)*r),t.lineTo(a,s)};var CA,kA=TA;function DA(t,e){var n=null==t?"":t+"";return e&&(Object(l.C)(e)?n=e.replace("{value}",n):Object(l.w)(e)&&(n=e(t))),n}function AA(){var t=null!==CA&&CA.apply(this,arguments)||this;return t.type=AA.type,t}a(AA,CA=Jf),AA.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:oi(r[0],o.getWidth()),cy:oi(r[1],o.getHeight()),r:oi(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},AA.prototype.dispose=function(){},AA.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?qb:bp,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),g=(c=[s,u],lr(c,!a),(u=c[1])-(s=c[0])),y=s,m=[],v=0;d&&v=t&&(0===e?0:i[e-1][0]){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),o=[],r="ascending"===e,a=0,s=t.count();ar&&(e[1-i]=e[i]+n.sign*r),e}function xL(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0l*(1-i[0])?(a="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=r.axisExpandWidth/n)?vL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[SL(0,u[1]*t/o-o/2)])[1]=wL(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}};var DL,AL=CL,LL={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var r=new AL(i,t,e);r.name="parallel_"+o,r.resize(i,e),(i.coordinateSystem=r).model=i,n.push(r)})),t.eachSeries((function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",Gi).models[0],t.coordinateSystem=e.coordinateSystem)})),n}};a(PL,DL=fu),PL.prototype.getAreaSelectStyle=function(){return io([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},PL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=l.d(t);if(e)for(var n=e.length-1;0<=n;n--)ai(e[n])},PL.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(+t))if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i("e"!==(t=[dP(t,e[0]),dP(t,e[1])])[0]&&"w"!==t[0]||t.reverse(),t.join("")))(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?YL[n]+"-resize":null})}))}function uP(t,e,n,i,o,r,a){n=e.childOfName(n);n&&n.setShape((n=yP(t,e,[[i,o],[i+r,o+a]]),t=EL(n[0][0],n[1][0]),e=EL(n[0][1],n[1][1]),i=zL(n[0][0],n[1][0]),n=zL(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function cP(t){return Object(l.i)({strokeNoScale:!0},t.brushStyle)}function hP(t,e,n,i){var o=[EL(t,n),EL(e,i)];t=[zL(t,n),zL(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function dP(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[jf({w:"left",e:"right",n:"top",s:"bottom"}[e],Lf(t.group))]}function pP(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),u=gP(e,o,r);Object(l.k)(i,(function(t){t=WL[t],s[t[0]][t[1]]+=u[t[0]]})),a.range=t.fromRectRange(hP(s[0][0],s[1][0],s[0][1],s[1][1])),JL(e,n),oP(e,{isEnd:!1})}function fP(t,e,n,i){var o=e.__brushOption.range,r=gP(t,n,i);Object(l.k)(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),JL(t,e),oP(t,{isEnd:!1})}function gP(t,e,n){return t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0),[e[0]-n[0],e[1]-n[1]]}function yP(t,e,n){return e=nP(t,e),e&&e!==NL?e.clipPath(n,t._transform):Object(l.d)(n)}function mP(t,e,n){if(t._brushType&&!((t,e,n)=>(t=t._zr,e<0||e>t.getWidth()||n<0||n>t.getHeight()))(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=eP(t,e,n);if(!t._dragging)for(var a=0;a{var e,n;return(t=t._track).length&&(e=(n=t[t.length-1])[0]-(t=t[0])[0],n=VL(e*e+(e=n[1]-t[1])*e,.5),FLw&&(w=I.depth),M.setLayout({depth:O?I.depth:_},!0),"vertical"===g?M.setLayout({dy:p},!0):M.setLayout({dx:p},!0);for(var T=0;T{var n=[],i="vertical"===e?"y":"x",o=Xi(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),l.k(o.keys,(function(t){n.push(o.buckets.get(t))})),n})(f=s,U),q=(f=Z,H),K=W,Q=Y,$=U,J=1/0;l.k(f,(function(t){var e=t.length,n=0;l.k(t,(function(t){n+=t.getLayout().value})),t="vertical"===$?(K-(e-1)*Q)/n:(q-(e-1)*Q)/n;t{l.k(t.slice().reverse(),(function(t){l.k(t,(function(t){var i,o;t.outEdges.length&&(i=oj(t.outEdges,$P,n)/oj(t.outEdges,ij),isNaN(i)&&(i=(o=t.outEdges.length)?oj(t.outEdges,JP,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-nj(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-nj(t,n))*e,t.setLayout({y:o},!0)))}))}))})(Z,tt*=.99,U),QP(Z,Y,H,W,U),((t,e,n)=>{l.k(t,(function(t){l.k(t,(function(t){var i,o;t.inEdges.length&&(i=oj(t.inEdges,tj,n)/oj(t.inEdges,ij),isNaN(i)&&(i=(o=t.inEdges.length)?oj(t.inEdges,ej,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-nj(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-nj(t,n))*e,t.setLayout({y:o},!0)))}))}))})(Z,tt,U),QP(Z,Y,H,W,U);r=s;var et="vertical"===c?"x":"y";l.k(r,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[et]-e.node2.getLayout()[et]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[et]-e.node1.getLayout()[et]}))})),l.k(r,(function(t){var e=0,n=0;l.k(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),l.k(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}))}function KP(t){return t=t.hostGraph.data.getRawDataItem(t.dataIndex),null!=t.depth&&0<=t.depth}function QP(t,e,n,i,o){var r="vertical"===o?"x":"y";l.k(t,(function(t){t.sort((function(t,e){return t.getLayout()[r]-e.getLayout()[r]}));for(var a,s,l,u=0,c=t.length,h="vertical"===o?"dx":"dy",d=0;d{for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a(t=b(t,n),e=b(e,n),t[0]-=r/2,e[0]-=r/2,{x:t[0],y:t[1],width:r,height:e[1]-t[1]}))(f,g,a)})}function b(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:i.dataToPoint(n)}function w(t,e,n){var i=e.slice();e=e.slice();i[0]=Af(i[0]+r/2,1,!1),e[0]=Af(e[0]-r/2,1,!0),n?t.push(i,e):t.push(e,i)}function S(t){return t[0]=Af(t[0],1),t}}}}};function tR(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function eR(t,e){var n=$j.call(this)||this,i=new z_(t,e),o=new qn;return n.add(i),n.add(o),n.updateData(t,e),n}a(eR,$j=qn),eR.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},eR.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;re);a++);a=Math.min(a-1,o-2)}r=(e-i[a])/(i[a+1]-i[a]);var s=n[a];n=n[a+1],r=(t.x=s[0]*(1-r)+r*n[0],t.y=s[1]*(1-r)+r*n[1],t.__t<1?n[0]-s[0]:s[0]-n[0]),s=t.__t<1?n[1]-s[1]:s[1]-n[1];t.rotation=-Math.atan2(s,r)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}};var mR,vR=yR,xR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},_R=(a(bR,mR=Ar),bR.prototype.reset=function(){this.notClear=!1,this._off=0},bR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},bR.prototype.getDefaultShape=function(){return new xR},bR.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n ")}))},LR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},LR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},LR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},LR.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0l[1]||Cu[1])continue;T=c.dataToPoint([T,C]),I=new qr({shape:{x:T[0]-a/2,y:T[1]-s/2,width:a,height:s},style:O})}else{if(isNaN(p.get(S[1],M)))continue;I=new qr({z2:1,shape:c.dataToRect([p.get(S[0],M)]).contentShape,style:O})}p.hasItemOption&&(f=(T=(C=p.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=C.getModel(["blur","itemStyle"]).getItemStyle(),y=C.getModel(["select","itemStyle"]).getItemStyle(),m=C.get(["itemStyle","borderRadius"]),_=T.get("focus"),b=T.get("blurScope"),w=T.get("disabled"),v=ks(C)),I.shape.r=m;var k=t.getRawValue(M),D="-";k&&null!=k[2]&&(D=k[2]+""),Cs(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:O.opacity,defaultText:D}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=g,I.ensureState("select").style=y,as(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),d.add(I),p.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},BR.prototype._renderOnGeo=function(t,e,n,i){var o,r,a,s,u,c,h,d=n.targetVisuals.inRange,p=n.targetVisuals.outOfRange,f=e.getData(),g=this._hmLayer||new zR,y=(e=(g.blurSize=e.get("blurSize"),g.pointSize=e.get("pointSize"),g.minOpacity=e.get("minOpacity"),g.maxOpacity=e.get("maxOpacity"),t.getViewRect().clone()),t.getRoamTransform()),m=(e.applyTransform(y),Math.max(e.x,0)),v=Math.max(e.y,0),x=(y=Math.min(e.width+e.x,i.getWidth()),e=Math.min(e.height+e.y,i.getHeight()),i=y-m,y=e-v,e=[f.mapDimension("lng"),f.mapDimension("lat"),f.mapDimension("value")],f=f.mapArray(e,(function(e,n,i){return e=t.dataToPoint([e,n]),e[0]-=m,e[1]-=v,e.push(i),e})),e=n.getExtent(),"visualMap.continuous"===n.type?(h=n.option.range,x=e[1]-e[0],h=[(h[0]-e[0])/x,(h[1]-e[0])/x],function(t){return t>=h[0]&&t<=h[1]}):(o=e,r=n.getPieceList(),a=n.option.selected,s=o[1]-o[0],u=(r=l.H(r,(function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}}))).length,c=0,function(t){for(var e,n=c;n{for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a=e.r0},PN.type="sunburst";var jN,RN=PN;function NN(){var t=null!==jN&&jN.apply(this,arguments)||this;return t.type=NN.type,t.ignoreStyleOnData=!0,t}a(NN,jN=Md),NN.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(function t(e){var n=0;l.k(e.children,(function(e){t(e),e=e.value,l.t(e)&&(e=e[0]),n+=e}));var i=e.value;l.t(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),l.t(e.value)?e.value[0]=i:e.value=i}(n),this._levelModels=l.H(t.levels||[],(function(t){return new el(t,this,e)}),this)),o=zC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=o.getNodeByDataIndex(e),e=i[e.depth],e&&(t.parentModel=e),t}))}));return o.data},NN.prototype.optionUpdated=function(){this.resetViewRoot()},NN.prototype.getDataParams=function(t){var e=jN.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=GC(t,this),e},NN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},NN.prototype.getViewRoot=function(){return this._viewRoot},NN.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},NN.prototype.enableAriaDecal=function(){QC(this)},NN.type="series.sunburst",NN.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"};var EN=NN,zN=Math.PI/180;function VN(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius"),o=(l.t(i)||(i=[0,i]),l.t(e)||(e=[e,e]),n.getWidth()),r=n.getHeight(),a=Math.min(o,r),s=oi(e[0],o),u=oi(e[1],r),c=oi(i[0],a/2),h=(o=oi(i[1],a/2),e=-t.get("startAngle")*zN,t.get("minAngle")*zN),d=t.getData().tree.root,p=(r=t.getViewRoot(),r.depth),f=(i=t.get("sort"),null!=i&&function t(e,n){var i=e.children||[];e.children=BN(i,n),i.length&&l.k(e.children,(function(e){t(e,n)}))}(r,i),0),g=(l.k(r.children,(function(t){isNaN(t.getValue())||f++})),r.getValue()),y=Math.PI/(g||f)*2,m=0{for(var o=t;o&&1i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),r=(i=n.dataToAngle(i[1]),t.coordToPoint([o,i]));return r.push(o,i*Math.PI/180),r},size:l.c(QN,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function AE(t){return t instanceof Ar}function LE(t){return t instanceof Lo}function PE(){var t=null!==bE&&bE.apply(this,arguments)||this;return t.type=PE.type,t}a(PE,bE=Jf),PE.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,r=t.getData(),a=this.group,s=VE(t,r,e,n);o||a.removeAll(),r.diff(o).add((function(e){BE(n,null,e,s(e,i),t,a,r)})).remove((function(e){e=o.getItemGraphicEl(e),e&&cE(e,YN(e).option,t)})).update((function(e,l){l=o.getItemGraphicEl(l),BE(n,l,e,s(e,i),t,a,r)})).execute(),e=t.get("clip",!0)?db(t.coordinateSystem,!1,t):null;e?a.setClipPath(e):a.removeClipPath(),this._data=r},PE.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},PE.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=VE(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u{var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o{e&&cE(e,YN(t).option,n)})(O,R,C)}}}return 0<=a?r.replaceAt(c,a):r.add(c),c}function GE(t,e,n){t=YN(t);var i=e.type,o=e.shape;e=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==t.customGraphicType||"path"===i&&(n=o)&&(Object(l.q)(n,"pathData")||Object(l.q)(n,"d"))&&qE(o)!==t.customPathData||"image"===i&&Object(l.q)(e,"image")&&e.image!==t.customImagePath}function HE(t,e,n){var i=e?WE(t,e):t,o=e?YE(t,i,wE):t.style,r=t.type;i=i?i.textConfig:null,t=t.textContent,t=t?e?WE(t,e):t:null,o&&(n.isLegacy||$N(o,r,!!i,!!t))&&(n.isLegacy=!0,o=JN(o,r,!e),!i&&o.textConfig&&(i=o.textConfig),!t)&&o.textContent&&(t=o.textContent),e||!t||(r=t).type||(r.type="text"),o=e?n[e]:n.normal;o.cfg=i,o.conOpt=t}function WE(t,e){return e?t?t[e]:null:t}function YE(t,e,n){return e=e&&e.style,null==e&&n===wE&&t?t.styleEmphasis:e}function XE(t,e){return t=t&&t.name,null!=t?t:CE+e}function UE(t,e){var n=this.context;t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;FE(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function ZE(t){var e=this.context;t=e.oldChildren[t];t&&cE(t,YN(t).option,e.seriesModel)}function qE(t){return t&&(t.pathData||t.d)}var KE=zi(),QE=l.d,$E=l.c;function JE(){this._dragging=!1,this.animationThreshold=15}function tz(t,e,n,i){!function t(e,n){var i;return l.A(e)&&l.A(n)?(i=!0,l.k(n,(function(n,o){i=i&&t(e[o],n)})),!!i):e===n}(KE(n).lastProp,i)&&(KE(n).lastProp=i,e?vs(n,i,t):(n.stopAnimation(),n.attr(i)))}function ez(t,e){t[e.get(["label","show"])?"show":"hide"]()}function nz(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function iz(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}JE.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=l.h(tz,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new qn,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),iz(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},JE.prototype.remove=function(t){this.clear(t)},JE.prototype.dispose=function(t){this.clear(t)},JE.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type;e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=iI(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},JE.prototype.makeElOption=function(t,e,n,i,o){},JE.prototype.createPointerEl=function(t,e,n,o){var r=e.pointer;r&&(r=KE(t).pointerEl=new i[r.type](QE(e.pointer)),t.add(r))},JE.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=KE(t).labelEl=new pa(QE(e.label)),t.add(e),ez(e,i))},JE.prototype.updatePointerEl=function(t,e,n){t=KE(t).pointerEl,t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},JE.prototype.updateLabelEl=function(t,e,n,i){t=KE(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),ez(t,i))},JE.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=Vf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Q(t.event)},onmousedown:$E(this._onHandleDragMove,this,0,0),drift:$E(this._onHandleDragMove,this),ondragend:$E(this._onHandleDragEnd,this)}),n.add(i)),iz(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),a=o.get("size"),l.t(a)||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,og(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},JE.prototype._moveHandleToValue=function(t,e){tz(this._axisPointerModel,!e&&this._moveAnimation,this._handle,nz(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},JE.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(nz(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(nz(t)),KE(n).lastProp=null,this._doDispatchAxisPointer())},JE.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},JE.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},JE.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;t=t.getZr();var e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),rg(this,"_doDispatchAxisPointer")},JE.prototype.doClear=function(){},JE.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};var oz;Ks=JE;function rz(t){var e,n=t.get("type");t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function az(t,e,n,i,o){var r=sz(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=(n=n.getModel("label"),Gl(n.get("padding")||0)),s=n.getFont(),l=An(r,s),u=o.position,c=l.width+a[1]+a[3],h=(l=l.height+a[0]+a[2],o.align);"right"===h&&(u[0]-=c),"center"===h&&(u[0]-=c/2),h=o.verticalAlign,"bottom"===h&&(u[1]-=l),"middle"===h&&(u[1]-=l/2),o=u,h=c,c=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+h,i)-h,o[1]=Math.min(o[1]+c,l)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i=n.get("backgroundColor");i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ds(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function sz(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision});o=o.formatter;return o&&(r={value:uM(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},l.k(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex);t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)})),l.C(o)?a=o.replace("{value}",a):l.w(o)&&(a=o(r))),a}function lz(t,e,n){var i=it();return lt(i,i,n.rotation),st(i,i,n.position),Pf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function uz(t,e,n,i,o,r){var a=tI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),az(e,i,o,r,{position:lz(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cz(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function hz(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function dz(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}function pz(){return null!==oz&&oz.apply(this,arguments)||this}function fz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}a(pz,oz=Ks),pz.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=fz(s,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=rz(i),(l=gz[l](a,c,u)).style=r,t.graphicKey=l.type,t.pointer=l),a=NM(s.model,n);uz(e,t,a,n,i,o)},pz.prototype.getHandleTransform=function(t,e,n){var i=NM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=lz(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},pz.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.grid,r=n.getGlobalExtent(!0),a=(o=fz(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,[t.x,t.y]);a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=(o[1]+o[0])/2,r=[e,e];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var gz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cz([e,n[0]],[e,n[1]],yz(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:hz([e-i/2,n[0]],[i,o],yz(t))}}};function yz(t){return"x"===t.dim?0:1}var mz,vz=pz;function xz(){var t=null!==mz&&mz.apply(this,arguments)||this;return t.type=xz.type,t}a(xz,mz=fu),xz.type="axisPointer",xz.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}};var _z,bz=xz,wz=zi(),Sz=l.k;function Mz(t,e,n){var i,o,r;function a(t,e){o.on(t,(function(t){n=r;var n,i,a={dispatchAction:s,pendings:i={showTip:[],hideTip:[]}};function s(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=s,n.dispatchAction(t))}Sz(wz(o).records,(function(n){n&&e(n,t,a.dispatchAction)}));var l,u=a.pendings,c=r,h=u.showTip.length,d=u.hideTip.length;h?l=u.showTip[h-1]:d&&(l=u.hideTip[d-1]),l&&(l.dispatchAction=null,c.dispatchAction(l))}))}s.a.node||(i=e.getZr(),wz(i).records||(wz(i).records={}),r=e,wz(o=i).initialized||(wz(o).initialized=!0,a("click",l.h(Oz,"click")),a("mousemove",l.h(Oz,"mousemove")),a("globalout",Iz)),(wz(i).records[t]||(wz(i).records[t]={})).handler=n)}function Iz(t,e,n){t.handler("leave",null,n)}function Oz(t,e,n,i){e.handler(t,n,i)}function Tz(t,e){s.a.node||(e=e.getZr(),(wz(e).records||{})[t]&&(wz(e).records[t]=null))}function Cz(){var t=null!==_z&&_z.apply(this,arguments)||this;return t.type=Cz.type,t}a(Cz,_z=Od),Cz.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Mz("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},Cz.prototype.remove=function(t,e){Tz("axisPointer",e)},Cz.prototype.dispose=function(t,e){Tz("axisPointer",e)},Cz.type="axisPointer";var kz=Cz;function Dz(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Ei(n=e.getData(),t))||s<0||l.t(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(l.H(o.dimensions,(function(t){return n.mapDimension(t)})),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var Az,Lz=zi();function Pz(t,e,n){var i,o,r,a,s,u,c,h,d,p,f,g,y,m,v=t.currTrigger,x=[t.x,t.y],_=t,b=t.dispatchAction||Object(l.c)(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return zz(x)&&(x=Dz({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),i=zz(x),o=_.axesInfo,r=w.axesInfo,a="leave"===v||zz(x),s={},u={},e={list:[],map:{}},c={showPointer:Object(l.h)(Rz,u),showTooltip:Object(l.h)(Nz,e)},Object(l.k)(w.coordSysMap,(function(t,e){var n=i||t.containPoint(x);Object(l.k)(w.coordSysAxesInfo[e],(function(t,e){var r=t.axis,l=((t,e)=>{for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}})(o,t);a||!n||o&&!l||null!=(l=null!=(l=l&&l.value)||i?l:r.pointToData(x))&&jz(t,l,c,!1,s)}))})),h={},Object(l.k)(r,(function(t,e){var n=t.linkGroup;n&&!u[e]&&Object(l.k)(n.axesInfo,(function(e,i){i=u[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,Ez(e),Ez(t)))),h[t.key]=i)}))})),Object(l.k)(h,(function(t,e){jz(r[e],t,c,!0,s)})),d=u,_=r,p=s.axesInfo=[],Object(l.k)(_,(function(t,e){var n=t.axisPointerModel.option;e=d[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=b,zz(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=r,_=(t=n).getZr(),b="axisPointerLastHighlights",f=Lz(_)[b]||{},g=Lz(_)[b]={},Object(l.k)(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(l.k)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t}))})),y=[],m=[],Object(l.k)(f,(function(t,e){g[e]||m.push(t)})),Object(l.k)(g,(function(t,e){f[e]||y.push(t)})),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function jz(t,e,n,i,o){var r,a,s,u,c,h,d,p,f,g,y=t.axis;!y.scale.isBlank()&&y.containData(e)&&(t.involveSeries?(r=e,s=(a=t).axis,u=s.dim,c=r,h=[],d=Number.MAX_VALUE,p=-1,Object(l.k)(a.seriesModels,(function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(i,r,s),a=o.dataIndices;o=o.nestestValue}else{if(!(a=t.getData().indicesOfNearest(i[0],r,"category"===s.type?.5:null)).length)return;o=t.getData().get(i[0],a[0])}null!=o&&isFinite(o)&&(i=r-o,(n=Math.abs(i))<=d)&&((n{var o,r,a,s=e.axis,l=(t=s.dataToCoord(t),a=(a=n.getAngleAxis().getExtent()[0])/180*Math.PI,n.getRadiusAxis().getExtent());return l="radius"===s.dim?(lt(s=it(),s,a),st(s,s,[n.cx,n.cy]),o=Pf([t,-i],s),s=e.getModel("axisLabel").get("rotate")||0,e=tI.innerTextLayout(a,s*Math.PI/180,-1),r=e.textAlign,e.textVerticalAlign):(a=l[1],o=n.coordToPoint([a+i,t]),s=n.cx,e=n.cy,r=Math.abs(o[0]-s)/a<.3?"center":o[0]>s?"left":"right",Math.abs(o[1]-e)/a<.3?"middle":o[1]>e?"top":"bottom"),{position:o,align:r,verticalAlign:l}})(e,n,s,a))};var Fz,Gz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:cz(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:dz(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:dz(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Hz=Bz;function Wz(){var t=null!==Fz&&Fz.apply(this,arguments)||this;return t.type=Wz.type,t}a(Wz,Fz=fu),Wz.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},Wz.type="polar",Wz.dependencies=["radiusAxis","angleAxis"],Wz.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var Yz,Xz=Wz;a(Uz,Yz=fu),Uz.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Gi).models[0]},Uz.type="polarAxis",Zs=Uz;function Uz(){return null!==Yz&&Yz.apply(this,arguments)||this}l.K(Zs,sS),a(Kz,Zz=Zs),Kz.type="angleAxis";var Zz,qz=Kz;function Kz(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=Kz.type,t}a(Jz,Qz=Zs),Jz.type="radiusAxis";var Qz,$z=Jz;function Jz(){var t=null!==Qz&&Qz.apply(this,arguments)||this;return t.type=Jz.type,t}a(eV,tV=n),eV.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var tV;Ws=eV;function eV(t,e){return tV.call(this,"radius",t,e)||this}Ws.prototype.dataToRadius=n.prototype.dataToCoord,Ws.prototype.radiusToData=n.prototype.coordToData;var nV,iV=Ws,oV=zi();a(rV,nV=n),rV.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},rV.prototype.calculateCategoryInterval=function(){var t,e,n=this.getLabelModel(),i=this.scale,o=i.getExtent();i=i.count();return o[1]-o[0]<1?0:(o=o[0],t=this.dataToCoord(o+1)-this.dataToCoord(o),t=Math.abs(t),o=An(null==o?"":o+"",n.getFont(),"center","top"),n=Math.max(o.height,7)/t,isNaN(n)&&(n=1/0),o=Math.max(0,Math.floor(n)),n=(t=oV(this.model)).lastAutoInterval,e=t.lastTickCount,null!=n&&null!=e&&Math.abs(n-o)<=1&&Math.abs(e-i)<=1&&oe[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){t-=this.cx,e-=this.cy,t=t*t+e*e,e=this.r;var n=this.r0;return e!==n&&t-1e-4<=e*e&&n*n<=1e-4+t}}},lV.prototype.convertToPixel=function(t,e,n){return uV(e)===this?this.dataToPoint(n):null},lV.prototype.convertFromPixel=function(t,e,n){return uV(e)===this?this.pointToData(n):null};var cV=lV;function hV(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){var e;t.coordinateSystem===i&&(e=t.getData(),l.k(pM(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),l.k(pM(e,"angle"),(function(t){o.scale.unionExtentFromData(e,t)})))})),aM(o.scale,o.model),aM(r.scale,r.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function dV(t,e){var n,i;t.type=e.get("type"),t.scale=sM(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),i=null!=(i=e.get("endAngle"))?i:n+(t.inverse?-360:360),t.setExtent(n,i)),(e.axis=t).model=e}var pV,fV={dimensions:sV,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){i=new cV(i+"");var o,r=(i.update=hV,i.getRadiusAxis()),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");dV(r,s),dV(a,u),r=i,s=e,u=(a=t).get("center"),o=s.getWidth(),s=s.getHeight(),r.cx=oi(u[0],o),r.cy=oi(u[1],s),u=r.getRadiusAxis(),r=Math.min(o,s)/2,null==(o=a.get("radius"))?o=[0,"100%"]:l.t(o)||(o=[0,o]),s=[oi(o[0],r),oi(o[1],r)],u.inverse?u.setExtent(s[1],s[0]):u.setExtent(s[0],s[1]),n.push(i),(t.coordinateSystem=i).model=t})),t.eachSeries((function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",Gi).models[0],t.coordinateSystem=e.coordinateSystem)})),n}},gV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function yV(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]);t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function mV(t){return t.getRadiusAxis().inverse?0:1}function vV(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function xV(){var t=null!==pV&&pV.apply(this,arguments)||this;return t.type=xV.type,t.axisPointerClass="PolarAxisPointer",t}a(xV,pV=uI),xV.prototype.render=function(t,e){var n,i,o,r,a,s;this.group.removeAll(),t.get("show")&&(n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),vV(s=l.H(n.getViewLabels(),(function(t){t=l.d(t);var e=n.scale;e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t}))),vV(r),l.k(gV,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||bV[e](this.group,t,i,r,a,o,s)}),this))},xV.type="angleAxis";var _V,bV={axisLine:function(t,e,n,o,r,a){e=e.getModel(["axisLine","lineStyle"]);var s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=mV(n),h=c?0:1,d=360===Math.abs(u[1]-u[0])?"Circle":"Arc";d=0===a[h]?new i[d]({shape:{cx:n.cx,cy:n.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:e.getLineStyle(),z2:1,silent:!0}):new Mp({shape:{cx:n.cx,cy:n.cy,r:a[c],r0:a[h]},style:e.getLineStyle(),z2:1,silent:!0});d.style.fill=null,t.add(d)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=r[mV(n)];r=l.H(i,(function(t){return new zp({shape:yV(n,[u,u+s],t.coord)})}));t.add(Tf(r,{style:l.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=r[mV(n)],h=[],d=0;dg?"left":"right",p=Math.abs(f[1]-y)/p<.3?"middle":f[1]>y?"top":"bottom",s&&s[d]&&(y=s[d],l.A(y))&&y.textStyle&&(a=new el(y.textStyle,u,u.ecModel)),d=new pa({silent:tI.isLabelSilent(e),style:Ds(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:g,verticalAlign:p})});t.add(d),h&&((y=tI.makeAxisEventDataBase(e)).targetType="axisLabel",y.value=i.rawLabel,fa(d).eventData=y)}),this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=0;h=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},KV.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},KV.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},KV.prototype.convertToPixel=function(t,e,n){return QV(e)===this?this.dataToPoint(n):null},KV.prototype.convertFromPixel=function(t,e,n){return QV(e)===this?this.pointToData(n):null};var $V,JV=KV,tB={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var r=new JV(i,t,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,n.push(r)})),t.eachSeries((function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",Gi).models[0],t.coordinateSystem=e&&e.coordinateSystem)})),n},dimensions:qV},eB=["x","y"],nB=["width","height"];function iB(){return null!==$V&&$V.apply(this,arguments)||this}a(iB,$V=Ks),iB.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=aB(s,1-rB(a)),u=(s=s.dataToPoint(e)[0],i.get("type"));u&&"none"!==u&&(r=rz(i),(u=oB[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),a=NV(n);uz(e,t,a,n,i,o)},iB.prototype.getHandleTransform=function(t,e,n){var i=NV(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=lz(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},iB.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.coordinateSystem,r=(n=rB(n),aB(o,n)),a=[t.x,t.y];a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=aB(o,1-n),r=(e[1]+e[0])/2,o=[r,r];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}};var oB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cz([e,n[0]],[e,n[1]],rB(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:hz([e-i/2,n[0]],[i,o],rB(t))}}};function rB(t){return t.isHorizontal()?0:1}function aB(t,e){return t=t.getRect(),[t[eB[e]],t[eB[e]]+t[nB[e]]]}var sB,lB,uB=iB,cB=(a(hB,sB=Od),hB.type="single",hB);function hB(){var t=null!==sB&&sB.apply(this,arguments)||this;return t.type=hB.type,t}function dB(){var t=null!==lB&&lB.apply(this,arguments)||this;return t.type=dB.type,t}function pB(t,e){var n=t.cellSize,i=l.t(n)?n:t.cellSize=[n,n];1===i.length&&(i[1]=i[0]),n=l.H([0,1],(function(t){var n,o;return(null!=(n=e)[Ql[o=t][0]]||null!=n[Ql[o][1]]&&null!=n[Ql[o][2]])&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));iu(t,e,{type:"box",ignoreSize:n})}a(dB,lB=fu),dB.prototype.init=function(t,e,n){var i=ou(t);lB.prototype.init.apply(this,arguments),pB(t,i)},dB.prototype.mergeOption=function(t){lB.prototype.mergeOption.apply(this,arguments),pB(this.option,t)},dB.prototype.getCellSize=function(){return this.option.cellSize},dB.type="calendar",dB.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}};var fB,gB=dB;function yB(){var t=null!==fB&&fB.apply(this,arguments)||this;return t.type=yB.type,t}a(yB,fB=Od),yB.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo();o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},yB.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl;l=new qr({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},yB.prototype._renderLines=function(t,e,n,i){for(var o=this,r=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],e.start),c=0;u.time<=e.end.time;c++){d(u.formatedDate);var h=(u=0===c?r.getDateInfo(e.start.y+"-"+e.start.m):u).date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!1).tl),e=o._getLinePointsOfOneWeek(t,e,n),o._tlpoints.push(e[0]),o._blpoints.push(e[e.length-1]),s&&o._drawSplitline(e,a,i)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},yB.prototype._getEdgesPoints=function(t,e,n){return t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1,t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},yB.prototype._drawSplitline=function(t,e,n){t=new jp({z2:20,shape:{points:t},style:e}),n.add(t)},yB.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},yB.prototype._formatterLabel=function(t,e){var n,i;return Object(l.C)(t)&&t?(n=t,l.k(e,(function(t,e){n=n.replace("{"+e+"}",i?G(t):t)})),n):Object(l.w)(t)?t(e):e.nameMap},yB.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=(e=e[1],["center","bottom"]);"bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,o=0;return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},yB.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u;t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new pa({z2:30,style:Ds(t,{text:e}),silent:t.get("silent")})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},yB.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0];t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},yB.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),u=(t=o.get("align"),[this._tlpoints,this._blpoints]),c=(r&&!Object(l.C)(r)||(r=(e=r&&dl(r)||e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,d=(a="start"===s?-a:a,"center"===t),p=o.get("silent"),f=0;f=n.start.time&&t.timei.end.time&&n.reverse(),n):o},vB.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),a=(t=r.getDate(),i[1].date.getDate());if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0n.weeks||0===t&&en.lweek?null:(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(+n.start.d+t),this.getDateInfo(e))},vB.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new vB(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},vB.dimensions=["time","value"];var _B=vB;function bB(t,e){var n;return l.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var wB=["transition","enterFrom","leaveTo"],SB=wB.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function MB(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?wB:SB,o=0;or[1];if(c&&!h&&!u)return!0;c&&(a=!0),h&&(n=!0),u&&(o=!0)}return a&&n&&o}))):eF(s,(function(e){var n;"empty"===o?t.setData(a=a.map(e,(function(t){return(e=t)>=r[0]&&e<=r[1]?t:NaN;var e}))):((n={})[e]=r,a.selectRange(n))})),eF(s,(function(t){a.setApproximateExtent(r,t)})))}))},iF.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;eF(["min","max"],(function(i){var o=e.get(i+"Span"),r=e.get(i+"ValueSpan");null!=(r=null!=r?this.getAxisModel().axis.scale.parse(r):r)?o=ii(n[0]+r,n,[0,100],!0):null!=o&&(r=ii(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r}),this)},iF.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=li(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())};var oF=iF,rF={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=t.getComponent(VB(i),o);e(i,o,r,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[],i=(e((function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new oF(e,i,r,t),n.push(o.__dzAxisProxy))})),Object(l.f)());return Object(l.k)(n,(function(t){Object(l.k)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))}))}},aF=!1;function sF(t){aF||(aF=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,rF),t.registerAction("dataZoom",(function(t,e){e=BB(e,t),Object(l.k)(e,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function lF(t){t.registerComponentModel(KB),t.registerComponentView(tF),sF(t)}function uF(){}var cF,hF={};function dF(t,e){hF[t]=e}function pF(t){return hF[t]}function fF(){var t=null!==cF&&cF.apply(this,arguments)||this;return t.type=fF.type,t}a(fF,cF=fu),fF.prototype.optionUpdated=function(){cF.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;l.k(this.option.feature,(function(e,n){n=pF(n),n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),l.I(e,n.defaultOption))}))},fF.type="toolbox",fF.layoutMode={type:"box",ignoreSize:!0},fF.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"}};var gF,yF=fF;function mF(t,e){var n=Gl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new qr({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function vF(){return null!==gF&&gF.apply(this,arguments)||this}a(vF,gF=Od),vF.prototype.render=function(t,e,n,i){var o,r,a,s,u,c,h,d,p,f,g,y=this.group;function m(c,h){c=u[c],h=u[h];var d,p=a[c],f=new el(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(0===c.indexOf("my"))d={onclick:f.option.onclick,featureName:c};else{if(p=pF(c),!p)return;d=new p}s[c]=d}else if(!(d=s[h]))return;d.uid=il("toolbox-feature"),d.model=f,d.ecModel=e,d.api=n;var g,m,v,x,_,b,w;p=d instanceof uF;!c&&h?p&&d.dispose&&d.dispose(e,n):!f.get("show")||p&&d.unusable?p&&d.remove&&d.remove(e,n):(m=d,h=c,_=(g=f).getModel("iconStyle"),b=g.getModel(["emphasis","iconStyle"]),p=m instanceof uF&&m.getIcons?m.getIcons():g.get("icon"),c=g.get("title")||{},l.C(p)?(v={})[h]=p:v=p,l.C(c)?(x={})[h]=c:x=c,w=g.iconPaths={},l.k(v,(function(i,a){var s=Vf(i,{},{x:-o/2,y:-o/2,width:o,height:o});s.setStyle(_.getItemStyle()),s.ensureState("emphasis").style=b.getItemStyle();var u=new pa({style:{text:x[a],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Ns({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},e)},ignore:!0});s.setTextContent(u),Gf({el:s,componentModel:t,itemName:a,formatterParamsExtra:{title:x[a]}}),s.__title=x[a],s.on("mouseover",(function(){var e=b.getItemStyle(),i=r?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";u.setStyle({fill:b.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),s.setTextConfig({position:b.get("textPosition")||i}),u.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==g.get(["iconStatus",a])&&n.leaveEmphasis(this),u.hide()})),("emphasis"===g.get(["iconStatus",a])?Ua:Za)(s),y.add(s),s.on("click",l.c(m.onclick,m,e,n,a)),w[a]=s})),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ua:Za)(i[t])},d instanceof uF&&d.render&&d.render(f,e,n,i))}y.removeAll(),t.get("show")&&(o=+t.get("itemSize"),r="vertical"===t.get("orient"),a=t.get("feature")||{},s=this._features||(this._features={}),u=[],l.k(a,(function(t,e){u.push(e)})),new Zx(this._featureNames||[],u).add(m).update(m).remove(l.h(m,null)).execute(),this._featureNames=u,c=y,d=n,p=(h=t).getBoxLayoutParams(),f=h.get("padding"),d={width:d.getWidth(),height:d.getHeight()},g=tu(p,d,f),Jl(h.get("orient"),c,h.get("itemGap"),g.width,g.height),eu(c,p,d,f),y.add(mF(y.getBoundingRect(),t)),r||y.eachChild((function(t){var e,i,r=t.__title,a=t.ensureState("emphasis"),s=(a=a.textConfig||(a.textConfig={}),t.getTextContent());s=s&&s.ensureState("emphasis");s&&!l.w(s)&&r&&(s=s.style||(s.style={}),r=An(r,pa.makeFont(s)),e=t.x+y.x,i=!1,t.y+y.y+o+r.height>n.getHeight()&&(a.position="top",i=!0),t=i?-5-r.height:o+10,e+r.width/2>n.getWidth()?(a.position=["100%",t],s.align="right"):e-r.width/2<0&&(a.position=[0,t],s.align="left"))})))},vF.prototype.updateView=function(t,e,n,i){l.k(this._features,(function(t){t instanceof uF&&t.updateView&&t.updateView(t.model,e,n,i)}))},vF.prototype.remove=function(t,e){l.k(this._features,(function(n){n instanceof uF&&n.remove&&n.remove(t,e)})),this.group.removeAll()},vF.prototype.dispose=function(t,e){l.k(this._features,(function(n){n instanceof uF&&n.dispose&&n.dispose(t,e)}))},vF.type="toolbox";var xF,_F=vF;function bF(){return null!==xF&&xF.apply(this,arguments)||this}a(bF,xF=uF),bF.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png";e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=s.a.browser;if("function"!=typeof MouseEvent||!t.newEdge&&(t.ie||t.edge))if(window.navigator.msSaveOrOpenBlob||o){t=e.split(",");var a=-1',o=window.open(),o.document.write(h),o.document.title=i;else a=document.createElement("a"),a.download=i+"."+r,a.target="_blank",a.href=e,n=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}),a.dispatchEvent(n)},bF.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var wF,SF=bF,MF="__ec_magicType_stack__",IF=[["line","bar"],["stack"]];a(OF,wF=uF),OF.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return l.k(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},OF.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},OF.prototype.onclick=function(t,e,n){var i,o,r=this.model,a=r.get(["seriesIndex",n]);TF[n]&&(i={series:[]},l.k(IF,(function(t){0<=l.r(t,n)&&l.k(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(t){var e=t.subType;e=TF[n](e,t.id,t,r),e&&(l.i(e,t.option),i.series.push(e)),e=t.coordinateSystem;if(e&&"cartesian2d"===e.type&&("line"===n||"bar"===n)&&(e=e.getAxesByScale("ordinal")[0],e)){var o=e.dim+"Axis",a=t.getReferringComponents(o,Gi).models[0].componentIndex;i[o]=i[o]||[];for(var s=0;s<=a;s++)i[o][a]=i[o][a]||{};i[o][a].boundaryGap="bar"===n}})),"stack"===(t=n)&&(o=l.I({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n]))&&(t="tiled"),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:i,newTitle:o,featureName:"magicType"}))},e=OF;function OF(){return null!==wF&&wF.apply(this,arguments)||this}var TF={line:function(t,e,n,i){if("bar"===t)return l.I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return l.I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){if(n=n.get("stack")===MF,"line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),l.I({id:e,stack:n?"":MF},i.get(["option","stack"])||{},!0)}},CF=(jm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),e),kF=new Array(60).join("-"),DF="\t";function AF(t){e={},n=[],i=[],t.eachRawSeries((function(t){var o,r,a=t.coordinateSystem;(!a||"cartesian2d"!==a.type&&"polar"!==a.type||"category"!==(o=a.getBaseAxis()).type?n:(r=o.dim+"_"+o.index,e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[r].series)).push(t)}));var e,n,i,o,r;t={seriesGroupByCategoryAxis:e,other:n,meta:i};return{value:l.n([(o=t.seriesGroupByCategoryAxis,r=[],l.k(o,(function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(l.H(t.series,(function(t){return t.name}))),a=[n.model.getCategories()],s=(l.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))})),[o.join(DF)]),u=0;u{for(var e=t.split(/\n+/g),n=(t=LF(e.shift()).split(PF),[]),i=l.H(t,(function(t){return{name:t,data:[]}})),o=0;o{for(var e=t.split(/\n+/g),n=(t=LF(e.shift()),[]),i=0;i(t=eG(t),e=eG(e),t=[t[0]/e[0],t[1]/e[1]],isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t))(i.xyMinMax,n.xyMinMax)):i.values)}),this)},YF.prototype.makePanelOpts=function(t,e){return Object(l.H)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:TP(i),isTargetByCursor:kP(i,t,n.coordSysModel),getLinearBrushOtherExtent:CP(i)}}))},YF.prototype.controlSeries=function(t,e,n){return t=this.findTargetInfo(t,n),!0===t||t&&0<=Object(l.r)(t.coordSyses,e.coordinateSystem)},YF.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=UF(e,t),o=0;ot[1]&&t.reverse(),t}function UF(t,e){return Bi(t,e,{includeMainTypes:WF})}var ZF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=(t=t.gridModels,Object(l.f)()),r={},a={};(n||i||t)&&(Object(l.k)(n,(function(t){t=t.axis.grid.model,o.set(t.id,t),r[t.id]=!0})),Object(l.k)(i,(function(t){t=t.axis.grid.model,o.set(t.id,t),a[t.id]=!0})),Object(l.k)(t,(function(t){o.set(t.id,t),r[t.id]=!0,a[t.id]=!0})),o.each((function(t){var o=t.coordinateSystem,s=[];Object(l.k)(o.getCartesians(),(function(t,e){(0<=Object(l.r)(n,t.getAxis("x").model)||0<=Object(l.r)(i,t.getAxis("y").model))&&s.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:s[0],coordSyses:s,getPanelRect:KF.grid,xAxisDeclared:r[t.id],yAxisDeclared:a[t.id]})})))},geo:function(t,e){Object(l.k)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:KF.geo})}))}},qF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel;t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){return t=t.geoModel,t&&t===e.geoModel}],KF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Lf(t)),e}},QF={lineX:Object(l.h)($F,0),lineY:Object(l.h)($F,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i);t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[XF([o[0],t[0]]),XF([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(l.H)(n,(function(n){return n=t?e.pointToData(n,i):e.dataToPoint(n,i),o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n})),xyMinMax:o}}};function $F(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=(n=XF(Object(l.H)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),[]);return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var JF={lineX:Object(l.h)(tG,0),lineY:Object(l.h)(tG,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(l.H)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function tG(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function eG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var nG,iG=Xs,oG=l.k,rG=Ii+"toolbox-dataZoom_";a(aG,nG=uF),aG.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new OP(n.getZr()),this._brushController.on("brush",l.c(this._onBrush,this)).mount());var o=t,r=e,a=this,s=a._isZoomActive;i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new iG(lG(o),r,{include:["grid"]}).makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})),a._brushController.setPanels(i).enableBrush(!(!s||!i.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),t.setIconStatus("back",1<(t=>BF(t).length)(e)?"emphasis":"normal")},aG.prototype.onclick=function(t,e,n){sG[n].call(this)},aG.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},aG.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},aG.prototype._onBrush=function(t){var e,n,i,o,r=t.areas;function a(t,i,o){i=i.getAxis(t);var r,a,s,l=i.model;r=t,a=l,n.eachComponent({mainType:"dataZoom",subType:"select"},(function(t){t.getAxisModel(r,a.componentIndex)&&(s=t)})),t=s,l=t.findRepresentativeAxisProxy(l).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(o=vL(0,o.slice(),i.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),t&&(e[t.id]={dataZoomId:t.id,startValue:o[0],endValue:o[1]})}t.isEnd&&r.length&&(e={},n=this.ecModel,this._brushController.updateCovers([]),new iG(lG(this.model),n,{include:["grid"]}).matchOutputRanges(r,n,(function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[t],n,e))})),t=e,o=BF(i=n),zF(t,(function(t,e){for(var n,r=o.length-1;0<=r&&!o[r][e];r--);r<0&&(n=i.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),o[0][e]={dataZoomId:e,start:n[0],end:n[1]})})),o.push(t),this._dispatchZoomAction(e))},aG.prototype._dispatchZoomAction=function(t){var e=[];oG(t,(function(t,n){e.push(l.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},aG.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},ro=aG;function aG(){return null!==nG&&nG.apply(this,arguments)||this}var sG={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((t=this.ecModel,e=BF(t),t=e[e.length-1],1'):""),Object(l.C)(t))r.innerHTML=t+d;else if(t){r.innerHTML="",Object(l.t)(t)||(t=[t]);for(var p,f=0;f{var i=Fi(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r;e=Wi(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse((function(e){var n=fa(e).tooltipConfig;if(n&&n.name===t.name)return r=e,!0})),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}})(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=AG).x=i.x,a.y=i.y,a.update(),fa(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):l?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:l,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=Dz(i,e)).point[0],l=r.point[1],null!=a&&null!=l&&this._tryShow({offsetX:a,offsetY:l,target:r.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},LG.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(jG(i,n))},LG.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o),a&&(e=PG([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger"))))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0},LG.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?"legend"!==fa(r).ssrType&&(Vg(r,(function(t){return null!=fa(t).dataIndex?(i=t,1):null!=fa(t).tooltipConfig&&(o=t,1)}),!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},LG.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=Object(l.c)(e,this),clearTimeout(this._showTimout),0"),c.join(e));this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,p,s,Math.random()+"",o[0],o[1],d,null,h)}))},LG.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,u=this._ecModel,c=(e=fa(e),e.seriesIndex),h=u.getSeriesByIndex(c),d=e.dataModel||h,p=e.dataIndex,f=(e=e.dataType,d.getData(e)),g=this._renderMode,y=t.positionDefault,m=PG([f.getItemModel(p),d,h&&(h.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null);h=m.get("trigger");null!=h&&"item"!==h||(i=d.getDataParams(p,e),o=new ud,i.marker=o.makeTooltipMarker("item",Ul(i.color),g),y=th(d.formatTooltip(p,!1,e)),h=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?od(e?Object(l.m)({valueFormatter:e},r):r,o,g,h,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+d.name+"_"+p,this._showOrMove(m,(function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)})),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:c,from:this.uid}))},LG.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,o=fa(e),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent,s=(a=(Object(l.C)(r)&&(r={content:r,formatter:r},a=!0),a&&i&&r.content&&((r=Object(l.d)(r)).content=G(r.content)),[r]),i=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(i&&a.push(i),a.push({formatter:r.content}),t.positionDefault),PG(a,this._tooltipModel,o?{position:o}:null)),u=s.get("content"),c=Math.random()+"",h=new ud;this._showOrMove(s,(function(){var n=Object(l.d)(s.get("formatterParams")||{});this._showTooltipContent(s,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},LG.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,u){var c,h,d,p,f;this._ticket="",t.get("showContent")&&t.get("show")&&((c=this._tooltipContent).setEnterable(t.get("enterable")),h=t.get("formatter"),a=a||t.get("position"),e=e,d=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=Object(l.C)(h)?(p=t.ecModel.get("useUTC"),e=h,Xl(e=(f=Object(l.t)(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?Ml(f.axisValue,e,p):e,n,!0)):Object(l.w)(h)?(f=Object(l.c)((function(e,i){e===this._ticket&&(c.setContent(i,u,t,d,a),this._updatePosition(t,a,o,r,c,n,s))}),this),this._ticket=i,h(n,i,f)):h),c.setContent(e,u,t,d,a),c.show(t,d),this._updatePosition(t,a,o,r,c,n,s))},LG.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(l.t)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(l.t)(e)?void 0:{color:i||e.color||e.borderColor}},LG.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,u=this._api.getWidth(),c=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),d=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();a&&f.applyTransform(a.transform),Object(l.w)(e)&&(e=e([n,i],r,o.el,f,{viewSize:[u,c],contentSize:h.slice()})),Object(l.t)(e)?(n=oi(e[0],u),i=oi(e[1],c)):Object(l.A)(e)?((r=e).width=h[0],r.height=h[1],n=(r=tu(r,{width:u,height:c})).x,i=r.y,p=d=null):(n=(s=Object(l.C)(e)&&a?((t,e,n,i)=>{var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]})(e,f,h,t.get("borderWidth")):((t,e,n,i,o,r,a)=>{var s=(n=n.getSize())[0];n=n[1];return null!=r&&(inull!=(t=t.option.seriesIndex)&&"all"!==t&&(l.t(t)?l.r(t,e)<0:e!==t))(e,u)&&(l.k(f,(function(n){e.brushTargetManager.controlSeries(n,o,t)&&r.push(n),p=p||m(r)})),y(u))&&m(r)&&(a=o.getData()).each((function(t){$G(o,r,a,t)&&(h[t]=1)})))})),t.eachSeries((function(t,e){var n,i,o,a,s,u,c,f={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]},v=(r.selected.push(f),d[e]),x=t.getData(),_=y(e)?function(t){return h[t]?(f.dataIndex.push(x.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return $G(t,v,x,e)?(f.dataIndex.push(x.getRawIndex(e)),"inBrush"):"outOfBrush"};function b(t){return jg(i,u,t)}function w(t,e){Ng(i,u,t,e)}function S(t,e){if(u=null==s?t:e,e=i.getRawDataItem(u),!e||!1!==e.visualMap){e=o.call(a,t);for(var r=n[e],l=c[e],h=0,d=l.length;ho[0][1]&&(o[0][1]=r[0]),r[1]o[1][1]&&(o[1][1]=r[1])}return o&&eH(o)}};function eH(t){return new wt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function nH(){var t=null!==JG&&JG.apply(this,arguments)||this;return t.type=nH.type,t}a(nH,JG=Od),nH.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new OP(e.getZr())).on("brush",l.c(this._onBrush,this)).mount()},nH.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},nH.prototype.updateTransform=function(t,e,n,i){qG(e),this._updateController(t,e,n,i)},nH.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},nH.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},nH.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},nH.prototype.dispose=function(){this._brushController.dispose()},nH.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:l.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:l.d(n),$from:e})},nH.type="brush";var iH,oH=nH;function rH(){var t=null!==iH&&iH.apply(this,arguments)||this;return t.type=rH.type,t.areas=[],t.brushOption={},t}function aH(t,e){return l.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new el(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}a(rH,iH=fu),rH.prototype.optionUpdated=function(t,e){var n=this.option;e||GG(n,t,["inBrush","outOfBrush"]),e=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},rH.prototype.setAreas=function(t){t&&(this.areas=l.H(t,(function(t){return aH(this.option,t)}),this))},rH.prototype.setBrushOption=function(t){this.brushOption=aH(this.option,t),this.brushType=this.brushOption.brushType},rH.type="brush",rH.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],rH.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4};var sH,lH=rH,uH=["rect","polygon","lineX","lineY","keep","clear"];function cH(){return null!==sH&&sH.apply(this,arguments)||this}a(cH,sH=uF),cH.prototype.render=function(t,e,n){var i,o,r;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length})),this._brushType=i,this._brushMode=o,l.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?r:e===i)?"emphasis":"normal")}))},cH.prototype.updateView=function(t,e,n){this.render(t,e,n)},cH.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return l.k(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},cH.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},cH.getDefaultOption=function(t){return{show:!0,type:uH.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}};var hH=cH;a(fH,dH=fu),fH.type="title",fH.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var dH,pH=fH;function fH(){var t=null!==dH&&dH.apply(this,arguments)||this;return t.type=fH.type,t.layoutMode={type:"box",ignoreSize:!0},t}a(vH,gH=Od),vH.prototype.render=function(t,e,n){var i,o,r,a,s,u,c,h,d;this.group.removeAll(),t.get("show")&&(i=this.group,c=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),d=l.P(t.get("textBaseline"),t.get("textVerticalAlign")),s=(c=new pa({style:Ds(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),o=new pa({style:Ds(o,{text:u,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),c.silent=!r&&!s,o.silent=!a&&!s,r&&c.on("click",(function(){Zl(r,"_"+t.get("target"))})),a&&o.on("click",(function(){Zl(a,"_"+t.get("subtarget"))})),fa(c).eventData=fa(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),u&&i.add(o),s=i.getBoundingRect(),(u=t.getBoxLayoutParams()).width=s.width,u.height=s.height,u=tu(u,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?u.x+=u.width:"center"===h&&(u.x+=u.width/2)),d||("bottom"===(d="center"===(d=t.get("top")||t.get("bottom"))?"middle":d)?u.y+=u.height:"middle"===d&&(u.y+=u.height/2),d=d||"top"),i.x=u.x,i.y=u.y,i.markRedraw(),c.setStyle(n={align:h,verticalAlign:d}),o.setStyle(n),s=i.getBoundingRect(),c=u.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),d=new qr({shape:{x:s.x-c[3],y:s.y-c[0],width:s.width+c[1]+c[3],height:s.height+c[0]+c[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(d))},vH.type="title";var gH,yH,mH=vH;function vH(){var t=null!==gH&&gH.apply(this,arguments)||this;return t.type=vH.type,t}function xH(){var t=null!==yH&&yH.apply(this,arguments)||this;return t.type=xH.type,t.layoutMode="box",t}a(xH,yH=fu),xH.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},xH.prototype.mergeOption=function(t){yH.prototype.mergeOption.apply(this,arguments),this._initData()},xH.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},xH.prototype.getCurrentIndex=function(){return this.option.currentIndex},xH.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},xH.prototype.setPlayState=function(t){this.option.autoPlay=!!t},xH.prototype.getPlayState=function(){return!!this.option.autoPlay},xH.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=(e=e.axisType,this._names=[]);"category"===e?(t=[],Object(l.k)(n,(function(e,n){var o,r=Pi(ki(e),"");Object(l.A)(e)?(o=Object(l.d)(e)).value=n:o=n,t.push(o),i.push(r)}))):t=n,n={category:"ordinal",time:"time",value:"number"}[e]||"number";(this._data=new b_([{name:"value",type:n}],this)).initData(t,i)},xH.prototype.getData=function(){return this._data},xH.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},xH.type="timeline",xH.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var _H;vl=xH,a(bH,_H=vl),bH.type="timeline.slider",bH.defaultOption=ol(vl.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),Js=bH;function bH(){var t=null!==_H&&_H.apply(this,arguments)||this;return t.type=bH.type,t}Object(l.K)(Js,$c.prototype);var wH,SH=Js;function MH(){var t=null!==wH&&wH.apply(this,arguments)||this;return t.type=MH.type,t}a(MH,wH=Od),MH.type="timeline";var IH;Ks=MH;function OH(t,e,n,i){return t=IH.call(this,t,e,n)||this,t.type=i||"value",t}a(OH,IH=n),OH.prototype.getLabelModel=function(){return this.model.getModel("label")},OH.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var TH,CH=OH,kH=Math.PI,DH=zi();function AH(){var t=null!==TH&&TH.apply(this,arguments)||this;return t.type=AH.type,t}function LH(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Qg(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),a=e.getItemStyle(["color"]),o.setStyle(a),i=Object(l.I)({rectHover:!0,z2:100},i,!0),n=$g(t.get("symbolSize")),i.scaleX=n[0]/2,i.scaleY=n[1]/2,r=Jg(t.get("symbolOffset"),n),r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),e=t.get("symbolRotate");return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function PH(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}a(AH,TH=Ks),AH.prototype.init=function(t,e){this.api=e},AH.prototype.render=function(t,e,n){var i,o,r;this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)&&(i=this._layout(t,n),o=this._createGroup("_mainGroup"),e=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,t),t.formatTooltip=function(t){return Jh("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Object(l.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,r,t)}),this),this._renderAxisLabel(i,e,r,t),this._position(i,t)),this._doPlayStop(),this._updateTicksStatus()},AH.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},AH.prototype.dispose=function(){this._clearTimer()},AH.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,tu((u=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},u.get("padding"))),u=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2{if(e=e||t.get("type"))switch(e){case"category":return new PS({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new ES}})(e,i),r=(o.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))},n.getDataExtent("value"));o.setExtent(r[0],r[1]),o.calcNiceTicks(),r=new CH("value",o,t.axisExtent,i);return r.model=e,r},AH.prototype._createGroup=function(t){return t=this[t]=new qn,this.group.add(t),t},AH.prototype._renderAxisLine=function(t,e,n,i){var o;n=n.getExtent();i.get(["lineStyle","show"])&&(o=new zp({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:Object(l.m)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new zp({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:Object(l.i)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},AH.prototype._renderAxisTick=function(t,e,n,i){var o=this,r=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(l.k)(a,(function(t){var a=n.dataToCoord(t.value),s=r.getItemModel(t.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]);a={x:a,y:0,onclick:Object(l.c)(o._changeTimeline,o,t.value)},u=LH(s,u,e,a),u.ensureState("emphasis").style=c.getItemStyle(),u.ensureState("progress").style=h.getItemStyle(),rs(u),a=fa(u);s.get("tooltip")?(a.dataIndex=t.value,a.dataModel=i):a.dataIndex=a.dataModel=null,o._tickSymbols.push(u)}))},AH.prototype._renderAxisLabel=function(t,e,n,i){var o,r=this;n.getLabelModel().get("show")&&(o=i.getData(),i=n.getViewLabels(),this._tickLabels=[],Object(l.k)(i,(function(i){var a=i.tickValue,s=o.getItemModel(a),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),h=(s=s.getModel(["progress","label"]),n.dataToCoord(i.tickValue));h=new pa({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(l.c)(r._changeTimeline,r,a),silent:!1,style:Ds(u,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=Ds(c),h.ensureState("progress").style=Ds(s),e.add(h),rs(h),DH(h).dataIndex=a,r._tickLabels.push(h)})))},AH.prototype._renderControl=function(t,e,n,i){var o=t.controlSize,r=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);function h(t,n,u,c){var h;t&&(h=Rn(Object(l.P)(i.get(["controlStyle",n+"BtnSize"]),o),o),(n=((t,e,n,i)=>{var o=i.style;t=Vf(t.get(["controlStyle",e]),i||{},new wt(n[0],n[1],n[2],n[3]));return o&&t.setStyle(o),t})(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:o/2,originY:0,rotation:c?-r:0,rectHover:!0,style:a,onclick:u})).ensureState("emphasis").style=s,e.add(n),rs(n))}h(t.nextBtnPosition,"next",Object(l.c)(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(l.c)(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",Object(l.c)(this._handlePlayClick,this,!u),!0)},AH.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=(o=o.getItemModel(r).getModel("checkpointStyle"),this);this._currentPointer=LH(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=Object(l.c)(a._handlePointerDrag,a),t.ondragend=Object(l.c)(a._handlePointerDragend,a),PH(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){PH(t,a._progressLine,r,n,i)}})},AH.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},AH.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},AH.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},AH.prototype._pointerChangeTimeline=function(t,e){t=this._toAxisCoord(t)[0];var n=ai(this._axis.getExtent().slice());(t=t>n[1]?n[1]:t)(t=t.getData().getDimensionInfo(e))&&t.coordDim)(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function $H(t,e){return!(t&&t.containData&&e.coord&&!UH(e))||t.containData(e.coord)}function JH(t,e){return t?function(t,n,i,o){return ph(o<2?t.coord&&t.coord[o]:t.value,e[o])}:function(t,n,i,o){return ph(t.value,e[o])}}function tW(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,(function(t,e){isNaN(t)||(i+=t,o++)})),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var eW,nW=zi();function iW(){var t=null!==eW&&eW.apply(this,arguments)||this;return t.type=iW.type,t}a(iW,eW=Od),iW.prototype.init=function(){this.markerGroupMap=Object(l.f)()},iW.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){nW(t).keep=!1})),e.eachSeries((function(t){var o=WH.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){nW(t).keep||i.group.remove(t.group)}))},iW.prototype.markKeep=function(t){nW(t).keep=!0},iW.prototype.toggleBlurSeries=function(t,e){var n=this;Object(l.k)(t,(function(t){t=WH.getMarkerModelFromSeries(t,n.type),t&&t.getData().eachItemGraphicEl((function(t){t&&(e?qa:Ka)(t)}))}))},iW.type="marker";var oW;Hg=iW;function rW(t,e,n){var i=e.coordinateSystem;t.each((function(o){var r,a,s,l=t.getItemModel(o),u=oi(l.get("x"),n.getWidth());l=oi(l.get("y"),n.getHeight());isNaN(u)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,o)):i&&(r=t.get(i.dimensions[0],o),a=t.get(i.dimensions[1],o),s=i.dataToPoint([r,a])):s=[u,l],isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l),t.setItemLayout(o,s)}))}function aW(){var t=null!==oW&&oW.apply(this,arguments)||this;return t.type=aW.type,t}a(aW,oW=Hg),aW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=WH.getMarkerModelFromSeries(t,"markPoint");e&&(rW(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},aW.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=(s=s.get(r)||s.set(r,new H_),((t,e,n)=>{i=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i,o=new b_(i,n);n=Object(l.H)(n.get("data"),Object(l.h)(KH,e));return t&&(n=Object(l.n)(n,Object(l.h)($H,t))),t=JH(!!t,i),o.initData(n,null,t),o})(o,t,e));e.setData(u),rW(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),c=n.getShallow("symbolKeepAspect"),h=((Object(l.w)(i)||Object(l.w)(o)||Object(l.w)(r)||Object(l.w)(s))&&(h=e.getRawValue(t),d=e.getDataParams(t),Object(l.w)(i)&&(i=i(h,d)),Object(l.w)(o)&&(o=o(h,d)),Object(l.w)(r)&&(r=r(h,d)),Object(l.w)(s))&&(s=s(h,d)),n.getModel("itemStyle").getItemStyle()),d=Rg(a,"color");h.fill||(h.fill=d),u.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:c,style:h})})),s.updateData(u),this.group.add(s.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){fa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},aW.type="markPoint";var sW,lW=aW;function uW(){var t=null!==sW&&sW.apply(this,arguments)||this;return t.type=uW.type,t}function cW(t,e,n,i){var o,r,a,s,u=t.getData();return(e=[KH(t,(n=Object(l.t)(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?"y":"x"),Object(l.O)(i.yAxis,i.xAxis)):(s=(e=QH(i,u,e,t)).valueAxis,tW(u,C_(u,e.valueDataDim),o)),e=1-(u="x"===s.dim?0:1),s={coord:[]},(a=Object(l.d)(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&Object(l.z)(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[u]=s.coord[u]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),KH(t,n[1]),Object(l.m)({},n[2])])[2].type=e[2].type||null,Object(l.I)(e[2],e[0]),Object(l.I)(e[2],e[1]),e}a(uW,sW=WH),uW.prototype.createMarkerModelFromSeries=function(t,e,n){return new uW(t,e,n)},uW.type="markLine",uW.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"};var hW,dW=uW,pW=zi();function fW(t){return!isNaN(t)&&!isFinite(t)}function gW(t,e,n,i){var o=1-t,r=i.dimensions[t];return fW(e[o])&&fW(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function yW(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(gW(1,n,i,t)||gW(0,n,i,t)))return!0}return $H(t,e[0])&&$H(t,e[1])}function mW(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=oi(l.get("x"),o.getWidth());l=oi(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),pb(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,fW(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):fW(t.get(a[1],e))&&(r[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}function vW(){var t=null!==hW&&hW.apply(this,arguments)||this;return t.type=vW.type,t}a(vW,hW=Hg),vW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i,o,r=WH.getMarkerModelFromSeries(t,"markLine");r&&(e=r.getData(),i=pW(r).from,o=pW(r).to,i.each((function(e){mW(i,e,!0,t,n),mW(o,e,!1,t,n)})),e.each((function(t){e.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout())}),this)},vW.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=(s=s.get(r)||s.set(r,new tA),r=(this.group.add(s.group),((t,e,n)=>{i=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i,o=new b_(i,n),r=new b_(i,n),a=new b_([],n);n=Object(l.H)(n.get("data"),Object(l.h)(cW,e,t,n));return t&&(n=Object(l.n)(n,Object(l.h)(yW,t))),t=JH(!!t,i),o.initData(Object(l.H)(n,(function(t){return t[0]})),null,t),r.initData(Object(l.H)(n,(function(t){return t[1]})),null,t),a.initData(Object(l.H)(n,(function(t){return t[2]}))),a.hasItemOption=!0,{from:o,to:r,line:a}})(o,t,e)),r.from),c=r.to,h=r.line,d=(pW(e).from=u,pW(e).to=c,e.setData(h),e.get("symbol")),p=e.get("symbolSize"),f=e.get("symbolRotate"),g=e.get("symbolOffset");function y(e,n,o){var r=e.getItemModel(n),s=(mW(e,n,o,t,i),r.getModel("itemStyle").getItemStyle());null==s.fill&&(s.fill=Rg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:Object(l.P)(r.get("symbolOffset",!0),g[o?0:1]),symbolRotate:Object(l.P)(r.get("symbolRotate",!0),f[o?0:1]),symbolSize:Object(l.P)(r.get("symbolSize"),p[o?0:1]),symbol:Object(l.P)(r.get("symbol",!0),d[o?0:1]),style:s})}Object(l.t)(d)||(d=[d,d]),Object(l.t)(p)||(p=[p,p]),Object(l.t)(f)||(f=[f,f]),Object(l.t)(g)||(g=[g,g]),r.from.each((function(t){y(u,t,!0),y(c,t,!1)})),h.each((function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[u.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})})),s.updateData(h),r.line.eachItemGraphicEl((function(t){fa(t).dataModel=e,t.traverse((function(t){fa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},vW.type="markLine";var xW,_W=vW;function bW(){var t=null!==xW&&xW.apply(this,arguments)||this;return t.type=bW.type,t}function wW(t,e,n,i){var o,r=i[0];i=i[1];if(r&&i)return r=KH(t,r),t=KH(t,i),i=r.coord,o=t.coord,i[0]=Object(l.O)(i[0],-1/0),i[1]=Object(l.O)(i[1],-1/0),o[0]=Object(l.O)(o[0],1/0),o[1]=Object(l.O)(o[1],1/0),(i=Object(l.J)([{},r,t])).coord=[r.coord,t.coord],i.x0=r.x,i.y0=r.y,i.x1=t.x,i.y1=t.y,i}a(bW,xW=WH),bW.prototype.createMarkerModelFromSeries=function(t,e,n){return new bW(t,e,n)},bW.type="markArea",bW.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var SW=bW,MW=zi();function IW(t){return!isNaN(t)&&!isFinite(t)}function OW(t,e,n){return t=1-t,IW(e[t])&&IW(n[t])}function TW(t,e){var n,i,o,r=e.coord[0],a=e.coord[1],s={coord:r,x:e.x0,y:e.y0};e={coord:a,x:e.x1,y:e.y1};return pb(t,"cartesian2d")?!((!r||!a||!OW(1,r,a)&&!OW(0,r,a))&&(i=s,o=e,n=t)&&n.containZone&&i.coord&&o.coord&&!UH(i)&&!UH(o))||n.containZone(i.coord,o.coord):$H(t,s)||$H(t,e)}function CW(t,e,n,i,o){var r,a,s,l,u,c,h=i.coordinateSystem,d=t.getItemModel(e),p=oi(d.get(n[0]),o.getWidth());d=oi(d.get(n[1]),o.getHeight());return isNaN(p)||isNaN(d)?(c=i.getMarkerPosition?(o=t.getValues(["x0","y0"],e),s=t.getValues(["x1","y1"],e),a=h.clampData(o),c=h.clampData(s),r=[],"x0"===n[0]?r[0]=(a[0]>c[0]?s:o)[0]:r[0]=(a[0]>c[0]?o:s)[0],r[1]=("y0"===n[1]?a[1]>c[1]?s:o:a[1]>c[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],h.clampData&&h.clampData(a,a),h.dataToPoint(a,!0)),pb(h,"cartesian2d")&&(o=h.getAxis("x"),s=h.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),IW(l)?c[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):IW(u)&&(c[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(p)||(c[0]=p),isNaN(d)||(c[1]=d)):c=[p,d],c}var kW,DW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function AW(){var t=null!==kW&&kW.apply(this,arguments)||this;return t.type=AW.type,t}a(AW,kW=Hg),AW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i=WH.getMarkerModelFromSeries(t,"markArea");i&&(e=i.getData()).each((function(i){var o=Object(l.H)(DW,(function(o){return CW(e,i,o,t,n)}));e.setItemLayout(i,o),e.getItemGraphicEl(i).setShape("points",o)}))}),this)},AW.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=s.get(r)||s.set(r,{group:new qn}),c=(this.group.add(u.group),this.markKeep(u),((t,e,n)=>{var i,o,r;return i=t?(r=Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData();n=n.getDimensionInfo(n.mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})),o=Object(l.H)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:r[e%2].type}})),new b_(o,n)):new b_(o=[{name:"value",type:"float"}],n),n=Object(l.H)(n.get("data"),Object(l.h)(wW,e,t,n)),t&&(n=Object(l.n)(n,Object(l.h)(TW,t))),t=t?function(t,e,n,i){return ph(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return ph(t.value,o[i])},i.initData(n,null,t),i.hasItemOption=!0,i})(o,t,e));e.setData(c),c.each((function(e){var n=Object(l.H)(DW,(function(n){return CW(c,e,n,t,i)})),r=o.getAxis("x").scale,s=o.getAxis("y").scale,u=r.getExtent(),h=s.getExtent();r=[r.parse(c.get("x0",e)),r.parse(c.get("x1",e))],s=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))],ai(r),ai(s),u=!(u[0]>r[1]||u[1]s[1]||h[1]{function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0{var e=t.icon||"roundRect",n=Qg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1n[o],g=[-d.x,-d.y],y=(e=(e||(g[i]=u[s]),[0,0]),s=[-p.x,-p.y],l.P(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+y),s[1-i]+=d[r]/2-p[r]/2,u.setPosition(g),c.setPosition(e),h.setPosition(s),g={x:0,y:0},g[o]=(f?n:d)[o],g[r]=Math.max(d[r],p[r]),g[a]=Math.min(0,p[a]+s[1-i]),c.__rectSize=n[o],f?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-y,0),e[r]=g[r],c.setClipPath(new qr({shape:e})),c.__rectSize=e[o]):h.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),d=this._getPageInfo(t);return null!=d.pageIndex&&vs(u,{x:d.contentPosition[0],y:d.contentPosition[1]},f?t:null),this._updatePageInfoView(t,d),g},oY.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},oY.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(l.k(["pagePrev","pageNext"],(function(i){var o=null!=e[i+"DataIndex"];i=n.childOfName(i);i&&(i.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")})),n.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,a=(r=null!=r?r+1:0,e.pageCount);i&&o&&i.setStyle("text",l.C(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},oY.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=(t=t.getOrient().index,nY[t]),r=iY[t],a=(e=this._findTargetItemIndex(e),n.children()),s=a[e],l=a.length,u=l?1:0,c={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,d=n,p=n,f=null;h<=l;++h)(!(f=g(a[h]))&&p.e>d.s+i||f&&!y(f,d.s))&&(d=p.i>d.i?p:f)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=d.i),++c.pageCount),p=f;for(h=e-1,d=n,p=n,f=null;-1<=h;--h)(f=g(a[h]))&&y(p,f.s)||!(d.i=e&&t.s<=e+i}},oY.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild((function(i,o){i=i.__legendDataIndex,null==n&&null!=i&&(n=o),i===t&&(e=o)})),null!=e?e:n):0},oY.type="legend.scroll";var rY,aY=oY;function sY(t){Gm(KW),t.registerComponentModel(tY),t.registerComponentView(aY),t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function lY(){var t=null!==rY&&rY.apply(this,arguments)||this;return t.type=lY.type,t}a(lY,rY=Wg),lY.type="dataZoom.inside",lY.defaultOption=ol(Wg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var uY,cY=lY,hY=zi();function dY(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function pY(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function fY(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function gY(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=hY(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(l.f)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=FB(t);Object(l.k)(n.infoList,(function(n){var o,r,a=n.model.uid,s=i.get(a)||i.set(a,(a=e,s=n.model,o={model:s,containsPoint:Object(l.h)(fY,s),dispatchAction:Object(l.h)(pY,a),dataZoomInfoMap:null,controller:null},r=o.controller=new sO(a.getZr()),Object(l.k)(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var n=[];o.dataZoomInfoMap.each((function(i){var r;e.isAvailableBehavior(i.model.option)&&(r=(r=(i.getRange||{})[t])&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e),!i.model.get("disabled",!0))&&r&&n.push({dataZoomId:i.model.id,start:r[0],end:r[1]})})),n.length&&o.dispatchAction(n)}))})),o));(s.dataZoomInfoMap||(s.dataZoomInfoMap=Object(l.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n,o,r,a,s=t.controller,l=t.dataZoomInfoMap;(e=l&&null!=(n=l.keys()[0])?l.get(n):e)?(r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each((function(t){t=t.model;var e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");r["type_"+o]e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},AY.prototype._onBrushStart=function(t){var e=t.offsetX;this._brushStart=new dt(e,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},AY.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=ai([ii(e.x,n,i=[0,100],!0),ii(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},AY.prototype._onBrush=function(t){this._brushing&&(Q(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},AY.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new OY({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),i=this._brushStart,n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},AY.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?DY:null,start:e[0],end:e[1]})},AY.prototype._findCoordRect=function(){var t,e,n=FB(this.dataZoomModel).infoList;return(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},AY.type="dataZoom.slider";var PY=AY;function jY(t){t.registerComponentModel(IY),t.registerComponentView(PY),sF(t)}var RY,NY={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},EY={get:function(t,e,n){return t=l.d((NY[t]||{})[e]),n&&l.t(t)?t[t.length-1]:t}},zY=jk.mapVisual,VY=jk.eachVisual,BY=l.t,FY=l.k,GY=ai,HY=ii;function WY(){var t=null!==RY&&RY.apply(this,arguments)||this;return t.type=WY.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}a(WY,RY=fu),WY.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},WY.prototype.optionUpdated=function(t,e){var n=this.option;e||GG(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},WY.prototype.resetVisual=function(t){var e=this.stateList;t=l.c(t,this),this.controllerVisuals=FG(this.option.controller,e,t),this.targetVisuals=FG(this.option.target,e,t)},WY.prototype.getItemSymbol=function(){return null},WY.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Oi(t),e},WY.prototype.eachTargetSeries=function(t,e){l.k(this.getTargetSeriesIndices(),(function(n){n=this.ecModel.getSeriesByIndex(n),n&&t.call(e,n)}),this)},WY.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},WY.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound;o=o.formatter,n=n||["<",">"],l.t(t)&&(t=t.slice(),i=!0),e=e?t:i?[s(t[0]),s(t[1])]:s(t);return l.C(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):l.w(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},WY.prototype.resetExtent=function(){var t=this.option;t=GY([t.min,t.max]);this._dataExtent=t},WY.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i];o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},WY.prototype.getExtent=function(){return this._dataExtent.slice()},WY.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={}),r=(l.I(i,n),l.I(o,n),this.isCategory());function a(n){BY(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,o),function(t,e,n){e=t[e];var i=t[n];e&&!i&&(i=t[n]={},FY(e,(function(t,e){var n;jk.isValidType(e)&&null!=(n=EY.get(e,"inactive",r))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";FY(this.stateList,(function(a){var s,u=this.itemSize,c=t[a];null==(c=c||(t[a]={color:r?i:[i]})).symbol&&(c.symbol=e&&l.d(e)||(r?o:[o])),null==c.symbolSize&&(c.symbolSize=n&&l.d(n)||(r?u[0]:[u[0],u[0]])),c.symbol=zY(c.symbol,(function(t){return"none"===t?o:t})),a=c.symbolSize;null!=a&&(s=-1/0,VY(a,(function(t){se[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},UY.prototype.completeVisualOption=function(){YY.prototype.completeVisualOption.apply(this,arguments),l.k(this.stateList,(function(t){t=this.option.controller[t].symbolSize,t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},UY.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},UY.prototype.getSelected=function(){var t=this.getExtent(),e=ai((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},UY.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},UY.prototype.getVisualMeta=function(t){var e=ZY(0,0,this.getExtent()),n=ZY(0,0,this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var r=0,a=0,s=n.length,l=e.length;a{var i=6;t=t.get("hoverLinkDataSize");return t?nX(t,e,n,!0)/2:i})(r,i,a)),t+o],t=nX(t,a,i,!0),i=[nX(n[0],a,i,!0),nX(n[1],a,i,!0)],n[0] ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||lX(r))&&(n=this._hoverLinkDataIndices=r.findTargetDataIndices(i)),t=n,o={},s(a||[],e={}),s(t||[],o,e),i=[l(e),l(o)],this._dispatchHighDown("downplay",tX(i[0],r)),this._dispatchHighDown("highlight",tX(i[1],r)))},aX.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Vg(t.target,(function(t){return t=fa(t),null!=t.dataIndex&&(e=t,1)}),!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},aX.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;na&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:e,outerColors:n};function s(o,r){var a=i.getRepresentValue({interval:o});r=r||i.getValueState(a),a=t(a,r);o[0]===-1/0?n[0]=a:o[1]===1/0?n[1]=a:e.push({value:o[0],color:a},{value:o[1],color:a})}},wX.type="visualMap.piecewise",wX.defaultOption=ol(Xg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var SX={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)}),this)}};function MX(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var IX,OX=wX;function TX(){var t=null!==IX&&IX.apply(this,arguments)||this;return t.type=TX.type,t}a(TX,IX=Xs),TX.prototype.doRender=function(){var t=this.group,e=(t.removeAll(),this.visualMapModel),n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,u=(i=this._getViewData(),i.endsText),c=l.O(e.get("showLabel",!0),!u),h=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,a),l.k(i.viewPieceList,(function(i){var u=i.piece,d=new qn;d.onclick=l.c(this._onItemClick,this,u),this._enableHoverLink(d,i.indexInModelPieceList),i=e.getRepresentValue(u);this._createItemSymbol(d,i,[0,0,s[0],s[1]],h),c&&(i=this.visualMapModel.getValueState(i),d.add(new pa({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===i?.5:1},silent:h}))),t.add(d)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Jl(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},TX.prototype._enableHoverLink=function(t,e){var n=this,i=(t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")})),function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:tX(i.findTargetDataIndices(e),i)})})},TX.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?JY(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},TX.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new qn,a=this.visualMapModel.textStyleModel,r.add(new pa({style:Ds(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r))},TX.prototype._getViewData=function(){var t=this.visualMapModel,e=l.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient");t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},TX.prototype._createItemSymbol=function(t,e,n,i){n=Qg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")),n.silent=i,t.add(n)},TX.prototype._onItemClick=function(t){var e,n,i=this.visualMapModel,o=i.option,r=o.selectedMode;r&&(e=l.d(o.selected),n=i.getSelectedMapKey(t),"single"===r||!0===r?(e[n]=!0,l.k(e,(function(t,i){e[i]=i===n}))):e[n]=!e[n],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e}))},TX.type="visualMap.piecewise";var CX=TX;function kX(t){t.registerComponentModel(OX),t.registerComponentView(CX),_X(t)}var DX={label:{enabled:!0},decal:{show:!1}},AX=zi(),LX={};function PX(t,e){var n,i,o,r,a,s,u,c,h=t.getModel("aria");function d(t,e){var n;return l.C(t)?(n=t,l.k(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n):t}h.get("enabled")&&(c=l.d(DX),l.I(c.label,t.getLocaleModel().get("aria"),!1),l.I(h.option,c,!1),h.getModel("decal").get("show")&&(n=l.f(),t.eachSeries((function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),AX(t).scope=e)})),t.eachRawSeries((function(e){var n,i,o,r,a,s,u;function c(t,e){return t=t?l.m(l.m({},e),t):e,t.dirty=!0,t}t.isSeriesFiltered(e)||(l.w(e.enableAriaDecal)?e.enableAriaDecal():(n=e.getData(),e.isColorBySeries()?(i=Bu(e.ecModel,e.name,LX,t.getSeriesCount()),o=n.getVisual("decal"),n.setVisual("decal",c(o,i))):(r=e.getRawData(),a={},s=AX(e).scope,n.each((function(t){var e=n.getRawIndex(t);a[e]=t})),u=r.count(),r.each((function(t){var i=a[t],o=(t=r.getName(t)||t+"",t=Bu(e.ecModel,t,s,u),n.getItemVisual(i,"decal"));n.setItemVisual(i,"decal",c(o,t))})))))}))),c=e.getZr().dom)&&(e=t.getLocaleModel().get("aria"),(i=h.getModel("label")).option=l.i(i.option,e),i.get("enabled"))&&(c.setAttribute("role","img"),i.get("description")?c.setAttribute("aria-label",i.get("description")):(o=t.getSeriesCount(),r=i.get(["data","maxCount"])||10,e=i.get(["series","maxCount"])||10,a=Math.min(o,e),o<1||(e=(e=(()=>{var e=t.get("title");return(e=e&&e.length?e[0]:e)&&e.text})())?d(i.get(["general","withTitle"]),{title:e}):i.get(["general","withoutTitle"]),s=[],h=1r?n+=d(i.get(["data","partialData"]),{displayCnt:r}):n+=i.get(["data","allData"]),i.get(["data","separator","middle"])),y=(u=i.get(["data","separator","end"]),i.get(["data","excludeDimensionId"])),m=[],v=0;v":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},NX=(EX.prototype.evaluate=function(t){var e=typeof t;return Object(l.C)(e)?this._condVal.test(t):!!Object(l.z)(e)&&this._condVal.test(t+"")},EX);function EX(t){null==(this._condVal=Object(l.C)(t)?new RegExp(t):Object(l.B)(t)?t:null)&&Gu("")}VX.prototype.evaluate=function(){return this.value};var zX=VX;function VX(){}FX.prototype.evaluate=function(){for(var t=this.children,e=0;e"eq"===t||"ne"===t?new bh("eq"===t,e):Object(l.q)(yh,t)?new mh(t,e):null)(d,p)||"reg"===d&&new NX(p))||Gu(""),a.push(d))}return a.length||Gu(""),(u=new XX).valueGetterParam=r,u.valueParser=c,u.getValue=o.getValue,u.subCondList=a,u}function qX(t,e,n){return e=e[t],Object(l.t)(e)||Gu(""),e.length||Gu(""),t=new("and"===t?BX:GX),t.children=Object(l.H)(e,(function(t){return ZX(t,n)})),t.children.length||Gu(""),t}function KX(t){return Object(l.A)(t)&&!Object(l.u)(t)}$X.prototype.evaluate=function(){return this._cond.evaluate()};var QX=$X;function $X(t,e){this._cond=ZX(t,e)}var JX={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:Object(l.f)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(l.q)(t,"dimension")||Gu(""),t=i.getDimensionInfo(e);return t||Gu(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new QX(t,n)),r=[],a=0,s=i.count();aMath.abs(l),c=hU([s,l],u?0:1,e),h=(u?a:l)/c.length,d=0;d{var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],r=[],a=n{for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,u=0;u{for(var e=[],n=t.length,i=0;i{t=o===n?0:Math.round(32767*(t-n)/(o-n)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var a=0,s=32768;0e.length),d=a?RU(s,a):RU(h?e:t,[h?t:e]),p=0,f=0;f{for(var n=t.dimensions,i=0;iVU))for(var o=n.getIndices(),r=0;r{var n=t.length;if(n!==e.length)return!1;for(var i=0;i({})}},setup(t){let{mounted:e,chart:n,beforeDestroy:o,activated:a,deactivated:s}=(()=>{let t=Object(i.ref)(),e=Object(i.ref)(),n=()=>{t.value&&t.value.resize()},o=t=>{"width"===t.propertyName&&n()},r=()=>{window.addEventListener("resize",n)},a=()=>{window.removeEventListener("resize",n)},s=()=>{e.value=document.getElementsByClassName("sidebar-container")[0],e.value&&e.value.addEventListener("transitionend",o)},l=()=>{e.value&&e.value.removeEventListener("transitionend",o)};return{chart:t,mounted:()=>{r(),s()},beforeDestroy:()=>{a(),l()},activated:()=>{r(),s()},deactivated:()=>{a(),l()}}})();return Object(i.watch)(t,t=>{t.options&&n.value&&n.value.setOption(t.options)}),Object(i.onMounted)(()=>{e(),Object(i.nextTick)(()=>{var e;(e=Object(r.b)(document.getElementById(t.id))).setOption(t.options),n.value=e})}),Object(i.onBeforeUnmount)(()=>{o()}),Object(i.onActivated)(()=>{a()}),Object(i.onDeactivated)(()=>{s()}),{}}}),s=n("6b0d");n=n.n(s);e.a=n()(a,[["render",function(t,e,n,r,a,s){return Object(i.openBlock)(),Object(i.createElementBlock)("div",{id:t.id,class:Object(i.normalizeClass)(t.className),style:Object(i.normalizeStyle)({height:t.height,width:t.width})},null,14,o)}]])},"41ef":function(t,e,n){n.d(e,"h",(function(){return y})),n.d(e,"c",(function(){return v})),n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return _})),n.d(e,"g",(function(){return b})),n.d(e,"f",(function(){return w})),n.d(e,"i",(function(){return S})),n.d(e,"e",(function(){return M})),n.d(e,"d",(function(){return O}));e=n("d51b");var i=n("6d8b"),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:255>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(h(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var r=n.indexOf("("),a=n.indexOf(")");if(-1!==r&&a+1===i){i=n.substr(0,r);var u=n.substr(r+1,a-(r+1)).split(","),c=1;switch(i){case"rgba":if(4!==u.length)return 3===u.length?h(e,+u[0],+u[1],+u[2],1):h(e,0,0,0,1);c=l(u.pop());case"rgb":return 3<=u.length?(h(e,s(u[0]),s(u[1]),s(u[2]),3===u.length?c:l(u[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==u.length?void h(e,0,0,0,1):(u[3]=l(u[3]),m(u,e),g(t,e),e);case"hsl":return 3!==u.length?void h(e,0,0,0,1):(m(u,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),o=l(t[2]);i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return h(e=e||[],r(255*u(o,i,n+1/3)),r(255*u(o,i,n)),r(255*u(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function v(t,e){var n=y(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255{var e,n,i,o,r,a,s,l,u,c;if(t)return c=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(c,e,n),o=((i=Math.max(c,e,n))+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-c)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,c===i?r=u-l:e===i?r=1/3+s-u:n===i&&(r=2/3+l-s),r<0&&(r+=1),1{var e={};if("undefined"!=typeof JSON)for(var n=0;n=this._maxSize&&0