!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 b=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},p=new function(){this.browser=new b,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:"undefined"==typeof navigator?(p.node=!0,p.svgSupported=!0):(J=navigator.userAgent,ne=(Ft=p).browser,rt=J.match(/Firefox\/([\d.]+)/),G=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(ne.firefox=!0,ne.version=rt[1]),G&&(ne.ie=!0,ne.version=G[1]),Q&&(ne.edge=!0,ne.version=Q[1],ne.newEdge=18<+Q[1].split(".")[0]),J&&(ne.weChat=!0),Ft.svgSupported="undefined"!=typeof SVGRect,Ft.touchEventsSupported="ontouchstart"in window&&!ne.ie&&!ne.edge,Ft.pointerEventsSupported="onpointerdown"in window&&(ne.edge||ne.ie&&11<=+ne.version),Ft.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Ft.transform3dSupported=(ne.ie&&"transition"in rt||ne.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Ft.transformSupported=Ft.transform3dSupported||ne.ie&&9<=+ne.version);var K="12px sans-serif";var T,C,D=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,o),o,r);if(e)return e(t,n,i),1}}function de(t){return"CANVAS"===t.nodeName.toUpperCase()}var fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ge=[],ye=p.browser.firefox&&+p.browser.version.split(".")[0]<39;function me(t,e,n,i){return n=n||{},i?ve(t,e,n):ye&&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):ve(t,e,n),n}function ve(t,e,n){if(p.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(de(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(pe(ge,t,r,e))return n.zrX=ge[0],void(n.zrY=ge[1])}n.zrX=n.zrY=0}function _e(t){return t||window.event}function xe(t,e,n){var i;return null==(e=_e(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))*(0t.getWidth()||n<0||n>t.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){Oe.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=Ne(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 We(A,L){var P,O,R=Be,N=0,E=(A.length,[]);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--,He(A[i],A,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(r=Ve(A[e+n-1],A,i,r,r-1,L)))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=ze(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),Hn(t,e),e):void Bn(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(Bn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),Hn(t,e),e):void Bn(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?Bn(e,+a[0],+a[1],+a[2],1):Bn(e,0,0,0,1);s=Rn(a.pop());case"rgb":return 3!==a.length?void Bn(e,0,0,0,1):(Bn(e,On(a[0]),On(a[1]),On(a[2]),s),Hn(t,e),e);case"hsla":return 4!==a.length?void Bn(e,0,0,0,1):(a[3]=Rn(a[3]),Gn(a,e),Hn(t,e),e);case"hsl":return 3!==a.length?void Bn(e,0,0,0,1):(Gn(a,e),Hn(t,e),e);default:return}}Bn(e,0,0,0,1)}}function Gn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Rn(t[1]),r=Rn(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return Bn(e=e||[],Ln(255*Nn(r,i,n+1/3)),Ln(255*Nn(r,i,n)),Ln(255*Nn(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Un(t,e){var n=Wn(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?oi:t[c],(ri(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:ri(l)?(1===l?Qn:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},lr.prototype.clone=function(){return new lr(this.x,this.y,this.width,this.height)},lr.prototype.copy=function(t){lr.copy(this,t)},lr.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},lr.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},lr.prototype.isZero=function(){return 0===this.width||0===this.height},lr.create=function(t){return new lr(t.x,t.y,t.width,t.height)},lr.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},lr.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5this._sleepAfterStill)&&this.animation.stop()},o.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},o.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},o.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},o.prototype.off=function(t,e){this.handler.off(t,e)},o.prototype.trigger=function(t,e){this.handler.trigger(t,e)},o.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;oo){0i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=$o(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;pthis._ux||i>this._uy;return this.addData(Y.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},s.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Y.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},s.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Y.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},s.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),La[0]=i,La[1]=r,s=o,(l=Pa((a=La)[0]))<0&&(l+=Ia),h=l-a[0],u=a[1],u+=h,!s&&Ia<=u-l?u=l+Ia:s&&Ia<=l-u?u=l-Ia:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||ka(y)>i||c===e-1)&&(f=Math.sqrt(k*k+y*y),r=g,o=_);break;case Y.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=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=hn(t,n,r,a,f),f=hn(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,w,10),r=x,o=w;break;case Y.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=yn(t,n,r,p),p=yn(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 Y.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,t[c++],d&&(a=Ta(M)*b+x,s=Ca(M)*S+w),f=Ma(b,S)*Sa(Ia,Math.abs(T)),r=Ta(C)*b+x,o=Ca(C)*S+w;break;case Y.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case Y.Z:var k=a-r,y=s-o;f=Math.sqrt(k*k+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},s.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,E=this._ux,B=this._uy,z=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=Wa[i=0]+t&&a<=Wa[1]+t?h:0;rMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Fa.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Ra(c,p,S,p,e,i,r)||Ra(S,p,S,M,e,i,r)||Ra(S,M,c,M,e,i,r)||Ra(c,M,c,p,e,i,r))return!0}else l=(l+=za(S,p,S,M,i,r))+za(c,M,c,p,i,r);break;case Fa.Z:if(n){if(Ra(u,h,c,p,e,i,r))return!0}else l+=za(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)i.len()&&(u"'])/g,Gc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Uc(t){return null==t?"":(t+"").replace(Wc,function(t,e){return Gc[e]})}function Xc(t,e){return"{"+t+(null==e?"":e)+"}"}var Yc=["a","b","c","d","e","f","g"];function qc(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oe)return t[i];return t[n-1]}var Pp,Op="\0_ec_inner",Rp=(u(h,Pp=nc),h.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new nc(i),this._locale=new nc(r),this._optionManager=o},h.prototype.setOption=function(t,e,n){e=Bp(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},h.prototype.resetOption=function(t,e){return this._resetOption(t,Bp(e))},h.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)):kp(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&&O(n,function(t){i=!0,this._mergeOption(t,e)},this),i},h.prototype.mergeOption=function(t){this._mergeOption(t,null)},h.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=E(),p=t&&t.replaceMergeMainTypeMap;xp(this).datasetMap=E(),O(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?y(t):d(r[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=Mp.get(e))&&e(t))?n.concat(e):n}(this,o,io(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=so(e,t,n),s=(fo(e,o,g),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;O(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=g.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&&Tp(this)},this),this._seriesIndices||Tp(this)},h.prototype.getOption=function(){var a=y(this.option);return O(a,function(t,e){if(g.hasClass(e)){for(var n=io(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!po(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[Op],a},h.prototype.getTheme=function(){return this._theme},h.prototype.getLocaleModel=function(){return this._locale},h.prototype.setUpdatePayload=function(t){this._payload=t},h.prototype.getUpdatePayload=function(){return this._payload},h.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}},c.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=z(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=[]},c.prototype.count=function(){return this._count},c.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},c.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();lt[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}}},c.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(Mf(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},c.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)},m.prototype.restoreData=function(){this.dataTask.dirty()},m.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Ip.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},m.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},m.prototype.getProgressive=function(){return this.get("progressive")},m.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},m.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},m.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 Xf(e,n){O(Ot(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,pt(Yf,n))})}function Yf(t,e){t=qf(t);return t&&t.setOutputEnd((e||this).count()),e}function qf(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}at(Vf,Jh),at(Vf,Ip),Do(Vf,g);jf.prototype.init=function(t,e){},jf.prototype.render=function(t,e,n,i){},jf.prototype.dispose=function(t,e){},jf.prototype.updateView=function(t,e,n,i){},jf.prototype.updateLayout=function(t,e,n,i){},jf.prototype.updateVisual=function(t,e,n,i){},jf.prototype.toggleBlurSeries=function(t,e,n){},jf.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Zf=jf;function jf(){this.group=new Ar,this.uid=oc("viewComponent")}function Kf(){var o=yo();return function(t){var e=o(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"}}ko(Zf),Po(Zf);var $f=yo(),Qf=Kf(),Jf=(tg.prototype.init=function(t,e){},tg.prototype.render=function(t,e,n,i){},tg.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&ng(t,i,"emphasis")},tg.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&ng(t,i,"normal")},tg.prototype.remove=function(t,e){this.group.removeAll()},tg.prototype.dispose=function(t,e){},tg.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},tg.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},tg.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},tg.prototype.eachRendered=function(t){Dh(this.group,t)},tg.markUpdateMethod=function(t,e){$f(t).updateMethod=e},tg.protoInitialize=void(tg.prototype.type="chart"),tg);function tg(){this.group=new Ar,this.uid=oc("viewChart"),this.renderTask=Hd({plan:ig,reset:rg}),this.renderTask.context={view:this}}function eg(t,e,n){t&&Sl(t)&&("emphasis"===e?al:sl)(t,n)}function ng(e,t,n){var i,r=go(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=As[t])&&Is<=32?As[t]=Is++:i):null;null!=r?O(io(r),function(t){eg(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){eg(t,n,o)})}function ig(t){return Qf(t.model)}function rg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&$f(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),og[o]}ko(Jf),Po(Jf);var og={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)}}};function ag(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}},gg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gg.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}},gg.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=E();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)})},gg.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;O(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)},gg.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)},gg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},gg.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))}O(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},gg.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gg.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())})},gg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gg.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=E(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Hd({plan:xg,reset:wg,count:Mg}));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)},gg.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Hd({reset:yg}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=E(),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,Hd({reset:mg,onDirty:_g})));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,O(n.getSeries(),c)),h&&o.dirty()},gg.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},gg.wrapStageHandler=function(t,e){return(t=S(t)?{overallReset:t,seriesType:function(t){Tg=null;try{t(Cg,kg)}catch(t){}return Tg}(t)}:t).uid=oc("stageHandler"),e&&(t.visualType=e),t};var fg=gg;function gg(t,e,n,i){this._stageTaskMap=E(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function yg(t){t.overallReset(t.ecModel,t.api,t.payload)}function mg(t){return t.overallProgress&&vg}function vg(){this.agent.dirty(),this.getDownstream().dirty()}function _g(){this.agent&&this.agent.dirty()}function xg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wg(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=io(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 cs({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),O(p,function(t){t=new rs({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},v.prototype.convertToPixel=function(t,e){return qy(this,"convertToPixel",t,e)},v.prototype.convertFromPixel=function(t,e){return qy(this,"convertFromPixel",t,e)},v.prototype.containPixel=function(t,i){var r;if(!this._disposed)return O(vo(this._model,t),function(t,n){0<=n.indexOf("Models")&&O(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},v.prototype.getVisual=function(t,e){var t=vo(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)return Eg(n,e);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)}},v.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},v.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},v.prototype._initEvents=function(){var t,n,i,s=this;O(fm,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&zg(o,function(t){var e,t=Ds(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},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)}),O(ym,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),O(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Bg("map","selectchanged",n,e,t),Bg("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Bg("map","selected",n,e,t),Bg("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Bg("map","unselected",n,e,t),Bg("pie","unselected",n,e,t))})},v.prototype.isDisposed=function(){return this._disposed},v.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},v.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&bo(this.getDom(),Cm,""),e=(t=this)._api,n=t._model,O(t._componentsViews,function(t){t.dispose(n,e)}),O(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 bm[t.id])},v.prototype.resize=function(t){if(!this[Py])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[Oy]&&(null==n&&(n=this[Oy].silent),e=!0,this[Oy]=null),this[Py]=!0;try{e&&Gy(this),Yy.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Py]=!1,t}this[Py]=!1,Ky.call(this,n),$y.call(this,n)}}},v.prototype.showLoading=function(t,e){this._disposed?this.id:(R(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),wm[t]&&(t=wm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},v.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},v.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=ym[t.type],e},v.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(R(e)||(e={silent:!!e}),gm[t.type]&&this._model&&(this[Py]?this._pendingActions.push(t):(n=e.silent,jy.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&p.browser.weChat&&this._throttledZrFlush(),Ky.call(this,n),$y.call(this,n))))},v.prototype.updateLabelLayout=function(){Iy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},v.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())},v.internalField=(Gy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Uy(t,!0),Uy(t,!1),e.plan()},Uy=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)})}),Iy.trigger("series:afterupdate",t,e,n)},om=function(t){t[Ry]=!0,t.getZr().wakeUp()},am=function(t){t[Ry]&&(t.getZr().storage.traverse(function(t){dh(t)||hm(t)}),t[Ry]=!1)},im=function(n){return u(t,e=zp),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){al(t,e),om(n)},t.prototype.leaveEmphasis=function(t,e){sl(t,e),om(n)},t.prototype.enterBlur=function(t){ll(t),om(n)},t.prototype.leaveBlur=function(t){ul(t),om(n)},t.prototype.enterSelect=function(t){hl(t),om(n)},t.prototype.leaveSelect=function(t){cl(t),om(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(rm=function(i){function r(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},D0.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},D0.prototype.getExtent=function(){return this._extent.slice()},D0.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},D0.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},D0.prototype.isBlank=function(){return this._isBlank},D0.prototype.setBlank=function(t){this._isBlank=t};var k0=D0;function D0(t){this._setting=t||{},this._extent=[1/0,-1/0]}Po(k0);var I0=0,A0=(L0.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&z(e,P0);return new L0({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},L0.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},L0.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):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},L0.prototype._getOrCreateMap=function(){return this._map||(this._map=E(this.categories))},L0);function L0(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++I0}function P0(t){return R(t)&&null!=t.value?t.value:t+""}function O0(t){return"interval"===t.type||"log"===t.type}function R0(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=$r(o/e,!0),e=(null!=n&&oi[1]&&(i[0]=i[1]),r}function N0(t){var e=Math.pow(10,Kr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Hr(t*e)}function E0(t){return Wr(t)+2}function B0(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function z0(t,e){return t>=e[0]&&t<=e[1]}function F0(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function V0(t,e){return t*(e[1]-e[0])+e[0]}u(G0,H0=k0),G0.prototype.parse=function(t){return null==t?NaN:V(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},G0.prototype.contain=function(t){return z0(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},G0.prototype.normalize=function(t){return F0(t=this._getTickNumber(this.parse(t)),this._extent)},G0.prototype.scale=function(t){return t=Math.round(V0(t,this._extent)),this.getRawOrdinalNumber(t)},G0.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},G0.prototype.getMinorTicks=function(t){},G0.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=t},G0.prototype.getOrdinalMeta=function(){return this._ordinalMeta},G0.prototype.calcNiceTicks=function(){},G0.prototype.calcNiceExtent=function(){},G0.type="ordinal";var H0,W0=G0;function G0(t){var t=H0.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new A0({}))&&(e=new A0({categories:z(e,function(t){return R(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}k0.registerClass(W0);var U0,X0=Hr,Y0=(u(q0,U0=k0),q0.prototype.parse=function(t){return t},q0.prototype.contain=function(t){return z0(t,this._extent)},q0.prototype.normalize=function(t){return F0(t,this._extent)},q0.prototype.scale=function(t){return V0(t,this._extent)},q0.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},q0.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},q0.prototype.getInterval=function(){return this._interval},q0.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=E0(t)},q0.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]s&&o.push(t?{value:X0(s+e,r)}:{value:n[1]})}return o},q0.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h=M[0]&&d<=M[1]&&a++)}u=(M[1]-M[0])/b;if(1.5*u=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),lv.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 t_(t,o){var e,n,r;return z(ut((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),O(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Jv(i,n,r);break;case"Polygon":case"MultiLineString":Qv(i,n,r);break;case"MultiPolygon":O(i,function(t,e){return Qv(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/r},getPixelPrecision:Ur,getPrecision:Wr,getPrecisionSafe:Gr,isNumeric:Jr,isRadianAroundZero:Yr,linearMap:Fr,nice:$r,numericToNumber:Qr,parseDate:Zr,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:jr,quantityExponent:Kr,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:Hc,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:Wo}),Ng=Object.freeze({__proto__:null,bind:ct,clone:y,curry:pt,defaults:B,each:O,extend:P,filter:ut,indexOf:k,inherits:ot,isArray:F,isFunction:S,isObject:R,isString:V,map:z,merge:d,reduce:lt}),e_=yo();function n_(t){return"category"===t.type?(r=(e=t).getLabelModel(),o=r_(e,r),!r.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(n=t).scale.getTicks(),i=Iv(n),{labels:z(r,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,r,o}function i_(t,e){var n,i,r,o,a,s;return"category"===t.type?(e=e,o=o_(n=t,"ticks"),a=Lv(e),(s=a_(o,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=S(a)?u_(n,a,!0):"auto"===a?(s=r_(n,n.getLabelModel()),r=s.labelCategoryInterval,z(s.labels,function(t){return t.tickValue})):l_(n,r=a,!0),s_(o,a,{ticks:i,tickCategoryInterval:r}))):{ticks:z(t.scale.getTicks(),function(t){return t.value})}}function r_(t,e){var n,i=o_(t,"labels"),e=Lv(e),r=a_(i,e);return r||s_(i,e,{labels:S(e)?u_(t,e):l_(t,n="auto"===e?null!=(i=e_(r=t).autoInterval)?i:e_(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:n})}function o_(t,e){return e_(t)[e]||(e_(t)[e]=[])}function a_(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]}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1]}),u},c_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),z(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=this}},x.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?0<=i.height?"bottom":"top":0<=i.width?"right":"left"),h=Oh(n),l=(Ph(t,h,{labelFetcher:r,labelDataIndex:e,defaultText:function(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=zd(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;aMath.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===a?u:a,L1(o),n.get(["label","rotate"]))),u=l,a=h,o=r.getRawValue(e),l=function(t){var e=s,n=t,i=e.mapDimensionsAll("defaultedLabel");if(!F(n))return n+"";for(var r=[],o=0;oe[1]&&e.reverse(),e},rx.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},rx.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var nx,ix=rx;function rx(t,e,n,i,r){t=nx.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}function ox(t){return"cartesian2d"===t.get("coordinateSystem")}function ax(i){var r={xAxisModel:null,yAxisModel:null};return O(r,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,xo).models[0];r[e]=n}),r}var sx=Math.log;ux.prototype.getRect=function(){return this._rect},ux.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=ht(t),n=e.length;if(n){for(var i=[],r=n-1;0<=r;r--){var o=t[+e[r]],a=o.model,s=o.scale;O0(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(o):(kv(s,a),O0(s)&&(d=o))}i.length&&(d||kv((d=i.pop()).scale,d.model),O(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=Y0.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,n=i.getInterval.call(n),s=(t=Cv(e,t)).extent,l=t.fixMin,t=t.fixMax,u=("log"===e.type&&(u=sx(e.base),s=[sx(s[0])/u,sx(s[1])/u]),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:t}),i.getExtent.call(e)),h=(l&&(s[0]=u[0]),t&&(s[1]=u[1]),i.getInterval.call(e)),c=s[0],p=s[1];if(l&&t)h=(p-c)/a;else if(l)for(p=s[0]+h*a;ps[0]&&isFinite(c)&&isFinite(s[0]);)h=N0(h),c=s[1]-h*a;else{u=(h=ah[1]?-1:1,l=["start"===a?h[0]-l*d:"end"===a?h[1]+l*d:(h[0]+h[1])/2,_x(a)?t.labelOffset+u*d:0],null!=(d=e.get("nameRotate"))&&(d=d*dx/180),_x(a)?o=fx.innerTextLayout(t.rotation,null!=d?d:t.rotation,u):(o=function(t,e,n,i){var r,n=Xr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Yr(n-dx/2)?(r=i?"bottom":"top","center"):Yr(n-1.5*dx)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*dx&&dx/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ew=(Bw.prototype.evaluate=function(t){var e=typeof t;return V(e)?this._condVal.test(t):!!ft(e)&&this._condVal.test(t+"")},Bw);function Bw(t){null==(this._condVal=V(t)?new RegExp(t):xt(t)?t:null)&&f("")}Fw.prototype.evaluate=function(){return this.value};var zw=Fw;function Fw(){}Hw.prototype.evaluate=function(){for(var t=this.children,e=0;e