!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var a=function(t,e){return(a=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 u(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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new s,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?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):(tt=navigator.userAgent,se=(Gt=w).browser,st=tt.match(/Firefox\/([\d.]+)/),_=tt.match(/MSIE\s([\d.]+)/)||tt.match(/Trident\/.+?rv:(([\d.]+))/),k=tt.match(/Edge?\/([\d.]+)/),tt=/micromessenger/i.test(tt),st&&(se.firefox=!0,se.version=st[1]),_&&(se.ie=!0,se.version=_[1]),k&&(se.edge=!0,se.version=k[1],se.newEdge=18<+k[1].split(".")[0]),tt&&(se.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!se.ie&&!se.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(se.edge||se.ie&&11<=+se.version),Gt.domSupported="undefined"!=typeof document,st=document.documentElement.style,Gt.transform3dSupported=(se.ie&&"transition"in st||se.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in st)&&!("OTransition"in st),Gt.transformSupported=Gt.transform3dSupported||se.ie&&9<=+se.version);var l=12,f="sans-serif",J=l+"px "+f;var h,c,p=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>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 xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var _e=/([&<>"'])/g,be={"&":"&","<":"<",">":">",'"':""","'":"'"};function we(t){return null==t?"":(t+"").replace(_e,function(t,e){return be[e]})}var Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=[],Ie=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Te(t,e,n,i){return n=n||{},i?Ce(t,e,n):Ie&&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):Ce(t,e,n),n}function Ce(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ve(Me,t,o,e))return n.zrX=Me[0],void(n.zrY=Me[1])}n.zrX=n.zrY=0}function De(t){return t||window.event}function Ae(t,e,n){var i;return null==(e=De(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Te(t,i,e,n):(Te(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},nn.prototype.clone=function(){return new nn(this.x,this.y,this.width,this.height)},nn.prototype.copy=function(t){nn.copy(this,t)},nn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},nn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},nn.prototype.isZero=function(){return 0===this.width||0===this.height},nn.create=function(t){return new nn(t.x,t.y,t.width,t.height)},nn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},nn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}nt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){dn.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=yn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){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+h])<0?l=h:a=h+1}return l}function Sn(k,L){var P,O,N=vn,R=0,E=[];function e(t){var e=P[t],n=O[t],i=P[t+1],o=O[t+1],t=(O[t]=n+o,t===R-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),R--,wn(k[i],k,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(o=bn(k[e+n-1],k,i,o,o-1,L)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;lO[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((r=xn(t,n,i,e))=this._maxSize&&0>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),wi(t,e),e):void vi(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(vi(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),wi(t,e),e):void vi(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?vi(e,+a[0],+a[1],+a[2],1):vi(e,0,0,0,1);s=fi(a.pop());case"rgb":return 3<=a.length?(vi(e,gi(a[0]),gi(a[1]),gi(a[2]),3===a.length?s:fi(a[3])),wi(t,e),e):void vi(e,0,0,0,1);case"hsla":return 4!==a.length?void vi(e,0,0,0,1):(a[3]=fi(a[3]),Mi(a,e),wi(t,e),e);case"hsl":return 3!==a.length?void vi(e,0,0,0,1):(Mi(a,e),wi(t,e),e);default:return}}vi(e,0,0,0,1)}}function Mi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=fi(t[1]),o=fi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return vi(e=e||[],pi(255*yi(o,i,n+1/3)),pi(255*yi(o,i,n)),pi(255*yi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ii(t,e){var n=Si(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,255e);f++);f=g(f-1,h-2)}i=u[f+1],n=u[f]}n&&i&&(this._lastFr=f,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:g((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),g=a?this._additiveValue:p?ro:t[c],(oo(l)||p)&&(g=g||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:oo(l)?(1===l?Ji:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},_r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},_r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},_r.prototype.refreshHover=function(){this._needsRefreshHover=!0},_r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},_r.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},_r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},_r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},_r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},_r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},_r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},_r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},_r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},_r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},_r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;el&&(l=s[h],u=h);++r[u],s[u]=0,++a}return V(r,function(t){return t/i})}var Nr=9007199254740991;function Rr(t){var e=2*Math.PI;return(t%e+e)%e}function Er(t){return-1e-4=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;rr){0i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=Za(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;pthis._ux||i>this._uy;return this.addData(ys.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},Rs.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(ys.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},Rs.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ys.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},Rs.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),Ls[0]=i,Ls[1]=o,Os(Ls,r),this.addData(ys.A,t,e,n,n,i=Ls[0],(o=Ls[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Is(o)*n+t,this._yi=Ts(o)*n+e,this},Rs.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},Rs.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ys.R,t,e,n,i),this},Rs.prototype.closePath=function(){this._drawPendingPt(),this.addData(ys.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Rs.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Rs.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Rs.prototype.len=function(){return this._len},Rs.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ks||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Cs(y)>i||c===e-1)&&(g=Math.sqrt(C*C+y*y),o=f,r=x);break;case ys.C:var m=t[c++],v=t[c++],f=t[c++],x=t[c++],_=t[c++],b=t[c++],g=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var g=d*p,f=Xn(t,n,o,a,g),g=Xn(e,i,r,s,g),y=f-u,m=g-h;c+=Math.sqrt(y*y+m*m),u=f,h=g}return c}(o,r,m,v,f,x,_,b,10),o=_,r=b;break;case ys.Q:g=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=$n(t,n,o,p),p=$n(e,i,r,p),g=d-s,f=p-l;u+=Math.sqrt(g*g+f*f),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],f=t[c++],x=t[c++],10),o=f,r=x;break;case ys.A:var _=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,d&&(a=Is(M)*w+_,s=Ts(M)*S+b),g=Ms(w,S)*Ss(As,Math.abs(I)),o=Is(T)*w+_,r=Ts(T)*S+b;break;case ys.R:a=o=t[c++],s=r=t[c++];g=2*t[c++]+2*t[c++];break;case ys.Z:var C=a-o,y=s-r;g=Math.sqrt(C*C+y*y),o=a,r=s}0<=g&&(u+=l[h++]=g)}return this._pathLen=u},Rs.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,V=this._len,c=e<1,p=0,d=0,g=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var f=0;f=Xs[i=0]+t&&a<=Xs[1]+t?h:0;oMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,h=Math.sin(_+b)*x+m;break;case Ws.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Es(c,p,S,p,e,i,o)||Es(S,p,S,M,e,i,o)||Es(S,M,c,M,e,i,o)||Es(c,M,c,p,e,i,o))return!0}else l=(l+=Gs(S,p,S,M,i,o))+Gs(c,M,c,p,i,o);break;case Ws.Z:if(n){if(Es(u,h,c,p,e,i,o))return!0}else l+=Gs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)i.len()&&(uMath.abs(i[1])?0':'':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Md(t,e){return e=e||"transparent",H(t)?t:O(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Id(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Td=nt,Cd=["left","right","top","bottom","width","height"],Dd=[["width","left","right"],["height","top","bottom"]];function Ad(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}var kd=Ad;function Ld(t,e,n){n=vd(n||0);var i=e.width,o=e.height,r=j(t.left,i),a=j(t.top,o),e=j(t.right,i),s=j(t.bottom,o),l=j(t.width,i),u=j(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/oe)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}var yg,mg="\0_ec_inner",vg=(u(xg,yg=kp),xg.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new kp(i),this._locale=new kp(o),this._optionManager=r},xg.prototype.setOption=function(t,e,n){e=wg(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},xg.prototype.resetOption=function(t,e){return this._resetOption(t,wg(e))},xg.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)):hg(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&&nt(n,function(t){i=!0,this._mergeOption(t,e)},this),i},xg.prototype.mergeOption=function(t){this._mergeOption(t,null)},xg.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=R(),p=t&&t.replaceMergeMainTypeMap;eg(this).datasetMap=R(),nt(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?S(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,n){return(e=(e=sg.get(e))&&e(t))?n.concat(e):n}(this,r,Jr(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=na(e,t,n),s=(la(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;nt(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=F({componentIndex:e},t.keyInfo),F(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&lg(this)},this),this._seriesIndices||lg(this)},xg.prototype.getOption=function(){var a=S(this.option);return nt(a,function(t,e){if(g.hasClass(e)){for(var n=Jr(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!sa(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[mg],a},xg.prototype.getTheme=function(){return this._theme},xg.prototype.getLocaleModel=function(){return this._locale},xg.prototype.setUpdatePayload=function(t){this._payload=t},xg.prototype.getUpdatePayload=function(){return this._payload},xg.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;if[1]&&(f[1]=g)}return{start:a,end:this._rawCount=this._count=s}},gy.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=V(r,function(t){return t.property}),u=0;ug[1]&&(g[1]=f)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},gy.prototype.count=function(){return this._count},gy.prototype.get=function(t,e){return 0<=e&&e=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},gy.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[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=f)}}}},gy.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(hy(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},gy.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+we(u)+""+h,t))}function Ay(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return V(t=B(t)?t:[t],function(t,e){return xd(t,B(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":xd(p,"ordinal",d),r=e.valueType,g=h?[]:g(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=wy(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Py(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(B(e)?e.join(" "):e,o)}(t,g,e,a,i)):Ly((c?"":o)+(u?"":''+we(p)+"")+(h?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=B(t)?t:[t],''+V(t,we).join("  ")+""}(g,e,a,i)),n)}function ky(t,e,n,i,o,r){if(t)return Cy(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Ly(t,e){return'
'+t+'
'}function Py(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Oy(t,e){return Md(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Ny(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Ey.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Ey.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Sd({color:e,type:t,renderMode:n,markerId:i});return H(e)?e:(this.richTextStyles[i]=e.style,e.content)},Ey.prototype.wrapRichTextStyle=function(t,e){var n={},e=(B(e)?nt(e,function(t){return F(n,t)}):F(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Ry=Ey;function Ey(){this.richTextStyles={},this._nextStyleNameId=Ur()}function zy(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,g=p.getData(),f=g.mapDimensionsAll("defaultedTooltip"),y=f.length,m=p.getRawValue(d),v=B(m),x=Oy(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Iy("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1this.getShallow("animationThreshold")?!1:t)},Wy.prototype.restoreData=function(){this.dataTask.dirty()},Wy.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return dg.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Wy.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Wy.prototype.getProgressive=function(){return this.get("progressive")},Wy.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Wy.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Wy.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 Zy(e,n){nt(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,P(jy,n))})}function jy(t,e){t=qy(t);return t&&t.setOutputEnd((e||this).count()),e}function qy(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}ut(Gy,Cp),ut(Gy,dg),Ma(Gy,g);$y.prototype.init=function(t,e){},$y.prototype.render=function(t,e,n,i){},$y.prototype.dispose=function(t,e){},$y.prototype.updateView=function(t,e,n,i){},$y.prototype.updateLayout=function(t,e,n,i){},$y.prototype.updateVisual=function(t,e,n,i){},$y.prototype.toggleBlurSeries=function(t,e,n){},$y.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Ky=$y;function $y(){this.group=new Z,this.uid=Op("viewComponent")}function Jy(){var r=i();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}Sa(Ky),Da(Ky);var Qy=i(),tm=Jy(),em=(nm.prototype.init=function(t,e){},nm.prototype.render=function(t,e,n,i){},nm.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&om(t,i,"emphasis")},nm.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&om(t,i,"normal")},nm.prototype.remove=function(t,e){this.group.removeAll()},nm.prototype.dispose=function(t,e){},nm.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},nm.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},nm.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},nm.prototype.eachRendered=function(t){Qc(this.group,t)},nm.markUpdateMethod=function(t,e){Qy(t).updateMethod=e},nm.protoInitialize=void(nm.prototype.type="chart"),nm);function nm(){this.group=new Z,this.uid=Op("viewChart"),this.renderTask=Df({plan:rm,reset:am}),this.renderTask.context={view:this}}function im(t,e,n){t&&ku(t)&&("emphasis"===e?cu:pu)(t,n)}function om(e,t,n){var i,o=ua(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=El[t])&&Rl<=32?El[t]=Rl++:i):null;null!=o?nt(Jr(o),function(t){im(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){im(t,n,r)})}function rm(t){return tm(t.model)}function am(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Qy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),sm[r]}Sa(em),Da(em);var sm={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},lm="\0__throttleOriginMethod",um="\0__throttleRate",hm="\0__throttleType";function cm(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function g(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},wm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},wm.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},wm.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=R();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},wm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;nt(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Tt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},wm.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)},wm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},wm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},wm.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}nt(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},wm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},wm.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())})},wm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},wm.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=R(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Df({plan:Cm,reset:Dm,count:Lm}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},wm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Df({reset:Sm}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=R(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Df({reset:Mm,onDirty:Tm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Tt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,nt(n.getSeries(),c)),h&&r.dirty()},wm.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},wm.wrapStageHandler=function(t,e){return(t=D(t)?{overallReset:t,seriesType:function(t){Pm=null;try{t(Om,Nm)}catch(t){}return Pm}(t)}:t).uid=Op("stageHandler"),e&&(t.visualType=e),t};var bm=wm;function wm(t,e,n,i){this._stageTaskMap=R(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Sm(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mm(t){return t.overallProgress&&Im}function Im(){this.agent.dirty(),this.getDownstream().dirty()}function Tm(){this.agent&&this.agent.dirty()}function Cm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Dm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Jr(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),g.painter.getSvgRoot().innerHTML=f,i.connectedBackgroundColor&&g.painter.setBackgroundColor(i.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(i.connectedBackgroundColor&&g.add(new L({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),nt(p,function(t){t=new ll({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});g.add(t)}),g.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},xv.prototype.convertToPixel=function(t,e){return iv(this,"convertToPixel",t,e)},xv.prototype.convertFromPixel=function(t,e){return iv(this,"convertFromPixel",t,e)},xv.prototype.containPixel=function(t,i){var o;if(!this._disposed)return nt(ca(this._model,t),function(t,n){0<=n.indexOf("Models")&&nt(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},xv.prototype.getVisual=function(t,e){var t=ca(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?Hm(n,t,e):Ym(n,e)},xv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},xv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},xv.prototype._initEvents=function(){var t,n,i,s=this;nt(Iv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&jm(r,function(t){var e,t=$(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=F({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),nt(Cv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),nt(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Zm("map","selectchanged",n,e,t),Zm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Zm("map","selected",n,e,t),Zm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Zm("map","unselected",n,e,t),Zm("pie","unselected",n,e,t))})},xv.prototype.isDisposed=function(){return this._disposed},xv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},xv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ya(this.getDom(),zv,""),e=(t=this)._api,n=t._model,nt(t._componentsViews,function(t){t.dispose(n,e)}),nt(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 Ov[t.id])},xv.prototype.resize=function(t){if(!this[W0])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[H0]&&(null==n&&(n=this[H0].silent),e=!0,this[H0]=null),this[W0]=!0;try{e&&Q0(this),nv.update.call(this,{type:"resize",animation:F({duration:0},t&&t.animation)})}catch(t){throw this[W0]=!1,t}this[W0]=!1,av.call(this,n),sv.call(this,n)}}},xv.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Pv[t]&&(t=Pv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},xv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},xv.prototype.makeActionFromEvent=function(t){var e=F({},t);return e.type=Cv[t.type],e},xv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),Tv[t.type]&&this._model&&(this[W0]?this._pendingActions.push(t):(n=e.silent,rv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),av.call(this,n),sv.call(this,n))))},xv.prototype.updateLabelLayout=function(){F0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},xv.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},xv.internalField=(Q0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),tv(t,!0),tv(t,!1),e.plan()},tv=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),F0.trigger("series:afterupdate",t,e,n)},fv=function(t){t[Y0]=!0,t.getZr().wakeUp()},yv=function(t){t[Y0]&&(t.getZr().storage.traverse(function(t){bc(t)||bv(t)}),t[Y0]=!1)},dv=function(n){return u(t,e=Sg),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){cu(t,e),fv(n)},t.prototype.leaveEmphasis=function(t,e){pu(t,e),fv(n)},t.prototype.enterBlur=function(t){du(t),fv(n)},t.prototype.leaveBlur=function(t){gu(t),fv(n)},t.prototype.enterSelect=function(t){fu(t),fv(n)},t.prototype.leaveSelect=function(t){yu(t),fv(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(gv=function(i){function o(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},F1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},F1.prototype.getExtent=function(){return this._extent.slice()},F1.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},F1.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},F1.prototype.isBlank=function(){return this._isBlank},F1.prototype.setBlank=function(t){this._isBlank=t};var B1=F1;function F1(t){this._setting=t||{},this._extent=[1/0,-1/0]}Da(B1);var G1=0,W1=(H1.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&V(e,Y1);return new H1({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},H1.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},H1.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return H(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},H1.prototype._getOrCreateMap=function(){return this._map||(this._map=R(this.categories))},H1);function H1(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++G1}function Y1(t){return O(t)&&null!=t.value?t.value:t+""}function X1(t){return"interval"===t.type||"log"===t.type}function U1(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Gr(r/e,!0),e=(null!=n&&ri[1]&&(i[0]=i[1]),o}function Z1(t){var e=Math.pow(10,Fr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Dr(t*e)}function j1(t){return kr(t)+2}function q1(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function K1(t,e){return t>=e[0]&&t<=e[1]}function $1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function J1(t,e){return t*(e[1]-e[0])+e[0]}u(ex,Q1=B1),ex.prototype.parse=function(t){return null==t?NaN:H(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},ex.prototype.contain=function(t){return K1(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},ex.prototype.normalize=function(t){return $1(t=this._getTickNumber(this.parse(t)),this._extent)},ex.prototype.scale=function(t){return t=Math.round(J1(t,this._extent)),this.getRawOrdinalNumber(t)},ex.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},ex.prototype.getMinorTicks=function(t){},ex.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},ex.prototype.getOrdinalMeta=function(){return this._ordinalMeta},ex.prototype.calcNiceTicks=function(){},ex.prototype.calcNiceExtent=function(){},ex.type="ordinal";var Q1,tx=ex;function ex(t){var t=Q1.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return B(e=e||new W1({}))&&(e=new W1({categories:V(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}B1.registerClass(tx);var nx,ix=Dr,ox=(u(rx,nx=B1),rx.prototype.parse=function(t){return t},rx.prototype.contain=function(t){return K1(t,this._extent)},rx.prototype.normalize=function(t){return $1(t,this._extent)},rx.prototype.scale=function(t){return J1(t,this._extent)},rx.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},rx.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},rx.prototype.getInterval=function(){return this._interval},rx.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=j1(t)},rx.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]s&&r.push(t?{value:ix(s+e,o)}:{value:n[1]})}return r},rx.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h=M[0]&&d<=M[1]&&a++)}u=(M[1]-M[0])/w;if(1.5*u=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),Sx.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]>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 v_(t,r){var e,n,o;return V(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),nt(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=m_(i,n,o);break;case"Polygon":case"MultiLineString":y_(i,n,o);break;case"MultiPolygon":nt(i,function(t,e){return y_(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0]}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1]}),u},A_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),V(this.scale.getMinorTicks(t=0=u}}for(var r,a=this.__startIndex;ao[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)}},vb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left"),h=rp(i),l=(op(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:Wb(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),u=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(B(e))t.setTextConfig({rotation:0});else{var o,i=t.shape,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?u:s,aw(a),i.get(["label","rotate"]))),gp(l,h,r.getRawValue(n),function(t){return Hb(e,t)}),i.getModel(["emphasis"]));Mu(t,u.get("focus"),u.get("blurScope"),u.get("disabled")),Du(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",nt(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var lw,uw=function(){},hw=(u(cw,lw=q),cw.prototype.getDefaultShape=function(){return new uw},cw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;le[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Di((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},nt(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Kw(t){for(var e,n,i=t.length/2;0l?_:x,(f=Math.abs(d.label.y-l))>=g.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)t.unconstrainedWidth)?null:s,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 dS(t){return"center"===t.position}function gS(t){var S,M,I=t.getData(),T=[],C=!1,D=(t.get("minShowLabelAngle")||0)*hS,e=I.getLayout("viewRect"),A=I.getLayout("r"),k=e.width,L=e.x,n=e.y,e=e.height;function P(t){t.ignore=!0}if(I.each(function(t){var e,n,i,o,r,a,s,l,u,h,c=I.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),g=c.getTextGuideLine(),t=I.getItemModel(t),f=t.getModel("label"),y=f.get("position")||t.get(["emphasis","label","position"]),m=f.get("distanceToLabelLine"),v=f.get("alignTo"),x=j(f.get("edgeDistance"),k),_=f.get("bleedMargin"),t=t.getModel("labelLine"),b=j(t.get("length"),k),w=j(t.get("length2"),k);Math.abs(p.endAngle-p.startAngle)=e.r0},_S.type="pie";var vS,xS=_S;function _S(){var t=null!==vS&&vS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function bS(t,e,n){e=B(e)?{coordDimensions:e}:F({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=L1(i,e).dimensions,e=new k1(e,t);return e.initData(i,n),e}SS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},SS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},SS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},SS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var wS=SS;function SS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var MS,IS=i(),TS=(u(CS,MS=Gy),CS.prototype.init=function(t){MS.prototype.init.apply(this,arguments),this.legendVisualProvider=new wS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},CS.prototype.mergeOption=function(){MS.prototype.mergeOption.apply(this,arguments)},CS.prototype.getInitialData=function(){return bS(this,{coordDimensions:["value"],encodeDefaulter:P(ig,this)})},CS.prototype.getDataParams=function(t){var e,n=this.getData(),i=IS(n),o=i.seats,i=(o||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),o=i.seats=Or(e,n.hostModel.get("percentPrecision"))),MS.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},CS.prototype._defaultLabelLine=function(t){Qr(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},CS.type="series.pie",CS.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"},CS);function CS(){return null!==MS&&MS.apply(this,arguments)||this}r(function(t){t.registerChartView(xS),t.registerSeriesModel(TS),Um("pie",t.registerAction),t.registerLayout(P(lS,"pie")),t.registerProcessor(uS("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),e=n.get(e,t);return!(Y(e)&&!isNaN(e)&&e<0)})}})});u(kS,DS=Gy),kS.prototype.getInitialData=function(t,e){return V1(null,this,{useEncodeDefaulter:!0})},kS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},kS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},kS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},kS.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},kS.type="series.scatter",kS.dependencies=["grid","polar","geo","singleAxis","calendar"],kS.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 DS,AS=kS;function kS(){var t=null!==DS&&DS.apply(this,arguments)||this;return t.type=kS.type,t.hasSymbolVisual=!0,t}var LS,PS=function(){},OS=(u(NS,LS=q),NS.prototype.getDefaultShape=function(){return new PS},NS.prototype.reset=function(){this.notClear=!1,this._off=0},NS.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,e=t.getContext?t.getContext():t,s=e&&o[0]<4,l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;ne[1]&&e.reverse(),e},oM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},oM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var nM,iM=oM;function oM(t,e,n,i,o){t=nM.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function rM(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[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?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),wt(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 aM(t){return"cartesian2d"===t.get("coordinateSystem")}function sM(i){var o={xAxisModel:null,yAxisModel:null};return nt(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,da).models[0];o[e]=n}),o}var lM=Math.log;function uM(t,e,n){var i=ox.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),e=Wx(t,e),s=e.extent,l=e.fixMin,e=e.fixMax,u=("log"===t.type&&(u=lM(t.base),s=[lM(s[0])/u,lM(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),h=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),c=s[0],p=s[1];if(l&&e)h=(p-c)/a;else if(l)for(p=s[0]+h*a;ps[0]&&isFinite(c)&&isFinite(s[0]);)h=Z1(h),c=s[1]-h*a;else{u=(h=ah[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,bM(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*fM/180),bM(c)?a=yM.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var o,n=Rr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Er(n-fM/2)?(o=i?"bottom":"top","center"):Er(n-1.5*fM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*fM&&fM/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)l[1]||Du[1])continue;var C=h.dataToPoint([C,D]),I=new L({shape:{x:C[0]-a/2,y:C[1]-s/2,width:a,height:s},style:T})}else{if(isNaN(d.get(S[1],M)))continue;I=new L({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:T})}d.hasItemOption&&(g=(C=(D=d.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),f=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=C.get("focus"),b=C.get("blurScope"),w=C.get("disabled"),v=rp(D)),I.shape.r=m;var A=t.getRawValue(M),k="-";A&&null!=A[2]&&(k=A[2]+""),op(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:k}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=f,I.ensureState("select").style=y,Mu(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),p.add(I),d.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},p2.prototype._renderOnGeo=function(i,t,e,n){var o,r,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),g=this._hmLayer||this._hmLayer||new s2,t=(g.blurSize=t.get("blurSize"),g.pointSize=t.get("pointSize"),g.minOpacity=t.get("minOpacity"),g.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),f=i.getRoamTransform(),y=(t.applyTransform(f),Math.max(t.x,0)),m=Math.max(t.y,0),f=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=f-y,f=t-m,t=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],d=d.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=y,t[1]-=m,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(h=e.option.range,v=t[1]-t[0],h=[(h[0]-t[0])/v,(h[1]-t[0])/v],function(t){return t>=h[0]&&t<=h[1]}):(o=t,r=e.getPieceList(),a=e.option.selected,s=o[1]-o[0],l=(r=V(r,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,u=0,function(t){for(var e,n=u;nt.x)||(f-=Math.PI)),d=y?"left":"right",t=(g=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==g?-f:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Et(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&($(i).focus=l),o),g=a,f=u,t=i,y=c,s=h,r=p,l=e,o=g.getModel(),u=d.get("edgeShape"),c=d.get("layout"),h=d.getOrient(),p=d.get(["lineStyle","curveness"]),e=d.get("edgeForkPosition"),m=o.getModel("lineStyle").getLineStyle(),v=t.__edge;if("curve"===u)g.parentNode&&g.parentNode!==f&&C(v=v||(t.__edge=new Uh({shape:Q2(c,h,p,y,y)})),{shape:Q2(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&g!==f&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var x=g.children,_=[],b=0;be&&(e=i.height)}this.height=e+1},hT.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;er&&(r=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},_T.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},_T.prototype.setZoom=function(t){this.option.zoom=t},_T.prototype.setCenter=function(t){this.option.center=t},_T.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),i=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Iy("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},_T.prototype.getDataParams=function(t){var e=vT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=mT(t,this),e.collapsed=!t.isExpand,e},_T.type="series.tree",_T.layoutMode="box",_T.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500};var vT,xT=_T;function _T(){var t=null!==vT&&vT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function bT(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 wT(t,A){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=A),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,r=null;r="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,v2(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,v2());var a,s,l,u,h,c,p,d,g,f=(e=t.getData().tree.root).children[0];if(f){var y=e;y.hierNode={defaultAncestor:null,ancestor:y,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var m,v,x=[y];m=x.pop();)if(v=m.children,m.isExpand&&v.length)for(var _=v.length-1;0<=_;_--){var b=v[_];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},x.push(b)}for(var w,S=y2,M=r,I=[f],T=[];w=I.pop();)if(T.push(w),w.isExpand){var C=w.children;if(C.length)for(var D=0;Ds.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=a===s?1:r(a,s)/2,u=e-a.getLayout().x,d=p=c=h=0,"radial"===n?(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),bT(f,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=x2(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),bT(f,function(t){d=(t.getLayout().x+u)*c,p="LR"===g?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==g&&"BT"!==g||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),bT(f,function(t){p=(t.getLayout().x+u)*h,d="TB"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function ST(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();F(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function MT(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function IT(t,e,n,i){var o,r=t.getZoom(),a=t.getCenter(),s=e.zoom,a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(MT(t,a),i)),null!=s&&(n&&(o=n.min||0,n=n.max||1/0,s=Math.max(Math.min(r*s,n),o)/r),t.scaleX*=s,t.scaleY*=s,n=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=n,t.y-=o,t.updateTransform(),t.setCenter(MT(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}r(function(t){t.registerChartView(U2),t.registerSeriesModel(xT),t.registerLayout(wT),t.registerVisual(ST),(t=t).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,t=t.getData().tree.getNodeByDataIndex(e);t.isExpand=!t.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(n,t,i){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=IT(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var TT=["treemapZoomToNode","treemapRender","treemapMove"];function CT(t){for(var e=0;e=i.length||t===i[t.depth])&&(e=bC(r,u,t,e,p,o),n(t,e,i,o))})):(c=yC(u),e.fill=c)}}(e,{},t.getViewRoot().getAncestors(),t)}};function fC(n,i,t){var o=F({},i),r=t.designatedVisualItemStyle;return nt(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function yC(t){var e,n=vC(t,"color");if(n)return e=vC(t,"colorAlpha"),(t=vC(t,"colorSaturation"))&&(n=Ai(n,null,null,t)),e?ki(n,e):n}function mC(t,e){return null!=e?Ai(e,null,null,t):null}function vC(t,e){t=t[e];if(null!=t&&"none"!==t)return t}function xC(t,e,n,i,o,r){if(r&&r.length){var a,r=_C(e,"color")||null!=o.color&&"none"!==o.color&&(_C(e,"colorAlpha")||_C(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 QT(a),dC(e).drColorMappingBy=o,e}}function _C(t,e){t=t.get(e);return B(t)&&t.length?{name:e,range:t}:null}function bC(t,e,n,i,o,r){var a,s,e=F({},e);return o&&(i="index"===(s="color"===(a=o.type)&&dC(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var wC=Math.max,SC=Math.min,MC=wt,IC=nt,TC=["itemStyle","borderWidth"],CC=["itemStyle","gapWidth"],DC=["upperLabel","show"],AC=["upperLabel","height"],kC={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,n=Ld(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],u=j(MC(n.width,l[0]),r),l=j(MC(n.height,l[1]),a),h=i&&i.type,c=gT(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),d=fT(p),u=("treemapMove"!==h&&(h="treemapZoomToNode"===h?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;var e=i*o,l=e*t.option.zoomToNodeRatio;for(;r=a.parentNode;){for(var u=0,h=r.children,c=0,p=h.length;ca[1]&&(a[1]=t)})):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(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]])&&(h=n[l[a]]);for(var c=0,p=t.length;c=e.r0},YC.type="sunburst";var WC,HC=YC;function YC(){var t=null!==WC&&WC.apply(this,arguments)||this;return t.type=YC.type,t}u(ZC,XC=Gy),ZC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;nt(t.children,function(t){e(t);t=t.value;B(t)&&(t=t[0]),n+=t});var i=t.value;B(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);B(t.value)?t.value[0]=i:t.value=i}(n),this._levelModels=V(t.levels||[],function(t){return new kp(t,this,e)},this)),o=cT.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e),e=i[e.depth];return e&&(t.parentModel=e),t})});return o.data},ZC.prototype.optionUpdated=function(){this.resetViewRoot()},ZC.prototype.getDataParams=function(t){var e=XC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=mT(t,this),e},ZC.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},ZC.prototype.getViewRoot=function(){return this._viewRoot},ZC.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)},ZC.prototype.enableAriaDecal=function(){DT(this)},ZC.type="series.sunburst",ZC.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 XC,UC=ZC;function ZC(){var t=null!==XC&&XC.apply(this,arguments)||this;return t.type=ZC.type,t.ignoreStyleOnData=!0,t}var jC,qC=Math.PI/180;function KC(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius"),n=(B(e)||(e=[0,e]),B(t)||(t=[t,t]),r.getWidth()),i=r.getHeight(),c=Math.min(n,i),p=j(t[0],n),d=j(t[1],i),g=j(e[0],c/2),n=j(e[1],c/2),t=-h.get("startAngle")*qC,f=h.get("minAngle")*qC,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get("sort"),o=(null!=e&&!function e(t,n){var i=t.children||[];t.children=$C(i,n);i.length&&nt(t.children,function(t){e(t,n)})}(i,e),0),v=(nt(i.children,function(t){isNaN(t.getValue())||o++}),i.getValue()),x=Math.PI/(v||o)*2,_=0e);a++);a=Math.min(a-1,o-2)}var r=(e-i[a])/(i[a+1]-i[a]),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 ZA,jA=qA;function qA(){var t=null!==ZA&&ZA.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}var KA,$A=function(){this.polyline=!1,this.curveness=0,this.segs=[]},JA=(u(QA,KA=q),QA.prototype.reset=function(){this.notClear=!1,this._off=0},QA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},QA.prototype.getDefaultShape=function(){return new $A},QA.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n ")}))},ck.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},ck.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},ck.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},ck.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0 "+p)),u++)}var d,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i?d=V1(t,n):(G(i=(i=Tg.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=L1(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new k1(i,n)).initData(t)),new k1(["value"],n));return i.initData(l,s),o&&o(d,i),eT({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}ut(nL,aL("hostGraph","data")),ut(oL,aL("hostGraph","edgeData"));u(hL,lL=Gy),hL.prototype.init=function(t){lL.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new wS(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},hL.prototype.mergeOption=function(t){lL.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},hL.prototype.mergeDefaultAndTheme=function(t){lL.prototype.mergeDefaultAndTheme.apply(this,arguments),Qr(t,"edgeLabel",["show"])},hL.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&i)return xk(n=this)&&(n.__curvenessList=[],n.__edgeMap={},_k(n)),nt((n=sL(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=kp.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=o,t}function o(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=o,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,xk(i)&&(e=bk(e,n,i),i=(n=i.__edgeMap)[wk(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},hL.prototype.getGraph=function(){return this.getData().graph},hL.prototype.getEdgeData=function(){return this.getGraph().edgeData},hL.prototype.getCategoriesData=function(){return this._categoriesData},hL.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),Iy("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):zy({series:this,dataIndex:t,multipleSeries:e})},hL.prototype._updateCategoriesData=function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:F({value:0},t)}),e=new k1(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},hL.prototype.setZoom=function(t){this.option.zoom=t},hL.prototype.setCenter=function(t){this.option.center=t},hL.prototype.isAnimationEnabled=function(){return lL.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},hL.type="series.graph",hL.dependencies=["grid","polar","geo","singleAxis","calendar"],hL.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 lL,uL=hL;function hL(){var t=null!==lL&&lL.apply(this,arguments)||this;return t.type=hL.type,t.hasSymbolVisual=!0,t}var cL={type:"graphRoam",event:"graphRoam",update:"none"};r(function(t){t.registerChartView($k),t.registerSeriesModel(uL),t.registerProcessor(gk),t.registerVisual(fk),t.registerVisual(mk),t.registerLayout(Ak),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,zk),t.registerLayout(Bk),t.registerCoordinateSystem("graphView",{dimensions:I2.dimensions,create:Fk}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Bt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Bt),t.registerAction(cL,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=IT(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});u(gL,pL=Gy),gL.type="series.boxplot",gL.dependencies=["xAxis","yAxis","grid"],gL.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800};var pL,dL=gL;function gL(){var t=null!==pL&&pL.apply(this,arguments)||this;return t.type=gL.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}ut(dL,Ia,!0);u(mL,fL=em),mL.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data,a=(this._data||o.removeAll(),"horizontal"===t.get("layout")?1:0);i.diff(r).add(function(t){var e;i.hasValue(t)&&(e=wL(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n,e=r.getItemGraphicEl(e);i.hasValue(t)?(n=i.getItemLayout(t),e?(Ic(e),SL(n,e,i,t)):e=wL(n,i,t,a),o.add(e),i.setItemGraphicEl(t,e)):o.remove(e)}).remove(function(t){t=r.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},mL.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},mL.type="boxplot";var fL,yL=mL;function mL(){var t=null!==fL&&fL.apply(this,arguments)||this;return t.type=mL.type,t}var vL,xL=function(){},_L=(u(bL,vL=q),bL.prototype.getDefaultShape=function(){return new xL},bL.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ir&&(e[1-i]=e[i]+n.sign*r),e}function QL(t,e){t=t[e]-t[1-e];return{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)?JL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[iP(0,u[1]*t/o-o/2)])[1]=nP(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}},uP);function uP(t,e,n){this.type="parallel",this._axesMap=R(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function hP(t,e){return nP(iP(t,e[0]),e[1])}var cP,pP={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new lP(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",da).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},dP=(u(gP,cP=g),gP.prototype.getAreaSelectStyle=function(){return Aa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},gP.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=S(t);if(e)for(var n=e.length-1;0<=n;n--)Ar(e[n])},gP.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;it.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=t&&(0===e?0:i[e-1][0])Math.PI/2&&(c+=Math.PI):"tangential"===h?c=-I-Math.PI/2:Y(h)&&(c=h*Math.PI/180),0===c?d.add(new K({style:ap(_,{text:a,x:l,y:u,verticalAlign:N<-.8?"top":.8v&&(v=b.depth),_.setLayout({depth:V?b.depth:y},!0),"vertical"===c?_.setLayout({dy:h},!0):_.setLayout({dx:h},!0);for(var w=0;w<_.outEdges.length;w++){var S=_.outEdges[w],M=E.indexOf(S),M=(p[M]=0,S.node2),S=u.indexOf(M);0==--d[S]&&f.indexOf(M)<0&&f.push(M)}}++y,g=f,f=[]}for(m=0;mt[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),t=r.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n},size:T($N,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function kR(t){return t instanceof q}function LR(t){return t instanceof ts}u(NR,PR=em),NR.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=BR(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){FR(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&hR(t,XN(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);FR(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Eb(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},NR.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},NR.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=BR(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;un||!!e&&(r=IM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},QR.prototype.makeElOption=function(t,e,n,i,o){},QR.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=KR(t).pointerEl=new tp[o.type]($R(e.pointer)),t.add(o))},QR.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=KR(t).labelEl=new K($R(e.label)),t.add(e),e5(e,i))},QR.prototype.updatePointerEl=function(t,e,n){t=KR(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},QR.prototype.updateLabelEl=function(t,e,n,i){t=KR(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),e5(t,i))},QR.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=jc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Le(t.event)},onmousedown:JR(this._onHandleDragMove,this,0,0),drift:JR(this._onHandleDragMove,this),ondragend:JR(this._onHandleDragEnd,this)}),n.add(i)),i5(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),B(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,pm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},QR.prototype._moveHandleToValue=function(t,e){t5(this._axisPointerModel,!e&&this._moveAnimation,this._handle,n5(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},QR.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(n5(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(n5(t)),KR(n).lastProp=null,this._doDispatchAxisPointer())},QR.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}]}))},QR.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},QR.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),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),dm(this,"_doDispatchAxisPointer")},QR.prototype.doClear=function(){},QR.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},QR);function QR(){this._dragging=!1,this.animationThreshold=15}function t5(t,e,n,i){!function n(i,t){{var o;return O(i)&&O(t)?(o=!0,nt(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(KR(n).lastProp,i)&&(KR(n).lastProp=i,e?C(n,i,t):(n.stopAnimation(),n.attr(i)))}function e5(t,e){t[e.get(["label","show"])?"show":"hide"]()}function n5(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function i5(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)})}function o5(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 r5(t,e,n,i,o){var r=a5(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=vd(n.get("padding")||0),s=n.getFont(),l=$o(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:ap(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function a5(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:Ux(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},nt(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),H(o)?a=o.replace("{value}",a):D(o)&&(a=o(r))),a}function s5(t,e,n){var i=ze();return We(i,i,n.rotation),Ge(i,i,n.position),Wc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function l5(t,e,n,i,o,r){var a=yM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),r5(e,i,o,r,{position:s5(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function u5(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function h5(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function c5(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}u(g5,p5=n0),g5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),h=i.get("type"),a=(h&&"none"!==h&&(r=o5(i),(h=y5[h](a,s,u,l)).style=r,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));r5(t,n,i,o,function(t,e,n,i){var o,r,a=e.axis,t=a.dataToCoord(t),s=(l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI,n.getRadiusAxis().getExtent());{var l;s="radius"===a.dim?(a=ze(),We(a,a,l),Ge(a,a,[n.cx,n.cy]),o=Wc([t,-i],a),a=e.getModel("axisLabel").get("rotate")||0,e=yM.innerTextLayout(l,a*Math.PI/180,-1),r=e.textAlign,e.textVerticalAlign):(l=s[1],o=n.coordToPoint([l+i,t]),a=n.cx,e=n.cy,r=Math.abs(o[0]-a)/l<.3?"center":o[0]>a?"left":"right",Math.abs(o[1]-e)/l<.3?"middle":o[1]>e?"top":"bottom")}return{position:o,align:r,verticalAlign:s}}(e,n,s,a))};var p5,d5=g5;function g5(){return null!==p5&&p5.apply(this,arguments)||this}var f5,y5={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:u5(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:c5(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:c5(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},m5=(u(v5,f5=n0),v5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=x5(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(r=o5(i),(l=_5[l](a,h,u)).style=r,t.graphicKey=l.type,t.pointer=l),rM(s.model,n));l5(e,t,a,n,i,o)},v5.prototype.getHandleTransform=function(t,e,n){var i=rM(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),s5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},v5.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=x5(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}},v5);function v5(){return null!==f5&&f5.apply(this,arguments)||this}function x5(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var _5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:u5([e,n[0]],[e,n[1]],b5(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:h5([e-i/2,n[0]],[i,o],b5(t))}}};function b5(t){return"x"===t.dim?0:1}u(M5,w5=g),M5.type="axisPointer",M5.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 w5,S5=M5;function M5(){var t=null!==w5&&w5.apply(this,arguments)||this;return t.type=M5.type,t}var I5=i(),T5=nt;function C5(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}T5(I5(c).records,function(t){t&&h(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),I5(i).records||(I5(i).records={}),p=e,I5(c=i).initialized||(I5(c).initialized=!0,o("click",P(A5,"click")),o("mousemove",P(A5,"mousemove")),o("globalout",D5)),(I5(i).records[t]||(I5(i).records[t]={})).handler=n)}function D5(t,e,n){t.handler("leave",null,n)}function A5(t,e,n,i){e.handler(t,n,i)}function k5(t,e){w.node||(e=e.getZr(),(I5(e).records||{})[t]&&(I5(e).records[t]=null))}u(O5,L5=Ky),O5.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";C5("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})})},O5.prototype.remove=function(t,e){k5("axisPointer",e)},O5.prototype.dispose=function(t,e){k5("axisPointer",e)},O5.type="axisPointer";var L5,P5=O5;function O5(){var t=null!==L5&&L5.apply(this,arguments)||this;return t.type=O5.type,t}function N5(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ua(n=e.getData(),t))||s<0||B(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(V(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 R5=i();function E5(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,g,f,y,m=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||T(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return G5(v)&&(v=N5({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),r=G5(v),a=x.axesInfo,i=b.axesInfo,s="leave"===m||G5(v),l={},e={list:[],map:{}},u={showPointer:P(V5,o={}),showTooltip:P(B5,e)},nt(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);nt(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&z5(t,i,u,!1,l)})}),h={},nt(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&nt(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,F5(t),F5(n)))),h[n.key]=e)})}),nt(h,function(t,e){z5(i[e],t,u,!0,l)}),c=o,x=i,p=l.axesInfo=[],nt(x,function(t,e){var n=t.axisPointerModel.option,e=c[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})}),m=e,x=t,e=_,G5(t=v)||!m.list.length?e({type:"hideTip"}):(_=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:m.list})),e=i,x=(t=n).getZr(),_="axisPointerLastHighlights",d=R5(x)[_]||{},g=R5(x)[_]={},nt(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&nt(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),f=[],y=[],nt(d,function(t,e){g[e]||y.push(t)}),nt(g,function(t,e){d[e]||f.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),f.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f}),l}function z5(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,g,f=t.axis;!f.scale.isBlank()&&f.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,nt(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((ne[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){var t=t-this.cx,e=e-this.cy,t=t*t+e*e-1e-4,e=this.r,n=this.r0;return t<=e*e&&n*n<=t}}},uE.prototype.convertToPixel=function(t,e,n){return hE(e)===this?this.dataToPoint(n):null},uE.prototype.convertFromPixel=function(t,e,n){return hE(e)===this?this.pointToData(n):null},uE);function uE(t){this.dimensions=sE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eE,this._angleAxis=new rE,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function hE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function cE(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&&(nt(Kx(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),nt(Kx(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),Hx(o.scale,o.model),Hx(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 pE(t,e){var n,i;t.type=e.get("type"),t.scale=Yx(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 dE={dimensions:sE,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new lE(e+""),i=(e.update=cE,e.getRadiusAxis()),o=e.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");pE(i,r),pE(o,a),i=e,r=s,a=(o=t).get("center"),n=r.getWidth(),r=r.getHeight(),i.cx=j(a[0],n),i.cy=j(a[1],r),a=i.getRadiusAxis(),i=Math.min(n,r)/2,null==(n=o.get("radius"))?n=[0,"100%"]:B(n)||(n=[0,n]),r=[j(n[0],i),j(n[1],i)],a.inverse?a.setExtent(r[1],r[0]):a.setExtent(r[0],r[1]),l.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",da).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},gE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function fE(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 yE(t){return t.getRadiusAxis().inverse?0:1}function mE(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()}u(_E,vE=kM),_E.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),mE(s=V(n.getViewLabels(),function(t){t=S(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),mE(r),nt(gE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||wE[t](this.group,e,i,r,a,o,s)},this))},_E.type="angleAxis";var vE,xE=_E;function _E(){var t=null!==vE&&vE.apply(this,arguments)||this;return t.type=_E.type,t.axisPointerClass="PolarAxisPointer",t}var bE,wE={axisLine:function(t,e,n,i,o,r){var e=e.getModel(["axisLine","lineStyle"]),a=n.getAngleAxis(),s=Math.PI/180,l=a.getExtent(),u=yE(n),h=u?0:1,c=360===Math.abs(l[1]-l[0])?"Circle":"Arc",c=0===r[h]?new tp[c]({shape:{cx:n.cx,cy:n.cy,r:r[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:a.inverse},style:e.getLineStyle(),z2:1,silent:!0}):new Th({shape:{cx:n.cx,cy:n.cy,r:r[u],r0:r[h]},style:e.getLineStyle(),z2:1,silent:!0});c.style.fill=null,t.add(c)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[yE(n)],r=V(i,function(t){return new Fh({shape:fE(n,[l,l+s],t.coord)})});t.add(zc(r,{style:z(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"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[yE(n)],h=[],c=0;ca?"left":"right",o=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom",i=(p&&p[i]&&O(s=p[i])&&s.textStyle&&(n=new kp(s.textStyle,d,d.ecModel)),new K({silent:yM.isLabelSilent(u),style:ap(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:o})}));l.add(i),f&&((s=yM.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,$(i).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],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},$E.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},$E.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},$E.prototype.convertToPixel=function(t,e,n){return JE(e)===this?this.dataToPoint(n):null},$E.prototype.convertFromPixel=function(t,e,n){return JE(e)===this?this.pointToData(n):null},$E);function $E(t,e,n){this.type="single",this.dimension="single",this.dimensions=qE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function JE(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var QE,tz={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new KE(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",da).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:qE},ez=["x","y"],nz=["width","height"],iz=(u(oz,QE=n0),oz.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=sz(s,1-az(a)),s=s.dataToPoint(e)[0],u=i.get("type"),a=(u&&"none"!==u&&(r=o5(i),(u=rz[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),EE(n));l5(e,t,a,n,i,o)},oz.prototype.getHandleTransform=function(t,e,n){var i=EE(e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),s5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},oz.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=az(n),r=sz(o,n),a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),sz(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"}}},oz);function oz(){return null!==QE&&QE.apply(this,arguments)||this}var rz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:u5([e,n[0]],[e,n[1]],az(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:h5([e-i/2,n[0]],[i,o],az(t))}}};function az(t){return t.isHorizontal()?0:1}function sz(t,e){t=t.getRect();return[t[ez[e]],t[ez[e]]+t[nz[e]]]}u(hz,lz=Ky),hz.type="single";var lz,uz=hz;function hz(){var t=null!==lz&&lz.apply(this,arguments)||this;return t.type=hz.type,t}r(function(t){r(W5),kM.registerAxisPointerClass("SingleAxisPointer",iz),t.registerComponentView(uz),t.registerComponentView(FE),t.registerComponentModel(YE),jS(t,"single",YE,YE.defaultOption),t.registerCoordinateSystem("single",tz)});u(dz,cz=g),dz.prototype.init=function(t,e,n){var i=Rd(t);cz.prototype.init.apply(this,arguments),gz(t,i)},dz.prototype.mergeOption=function(t){cz.prototype.mergeOption.apply(this,arguments),gz(this.option,t)},dz.prototype.getCellSize=function(){return this.option.cellSize},dz.type="calendar",dz.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 cz,pz=dz;function dz(){var t=null!==cz&&cz.apply(this,arguments)||this;return t.type=dz.type,t}function gz(t,i){var e=t.cellSize,o=B(e)?e:t.cellSize=[e,e],e=(1===o.length&&(o[1]=o[0]),V([0,1],function(t){var e,n;return(null!=(e=i)[Dd[n=t][0]]||null!=e[Dd[n][1]]&&null!=e[Dd[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]}));Nd(t,i,{type:"box",ignoreSize:e})}u(mz,fz=Ky),mz.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)},mz.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 L({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},mz.prototype._renderLines=function(e,t,n,i){for(var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],t.start),h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.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)},mz.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},mz.prototype._drawSplitline=function(t,e,n){t=new Rh({z2:20,shape:{points:t},style:e});n.add(t)},mz.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},mz.prototype._formatterLabel=function(t,e){var n,i;return H(t)&&t?(n=t,nt(e,function(t,e){n=n.replace("{"+e+"}",i?we(t):t)}),n):D(t)?t(e):e.nameMap},mz.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],e=e[1],a=["center","bottom"],o=("bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},mz.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 K({z2:30,style:ap(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},mz.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}},mz.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"),t=o.get("align"),l=[this._tlpoints,this._blpoints],u=(r&&!H(r)||(r=(e=r?Wp(r)||e:e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p=n.start.time&&t.timei.end.time&&n.reverse(),n):o},xz.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),t=r.getDate(),a=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))},xz.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new xz(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},xz.dimensions=["time","value"];var vz=xz;function xz(t,e,n){this.type="calendar",this.dimensions=xz.dimensions,this.getDimensionsInfo=xz.getDimensionsInfo,this._model=t}function _z(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}r(function(t){t.registerComponentModel(pz),t.registerComponentView(yz),t.registerCoordinateSystem("calendar",vz)});u(Sz,bz=g),Sz.type="title",Sz.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 bz,wz=Sz;function Sz(){var t=null!==bz&&bz.apply(this,arguments)||this;return t.type=Sz.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(Tz,Mz=Ky),Tz.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=N(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new K({style:ap(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new K({style:ap(o,{text:l,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),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){Id(r,"_"+t.get("target"))}),a&&o.on("click",function(){Id(a,"_"+t.get("subtarget"))}),$(u).eventData=$(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Ld(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new L({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},Tz.type="title";var Mz,Iz=Tz;function Tz(){var t=null!==Mz&&Mz.apply(this,arguments)||this;return t.type=Tz.type,t}r(function(t){t.registerComponentModel(wz),t.registerComponentView(Iz)});u(Az,Cz=g),Az.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},Az.prototype.mergeOption=function(t,e){Cz.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},Az.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;B(n=!0===n?t.selector=["all","inverse"]:n)&&nt(n,function(t,e){H(t)&&(t={type:t}),n[e]=d(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},Az.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;nn[o],g=[-c.x,-c.y],e=(e||(g[i]=l[s]),[0,0]),s=[-p.x,-p.y],f=N(t.get("pageButtonGap",!0),t.get("itemGap",!0)),g=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+f),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(g),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(g[o]=(d?n:c)[o],g[r]=Math.max(c[r],p[r]),g[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-f,0),e[r]=g[r],u.setClipPath(new L({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&C(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),g},Qz.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Qz.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(nt(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",H(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},Qz.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=Kz[t],r=$z[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=f(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,g=null;c<=l;++c)(!(g=f(a[c]))&&d.e>p.s+i||g&&!y(g,p.s))&&(p=d.i>p.i?d:g)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=g;for(c=e-1,p=n,d=n,g=null;-1<=c;--c)(g=f(a[c]))&&y(d,g.s)||!(p.i=e&&t.s<=e+i}},Qz.prototype._findTargetItemIndex=function(n){var i,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0},Qz.type="legend.scroll",Qz);function Qz(){var t=null!==jz&&jz.apply(this,arguments)||this;return t.type=Qz.type,t.newlineDisabled=!0,t._currentIndex=0,t}r(function(t){r(Hz),t.registerComponentModel(Xz),t.registerComponentView(Jz),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)})})});u(nV,tV=g),nV.type="tooltip",nV.dependencies=["axisPointer"],nV.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var tV,eV=nV;function nV(){var t=null!==tV&&tV.apply(this,arguments)||this;return t.type=nV.type,t}function iV(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function oV(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n'):""),H(t))r.innerHTML=t+c;else if(t){r.innerHTML="",B(t)||(t=[t]);for(var p,d=0;d"),r=g.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,f)})},SV.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=$(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),g=this._renderMode,f=t.positionDefault,y=MV([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new Ry,i.marker=o.makeTooltipMarker("item",Md(i.color),g),f=Cf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=f.frag,a=r?ky(e?F({valueFormatter:e},r):r,o,g,h,l.get("useUTC"),y.get("textStyle")):f.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},SV.prototype._showComponentItemTooltip=function(e,n,t){var i=$(n),o=i.tooltipConfig.option||{},r=[o=H(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=MV(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new Ry;this._showOrMove(a,function(){var t=S(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},SV.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(t=H(h)?(p=n.ecModel.get("useUTC"),t=h,wd(t=(d=B(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?td(d.axisValue,t,p):t,i,!0)):D(h)?(d=T(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},SV.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||B(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:B(e)?void 0:{color:i||e.color||e.borderColor}},SV.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),B(e=D(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=j(e[0],l),i=j(e[1],u)):O(e)?((r=e).width=h[0],r.height=h[1],n=(r=Ld(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=H(e)&&a?function(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,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/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+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];null!=r&&(ih[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Gb(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),gB(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):gB(u)&&(h[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(d)||(h[0]=d),isNaN(p)||(h[1]=p)):h=[d,p],h}var vB,xB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_B=(u(bB,vB=bp),bB.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=LV.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=V(xB,function(t){return mB(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},bB.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new Z}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=V(t&&t.dimensions,function(t){var e=n.getData();return F(F({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new k1(o,e)):new k1(o=[{name:"value",type:"float"}],e)}e=V(e.get("data"),P(pB,n,t,e));t&&(e=pt(e,P(yB,t)));t=t?function(t,e,n,i){return Ff(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return Ff(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o));o.setData(h),h.each(function(e){var t=V(xB,function(t){return mB(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))],o=(Ar(n),Ar(i),!(o[0]>n[1]||o[1]i[1]||r[1]=this._data.count()-1},SB.prototype.setPlayState=function(t){this.option.autoPlay=!!t},SB.prototype.getPlayState=function(){return!!this.option.autoPlay},SB.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],nt(e,function(t,e){var n,i=ra(ea(t),"");O(t)?(n=S(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new k1([{name:"value",type:e}],this)).initData(o,r)},SB.prototype.getData=function(){return this._data},SB.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},SB.type="timeline",SB.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 wB,e=SB;function SB(){var t=null!==wB&&wB.apply(this,arguments)||this;return t.type=SB.type,t.layoutMode="box",t}u(TB,MB=e),TB.type="timeline.slider",TB.defaultOption=Np(e.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:[]});var MB,IB=TB;function TB(){var t=null!==MB&&MB.apply(this,arguments)||this;return t.type=TB.type,t}ut(IB,Cp.prototype);u(DB,CB=Ky),DB.type="timeline";var CB,$m=DB;function DB(){var t=null!==CB&&CB.apply(this,arguments)||this;return t.type=DB.type,t}u(LB,AB=Ip),LB.prototype.getLabelModel=function(){return this.model.getModel("label")},LB.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var AB,kB=LB;function LB(t,e,n,i){t=AB.call(this,t,e,n)||this;return t.type=i||"value",t}var PB,OB=Math.PI,NB=i(),RB=(u(EB,PB=$m),EB.prototype.init=function(t,e){this.api=e},EB.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Iy("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},nt(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},EB.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},EB.prototype.dispose=function(){this._clearTimer()},EB.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,Ld((l=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2n[1]?n[1]:t)e[1]&&(e[1]=t[1])})}),[(e=Fx((n=e.getAxisModel()).axis.scale,n,o).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},m3.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&g3(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=V(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;oc[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):g3(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),g3(h,function(t){i.setApproximateExtent(c,t)}))})},m3.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;g3(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=Cr(r[0]+n,r,[0,100],!0):null!=e&&(n=Cr(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},m3.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Pr(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())},m3);function m3(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var v3={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(YB(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new y3(t,e,i,r),o.push(n.__dzAxisProxy))}),R());return nt(o,function(t){nt(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),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]}))})}};var x3=!1;function _3(t){x3||(x3=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,v3),t.registerAction("dataZoom",function(e,t){nt(XB(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function b3(t){_3(t),t.registerComponentModel(QB),t.registerComponentView(u3),s3(t)}u(M3,w3=Ia),M3.type="dataZoom.slider",M3.layoutMode="box",M3.defaultOption=Np(Ia.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var w3,S3=M3;function M3(){var t=null!==w3&&w3.apply(this,arguments)||this;return t.type=M3.type,t}var I3,T3=L,C3="horizontal",D3="vertical",A3=["line","bar","candlestick","scatter"],k3={easing:"cubicOut",duration:100,delay:0},L3=(u(P3,I3=n0),P3.prototype.init=function(t,e){this.api=e,this._onBrush=T(this._onBrush,this),this._onBrushEnd=T(this._onBrushEnd,this)},P3.prototype.render=function(t,e,n,i){I3.prototype.render.apply(this,arguments),pm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},P3.prototype.dispose=function(){this._clear(),I3.prototype.dispose.apply(this,arguments)},P3.prototype._clear=function(){dm(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},P3.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new Z);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},P3.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===C3?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=Rd(t.option),n=(nt(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),Ld(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===D3&&this._size.reverse()},P3.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==C3||i?n===C3&&i?{scaleY:r?1:-1,scaleX:-1}:n!==D3||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},P3.prototype._getViewExtent=function(){return[0,this._size[0]]},P3.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new T3({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new T3({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:T(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},P3.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),r=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=r)for(var a,s,l,u,h,c,p,d,g,f,y=this._shadowPolygonPts,m=this._shadowPolylinePts,v=(o===this._shadowData&&r===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(i=.3*((a=o.getDataExtent(r))[1]-a[0]),a=[a[0]-i,a[1]+i],s=[0,e[1]],t=[0,e[0]],l=[[e[0],0],[0,0]],u=[],h=t[1]/(o.count()-1),c=0,p=Math.round(o.count()/e[0]),o.each([r],function(t,e){var n;0e[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))},P3.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new E(e,t),this._brushing=!0,this._brushStartTime=+new Date},P3.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=Ar([Cr(e.x,n,i=[0,100],!0),Cr(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},P3.prototype._onBrush=function(t){this._brushing&&(Le(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},P3.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new T3({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),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]})},P3.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?k3:null,start:e[0],end:e[1]})},P3.prototype._findCoordRect=function(){var t,e,n=UB(this.dataZoomModel).infoList;return t=(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}},P3.type="dataZoom.slider",P3);function P3(){var t=null!==I3&&I3.apply(this,arguments)||this;return t.type=P3.type,t._displayables={},t}function O3(t){return"vertical"===t?"ns-resize":"ew-resize"}function N3(t){t.registerComponentModel(S3),t.registerComponentView(L3),_3(t)}r(function(t){r(b3),r(N3)});var R3=["rect","polygon","keep","clear"];function E3(t,e){var n,i,o,r=Jr(t?t.brush:[]);r.length&&(n=[],nt(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=B(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),r=(t=r.feature||(r.feature={})).brush||(t.brush={}),(t=r.type||(r.type=[])).push.apply(t,n),o={},nt(i=t,function(t){o[t]=1}),i.length=0,nt(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,R3)}var z3=nt;function V3(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function B3(e,t,o){var r={};return z3(t,function(n){var i=r[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}z3(e[n],function(t,e){QT.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new QT(t),"opacity"===e)&&((t=S(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new QT(t))})}),r}function F3(e,n,t){var i;nt(t,function(t){n.hasOwnProperty(t)&&V3(n[t])&&(i=!0)}),i&&nt(t,function(t){n.hasOwnProperty(t)&&V3(n[t])?e[t]=S(n[t]):delete e[t]})}var G3={lineX:W3(0),lineY:W3(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&i_(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s,n=n.range;return!(!t||n.length<=1)&&(i=t.x,o=t.y,r=t.width,a=t.height,s=n[0],!!(i_(n,i,o)||i_(n,i+r,o)||i_(n,i,o+a)||i_(n,i+r,o+a)||U.create(t).contain(s[0],s[1])||qc(i,o,i+r,o,n)||qc(i,o,i,o+a,n)||qc(i+r,o,i+r,o+a,n)||qc(i,o+a,i+r,o+a,n))||void 0)}}};function W3(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t)return n=n.range,H3(t[i],n)},rect:function(t,e,n){if(t)return n=n.range,(t=[t[o[i]],t[o[i]]+t[r[i]]])[1]t[1]&&t.reverse(),t}function j3(t,e){return ca(t,e,{includeMainTypes:Y3})}var q3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=R(),a={},s={};(o||r||t)&&(nt(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),nt(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),nt(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];nt(e.getCartesians(),function(t,e){(0<=G(o,t.getAxis("x").model)||0<=G(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:$3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){nt(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:$3.geo})})}},K3=[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){t=t.geoModel;return t&&t===e.geoModel}],$3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Gc(t)),e}},J3={lineX:P(Q3,0),lineY:P(Q3,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=[Z3([o[0],t[0]]),Z3([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:V(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function Q3(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=Z3(V([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),r=[];return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var tF={lineX:P(eF,0),lineY:P(eF,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,n,i){return V(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function eF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function nF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var iF=["inBrush","outOfBrush"],oF="__ecBrushSelect",rF="__ecInBrushSelectEvent";function aF(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new X3(t.option,e)).setInputRanges(t.areas,e)})}function sF(c,t,e){var o,r,n,i,a,s,l=[];c.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),aF(c),c.eachComponent({mainType:"brush"},function(u,t){var y={brushId:u.id,brushIndex:t,brushName:u.name,areas:S(u.areas),selected:[]},e=(l.push(y),u.option),n=e.brushLink,i=[],m=[],v=[],x=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),V(u.areas,function(t){var e,n,i,o=hF[t.brushType],o=z({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return G3[n].point(t,i,e)},rect:function(t){return G3[n].rect(t,i,e)}}),o})),_=B3(u.option,iF,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}B(n)&&nt(n,function(t){i[t]=1}),c.eachSeries(function(t,e){var n,i,o,r,a,s,l=v[e]=[];"parallel"===t.subType?(a=e,s=(r=t).coordinateSystem,x=x||s.hasAxisBrushed(),b(a)&&s.eachActiveState(r.getData(),function(t,e){"active"===t&&(m[e]=1)})):(a=e,i=l,(n=t).brushSelector&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(B(t)?G(t,e)<0:e!==t)}(u,a)&&(nt(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),x=x||w(i)}),b(a))&&w(i)&&(o=n.getData()).each(function(t){uF(n,i,o,t)&&(m[t]=1)}))}),c.eachSeries(function(e,t){var s,l,u,h,c,p,d,n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]},i=(y.selected.push(n),v[t]),o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return uF(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function g(t){return Hm(l,p,t)}function f(t,e){Xm(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;oo[0][1]&&(o[0][1]=r[0]),r[1]o[1][1]&&(o[1][1]=r[1])}return o&&cF(o)}};function cF(t){return new U(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}u(gF,pF=Ky),gF.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new DP(e.getZr())).on("brush",T(this._onBrush,this)).mount()},gF.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},gF.prototype.updateTransform=function(t,e,n,i){aF(e),this._updateController(t,e,n,i)},gF.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},gF.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},gF.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())},gF.prototype.dispose=function(){this._brushController.dispose()},gF.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:S(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:S(n),$from:e})},gF.type="brush";var pF,dF=gF;function gF(){var t=null!==pF&&pF.apply(this,arguments)||this;return t.type=gF.type,t}u(mF,fF=g),mF.prototype.optionUpdated=function(t,e){var n=this.option,e=(e||F3(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},mF.prototype.setAreas=function(t){t&&(this.areas=V(t,function(t){return vF(this.option,t)},this))},mF.prototype.setBrushOption=function(t){this.brushOption=vF(this.option,t),this.brushType=this.brushOption.brushType},mF.type="brush",mF.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],mF.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 fF,yF=mF;function mF(){var t=null!==fF&&fF.apply(this,arguments)||this;return t.type=mF.type,t.areas=[],t.brushOption={},t}function vF(t,e){return d({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new kp(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function xF(){}var _F={};function bF(t,e){_F[t]=e}function wF(t){return _F[t]}var SF,MF=["rect","polygon","lineX","lineY","keep","clear"],IF=(u(TF,SF=xF),TF.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,nt(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},TF.prototype.updateView=function(t,e,n){this.render(t,e,n)},TF.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return nt(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},TF.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}})},TF.getDefaultOption=function(t){return{show:!0,type:MF.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"])}},TF);function TF(){return null!==SF&&SF.apply(this,arguments)||this}r(function(t){t.registerComponentView(dF),t.registerComponentModel(yF),t.registerPreprocessor(E3),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,sF),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Bt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Bt),bF("brush",IF)});var CF,DF=function(t,e,n){t=S((AF[t]||{})[e]);return n&&B(t)?t[t.length-1]:t},AF={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]}},kF=QT.mapVisual,LF=QT.eachVisual,PF=B,OF=nt,NF=Ar,RF=Cr,bp=(u(EF,CF=g),EF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},EF.prototype.optionUpdated=function(t,e){var n=this.option;e||F3(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},EF.prototype.resetVisual=function(t){var e=this.stateList;t=T(t,this),this.controllerVisuals=B3(this.option.controller,e,t),this.targetVisuals=B3(this.option.target,e,t)},EF.prototype.getItemSymbol=function(){return null},EF.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=Jr(t),n},EF.prototype.eachTargetSeries=function(e,n){nt(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},EF.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},EF.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(n=n||["<",">"],B(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return H(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):D(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))}},EF.prototype.resetExtent=function(){var t=this.option,t=NF([t.min,t.max]);this._dataExtent=t},EF.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}},EF.prototype.getExtent=function(){return this._dataExtent.slice()},EF.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={}),u=(d(i,t),d(o,t),this.isCategory());function r(t){PF(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},OF(e,function(t,e){var n;QT.isValidType(e)&&null!=(n=DF(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";OF(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:u?s:[s]})).symbol&&(i.symbol=r&&S(r)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&S(a)||(u?n[0]:[n[0],n[0]])),i.symbol=kF(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,LF(t,function(t){ee[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},FF.prototype.completeVisualOption=function(){zF.prototype.completeVisualOption.apply(this,arguments),nt(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},FF.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},FF.prototype.getSelected=function(){var t=this.getExtent(),e=Ar((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"},FF.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},FF.prototype.getVisualMeta=function(n){var t=GF(0,0,this.getExtent()),e=GF(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;at[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},QF.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},QF.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Z("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},QF.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),qF([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],jF(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),n=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,Wc(r.handleLabelPoints[t],Gc(e,this.group)));l[t].setStyle({x:n[0],y:n[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},QF.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),t=jF(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Wc(l.indicatorLabelPoint,Gc(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,n=(c.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:h}}),e={style:{x:a[0],y:a[1]}},d=(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),c.animateTo(e,p)):(u.attr(n),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var g=0;g ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||e4(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",UF(i[0],r)),this._dispatchHighDown("highlight",UF(i[1],r)))},QF.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;jm(t.target,function(t){t=$(t);return 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))},QF.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;nn&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}},f4.type="visualMap.piecewise",f4.defaultOption=Np(bp.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 d4,g4=f4;function f4(){var t=null!==d4&&d4.apply(this,arguments)||this;return t.type=f4.type,t._pieceList=[],t}var y4={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 m4(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}u(_4,v4=e),_4.prototype.doRender=function(){var i=this.group,o=(i.removeAll(),this.visualMapModel),r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,h=wt(o.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],u,h,l),nt(t.viewPieceList,function(t){var e=t.piece,n=new Z,t=(n.onclick=T(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new K({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),i.add(n)},this),e&&this._renderEndsText(i,e[1],u,h,l),kd(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},_4.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:UF(e.findTargetDataIndices(n),e)})})},_4.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?XF(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},_4.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Z,a=this.visualMapModel.textStyleModel,r.add(new K({style:ap(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))},_4.prototype._getViewData=function(){var t=this.visualMapModel,e=V(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}},_4.prototype._createItemSymbol=function(t,e,n){t.add(s0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_4.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(n=S(o.selected),i=e.getSelectedMapKey(t),"single"===r||!0===r?(n[i]=!0,nt(n,function(t,e){n[e]=e===i})):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n}))},_4.type="visualMap.piecewise";var v4,x4=_4;function _4(){var t=null!==v4&&v4.apply(this,arguments)||this;return t.type=_4.type,t}function b4(t){t.registerComponentModel(g4),t.registerComponentView(x4),c4(t)}r(function(t){r(p4),r(b4)});u(M4,w4=Ia),M4.type="dataZoom.select";var w4,S4=M4;function M4(){var t=null!==w4&&w4.apply(this,arguments)||this;return t.type=M4.type,t}u(C4,I4=n0),C4.type="dataZoom.select";var I4,T4=C4;function C4(){var t=null!==I4&&I4.apply(this,arguments)||this;return t.type=C4.type,t}function D4(t){t.registerComponentModel(S4),t.registerComponentView(T4),_3(t)}u(L4,A4=g),L4.prototype.optionUpdated=function(){A4.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;nt(this.option.feature,function(t,e){e=wF(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},L4.type="toolbox",L4.layoutMode={type:"box",ignoreSize:!0},L4.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 A4,k4=L4;function L4(){var t=null!==A4&&A4.apply(this,arguments)||this;return t.type=L4.type,t}u(N4,P4=Ky),N4.prototype.render=function(p,d,g,f){var y,m,v,x,_,t,e,n,i,o,r,b=this.group;function a(t,e){var n,t=_[t],e=_[e],i=v[t],o=new kp(i,p,p.ecModel);if(f&&null!=f.newTitle&&f.featureName===t&&(i.title=f.newTitle),t&&!e){if(0===t.indexOf("my"))n={onclick:o.option.onclick,featureName:t};else{i=wF(t);if(!i)return;n=new i}x[t]=n}else if(!(n=x[e]))return;n.uid=Op("toolbox-feature"),n.model=o,n.ecModel=d,n.api=g;var r,a,s,l,u,h,c,i=n instanceof xF;!t&&e?i&&n.dispose&&n.dispose(d,g):!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(d,g):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),i=a instanceof xF&&a.getIcons?a.getIcons():r.get("icon"),t=r.get("title")||{},H(i)?(s={})[e]=i:s=i,H(t)?(l={})[e]=t:l=t,c=r.iconPaths={},nt(s,function(t,e){var n=jc(t,{},{x:-y/2,y:-y/2,width:y,height:y});n.setStyle(u.getItemStyle());n.ensureState("emphasis").style=h.getItemStyle();var i=new K({style:{text:l[e],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:pp({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},d)},ignore:!0});n.setTextContent(i),$c({el:n,componentModel:p,itemName:e,formatterParamsExtra:{title:l[e]}}),n.__title=l[e],n.on("mouseover",function(){var t=h.getItemStyle(),e=m?null==p.get("right")&&"right"!==p.get("left")?"right":"left":null==p.get("bottom")&&"bottom"!==p.get("top")?"bottom":"top";i.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),n.setTextConfig({position:h.get("textPosition")||e}),i.ignore=!p.get("showTitle"),g.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&g.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?cu:pu)(n),b.add(n),n.on("click",T(a.onclick,a,d,g,e)),c[e]=n}),o.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?cu:pu)(i[t])},n instanceof xF&&n.render&&n.render(o,d,g,f))}b.removeAll(),p.get("show")&&(y=+p.get("itemSize"),m="vertical"===p.get("orient"),v=p.get("feature")||{},x=this._features||(this._features={}),_=[],nt(v,function(t,e){_.push(e)}),new i1(this._featureNames||[],_).add(a).update(a).remove(P(a,null)).execute(),this._featureNames=_,t=b,n=g,i=(e=p).getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},r=Ld(i,n,o),kd(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Pd(t,i,n,o),b.add(kz(b.getBoundingRect(),p)),m||b.eachChild(function(t){var e,n,i=t.__title,o=t.ensureState("emphasis"),o=o.textConfig||(o.textConfig={}),r=t.getTextContent(),r=r&&r.ensureState("emphasis");r&&!D(r)&&i&&(r=r.style||(r.style={}),i=$o(i,K.makeFont(r)),e=t.x+b.x,n=!1,t.y+b.y+y+i.height>g.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:y+10,e+i.width/2>g.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},N4.prototype.updateView=function(t,e,n,i){nt(this._features,function(t){t instanceof xF&&t.updateView&&t.updateView(t.model,e,n,i)})},N4.prototype.remove=function(e,n){nt(this._features,function(t){t instanceof xF&&t.remove&&t.remove(e,n)}),this.group.removeAll()},N4.prototype.dispose=function(e,n){nt(this._features,function(t){t instanceof xF&&t.dispose&&t.dispose(e,n)})},N4.type="toolbox";var P4,O4=N4;function N4(){return null!==P4&&P4.apply(this,arguments)||this}u(z4,R4=xF),z4.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=w.browser;if(D(MouseEvent)&&(t.newEdge||!t.ie&&!t.edge)){var t=document.createElement("a"),a=(t.download=i+"."+r,t.target="_blank",t.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob||o){var t=e.split(","),a=-1',o=window.open();o.document.write(t),o.document.title=i}},z4.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 R4,E4=z4;function z4(){return null!==R4&&R4.apply(this,arguments)||this}var V4,B4="__ec_magicType_stack__",F4=[["line","bar"],["stack"]],G4=(u(W4,V4=xF),W4.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return nt(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},W4.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:{}}},W4.prototype.onclick=function(t,e,a){var s,n,l=this.model,i=l.get(["seriesIndex",a]);H4[a]&&(s={series:[]},nt(F4,function(t){0<=G(t,a)&&nt(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,e=H4[a](e,n,t,l),n=(e&&(z(e,t.option),s.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=t.getReferringComponents(i,da).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(t=a)&&(n=d({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a]))&&(t="tiled"),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:s,newTitle:n,featureName:"magicType"}))},W4);function W4(){return null!==V4&&V4.apply(this,arguments)||this}var H4={line:function(t,e,n,i){if("bar"===t)return d({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 d({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){n=n.get("stack")===B4;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":B4},i.get(["option","stack"])||{},!0)}},Y4=(Uv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),new Array(60).join("-")),X4="\t";function U4(t){o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):r).push(t)});var o,r,a,h,t={seriesGroupByCategoryAxis:o,other:r,meta:a};return{value:pt([(h=[],nt(t.seriesGroupByCategoryAxis,function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(V(t.series,function(t){return t.name})),r=[n.model.getCategories()],a=(nt(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))}),[o.join(X4)]),s=0;s":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},DG=(AG.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):!!Y(e)&&this._condVal.test(t+"")},AG);function AG(t){null==(this._condVal=H(t)?new RegExp(t):_t(t)?t:null)&&jr("")}LG.prototype.evaluate=function(){return this.value};var kG=LG;function LG(){}OG.prototype.evaluate=function(){for(var t=this.children,e=0;e"}(i,o)+("style"!==i?we(e):e||"")+(n?r+V(n,t).join(r)+r:"")+""}(t)}function dW(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gW(t,e,n,i){return cW("svg","root",{width:t,height:e,xmlns:rW,"xmlns:xlink":aW,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var fW=0;var yW={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"},mW="transform-origin";var vW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function xW(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function _W(t){return H(t)?yW[t]?"cubic-bezier("+yW[t]+")":ii(t)?t:"":""}function bW(A,k,L,P){var t=A.animators,e=t.length,n=[];if(A instanceof Qh){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(nt(t,function(t){var e=dW(u.zrId),t=(e.animation=!0,bW(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=W(t),i=e.length;if(i){var o,r,a=t[c=e[i-1]];for(o in a){var s=a[o];p[o]=p[o]||{d:""},p[o].d+=s.d||""}for(r in n){var l=n[r].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=xW(p,u),h.replace(c,t)}(A,k,L))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s"].join(r):"")&&(e=cW("style","stl",{},[],c),h.push(e)),gW(i,l,h,t.useViewBox)},oH.prototype.renderToString=function(t){return pW(this.renderToVNode({animation:N((t=t||{}).cssAnimation,!0),emphasis:N(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:N(t.useViewBox,!0)}),{newline:!0})},oH.prototype.setBackgroundColor=function(t){this._backgroundColor=t},oH.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},oH.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,g=0;g