!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 p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new y,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:!w.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1>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)}e.clearMarkers=function(){Z(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function me(t){return"CANVAS"===t.nodeName.toUpperCase()}var ve=/([&<>"'])/g,_e={"&":"&","<":"<",">":">",'"':""","'":"'"};function xe(t){return null==t?"":(t+"").replace(ve,function(t,e){return _e[e]})}var be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=[],Se=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Me(t,e,n,i){return n=n||{},i?Te(t,e,n):Se&&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):Te(t,e,n),n}function Te(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ye(we,t,o,e))return n.zrX=we[0],void(n.zrY=we[1])}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function Ie(t,e,n){var i;return null==(e=Ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Me(t,i,e,n):(Me(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=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},rn.prototype.contain=function(t,e){return rn.contain(this,t,e)},rn.prototype.clone=function(){return new rn(this.x,this.y,this.width,this.height)},rn.prototype.copy=function(t){rn.copy(this,t)},rn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},rn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},rn.prototype.isZero=function(){return 0===this.width||0===this.height},rn.create=function(t){return new rn(t.x,t.y,t.width,t.height)},rn.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},rn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){_n.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=wn(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 Dn(A,P){var L,O,R=Mn,z=0,N=[];function e(t){var e=L[t],n=O[t],i=L[t+1],o=O[t+1],t=(O[t]=n+o,t===z-3&&(L[t+1]=L[t+2],O[t+1]=O[t+2]),z--,kn(A[i],A,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=In(A[e+n-1],A,i,o,o-1,P)))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=Tn(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),Ii(t,e),e):void Si(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(Si(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),Ii(t,e),e):void Si(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?Si(e,+a[0],+a[1],+a[2],1):Si(e,0,0,0,1);s=xi(a.pop());case"rgb":return 3<=a.length?(Si(e,_i(a[0]),_i(a[1]),_i(a[2]),3===a.length?s:xi(a[3])),Ii(t,e),e):void Si(e,0,0,0,1);case"hsla":return 4!==a.length?void Si(e,0,0,0,1):(a[3]=xi(a[3]),Di(a,e),Ii(t,e),e);case"hsl":return 3!==a.length?void Si(e,0,0,0,1):(Di(a,e),Ii(t,e),e);default:return}}Si(e,0,0,0,1)}}function Di(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=xi(t[1]),o=xi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return Si(e=e||[],mi(255*bi(o,i,n+1/3)),mi(255*bi(o,i,n)),mi(255*bi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ai(t,e){var n=ki(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);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),f=a?this._additiveValue:p?ho:t[c],(uo(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:uo(l)?(1===l?io:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},Ar.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Ar.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Ar.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ar.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Ar.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Ar.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Ar.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Ar.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Ar.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Ar.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Ar.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Ar.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Ar.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Ar.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,o=0,r=t.length;oh){I=r.lines.length;0i.width&&(r=e.split("\n"),c=!0),i.accumWidth=s):(s=ns(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,r=s.lines)),r=r||e.split("\n"),tr(t)),d=0;dthis._ux||i>this._uy;return this.addData(As.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},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(As.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},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(As.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Zs[0]=i,Zs[1]=o,s=r,(l=Xs((a=Zs)[0]))<0&&(l+=Gs),h=l-a[0],u=a[1],u+=h,!s&&Gs<=u-l?u=l+Gs:s&&Gs<=l-u?u=l-Gs:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Hs(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case As.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=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 f=d*p,g=Kn(t,n,o,a,f),f=Kn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,b,10),o=x,r=b;break;case As.Q:f=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=ni(t,n,o,p),p=ni(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case As.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,d&&(a=Vs(M)*w+x,s=Fs(M)*S+b),f=Es(w,S)*Bs(Gs,Math.abs(T)),o=Vs(C)*w+x,r=Fs(C)*S+b;break;case As.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case As.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,N=this._ux,B=this._uy,E=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g=nl[i=0]+t&&a<=nl[1]+t?h:0;oMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case Js.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(qs(c,p,S,p,e,i,o)||qs(S,p,S,M,e,i,o)||qs(S,M,c,M,e,i,o)||qs(c,M,c,p,e,i,o))return!0}else l=(l+=Qs(S,p,S,M,i,o))+Qs(c,M,c,p,i,o);break;case Js.Z:if(n){if(qs(u,h,c,p,e,i,o))return!0}else l+=Qs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)n,i=(o=o.slice(0,n)).length*c),t&&u&&null!=f)for(var y=qa(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;vCc.len()&&(sVr(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 Yd(t,e){return e=e||"transparent",F(t)?t:N(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function qd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var jd={},Kd={},$d=(Qd.prototype.create=function(i,o){function t(t){var n=[];return Z(t,function(t,e){t=t.create(i,o);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(jd),this._normalMasterList=t(Kd)},Qd.prototype.update=function(e,n){Z(this._normalMasterList,function(t){t.update&&t.update(e,n)})},Qd.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},Qd.register=function(t,e){"matrix"===t||"calendar"===t?jd[t]=e:Kd[t]=e},Qd.get=function(t){return Kd[t]||jd[t]},Qd);function Qd(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var Jd={coord:1,coord2:2},tf=L();var ef=Z,nf=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function rf(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 af=rf;function sf(t,e,n){n=Hd(n||0);var i=e.width,o=e.height,r=Hr(t.left,i),a=Hr(t.top,o),s=Hr(t.right,i),l=Hr(t.bottom,o),u=Hr(t.width,i),h=Hr(t.height,o),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/oe)return t[i];return t[n-1]}var jf,Kf="\0_ec_inner",$f=(a(Qf,jf=$p),Qf.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new $p(i),this._locale=new $p(o),this._optionManager=r},Qf.prototype.setOption=function(t,e,n){e=eg(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Qf.prototype.resetOption=function(t,e){return this._resetOption(t,eg(e))},Qf.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)):Uf(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&&Z(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Qf.prototype.mergeOption=function(t){this._mergeOption(t,null)},Qf.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=L(),p=t&&t.replaceMergeMainTypeMap;Bf(this).datasetMap=L(),Z(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=Hf.get(e))&&e(t))?n.concat(e):n}(this,r,la(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=pa(e,t,n),s=(va(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;Z(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=G({componentIndex:e},t.keyInfo),G(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&&Wf(this)},this),this._seriesIndices||Wf(this)},Qf.prototype.getOption=function(){var a=S(this.option);return Z(a,function(t,e){if(g.hasClass(e)){for(var n=la(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!ma(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Kf],a},Qf.prototype.setTheme=function(t){this._theme=new $p(t),this._resetOption("recreate",null)},Qf.prototype.getTheme=function(){return this._theme},Qf.prototype.getLocaleModel=function(){return this._locale},Qf.prototype.setUpdatePayload=function(t){this._payload=t},Qf.prototype.getUpdatePayload=function(){return this._payload},Qf.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;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=E(r,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.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},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;ot[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}}},l.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(Vy(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},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+xe(u)+""+h,t))}function om(t,e,n,i){var o,r,a,s,l,u=t.renderMode,h=e.noName,c=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return E(t=V(t)?t:[t],function(t,e){return Wd(t,V(r)?r[e]:r,f)})};if(!h||!c)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||I.color.secondary,u),d=h?"":Wd(d,"ordinal",f),r=e.valueType,g=c?[]:g(e.value,e.dataIndex),e=!p||!h,a=!p&&h,l=$y(i,u),s=l.nameStyle,l=l.valueStyle,"richText"===u?(p?"":o)+(h?"":sm(t,d,s))+(c?"":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(V(e)?e.join(" "):e,o)}(t,g,e,a,l)):am(i,(p?"":o)+(h?"":''+xe(d)+"")+(c?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=V(t)?t:[t],''+E(t,xe).join("  ")+""}(g,e,a,l)),n)}function rm(t,e,n,i,o,r){if(t)return nm(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function am(t,e,n){return'
'+e+'
'}function sm(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function lm(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}hm.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},hm.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Xd({color:e,type:t,renderMode:n,markerId:i});return F(e)?e:(this.richTextStyles[i]=e.style,e.content)},hm.prototype.wrapRichTextStyle=function(t,e){var n={},e=(V(e)?Z(e,function(t){return G(n,t)}):G(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var um=hm;function hm(){this.richTextStyles={},this._nextStyleNameId=ia()}function cm(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=V(m),_=(_=d,Yd((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(tm("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)},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Xf.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},r.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},r.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 xm(e,n){Z(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,T(bm,n))})}function bm(t,e){t=wm(t);return t&&t.setOutputEnd((e||this).count()),e}function wm(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(gm,ty),ut(gm,Xf),Oa(gm,g);Mm.prototype.init=function(t,e){},Mm.prototype.render=function(t,e,n,i){},Mm.prototype.dispose=function(t,e){},Mm.prototype.updateView=function(t,e,n,i){},Mm.prototype.updateLayout=function(t,e,n,i){},Mm.prototype.updateVisual=function(t,e,n,i){},Mm.prototype.toggleBlurSeries=function(t,e,n){},Mm.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Sm=Mm;function Mm(){this.group=new Mr,this.uid=td("viewComponent")}function Tm(){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"}}La(Sm),Ba(Sm);var Cm=i(),Im=Tm(),km=(Dm.prototype.init=function(t,e){},Dm.prototype.render=function(t,e,n,i){},Dm.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Pm(t,i,"emphasis")},Dm.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Pm(t,i,"normal")},Dm.prototype.remove=function(t,e){this.group.removeAll()},Dm.prototype.dispose=function(t,e){},Dm.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Dm.prototype.eachRendered=function(t){yp(this.group,t)},Dm.markUpdateMethod=function(t,e){Cm(t).updateMethod=e},Dm.protoInitialize=void(Dm.prototype.type="chart"),Dm);function Dm(){this.group=new Mr,this.uid=td("viewChart"),this.renderTask=iy({plan:Lm,reset:Om}),this.renderTask.context={view:this}}function Am(t,e,n){t&&Wu(t)&&("emphasis"===e?Mu:Tu)(t,n)}function Pm(e,t,n){var i,o=_a(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=jl[t])&&ql<=32?jl[t]=ql++:i):null;null!=o?Z(la(o),function(t){Am(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Am(t,n,r)})}function Lm(t){return Im(t.model)}function Om(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Cm(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),Rm[r]}La(km),Ba(km);var Rm={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)}}},zm="\0__throttleOriginMethod",Nm="\0__throttleRate",Bm="\0__throttleType";function Em(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){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}},jm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},jm.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}},jm.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=L();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)})},jm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;Z(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Ct(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},jm.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)},jm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},jm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},jm.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))}Z(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},jm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},jm.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())})},jm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},jm.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=L(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||iy({plan:t0,reset:e0,count:o0}));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)},jm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||iy({reset:Km}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=L(),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,iy({reset:$m,onDirty:Jm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Ct(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,Z(n.getSeries(),c)),h&&r.dirty()},jm.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},jm.wrapStageHandler=function(t,e){return(t=z(t)?{overallReset:t,seriesType:function(t){r0=null;try{t(a0,s0)}catch(t){}return r0}(t)}:t).uid=td("stageHandler"),e&&(t.visualType=e),t};var qm=jm;function jm(t,e,n,i){this._stageTaskMap=L(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Km(t){t.overallReset(t.ecModel,t.api,t.payload)}function $m(t){return t.overallProgress&&Qm}function Qm(){this.agent.dirty(),this.getDownstream().dirty()}function Jm(){this.agent&&this.agent.dirty()}function t0(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function e0(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=la(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new kl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),Z(p,function(t){t=new _l({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},h.prototype.convertToPixel=function(t,e,n){return Iv(this,"convertToPixel",t,e,n)},h.prototype.convertToLayout=function(t,e,n){return Iv(this,"convertToLayout",t,e,n)},h.prototype.convertFromPixel=function(t,e,n){return Iv(this,"convertFromPixel",t,e,n)},h.prototype.containPixel=function(t,i){var o;if(!this._disposed)return Z(ba(this._model,t),function(t,n){0<=n.indexOf("Models")&&Z(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},h.prototype.getVisual=function(t,e){var t=ba(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?f0(n,t,e):g0(n,e)},h.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},h.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},h.prototype._initEvents=function(){var n,i,s=this,o=(Z(jv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&v0(r,function(t){var e,t=W(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=G({},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)}),this._messageCenter);Z(Qv,function(t,e){o.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,o.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(m0("map","selectchanged",n,e,t),m0("pie","selectchanged",n,e,t)):"select"===t.fromAction?(m0("map","selected",n,e,t),m0("pie","selected",n,e,t)):"unselect"===t.fromAction&&(m0("map","unselected",n,e,t),m0("pie","unselected",n,e,t))})},h.prototype.isDisposed=function(){return this._disposed},h.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},h.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Ca(this.getDom(),l1,""),e=(t=this)._api,n=t._model,Z(t._componentsViews,function(t){t.dispose(n,e)}),Z(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 o1[t.id])},h.prototype.resize=function(t){if(!this[cv])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[dv]&&(null==n&&(n=this[dv].silent),e=!0,this[dv]=null),this[cv]=!0,Hv(this);try{e&&Sv(this),Cv.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(t){throw this[cv]=!1,t}this[cv]=!1,Av.call(this,n),Pv.call(this,n)}}},h.prototype.showLoading=function(t,e){this._disposed?this.id:(N(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),i1[t]&&(t=i1[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},h.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},h.prototype.makeActionFromEvent=function(t){var e=G({},t);return e.type=$v[t.type],e},h.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(N(e)||(e={silent:!!e}),Kv[t.type]&&this._model&&(this[cv]?this._pendingActions.push(t):(n=e.silent,Dv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),Av.call(this,n),Pv.call(this,n))))},h.prototype.updateLabelLayout=function(){uv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},h.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())},h.internalField=(Sv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Mv(t,!0),Mv(t,!1),e.plan()},Mv=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)})}),uv.trigger("series:afterupdate",t,e,n)},Vv=function(t){t[fv]=!0,t.getZr().wakeUp()},Hv=function(t){t[pv]=(t[pv]+1)%1e3},Fv=function(t){t[fv]&&(t.getZr().storage.traverse(function(t){Ec(t)||Zv(t)}),t[fv]=!1)},Bv=function(n){return a(t,e=ng),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){Mu(t,e),Vv(n)},t.prototype.leaveEmphasis=function(t,e){Tu(t,e),Vv(n)},t.prototype.enterBlur=function(t){Cu(t),Vv(n)},t.prototype.leaveBlur=function(t){Iu(t),Vv(n)},t.prototype.enterSelect=function(t){ku(t),Vv(n)},t.prototype.leaveSelect=function(t){Du(t),Vv(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)},t.prototype.getMainProcessVersion=function(){return n[pv]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Ev=function(i){function o(t,e){for(var n=0;no[1]&&(o[0]=o[1]),r}function c_(t){return Ur(t)+2}function p_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function d_(t,e){return t>=e[0]&&t<=e[1]}g_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=M(t.normalize,t),this.scale=M(t.scale,t)):(this.normalize=y_,this.scale=m_)};var f_=g_;function g_(){this.normalize=y_,this.scale=m_}function y_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function m_(t,e){return t*(e[1]-e[0])+e[0]}function v_(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}x_.prototype.getSetting=function(t){return this._setting[t]},x_.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]e[1]?t:e)[1])},x_.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},x_.prototype.getExtent=function(){return this._extent.slice()},x_.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},x_.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},x_.prototype.setBreaksFromOption=function(t){},x_.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},x_.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},x_.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},x_.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},x_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},x_.prototype.isBlank=function(){return this._isBlank},x_.prototype.setBlank=function(t){this._isBlank=t};var __=x_;function x_(t){this._calculator=new f_,this._setting=t||{},this._extent=[1/0,-1/0]}Ba(__);var b_=0,w_=(S_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&E(e,M_);return new S_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},S_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},S_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return F(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},S_.prototype._getOrCreateMap=function(){return this._map||(this._map=L(this.categories))},S_);function S_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++b_,this._onCollect=t.onCollect}function M_(t){return N(t)&&null!=t.value?t.value:t+""}a(I_,T_=__),I_.prototype.parse=function(t){return null==t?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},I_.prototype.contain=function(t){return d_(t,this._extent)&&0<=t&&t=t},I_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},I_.prototype.calcNiceTicks=function(){},I_.prototype.calcNiceExtent=function(){},I_.type="ordinal";var T_,C_=I_;function I_(t){var t=T_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new w_({}))&&(e=new w_({categories:E(e,function(t){return N(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}__.registerClass(C_);var k_,D_=Wr,A_=(a(P_,k_=__),P_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},P_.prototype.contain=function(t){return d_(t,this._extent)},P_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},P_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},P_.prototype.getInterval=function(){return this._interval},P_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=c_(t)},P_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=ud,a=[];if(n)if("only_break"===t.breakTicks&&r)r.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]h&&(t.expandToNicedExtent?a.push({value:D_(h+n,o)}):a.push({value:e[1]})),"none"!==t.breakTicks&&r&&r.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},P_.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;oi[0]&&cx));)g[o](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[o](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,o,r,a,s=[],l=!e.length;if(i=wd(t),o=_[0],r=_[1],a=v,Td(new Date(o),i,a).getTime()!==Td(new Date(r),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,U(vd,e)-1);return Td(new Date(t),vd[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c=_[0]&&p<=_[1]&&w(f,p,d,g,y,0,s),"year"===t&&1=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),W_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]e[1]&&(e[1]=t[1])})}function px(t){return"middle"===t||"center"===t}fx.prototype.getNeedCrossZero=function(){return!this.option.scale},fx.prototype.getCoordSysModel=function(){};var dx=fx;function fx(){}var Xp=Object.freeze({__proto__:null,createDimensions:function(t,e){return n_(t,e).dimensions},createList:function(t){return u_(null,t)},createScale:function(t,e){var n=e;return(e=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new C_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new F_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(__.getClass(e)||A_)}}(n=e instanceof $p?n:new $p(e))).setExtent(t[0],t[1]),ax(e,n),e},createSymbol:A0,createTextStyle:function(t,e){return kp(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:s_,enableDataStack:a_,getStackedDimension:l_},enableHoverEmphasis:Nu,getECData:W,getLayoutRect:sf,mixinAxisModelCommonMethods:function(t){ut(t,dx)}}),gx=[],yx={registerPreprocessor:p1,registerProcessor:d1,registerPostInit:f1,registerPostUpdate:g1,registerUpdateLifecycle:y1,registerAction:m1,registerCoordinateSystem:v1,registerLayout:_1,registerVisual:x1,registerTransform:T1,registerLoading:S1,registerMap:M1,registerImpl:function(t,e){hv[t]=e},PRIORITY:S0,ComponentModel:g,ComponentView:Sm,SeriesModel:gm,ChartView:km,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){Sm.registerClass(t)},registerSeriesModel:function(t){gm.registerClass(t)},registerChartView:function(t){km.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Lr(t,e)}};function mx(t){V(t)?Z(t,function(t){mx(t)}):0<=U(gx,t)||(gx.push(t),(t=z(t)?{install:t}:t).install(yx))}var vx=1e-8;function _x(t,e){return Math.abs(t-e)>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 zx(t,r){var e,n,o;return E(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),Z(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Rx(i,n,o);break;case"Polygon":case"MultiLineString":Ox(i,n,o);break;case"MultiPolygon":Z(i,function(t,e){return Ox(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l&&(l=s[h],u=h);++r[u],s[u]=0,++a}return E(r,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Xr,getPrecision:Ur,getPrecisionSafe:Zr,isNumeric:na,isRadianAroundZero:qr,linearMap:Fr,nice:Jr,numericToNumber:ea,parseDate:Kr,parsePercent:Hr,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:$r,quantityExponent:Qr,reformIntervals:ta,remRadian:Yr,round:Wr}),ep=Object.freeze({__proto__:null,format:Sd,parse:Kr,roundTime:Td}),Fa=Object.freeze({__proto__:null,Arc:sc,BezierCurve:ic,BoundingRect:q,Circle:ph,CompoundPath:hc,Ellipse:yh,Group:Mr,Image:_l,IncrementalDisplayable:Pc,Line:$h,LinearGradient:gc,Polygon:Wh,Polyline:Xh,RadialGradient:pc,Rect:kl,Ring:Bh,Sector:Oh,Text:Rl,clipPointsByRect:ap,clipRectByRect:sp,createIcon:lp,extendPath:Xc,extendShape:Uc,getShapeClass:qc,getTransform:np,initProps:Bc,makeImage:Kc,makePath:jc,mergePath:Qc,registerShape:Yc,resizePath:Jc,updateProps:Nc}),qp=Object.freeze({__proto__:null,addCommas:Vd,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:xe,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Kr(e))[(n=n?"getUTC":"get")+"FullYear"](),o=e[n+"Month"]()+1,r=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",bd(o,2)).replace("M",o).replace("yyyy",i).replace("yy",bd(i%100+"",2)).replace("dd",bd(r,2)).replace("d",r).replace("hh",bd(a,2)).replace("h",a).replace("mm",bd(s,2)).replace("m",s).replace("ss",bd(l,2)).replace("s",l).replace("SSS",bd(e,3))},formatTpl:Zd,getTextRect:function(t,e,n,i,o,r,a,s){return new Rl({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Xd,normalizeCssArray:Hd,toCamelCase:Fd,truncateText:function(t,e,n,i,o){var r={};return Ya(r,t,e,n,i,o),r.text}}),Up=Object.freeze({__proto__:null,bind:M,clone:S,curry:T,defaults:B,each:Z,extend:G,filter:pt,indexOf:U,inherits:lt,isArray:V,isFunction:z,isObject:N,isString:F,map:E,merge:d,reduce:ct}),Nx=i(),Bx=i(),Ex={estimate:1,determine:2};function Vx(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Fx(e,t){t=E(t,function(t){return e.scale.parse(t)});return"time"===e.type&&0=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=Gx(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(o=n).scale.getTicks(),r=sx(o),{labels:E(a,function(t,e){return{formattedLabel:r(t,e),rawLabel:o.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function Wx(t,e,n){var i,o,r,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:pt(Fx(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=Ux(e=t),s=ux(u),(l=Yx(a,s))||(u.get("show")&&!e.scale.isBlank()||(o=[]),o=z(s)?Qx(e,s,!0):"auto"===s?(l=Gx(e,e.getLabelModel(),Vx(Ex.determine)),r=l.labelCategoryInterval,E(l.labels,function(t){return t.tickValue})):$x(e,r=s,!0),qx(a,s,{ticks:o,tickCategoryInterval:r}))):{ticks:E(t.scale.getTicks(n),function(t){return t.value})}}function Gx(t,e,n){var i,o=Zx(t),r=ux(e),e=n.kind===Ex.estimate;if(!e){var a=Yx(o,r);if(a)return a}var s={labels:z(r)?Qx(t,r):$x(t,i="auto"===r?function(t,e){{var n;if(e.kind===Ex.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return Bx(t).autoInterval=n,!0}),n}var i=Bx(t).autoInterval;return null!=i?i:Bx(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):r),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return qx(o,r,s),!0}):qx(o,r,s),s}var Ux=Xx("axisTick"),Zx=Xx("axisLabel");function Xx(e){return function(t){return Bx(t)[e]||(Bx(t)[e]={list:[]})}}function Yx(t,e){for(var n=0;nl[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],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},tb.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),E(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)}},qb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie[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:Oi((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={},Z(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Vw(t){for(var e,n,i=t.length/2;0e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;nn[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=H(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[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]-g,0),e[r]=f[r],u.setClipPath(new kl({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Nc(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},IS.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},IS.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(Z(["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",F(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},IS.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=MS[t],r=TS[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=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},IS.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},IS.type="legend.scroll",IS);function IS(){var t=null!==wS&&wS.apply(this,arguments)||this;return t.type=IS.type,t.newlineDisabled=!0,t._currentIndex=0,t}function kS(t,e){var h,c,o,p,d,f,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,o=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],Z(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,o,r=n.model.getModel("axisPointer",p),a=r.get("show");a&&("auto"!==a||t||PS(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};Z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=S(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&B(e,o.textStyle));return t.model.getModel("axisPointer",new $p(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=LS(n.model),o=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:r,triggerTooltip:e,triggerEmphasis:t,involveSeries:o,snap:a,useHandle:PS(r),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||o,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;ou[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n||!!e&&(r=AS(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},FS.prototype.makeElOption=function(t,e,n,i,o){},FS.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=BS(t).pointerEl=new wp[o.type](ES(e.pointer)),t.add(o))},FS.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=BS(t).labelEl=new Rl(ES(e.label)),t.add(e),WS(e,i))},FS.prototype.updatePointerEl=function(t,e,n){t=BS(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},FS.prototype.updateLabelEl=function(t,e,n,i){t=BS(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),WS(t,i))},FS.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=lp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:VS(this._onHandleDragMove,this,0,0),drift:VS(this._onHandleDragMove,this),ondragend:VS(this._onHandleDragEnd,this)}),n.add(i)),US(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Vm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},FS.prototype._moveHandleToValue=function(t,e){HS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,GS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},FS.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(GS(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(GS(t)),BS(n).lastProp=null,this._doDispatchAxisPointer())},FS.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}]}))},FS.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},FS.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),Fm(this,"_doDispatchAxisPointer")},FS.prototype.doClear=function(){},FS.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},FS);function FS(){this._dragging=!1,this.animationThreshold=15}function HS(t,e,n,i){!function n(i,t){{var o;return N(i)&&N(t)?(o=!0,Z(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(BS(n).lastProp,i)&&(BS(n).lastProp=i,e?Nc(n,i,t):(n.stopAnimation(),n.attr(i)))}function WS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function GS(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function US(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)})}var ZS="expandAxisBreak",XS=Math.PI,YS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],qS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],jS=i(),KS=i(),$S=(QS.prototype.ensureRecord=function(t){var e=t.axis.dim,t=t.componentIndex,n=this.recordMap,n=n[e]||(n[e]=[]);return n[t]||(n[t]={ready:{}})},QS);function QS(t){this.recordMap={},this.resolveAxisNameOverlap=t}function JS(t,e,n,i,o,r){if(px(t.nameLocation)){t=r.stOccupiedRect;t&&nM((d={},t=t,f=r.transGroup.transform,d.transform=_p(d.transform,f),d.localRect=vp(d.localRect,t),d.rect=vp(d.rect,t),f&&d.rect.applyTransform(f),d.axisAligned=mp(f),d.obb=void 0,(d.label=d.label||{}).ignore=!1,d),i,o)}else for(var a=r.labelInfoList,t=r.dirVec,s=i,l=o,u=0<=C.dot(l,t),h=0,c=a.length;hi[1],i="start"===e&&!t||"start"!==e&&t;e=qr(n-XS/2)?(o=i?"bottom":"top","center"):qr(n-1.5*XS)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*XS&&XS/2'):""),F(t))r.innerHTML=t+c;else if(t){r.innerHTML="",V(t)||(t=[t]);for(var p,d=0;d"),r=f.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,g)})},gT.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=W(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=yT([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new um,i.marker=o.makeTooltipMarker("item",Yd(i.color),f),g=ny(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?rm(e?G({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.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}))},gT.prototype._showComponentItemTooltip=function(e,n,t){var i="html"===this._renderMode,o=W(n),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent,a=(F(r)&&(r={content:r,formatter:r},a=!0),a&&i&&r.content&&((r=S(r)).content=xe(r.content)),[r]),i=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(i&&a.push(i),a.push({formatter:r.content}),e.positionDefault),s=yT(a,this._tooltipModel,o?{position:o}:null),l=s.get("content"),u=Math.random()+"",h=new um;this._showOrMove(s,function(){var t=S(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,n,h)}),t({type:"showTip",from:this.uid})},gT.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"),n.get("defaultBorderColor",!0)).color,h&&(t=F(h)?(p=n.ecModel.get("useUTC"),t=h,Zd(t=(d=V(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Sd(d.axisValue,t,p):t,i,!0)):z(h)?(d=M(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))},gT.prototype._getNearestPoint=function(t,e,n,i,o){return"axis"===n||V(e)?{color:i||o}:V(e)?void 0:{color:i||e.color||e.borderColor}},gT.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),V(e=z(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=Hr(e[0],l),i=Hr(e[1],u)):N(e)?((r=e).width=h[0],r.height=h[1],n=(r=sf(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=F(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)),Pw(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),k2(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):k2(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 L2,O2=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],R2=(a(z2,L2=Wp),z2.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=ST.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=E(O2,function(t){return P2(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},z2.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,r=n.get(e)||n.set(e,{group:new Mr}),h=(this.group.add(r.group),this.markKeep(r),function(t,n,e){var i,o;{var r;i=t?(r=E(t&&t.dimensions,function(t){var e=n.getData();return G(G({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=E(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new e_(o,e)):new e_(o=[{name:"value",type:"float"}],e)}e=E(e.get("data"),T(C2,n,t,e));t&&(e=pt(e,T(A2,t)));t=t?function(t,e,n,i){return gy(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return gy(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=E(O2,function(t){return P2(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=(Gr(n),Gr(i),!(o[0]>n[1]||o[1]i[1]||r[1]=this._data.count()-1},B2.prototype.setPlayState=function(t){this.option.autoPlay=!!t},B2.prototype.getPlayState=function(){return!!this.option.autoPlay},B2.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],Z(e,function(t,e){var n,i=ga(ca(t),"");N(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 e_([{name:"value",type:e}],this)).initData(o,r)},B2.prototype.getData=function(){return this._data},B2.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},B2.type="timeline",B2.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:I.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:I.color.secondary},data:[]};var N2,Ra=B2;function B2(){var t=null!==N2&&N2.apply(this,arguments)||this;return t.type=B2.type,t.layoutMode="box",t}a(F2,E2=Ra),F2.type="timeline.slider",F2.defaultOption=ed(Ra.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:I.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:I.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:I.color.tertiary},itemStyle:{color:I.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:I.color.accent50,borderColor:I.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:I.color.accent50,borderColor:I.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:I.color.accent60},itemStyle:{color:I.color.accent60,borderColor:I.color.accent60},controlStyle:{color:I.color.accent70,borderColor:I.color.accent70}},progress:{lineStyle:{color:I.color.accent30},itemStyle:{color:I.color.accent40}},data:[]});var E2,V2=F2;function F2(){var t=null!==E2&&E2.apply(this,arguments)||this;return t.type=F2.type,t}ut(V2,ty.prototype);a(W2,H2=Sm),W2.type="timeline";var H2,M0=W2;function W2(){var t=null!==H2&&H2.apply(this,arguments)||this;return t.type=W2.type,t}a(Z2,G2=yd),Z2.prototype.getLabelModel=function(){return this.model.getModel("label")},Z2.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var G2,U2=Z2;function Z2(t,e,n,i){t=G2.call(this,t,e,n)||this;return t.type=i||"value",t}var X2,Y2=Math.PI,q2=i(),j2=(a(K2,X2=M0),K2.prototype.init=function(t,e){this.api=e},K2.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 tm("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Z(["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()},K2.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},K2.prototype.dispose=function(){this._clearTimer()},K2.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,sf((l=t).getBoxLayoutParams(),hf(l,s).refContainer,l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2n[1]?n[1]:t)r&&(e[1-i]=e[i]+n.sign*r),e}function vC(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0c[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):ZC(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))}),ZC(h,function(t){i.setApproximateExtent(c,t)}))})},qC.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;ZC(["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=Fr(r[0]+n,r,[0,100],!0):null!=e&&(n=Fr(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},qC.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Xr(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())},qC);function qC(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var jC={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(oC(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 YC(t,e,i,r),o.push(n.__dzAxisProxy))}),L());return Z(o,function(t){Z(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 KC=!1;function $C(t){KC||(KC=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,jC),t.registerAction("dataZoom",function(e,t){Z(rC(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 QC(t){$C(t),t.registerComponentModel(dC),t.registerComponentView(FC),EC(t)}a(eI,JC=ph),eI.type="dataZoom.slider",eI.layoutMode="box",eI.defaultOption=ed(ph.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:I.color.accent10,borderRadius:0,backgroundColor:I.color.transparent,dataBackground:{lineStyle:{color:I.color.accent30,width:.5},areaStyle:{color:I.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:I.color.accent40,width:.5},areaStyle:{color:I.color.accent20,opacity:.3}},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:I.color.neutral00,borderColor:I.color.accent20},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:I.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:I.color.tertiary},brushSelect:!0,brushStyle:{color:I.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:I.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15});var JC,tI=eI;function eI(){var t=null!==JC&&JC.apply(this,arguments)||this;return t.type=eI.type,t}var nI,iI=kl,oI="horizontal",rI="vertical",aI=["line","bar","candlestick","scatter"],sI={easing:"cubicOut",duration:100,delay:0},lI=(a(uI,nI=yh),uI.prototype.init=function(t,e){this.api=e,this._onBrush=M(this._onBrush,this),this._onBrushEnd=M(this._onBrushEnd,this)},uI.prototype.render=function(t,e,n,i){nI.prototype.render.apply(this,arguments),Vm(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())},uI.prototype.dispose=function(){this._clear(),nI.prototype.dispose.apply(this,arguments)},uI.prototype._clear=function(){Fm(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},uI.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 Mr);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},uI.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,e=hf(t,e).refContainer,i=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,r=this._orient===oI?{right:e.width-i.x-i.width,top:e.height-30-o-n,width:i.width,height:30}:{right:o,top:i.y,width:30,height:i.height},a=ff(t.option),n=(Z(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=r[t])}),sf(a,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===rI&&this._size.reverse()},uI.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!==oI||i?n===oI&&i?{scaleY:r?1:-1,scaleX:-1}:n!==rI||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()},uI.prototype._getViewExtent=function(){return[0,this._size[0]]},uI.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new iI({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new iI({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:M(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)},uI.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,f,g,y,m,v,_=this._shadowPolygonPts,x=this._shadowPolylinePts,b=(o===this._shadowData&&r===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(a=o.getDataExtent(t.thisDim),i=.3*((s=o.getDataExtent(r))[1]-s[0]),s=[s[0]-i,s[1]+i],l=[0,e[1]],n=[0,e[0]],u=[[e[0],0],[0,0]],h=[],c=n[1]/Math.max(1,o.count()-1),p=e[0]/(a[1]-a[0]),d="time"===t.thisAxis.type,f=-c,g=Math.round(o.count()/e[0]),o.each([t.thisDim,r],function(t,e,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))},uI.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new C(e,t),this._brushing=!0,this._brushStartTime=+new Date},uI.prototype._onBrushEnd=function(t){var e,n,i,o;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i)&&(i.attr("ignore",!0),i=i.shape,+new Date-this._brushStartTime<200&&Math.abs(i.width)<5||(e=this._getViewExtent(),n=[0,100],mC(0,i=this._handleEnds=[i.x,i.x+i.width],e,0,null!=(o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan?Fr(o.minSpan,n,e,!0):null,null!=o.maxSpan?Fr(o.maxSpan,n,e,!0):null),this._range=Gr([Fr(i[0],e,n,!0),Fr(i[1],e,n,!0)]),this._updateView(),this._dispatchZoomAction(!1)))},uI.prototype._onBrush=function(t){this._brushing&&(De(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},uI.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new iI({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]})},uI.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?sI:null,start:e[0],end:e[1]})},uI.prototype._findCoordRect=function(){var t,e,n=aC(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}},uI.type="dataZoom.slider",uI);function uI(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=uI.type,t._displayables={},t}function hI(t){t.registerComponentModel(tI),t.registerComponentView(lI),$C(t)}mx(function(t){mx(QC),mx(hI)});var cI=["rect","polygon","keep","clear"];function pI(t,e){var n,i,o,r=la(t?t.brush:[]);r.length&&(n=[],Z(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=V(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={},Z(i=t,function(t){o[t]=1}),i.length=0,Z(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,cI)}var dI,fI=!0,gI=Math.min,yI=Math.max,mI=Math.pow,vI=1e4,_I=6,xI=6,bI="globalPan",wI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},SI={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},MI={brushStyle:{lineWidth:2,stroke:I.color.backgroundTint,fill:I.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},TI=0,CI=(a(II,dI=ue),II.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},II.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=bI,n=this._uid,xC(i)[e]=n),Z(this._handlers,function(t,e){i.on(e,t)}),this._brushType=t.brushType,this._brushOption=d(S(MI),t,!0)},II.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=bI,n=this._uid,(t=xC(t))[e]===n&&(t[e]=null),Z(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},II.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},Z(t,function(t){e[t.panelId]=S(t)})):this._panels=null,this},II.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},II.prototype.updateCovers=function(i){i=E(i,function(t){return d(S(MI),t,!0)});var n="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new D1(o,i,function(t,e){return l(t.__brushOption,e)},l).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function l(t,e){return(null!=t.id?t.id:n+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(t=r[t]=null!=e?(o[e].__brushOption=n,o[e]):DI(a,kI(a,n)),LI(a,t))}},II.prototype.unmount=function(){return this.enableBrush(!1),NI(this),this._zr.remove(this.group),this},II.prototype.dispose=function(){this.unmount(),this.off()},II);function II(t){var e=dI.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new Mr,e._uid="brushController_"+TI++,Z(ek,function(t,e){this._handlers[e]=M(t,this)},e),e}function kI(t,e){var n=ik[e.brushType].createCover(t,e);return n.__brushOption=e,PI(n,e),t.group.add(n),n}function DI(t,e){var n=OI(e);return n.endCreating&&(n.endCreating(t,e),PI(e,e.__brushOption)),e}function AI(t,e){var n=e.__brushOption;OI(e).updateCoverShape(t,e,n.range,n)}function PI(t,e){var n=e.z;null==n&&(n=vI),t.traverse(function(t){t.z=n,t.z2=n})}function LI(t,e){OI(e).updateCommon(t,e),AI(t,e)}function OI(t){return ik[t.__brushOption.brushType]}function RI(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,Z(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i):fI}function zI(t,e){t=t._panels;return t&&null!=(e=e.__brushOption.panelId)?t[e]:fI}function NI(e){var t=e._covers,n=t.length;return Z(t,function(t){e.group.remove(t)},e),t.length=0,n}function BI(t,e){var n=E(t._covers,function(t){var t=t.__brushOption,e=S(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function EI(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function VI(e,n,t,i){var o=new Mr;return o.add(new kl({name:"main",style:GI(t),silent:!0,draggable:!0,cursor:"move",drift:T(XI,e,n,o,["n","s","w","e"]),ondragend:T(BI,n,{isEnd:!0})})),Z(i,function(t){o.add(new kl({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:T(XI,e,n,o,t),ondragend:T(BI,n,{isEnd:!0})}))}),o}function FI(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=yI(o,xI),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],n=n[1][1],c=h-r+o/2,p=n-r+o/2,h=h-a,n=n-s,d=h+o,o=n+o;WI(t,e,"main",a,s,h,n),i.transformable&&(WI(t,e,"w",l,u,r,o),WI(t,e,"e",c,u,r,o),WI(t,e,"n",l,u,d,r),WI(t,e,"s",l,p,d,r),WI(t,e,"nw",l,u,r,r),WI(t,e,"ne",c,u,r,r),WI(t,e,"sw",l,p,r,r),WI(t,e,"se",c,p,r,r))}function HI(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(GI(t)),e.attr({silent:!o,cursor:o?"move":"default"}),Z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?ZI(n,t[0]):function(t,e){t=[ZI(t,e[0]),ZI(t,e[1])];return"e"!==t[0]&&"w"!==t[0]||t.reverse(),t.join("")}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?SI[t]+"-resize":null})})}function WI(t,e,n,i,o,r,a){var n=e.childOfName(n);n&&n.setShape((n=jI(t,e,[[i,o],[i+r,o+a]]),t=gI(n[0][0],n[1][0]),e=gI(n[0][1],n[1][1]),i=yI(n[0][0],n[1][0]),n=yI(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function GI(t){return B({strokeNoScale:!0},t.brushStyle)}function UI(t,e,n,i){var o=[gI(t,n),gI(e,i)],t=[yI(t,n),yI(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function ZI(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[op({w:"left",e:"right",n:"top",s:"bottom"}[e],np(t.group))]}function XI(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=qI(e,o,r);Z(i,function(t){t=wI[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(UI(s[0][0],s[1][0],s[0][1],s[1][1])),LI(e,n),BI(e,{isEnd:!1})}function YI(t,e,n,i){var o=e.__brushOption.range,r=qI(t,n,i);Z(o,function(t){t[0]+=r[0],t[1]+=r[1]}),LI(t,e),BI(t,{isEnd:!1})}function qI(t,e,n){t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0);return[e[0]-n[0],e[1]-n[1]]}function jI(t,e,n){e=zI(t,e);return e&&e!==fI?e.clipPath(n,t._transform):S(n)}function KI(t,e,n){if(t._brushType&&!function(t,e,n){t=t._zr;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=RI(t,e,n);if(!t._dragging)for(var a=0;at[1]&&t.reverse(),t}function Ok(t,e){return ba(t,e,{includeMainTypes:Dk})}var Rk={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=L(),a={},s={};(o||r||t)&&(Z(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),Z(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),Z(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=[];Z(e.getCartesians(),function(t,e){(0<=U(o,t.getAxis("x").model)||0<=U(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:Nk.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){Z(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:Nk.geo})})}},zk=[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}],Nk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(np(t)),e}},Bk={lineX:T(Ek,0),lineY:T(Ek,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=[Lk([o[0],t[0]]),Lk([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:E(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 Ek(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=Lk(E([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 Vk={lineX:T(Fk,0),lineY:T(Fk,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 E(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function Fk(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Hk(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Wk=["inBrush","outOfBrush"],Gk="__ecBrushSelect",Uk="__ecInBrushSelectEvent";function Zk(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new Ak(t.option,e)).setInputRanges(t.areas,e)})}function Xk(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})}),Zk(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=[],_=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),E(u.areas,function(t){var e,n,i,o=jk[t.brushType],o=B({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return Tk[n].point(t,i,e)},rect:function(t){return Tk[n].rect(t,i,e)}}),o})),x=Sk(u.option,Wk,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}V(n)&&Z(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,_=_||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&&(V(t)?U(t,e)<0:e!==t)}(u,a)&&(Z(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),_=_||w(i)}),b(a))&&w(i)&&(o=n.getData()).each(function(t){qk(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 qk(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function f(t){return f0(l,p,t)}function g(t,e){y0(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&&Kk(o)}};function Kk(t){return new q(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}a(Jk,$k=Sm),Jk.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new CI(e.getZr())).on("brush",M(this._onBrush,this)).mount()},Jk.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},Jk.prototype.updateTransform=function(t,e,n,i){Zk(e),this._updateController(t,e,n,i)},Jk.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},Jk.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},Jk.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())},Jk.prototype.dispose=function(){this._brushController.dispose()},Jk.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})},Jk.type="brush";var $k,Qk=Jk;function Jk(){var t=null!==$k&&$k.apply(this,arguments)||this;return t.type=Jk.type,t}a(nD,tD=g),nD.prototype.optionUpdated=function(t,e){var n=this.option,e=(e||Mk(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},e.hasOwnProperty("liftZ")||(e.liftZ=5)},nD.prototype.setAreas=function(t){t&&(this.areas=E(t,function(t){return iD(this.option,t)},this))},nD.prototype.setBrushOption=function(t){this.brushOption=iD(this.option,t),this.brushType=this.brushOption.brushType},nD.type="brush",nD.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],nD.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:I.color.backgroundTint,borderColor:I.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:I.color.disabled};var tD,eD=nD;function nD(){var t=null!==tD&&tD.apply(this,arguments)||this;return t.type=nD.type,t.areas=[],t.brushOption={},t}function iD(t,e){return d({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new $p(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function oD(){}var rD={};function aD(t,e){rD[t]=e}function sD(t){return rD[t]}var lD,uD=["rect","polygon","lineX","lineY","keep","clear"],hD=(a(cD,lD=oD),cD.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,Z(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},cD.prototype.updateView=function(t,e,n){this.render(t,e,n)},cD.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Z(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},cD.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}})},cD.getDefaultOption=function(t){return{show:!0,type:uD.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"])}},cD);function cD(){return null!==lD&&lD.apply(this,arguments)||this}mx(function(t){t.registerComponentView(Qk),t.registerComponentModel(eD),t.registerPreprocessor(pI),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Xk),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"},Vt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Vt),aD("brush",hD)});var pD,dD=function(t,e,n){t=S((fD[t]||{})[e]);return n&&V(t)?t[t.length-1]:t},fD={color:{active:["#006edd","#e0ffff"],inactive:[I.color.transparent]},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]}},gD=lk.mapVisual,yD=lk.eachVisual,mD=V,vD=Z,_D=Gr,xD=Fr,Pc=(a(bD,pD=g),bD.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},bD.prototype.optionUpdated=function(t,e){var n=this.option;e||Mk(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},bD.prototype.resetVisual=function(t){var e=this.stateList;t=M(t,this),this.controllerVisuals=Sk(this.option.controller,e,t),this.targetVisuals=Sk(this.option.target,e,t)},bD.prototype.getItemSymbol=function(){return null},bD.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,e=this.option.seriesIndex;return E(Ta(this.ecModel,"series",{index:e=null==e&&null==t?"all":e,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(t){return t.componentIndex})},bD.prototype.eachTargetSeries=function(e,n){Z(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},bD.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},bD.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(n=n||["<",">"],V(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return F(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):z(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))}},bD.prototype.resetExtent=function(){var t=this.option,t=_D([t.min,t.max]);this._dataExtent=t},bD.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}},bD.prototype.getExtent=function(){return this._dataExtent.slice()},bD.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){mD(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]={},vD(e,function(t,e){var n;lk.isValidType(e)&&null!=(n=dD(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";vD(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=gD(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,yD(t,function(t){ee[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},TD.prototype.completeVisualOption=function(){wD.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},TD.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},TD.prototype.getSelected=function(){var t=this.getExtent(),e=Gr((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"},TD.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},TD.prototype.getVisualMeta=function(n){var t=CD(0,0,this.getExtent()),e=CD(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},ED.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]]]},ED.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Mr("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})},ED.prototype._updateHandle=function(i,o){var r,a,s,l,u,h,c;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),c=this._applyTransform("left",r.mainGroup),RD([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],OD(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),e=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,ip(r.handleLabelPoints[t],np(e,this.group)));"horizontal"===this._orient&&(n="left"===c||"top"===c?(u[0]-n)/2:(u[0]-n)/-2,e[1]+=n),l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},ED.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=OD(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,ip(l.indicatorLabelPoint,np(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 f=0;f ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||FD(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",PD(i[0],r)),this._dispatchHighDown("highlight",PD(i[1],r)))},ED.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;v0(t.target,function(t){t=W(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))},ED.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})}},tA.type="visualMap.piecewise",tA.defaultOption=ed(Pc.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 QD,JD=tA;function tA(){var t=null!==QD&&QD.apply(this,arguments)||this;return t.type=tA.type,t._pieceList=[],t}var eA={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 nA(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}a(rA,iA=pc),rA.prototype.doRender=function(){var o=this.group,r=(o.removeAll(),this.visualMapModel),a=r.get("textGap"),s=r.textStyleModel,l=this._getItemAlign(),u=r.itemSize,t=this._getViewData(),e=t.endsText,h=wt(r.get("showLabel",!0),!e),c=!r.get("selectedMode");e&&this._renderEndsText(o,e[0],u,h,l),Z(t.viewPieceList,function(t){var e,n=t.piece,i=new Mr,t=(i.onclick=M(this._onItemClick,this,n),this._enableHoverLink(i,t.indexInModelPieceList),r.getRepresentValue(n));this._createItemSymbol(i,t,[0,0,u[0],u[1]],c),h&&(t=this.visualMapModel.getValueState(t),e=s.get("align")||l,i.add(new Rl({style:kp(s,{x:"right"===e?-a:u[0]+a,y:u[1]/2,text:n.text,verticalAlign:s.get("verticalAlign")||"middle",align:e,opacity:H(s.get("opacity"),"outOfRange"===t?.5:1)}),silent:c}))),o.add(i)},this),e&&this._renderEndsText(o,e[1],u,h,l),af(r.get("orient"),o,r.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},rA.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:PD(e.findTargetDataIndices(n),e)})})},rA.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?AD(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},rA.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Mr,a=this.visualMapModel.textStyleModel,r.add(new Rl({style:kp(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))},rA.prototype._getViewData=function(){var t=this.visualMapModel,e=E(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}},rA.prototype._createItemSymbol=function(t,e,n,i){n=A0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));n.silent=i,t.add(n)},rA.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,Z(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}))},rA.type="visualMap.piecewise";var iA,oA=rA;function rA(){var t=null!==iA&&iA.apply(this,arguments)||this;return t.type=rA.type,t}function aA(t){t.registerComponentModel(JD),t.registerComponentView(oA),KD(t)}mx(function(t){mx($D),mx(aA)});a(uA,sA=ph),uA.type="dataZoom.select";var sA,lA=uA;function uA(){var t=null!==sA&&sA.apply(this,arguments)||this;return t.type=uA.type,t}a(pA,hA=yh),pA.type="dataZoom.select";var hA,cA=pA;function pA(){var t=null!==hA&&hA.apply(this,arguments)||this;return t.type=pA.type,t}function dA(t){t.registerComponentModel(lA),t.registerComponentView(cA),$C(t)}a(yA,fA=g),yA.prototype.optionUpdated=function(){fA.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;Z(this.option.feature,function(t,e){e=sD(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},yA.type="toolbox",yA.layoutMode={type:"box",ignoreSize:!0},yA.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:I.color.border,borderRadius:0,borderWidth:0,padding:I.size.m,itemSize:15,itemGap:I.size.s,showTitle:!0,iconStyle:{borderColor:I.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:I.color.accent50}},tooltip:{show:!1,position:"bottom"}};var fA,gA=yA;function yA(){var t=null!==fA&&fA.apply(this,arguments)||this;return t.type=yA.type,t}a(_A,mA=Sm),_A.prototype.render=function(p,d,f,g){var y,m,v,_,x,t,e,n,i,b=this.group;function o(t,e){var n,t=x[t],e=x[e],i=v[t],o=new $p(i,p,p.ecModel);if(g&&null!=g.newTitle&&g.featureName===t&&(i.title=g.newTitle),t&&!e){if(0===t.indexOf("my"))n={onclick:o.option.onclick,featureName:t};else{i=sD(t);if(!i)return;n=new i}_[t]=n}else if(!(n=_[e]))return;n.uid=td("toolbox-feature"),n.model=o,n.ecModel=d,n.api=f;var r,a,s,l,u,h,c,i=n instanceof oD;!t&&e?i&&n.dispose&&n.dispose(d,f):!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(d,f):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),i=a instanceof oD&&a.getIcons?a.getIcons():r.get("icon"),t=r.get("title")||{},F(i)?(s={})[e]=i:s=i,F(t)?(l={})[e]=t:l=t,c=r.iconPaths={},Z(s,function(t,e){var n=lp(t,{},{x:-y/2,y:-y/2,width:y,height:y});n.setStyle(u.getItemStyle());n.ensureState("emphasis").style=h.getItemStyle();var i=new Rl({style:{text:l[e],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:Rp({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},d)},ignore:!0});n.setTextContent(i),fp({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||I.color.neutral99,backgroundColor:h.get("textBackgroundColor")}),n.setTextConfig({position:h.get("textPosition")||e}),i.ignore=!p.get("showTitle"),f.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&f.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?Mu:Tu)(n),b.add(n),n.on("click",M(a.onclick,a,d,f,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?Mu:Tu)(i[t])},n instanceof oD&&n.render&&n.render(o,d,f,g))}b.removeAll(),p.get("show")&&(y=+p.get("itemSize"),m="vertical"===p.get("orient"),v=p.get("feature")||{},_=this._features||(this._features={}),x=[],Z(v,function(t,e){x.push(e)}),new D1(this._featureNames||[],x).add(o).update(o).remove(T(o,null)).execute(),this._featureNames=x,t=hf(p,f).refContainer,i=sf(e=p.getBoxLayoutParams(),t,n=p.get("padding")),af(p.get("orient"),b,p.get("itemGap"),i.width,i.height),cf(b,e,t,n),b.add(iS(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&&!z(r)&&i&&(r=r.style||(r.style={}),i=rr(i,Rl.makeFont(r)),e=t.x+b.x,n=!1,t.y+b.y+y+i.height>f.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:y+10,e+i.width/2>f.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},_A.prototype.updateView=function(t,e,n,i){Z(this._features,function(t){t instanceof oD&&t.updateView&&t.updateView(t.model,e,n,i)})},_A.prototype.remove=function(e,n){Z(this._features,function(t){t instanceof oD&&t.remove&&t.remove(e,n)}),this.group.removeAll()},_A.prototype.dispose=function(e,n){Z(this._features,function(t){t instanceof oD&&t.dispose&&t.dispose(e,n)})},_A.type="toolbox";var mA,vA=_A;function _A(){return null!==mA&&mA.apply(this,arguments)||this}a(wA,xA=oD),wA.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")||I.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=w.browser;if("function"!=typeof MouseEvent||!t.newEdge&&(t.ie||t.edge))if(window.navigator.msSaveOrOpenBlob||o){var t=e.split(","),a=-1',o=window.open();o.document.write(h),o.document.title=i}else{a=document.createElement("a"),n=(a.download=i+"."+r,a.target="_blank",a.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));a.dispatchEvent(n)}},wA.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:I.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var xA,bA=wA;function wA(){return null!==xA&&xA.apply(this,arguments)||this}var SA,MA="__ec_magicType_stack__",TA=[["line","bar"],["stack"]],CA=(a(IA,SA=oD),IA.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Z(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},IA.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:{}}},IA.prototype.onclick=function(t,e,a){var s,n,l=this.model,i=l.get(["seriesIndex",a]);kA[a]&&(s={series:[]},Z(TA,function(t){0<=U(t,a)&&Z(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=kA[a](e,n,t,l),n=(e&&(B(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,Sa).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"}))},IA);function IA(){return null!==SA&&SA.apply(this,arguments)||this}var kA={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")===MA;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":MA},i.get(["option","stack"])||{},!0)}},DA=(m1({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),new Array(60).join("-")),AA="\t";function PA(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=[],Z(t.seriesGroupByCategoryAxis,function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(E(t.series,function(t){return t.name})),r=[n.model.getCategories()],a=(Z(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))}),[o.join(AA)]),s=0;s":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},AP=(PP.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):!!ft(e)&&this._condVal.test(t+"")},PP);function PP(t){null==(this._condVal=F(t)?new RegExp(t):xt(t)?t:null)&&f("")}OP.prototype.evaluate=function(){return this.value};var LP=OP;function OP(){}zP.prototype.evaluate=function(){for(var t=this.children,e=0;e"}(i,o)+("style"!==i?xe(e):e||"")+(n?r+E(n,t).join(r)+r:"")+""}(t)}function gL(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yL(t,e,n,i){return dL("svg","root",{width:t,height:e,xmlns:sL,"xmlns:xlink":lL,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var mL=0;var vL={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"},_L="transform-origin";var xL={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bL(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function wL(t){return F(t)?vL[t]?"cubic-bezier("+vL[t]+")":li(t)?t:"":""}function SL(D,A,P,L){var t=D.animators,e=t.length,n=[];if(D instanceof hc){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(Z(t,function(t){var e=gL(u.zrId),t=(e.animation=!0,SL(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=X(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=bL(p,u),h.replace(c,t)}(D,A,P))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s"].join(r):"")&&(e=dL("style","stl",{},[],c),h.push(e)),yL(i,l,h,t.useViewBox)},aO.prototype.renderToString=function(t){return fL(this.renderToVNode({animation:H((t=t||{}).cssAnimation,!0),emphasis:H(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:H(t.useViewBox,!0)}),{newline:!0})},aO.prototype.setBackgroundColor=function(t){this._backgroundColor=t},aO.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},aO.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f