!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 w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var S=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},p=new function(){this.browser=new S,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(p.wxa=!0,p.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?p.worker=!0:!p.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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){N(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),1}}function xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var be=/([&<>"'])/g,we={"&":"&","<":"<",">":">",'"':""","'":"'"};function Se(t){return null==t?"":(t+"").replace(be,function(t,e){return we[e]})}var Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=[],Ce=p.browser.firefox&&+p.browser.version.split(".")[0]<39;function Ie(t,e,n,i){return n=n||{},i?ke(t,e,n):Ce&&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):ke(t,e,n),n}function ke(t,e,n){if(p.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(_e(Te,t,r,e))return n.zrX=Te[0],void(n.zrY=Te[1])}n.zrX=n.zrY=0}function De(t){return t||window.event}function Le(t,e,n){var i;return null==(e=De(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Ie(t,i,e,n):(Ie(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},an.prototype.contain=function(t,e){return an.contain(this,t,e)},an.prototype.clone=function(){return new an(this.x,this.y,this.width,this.height)},an.prototype.copy=function(t){an.copy(this,t)},an.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},an.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},an.prototype.isZero=function(){return 0===this.width||0===this.height},an.create=function(t){return new an(t.x,t.y,t.width,t.height)},an.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},an.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){xn.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=Sn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).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=o:s=1+o;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);o(t,e[n+h])<0?l=h:a=h+1}return l}function Ln(L,A){var P,O,R=Tn,N=0,z=[];function e(t){var e=P[t],n=O[t],i=P[t+1],r=O[t+1],t=(O[t]=n+r,t===N-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),N--,Dn(L[i],L,e,n,0,A));if(e+=t,0!=(n-=t)&&0!==(r=kn(L[e+n-1],L,i,r,r-1,A)))if(n<=r){var o=e,a=n,t=i,s=r,l=0;for(l=0;lO[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(r);do{}while((o=Cn(t,n,i,e))=this._maxSize&&0>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),ki(t,e),e):void Mi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(Mi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),ki(t,e),e):void Mi(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?Mi(e,+a[0],+a[1],+a[2],1):Mi(e,0,0,0,1);s=bi(a.pop());case"rgb":return 3<=a.length?(Mi(e,xi(a[0]),xi(a[1]),xi(a[2]),3===a.length?s:bi(a[3])),ki(t,e),e):void Mi(e,0,0,0,1);case"hsla":return 4!==a.length?void Mi(e,0,0,0,1):(a[3]=bi(a[3]),Li(a,e),ki(t,e),e);case"hsl":return 3!==a.length?void Mi(e,0,0,0,1):(Li(a,e),ki(t,e),e);default:return}}Mi(e,0,0,0,1)}}function Li(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=bi(t[1]),r=bi(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return Mi(e=e||[],vi(255*wi(r,i,n+1/3)),vi(255*wi(r,i,n)),vi(255*wi(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ai(t,e){var n=Di(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,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?ji:t[c],(qi(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:qi(l)?(1===l?Wi:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},fo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},fo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},fo.prototype.refreshHover=function(){this._needsRefreshHover=!0},fo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},fo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},fo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},fo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},fo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},fo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},fo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},fo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},fo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},fo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},fo.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,r=0,o=t.length;rh){I=o.lines.length;0i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ba(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),Er(t)),d=0;dthis._ux||i>this._uy;return this.addData(X.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},o.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(X.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(X.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,r,o){this._drawPendingPt(),Ss[0]=i,Ss[1]=r,s=o,(l=Ms((a=Ss)[0]))<0&&(l+=bs),h=l-a[0],u=a[1],u+=h,!s&&bs<=u-l?u=l+bs:s&&bs<=l-u?u=l-bs:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||_s(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case X.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,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=$n(t,n,r,a,f),f=$n(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,b,10),r=x,o=b;break;case X.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ii(t,n,r,p),p=ii(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case X.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=ms(M)*w+x,s=vs(M)*S+b),f=ys(w,S)*gs(bs,Math.abs(T)),r=ms(C)*w+x,o=vs(C)*S+b;break;case X.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case X.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,z=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=Rs[i=0]+t&&a<=Rs[1]+t?h:0;rMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,r);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case As.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Cs(c,p,S,p,e,i,r)||Cs(S,p,S,M,e,i,r)||Cs(S,M,c,M,e,i,r)||Cs(c,M,c,p,e,i,r))return!0}else l=(l+=Ls(S,p,S,M,i,r))+Ls(c,M,c,p,i,r);break;case As.Z:if(n){if(Cs(u,h,c,p,e,i,r))return!0}else l+=Ls(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)n,i=(r=r.slice(0,n)).length*c),t&&u&&null!=f)for(var y=Da(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;vQh.len()&&(se)return t[i];return t[n-1]}var nf,rf="\0_ec_inner",of=(u(s,nf=up),s.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new up(i),this._locale=new up(r),this._optionManager=o},s.prototype.setOption=function(t,e,n){e=lf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},s.prototype.resetOption=function(t,e){return this._resetOption(t,lf(e))},s.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):$d(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&N(n,function(t){i=!0,this._mergeOption(t,e)},this),i},s.prototype.mergeOption=function(t){this._mergeOption(t,null)},s.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=O(),p=t&&t.replaceMergeMainTypeMap;Zd(this).datasetMap=O(),N(i,function(t,e){null!=t&&(Id.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?v(t):d(r[e],t,!0))}),p&&p.each(function(t,e){Id.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),Id.topologicalTravel(n,Id.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=qd.get(e))&&e(t))?n.concat(e):n}(this,o,Go(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=Yo(e,t,n),s=(Jo(e,o,Id),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;N(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=Id.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=P({componentIndex:e},t.keyInfo),P(n=new r(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),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&jd(this)},this),this._seriesIndices||jd(this)},s.prototype.getOption=function(){var a=v(this.option);return N(a,function(t,e){if(Id.hasClass(e)){for(var n=Go(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!Qo(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[rf],a},s.prototype.setTheme=function(t){this._theme=new up(t),this._resetOption("recreate",null)},s.prototype.getTheme=function(){return this._theme},s.prototype.getLocaleModel=function(){return this._locale},s.prototype.setUpdatePayload=function(t){this._payload=t},s.prototype.getUpdatePayload=function(){return this._payload},s.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,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=B(o,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 o;r=o-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),r=0;rt[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),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Zg(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();rthis.getShallow("animationThreshold")?!1:t)},h.prototype.restoreData=function(){this.dataTask.dirty()},h.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Jd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},h.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},h.prototype.getProgressive=function(){return this.get("progressive")},h.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},h.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},h.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cy(e,n){N(zt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(py,n))})}function py(t,e){t=dy(t);return t&&t.setOutputEnd((e||this).count()),e}function dy(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}st(ay,ap),st(ay,Jd),fa(ay,Id);gy.prototype.init=function(t,e){},gy.prototype.render=function(t,e,n,i){},gy.prototype.dispose=function(t,e){},gy.prototype.updateView=function(t,e,n,i){},gy.prototype.updateLayout=function(t,e,n,i){},gy.prototype.updateVisual=function(t,e,n,i){},gy.prototype.toggleBlurSeries=function(t,e,n){},gy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var fy=gy;function gy(){this.group=new so,this.uid=pp("viewComponent")}da(fy),va(fy);var yy,my=ea(),vy=(yy=ea(),function(t){var e=yy(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}),_y=(xy.prototype.init=function(t,e){},xy.prototype.render=function(t,e,n,i){},xy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&wy(t,i,"emphasis")},xy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&wy(t,i,"normal")},xy.prototype.remove=function(t,e){this.group.removeAll()},xy.prototype.dispose=function(t,e){},xy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.eachRendered=function(t){Dc(this.group,t)},xy.markUpdateMethod=function(t,e){my(t).updateMethod=e},xy.protoInitialize=void(xy.prototype.type="chart"),xy);function xy(){this.group=new so,this.uid=pp("viewChart"),this.renderTask=lg({plan:Sy,reset:My}),this.renderTask.context={view:this}}function by(t,e,n){t&&fu(t)&&("emphasis"===e?tu:eu)(t,n)}function wy(e,t,n){var i,r=ta(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Tl[t])&&Ml<=32?Tl[t]=Ml++:i):null;null!=r?N(Go(r),function(t){by(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){by(t,n,o)})}function Sy(t){return vy(t.model)}function My(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&my(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Ty[o]}da(_y),va(_y);var Ty={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)}}},Cy="\0__throttleOriginMethod",Iy="\0__throttleRate",ky="\0__throttleType";function Dy(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||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}},Vy.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Vy.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Vy.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=O();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.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)})},Vy.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;N(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,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Vy.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Vy.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Vy.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Vy.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))}N(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.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},Vy.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Vy.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())})},Vy.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Vy.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=O(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||lg({plan:Zy,reset:Uy,count:qy}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},Vy.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||lg({reset:Fy}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=O(),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,lg({reset:Hy,onDirty:Gy})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}Ct(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,N(n.getSeries(),c)),h&&o.dirty()},Vy.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},Vy.wrapStageHandler=function(t,e){return(t=z(t)?{overallReset:t,seriesType:function(t){jy=null;try{t(Ky,$y)}catch(t){}return jy}(t)}:t).uid=pp("stageHandler"),e&&(t.visualType=e),t};var Ey=Vy;function Vy(t,e,n,i){this._stageTaskMap=O(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Fy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Hy(t){return t.overallProgress&&Wy}function Wy(){this.agent.dirty(),this.getDownstream().dirty()}function Gy(){this.agent&&this.agent.dirty()}function Zy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Uy(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Go(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 ol({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),N(p,function(t){t=new $s({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},m.prototype.convertToPixel=function(t,e,n){return fm(this,"convertToPixel",t,e,n)},m.prototype.convertToLayout=function(t,e,n){return fm(this,"convertToLayout",t,e,n)},m.prototype.convertFromPixel=function(t,e,n){return fm(this,"convertFromPixel",t,e,n)},m.prototype.containPixel=function(t,i){var r;if(!this._disposed)return N(ia(this._model,t),function(t,n){0<=n.indexOf("Models")&&N(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},m.prototype.getVisual=function(t,e){var t=ia(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},m.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},m.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},m.prototype._initEvents=function(){var n,i,s=this,r=(N(zm,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&o0(o,function(t){var e,t=Sl(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=P({},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&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);N(Vm,function(t,e){r.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,r.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(r0("map","selectchanged",n,e,t),r0("pie","selectchanged",n,e,t)):"select"===t.fromAction?(r0("map","selected",n,e,t),r0("pie","selected",n,e,t)):"unselect"===t.fromAction&&(r0("map","unselected",n,e,t),r0("pie","unselected",n,e,t))})},m.prototype.isDisposed=function(){return this._disposed},m.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},m.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&la(this.getDom(),jm,""),e=(t=this)._api,n=t._model,N(t._componentsViews,function(t){t.dispose(n,e)}),N(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 Um[t.id])},m.prototype.resize=function(t){if(!this[Q0])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[tm]&&(null==n&&(n=this[tm].silent),e=!0,this[tm]=null),this[Q0]=!0,km(this);try{e&&hm(this),dm.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Q0]=!1,t}this[Q0]=!1,mm.call(this,n),vm.call(this,n)}}},m.prototype.showLoading=function(t,e){this._disposed?this.id:(H(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Zm[t]&&(t=Zm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},m.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},m.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=Em[t.type],e},m.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(H(e)||(e={silent:!!e}),Bm[t.type]&&this._model&&(this[Q0]?this._pendingActions.push(t):(n=e.silent,ym.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&p.browser.weChat&&this._throttledZrFlush(),mm.call(this,n),vm.call(this,n))))},m.prototype.updateLabelLayout=function(){K0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},m.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())},m.internalField=(hm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),cm(t,!0),cm(t,!1),e.plan()},cm=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!p.node&&!p.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)})}),K0.trigger("series:afterupdate",t,e,n)},Cm=function(t){t[em]=!0,t.getZr().wakeUp()},km=function(t){t[J0]=(t[J0]+1)%1e3},Im=function(t){t[em]&&(t.getZr().storage.traverse(function(t){lc(t)||Pm(t)}),t[em]=!1)},Mm=function(n){return u(t,e=uf),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){tu(t,e),Cm(n)},t.prototype.leaveEmphasis=function(t,e){eu(t,e),Cm(n)},t.prototype.enterBlur=function(t){ql(t,Gl),Cm(n)},t.prototype.leaveBlur=function(t){nu(t),Cm(n)},t.prototype.enterSelect=function(t){iu(t),Cm(n)},t.prototype.leaveSelect=function(t){ru(t),Cm(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[J0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Tm=function(i){function r(t,e){for(var n=0;nr[1]&&(r[0]=r[1]),o}function Jv(t){var e=Math.pow(10,zo(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Co(t*e)}function t_(t){return ko(t)+2}function e_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function n_(t,e){return t>=e[0]&&t<=e[1]}r_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=y(t.normalize,t),this.scale=y(t.scale,t)):(this.normalize=o_,this.scale=a_)};var i_=r_;function r_(){this.normalize=o_,this.scale=a_}function o_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function a_(t,e){return t*(e[1]-e[0])+e[0]}function s_(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]}u_.prototype.getSetting=function(t){return this._setting[t]},u_.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]e[1]?t:e)[1])},u_.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},u_.prototype.getExtent=function(){return this._extent.slice()},u_.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},u_.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)},u_.prototype.setBreaksFromOption=function(t){},u_.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},u_.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},u_.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},u_.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},u_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},u_.prototype.isBlank=function(){return this._isBlank},u_.prototype.setBlank=function(t){this._isBlank=t};var l_=u_;function u_(t){this._calculator=new i_,this._setting=t||{},this._extent=[1/0,-1/0]}va(l_);var h_=0,c_=(p_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,d_);return new p_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},p_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},p_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return V(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},p_.prototype._getOrCreateMap=function(){return this._map||(this._map=O(this.categories))},p_);function p_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++h_,this._onCollect=t.onCollect}function d_(t){return H(t)&&null!=t.value?t.value:t+""}u(y_,f_=l_),y_.prototype.parse=function(t){return null==t?NaN:V(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},y_.prototype.contain=function(t){return n_(t,this._extent)&&0<=t&&t=t},y_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},y_.prototype.calcNiceTicks=function(){},y_.prototype.calcNiceExtent=function(){},y_.type="ordinal";var f_,g_=y_;function y_(t){var t=f_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return E(e=e||new c_({}))&&(e=new c_({categories:B(e,function(t){return H(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}l_.registerClass(g_);var m_,v_=Co,__=(u(x_,m_=l_),x_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},x_.prototype.contain=function(t){return n_(t,this._extent)},x_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},x_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},x_.prototype.getInterval=function(){return this._interval},x_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=t_(t)},x_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=bp,a=[];if(n)if("only_break"===t.breakTicks&&o)o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]h&&(t.expandToNicedExtent?a.push({value:v_(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},x_.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;ri[0]&&cx));)g[r](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[r](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,r,o,a,s=[],l=!e.length;if(i=Rp(t),r=_[0],o=_[1],a=v,Bp(new Date(r),i,a).getTime()!==Bp(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,k(Lp,e)-1);return Bp(new Date(t),Lp[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),k_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function S1(t,o){var e,n,r;return B(ht((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),N(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=w1(i,n,r);break;case"Polygon":case"MultiLineString":b1(i,n,r);break;case"MultiPolygon":N(i,function(t,e){return b1(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return B(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Lo,getPrecision:ko,getPrecisionSafe:Do,isNumeric:Vo,isRadianAroundZero:Po,linearMap:So,nice:Bo,numericToNumber:Eo,parseDate:Ro,parsePercent:Mo,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:No,quantityExponent:zo,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]':'':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""},normalizeCssArray:Jp,toCamelCase:function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t},truncateText:function(t,e,n,i,r){var o={};return ka(o,t,e,n,i,r),o.text}}),Qc=Object.freeze({__proto__:null,bind:y,clone:v,curry:dt,defaults:rt,each:N,extend:P,filter:ht,indexOf:k,inherits:at,isArray:E,isFunction:z,isObject:H,isString:V,map:B,merge:d,reduce:ut}),M1=ea(),T1=ea(),C1={estimate:1,determine:2};function I1(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function k1(e,t){t=B(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=A1(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=q_(r),{labels:B(a,function(t,e){return{formattedLabel:o(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function L1(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:ht(k1(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=P1(e=t),s=K_(u),(l=N1(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=z(s)?H1(e,s,!0):"auto"===s?(l=A1(e,e.getLabelModel(),I1(C1.determine)),o=l.labelCategoryInterval,B(l.labels,function(t){return t.tickValue})):F1(e,o=s,!0),z1(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(n),function(t){return t.value})}}function A1(t,e,n){var i,r=O1(t),o=K_(e),e=n.kind===C1.estimate;if(!e){var a=N1(r,o);if(a)return a}var s={labels:z(o)?H1(t,o):F1(t,i="auto"===o?function(t,e){{var n;if(e.kind===C1.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return T1(t).autoInterval=n,!0}),n}var i=T1(t).autoInterval;return null!=i?i:T1(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return z1(r,o,s),!0}):z1(r,o,s),s}var P1=R1("axisTick"),O1=R1("axisLabel");function R1(e){return function(t){return T1(t)[e]||(T1(t)[e]={list:[]})}}function N1(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},G1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0=u}}for(var o,a=this.__startIndex;ar[0]){for(l=0;lt);l++);s=i[r[l]]}r.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)}},x.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i "+p)),u++)}var d,f,g,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i||"matrix"===i?d=Kv(t,n):(k(i=(i=rd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Gv(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new Wv(i,n)).initData(t)),new Wv(["value"],n));return i.initData(l,s),r&&r(d,i),g=(f={mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}).mainData,(n=f.datas)||(n={main:g},f.datasAttr={main:"data"}),f.datas=f.mainData=null,Zw(g,n,f),N(n,function(e){N(g.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,dt(Vw,f))})}),g.wrapMethod("cloneShallow",dt(Hw,f)),N(g.CHANGABLE_METHODS,function(t){g.wrapMethod(t,dt(Fw,f))}),Ct(n[g.dataType]===g),o.update(),o}qw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},qw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},qw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},qw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Yw=qw;function qw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}u($w,jw=ay),$w.prototype.init=function(t){jw.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Yw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},$w.prototype.mergeOption=function(t){jw.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},$w.prototype.mergeDefaultAndTheme=function(t){jw.prototype.mergeDefaultAndTheme.apply(this,arguments),Zo(t,"edgeLabel",["show"])},$w.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],o=this;if(t&&i)return Kx(n=this)&&(n.__curvenessList=[],n.__edgeMap={},$x(n)),N((n=Xw(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=up.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=r,t}function r(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,Kx(i)&&(e=Qx(e,n,i),i=(n=i.__edgeMap)[Jx(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))},this),n.data},$w.prototype.getGraph=function(){return this.getData().graph},$w.prototype.getEdgeData=function(){return this.getGraph().edgeData},$w.prototype.getCategoriesData=function(){return this._categoriesData},$w.prototype.formatTooltip=function(t,e,n){var i,r,o;return"edge"===n?(r=this.getData(),n=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),i=r.getName(o.node1.dataIndex),r=r.getName(o.node2.dataIndex),o=[],null!=i&&o.push(i),null!=r&&o.push(r),ty("nameValue",{name:o.join(" > "),value:n.value,noValue:null==n.value})):ny({series:this,dataIndex:t,multipleSeries:e})},$w.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:P({value:0},t)}),e=new Wv(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},$w.prototype.setZoom=function(t){this.option.zoom=t},$w.prototype.setCenter=function(t){this.option.center=t},$w.prototype.isAnimationEnabled=function(){return jw.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},$w.type="series.graph",$w.dependencies=["grid","polar","geo","singleAxis","calendar"],$w.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:g.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:g.color.primary}}};var jw,Kw=$w;function $w(){var t=null!==jw&&jw.apply(this,arguments)||this;return t.type=$w.type,t.hasSymbolVisual=!0,t}a1(function(t){t.registerChartView(kw),t.registerSeriesModel(Kw),t.registerProcessor(Ux),t.registerVisual(Xx),t.registerVisual(qx),t.registerLayout(ab),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,fb),t.registerLayout(yb),t.registerCoordinateSystem("graphView",{dimensions:wb.dimensions,create:Cb}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ft),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ft),t.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(s,t,l){t.eachComponent({mainType:"series",query:s},function(t){var e,n,i,r,o=l.getViewOfSeriesModel(t),o=(o&&(null!=s.dx&&null!=s.dy&&o.updateViewOnPan(t,l,s),null!=s.zoom)&&null!=s.originX&&null!=s.originY&&o.updateViewOnZoom(t,l,s),t.coordinateSystem),a=(o=o,e=s,a=t.get("scaleLimit"),n=o.getZoom(),i=o.getCenter(),r=e.zoom,i=o.projectedToPoint?o.projectedToPoint(i):o.dataToPoint(i),null!=e.dx&&null!=e.dy&&(i[0]-=e.dx,i[1]-=e.dy,o.setCenter(mb(o,i))),null!=r&&(r=_b(n*r,a)/n,vb(o,e.originX,e.originY,r),o.updateTransform(),o.setCenter(mb(o,i)),o.setZoom(r*n)),{center:o.getCenter(),zoom:o.getZoom()});t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})});var Qw,Jw={left:0,right:0,top:0,bottom:0},tS=["25%","25%"],eS=(u(nS,Qw=Id),nS.prototype.mergeDefaultAndTheme=function(t,e){var n=bd(t.outerBounds);Qw.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&xd(t.outerBounds,n)},nS.prototype.mergeOption=function(t,e){Qw.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&xd(this.option.outerBounds,t.outerBounds)},nS.type="grid",nS.dependencies=["xAxis","yAxis"],nS.layoutMode="box",nS.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Jw,outerBoundsContain:"all",outerBoundsClampWidth:tS[0],outerBoundsClampHeight:tS[1],backgroundColor:g.color.transparent,borderWidth:1,borderColor:g.color.neutral30},nS);function nS(){return null!==Qw&&Qw.apply(this,arguments)||this}u(oS,iS=Id),oS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oa).models[0]},oS.type="cartesian2dAxis";var iS,rS=oS;function oS(){return null!==iS&&iS.apply(this,arguments)||this}st(rS,n1);var El={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:g.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:g.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:g.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[g.color.backgroundTint,g.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:g.color.neutral00,borderColor:g.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},tp=d({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},El),ga=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:g.color.axisMinorSplitLine,width:1}}},El),aS={category:tp,value:ga,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ga),log:rt({logBase:10},ga)},sS={value:1,category:1,time:1,log:1},lS=null;function uS(o,a,s,l){N(sS,function(t,r){var e,n=d(d({},aS[r],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=_d(this),i=n?bd(t):{};d(t,e.getTheme().get(r+"Axis")),d(t,this.getDefaultOption()),t.type=hS(t),n&&xd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=c_.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){return lS?lS.updateModelAxisBreak(this,t):{breaks:[]}},i.type=a+"Axis."+r,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+r,t}o.registerComponentModel(n)}),o.registerSubTypeDefaulter(a+"Axis",hS)}function hS(t){return t.type||(t.data?"category":"value")}function cS(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}cS.prototype.getAxis=function(t){return this._axes[t]},cS.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},cS.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ht(this.getAxes(),function(t){return t.scale.type===e})},cS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var pS=["x","y"];function dS(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}u(yS,fS=cS),yS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;dS(r)&&dS(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=Ze([],i))},yS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},yS.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},yS.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},yS.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new U(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},yS.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?ae(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},yS.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},yS.prototype.pointToData=function(t,e,n){var i,r;return n=n||[],this._invTransform?ae(n,t,this._invTransform):(i=this.getAxis("x"),r=this.getAxis("y"),n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n)},yS.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},yS.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-r+t;return new U(i,r,e,n)};var fS,gS=yS;function yS(){var t=null!==fS&&fS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pS,t}u(_S,mS=ap),_S.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},_S.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},_S.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},_S.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var mS,vS=_S;function _S(t,e,n,i,r){t=mS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}var xS="expandAxisBreak",bS=Math.PI,wS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],MS=ea(),TS=ea(),CS=(IS.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:{}})},IS);function IS(t){this.recordMap={},this.resolveAxisNameOverlap=t}function kS(t,e,n,i,r,o){var a,s;J_(t.nameLocation)?(t=o.stOccupiedRect)&&AS((a={},t=t,s=o.transGroup.transform,a.transform=Pc(a.transform,s),a.localRect=Ac(a.localRect,t),a.rect=Ac(a.rect,t),s&&a.rect.applyTransform(s),a.axisAligned=Lc(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r):PS(o.labelInfoList,o.dirVec,i,r)}var DS=Be(),LS=new U(0,0,0,0);function AS(t,e,n){var i=new M;_x(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&(t=i,n=e)&&(n.label.x+=t.x,n.label.y+=t.y,n.label.markRedraw(),(i=n.transform)&&(i[4]+=t.x,i[5]+=t.y),(e=n.rect)&&(e.x+=t.x,e.y+=t.y),e=n.obb)&&e.fromBoundingRect(n.localRect,i)}function PS(t,e,n,i){for(var r=0<=M.dot(i,e),o=0,a=t.length;oi[1],i="start"===e&&!t||"start"!==e&&t;e=Po(n-bS/2)?(r=i?"bottom":"top","center"):Po(n-1.5*bS)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*bS&&bS/2s[0]&&isFinite(c)&&isFinite(s[0]);)h=Jv(h),c=s[1]-h*a;else{t=(h=au[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)o&&(e[1-i]=e[i]+n.sign*o)}function VM(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0e[1]&&(e[1]=t[1])})}),[(e=G_((n=e.getAxisModel()).axis.scale,n,r).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},eT.prototype.filterData=function(t,e){var r,n,o,c;t===this._dataZoomModel&&(r=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),c=this._valueWindow,"none"!==o)&&QM(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(r);h.length&&("weakFilter"===o?(l=i.getStore(),u=B(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,r=0;rc[1];if(a&&!s&&!o)return!0;a&&(i=!0),s&&(e=!0),o&&(n=!0)}return i&&e&&n})):QM(h,function(t){var e;"empty"===o?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))}),QM(h,function(t){i.setApproximateExtent(c,t)}))})},eT.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,o=this._dataExtent;QM(["min","max"],function(t){var e=r.get(t+"Span"),n=r.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=So(o[0]+n,o,[0,100],!0):null!=e&&(n=So(e,[0,100],o,!0)-o[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},eT.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Lo(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())},eT);function eT(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var nT={getTargetSeries:function(o){function t(r){o.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=o.getComponent(TM(t),e);r(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var r=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new tT(t,e,i,o),r.push(n.__dzAxisProxy))}),O());return N(r,function(t){N(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 iT=!1;function rT(t){iT||(iT=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,nT),t.registerAction("dataZoom",function(e,t){N(CM(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 oT(t){rT(t),t.registerComponentModel(RM),t.registerComponentView(YM),UM(t)}u(lT,aT=zh),lT.type="dataZoom.slider",lT.layoutMode="box",lT.defaultOption=dp(zh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:g.color.accent10,borderRadius:0,backgroundColor:g.color.transparent,dataBackground:{lineStyle:{color:g.color.accent30,width:.5},areaStyle:{color:g.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:g.color.accent40,width:.5},areaStyle:{color:g.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:g.color.neutral00,borderColor:g.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:g.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:g.color.tertiary},brushSelect:!0,brushStyle:{color:g.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:g.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15});var aT,sT=lT;function lT(){var t=null!==aT&&aT.apply(this,arguments)||this;return t.type=lT.type,t}var uT,hT=ol,cT="horizontal",pT="vertical",dT=["line","bar","candlestick","scatter"],fT={easing:"cubicOut",duration:100,delay:0},gT=(u(b,uT=Wu),b.prototype.init=function(t,e){this.api=e,this._onBrush=y(this._onBrush,this),this._onBrushEnd=y(this._onBrushEnd,this)},b.prototype.render=function(t,e,n,i){uT.prototype.render.apply(this,arguments),Ly(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())},b.prototype.dispose=function(){this._clear(),uT.prototype.dispose.apply(this,arguments)},b.prototype._clear=function(){(e=(n=this)[t="_dispatchZoomAction"])&&e[Cy]&&(e.clear&&e.clear(),n[t]=e[Cy]);var t,e,n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},b.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 so);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},b.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,e=vd(t,e).refContainer,i=this._findCoordRect(),r=t.get("defaultLocationEdgeGap",!0)||0,o=this._orient===cT?{right:e.width-i.x-i.width,top:e.height-30-r-n,width:i.width,height:30}:{right:r,top:i.y,width:30,height:i.height},a=bd(t.option),n=(N(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])}),gd(a,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===pT&&this._size.reverse()},b.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),r=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse,n=(r.attr(n!==cT||i?n===cT&&i?{scaleY:o?1:-1,scaleX:-1}:n!==pT||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1}),t.getBoundingRect([r]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},b.prototype._getViewExtent=function(){return[0,this._size[0]]},b.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new hT({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new hT({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:y(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)},b.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),o=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=o)for(var a,s,l,u,h,c,p,d,f,g,y,m,v,_=this._shadowPolygonPts,x=this._shadowPolylinePts,b=(r===this._shadowData&&o===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(a=r.getDataExtent(t.thisDim),i=.3*((s=r.getDataExtent(o))[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,r.count()-1),p=e[0]/(a[1]-a[0]),d="time"===t.thisAxis.type,f=-c,g=Math.round(r.count()/e[0]),r.each([t.thisDim,o],function(t,e,n){0wo(n[1])?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))},b.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new M(e,t),this._brushing=!0,this._brushStartTime=+new Date},b.prototype._onBrushEnd=function(t){var e,n,i,r;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],EM(0,i=this._handleEnds=[i.x,i.x+i.width],e,0,null!=(r=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan?So(r.minSpan,n,e,!0):null,null!=r.maxSpan?So(r.maxSpan,n,e,!0):null),this._range=Io([So(i[0],e,n,!0),So(i[1],e,n,!0)]),this._updateView(),this._dispatchZoomAction(!1)))},b.prototype._onBrush=function(t){this._brushing&&(Ae(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},b.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect,i=(r||(r=n.brushRect=new hT({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.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),r.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},b.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?fT:null,start:e[0],end:e[1]})},b.prototype._findCoordRect=function(){var t,e,n=IM(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}},b.type="dataZoom.slider",b);function b(){var t=null!==uT&&uT.apply(this,arguments)||this;return t.type=b.type,t._displayables={},t}function yT(t){t.registerComponentModel(sT),t.registerComponentView(gT),rT(t)}a1(function(t){a1(oT),a1(yT)}),a1(Zx);var mT={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vT=(_T.prototype.evaluate=function(t){var e=typeof t;return V(e)?this._condVal.test(t):!!F(e)&&this._condVal.test(t+"")},_T);function _T(t){null==(this._condVal=V(t)?new RegExp(t):xt(t)?t:null)&&f("")}bT.prototype.evaluate=function(){return this.value};var xT=bT;function bT(){}ST.prototype.evaluate=function(){for(var t=this.children,e=0;e