import{c as PD}from"./prismjs-BZPoR7_J.js?v=1773287522785";var Ow=function(r,t){return Ow=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])},Ow(r,t)};function he(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ow(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cY=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),dY=(function(){function r(){this.browser=new cY,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=typeof window<"u"}return r})(),vt=new dY;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(vt.wxa=!0,vt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?vt.worker=!0:!vt.hasGlobalWindow||"Deno"in window?(vt.node=!0,vt.svgSupported=!0):pY(navigator.userAgent,vt);function pY(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),i&&(e.ie=!0,e.version=i[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var LA=12,L4="sans-serif",oo=LA+"px "+L4,gY=20,mY=100,yY="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _Y(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[u]+":0",a[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function FY(r,t,e){for(var a=e?"invTrans":"trans",i=t[a],n=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var v=r[u].getBoundingClientRect(),h=2*u,f=v.left,c=v.top;o.push(f,c),l=l&&n&&f===n[h]&&c===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[a]=e?ED(s,o):ED(o,s))}function F4(r){return r.nodeName.toUpperCase()==="CANVAS"}var HY=/([&<>"'])/g,qY={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zr(r){return r==null?"":(r+"").replace(HY,function(t,e){return qY[e]})}var WY=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ig=[],UY=vt.browser.firefox&&+vt.browser.version.split(".")[0]<39;function Gw(r,t,e,a){return e=e||{},a?OD(r,t,e):UY&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):OD(r,t,e),e}function OD(r,t,e){if(vt.domSupported&&r.getBoundingClientRect){var a=t.clientX,i=t.clientY;if(F4(r)){var n=r.getBoundingClientRect();e.zrX=a-n.left,e.zrY=i-n.top;return}else if(Vw(Ig,r,a,i)){e.zrX=Ig[0],e.zrY=Ig[1];return}}e.zrX=e.zrY=0}function NA(r){return r||window.event}function Ba(r,t,e){if(t=NA(t),t.zrX!=null)return t;var a=t.type,i=a&&a.indexOf("touch")>=0;if(i){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Gw(r,o,t,e)}else{Gw(r,t,t,e);var n=$Y(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&WY.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $Y(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var i=Math.abs(a!==0?a:e),n=a>0?-1:a<0?1:e>0?-1:1;return 3*i*n}function Fw(r,t,e,a){r.addEventListener(t,e,a)}function YY(r,t,e,a){r.removeEventListener(t,e,a)}var _n=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ND(r){return r.which===2||r.which===3}var ZY=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&a&&a.length>1){var n=zD(a)/zD(i);!isFinite(n)&&(n=1),t.pinchScale=n;var o=XY(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function xa(){return[1,0,0,1,0,0]}function Vh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Sp(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Wi(r,t,e){var a=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=i,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function yi(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function co(r,t,e,a){a===void 0&&(a=[0,0]);var i=t[0],n=t[2],o=t[4],s=t[1],l=t[3],u=t[5],v=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*v,r[1]=-i*v+s*h,r[2]=n*h+l*v,r[3]=-n*v+h*l,r[4]=h*(o-a[0])+v*(u-a[1])+a[0],r[5]=h*(u-a[1])-v*(o-a[0])+a[1],r}function bp(r,t,e){var a=e[0],i=e[1];return r[0]=t[0]*a,r[1]=t[1]*i,r[2]=t[2]*a,r[3]=t[3]*i,r[4]=t[4]*a,r[5]=t[5]*i,r}function Ns(r,t){var e=t[0],a=t[2],i=t[4],n=t[1],o=t[3],s=t[5],l=e*o-n*a;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*i)*l,r[5]=(n*i-e*s)*l,r):null}function H4(r){var t=xa();return Sp(t,r),t}const KY=Object.freeze(Object.defineProperty({__proto__:null,clone:H4,copy:Sp,create:xa,identity:Vh,invert:Ns,mul:Wi,rotate:co,scale:bp,translate:yi},Symbol.toStringTag,{value:"Module"}));var rt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,i){t.x=e.x+a.x*i,t.y=e.y+a.y*i},r.lerp=function(t,e,a,i){var n=1-i;t.x=n*e.x+i*a.x,t.y=n*e.y+i*a.y},r})(),Af=Math.min,Cf=Math.max,Co=new rt,Mo=new rt,Do=new rt,Lo=new rt,ku=new rt,Ou=new rt,at=(function(){function r(t,e,a,i){a<0&&(t=t+a,a=-a),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=a,this.height=i}return r.prototype.union=function(t){var e=Af(t.x,this.x),a=Af(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Cf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cf(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,i=t.height/e.height,n=xa();return yi(n,n,[-e.x,-e.y]),bp(n,n,[a,i]),yi(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var a=this,i=a.x,n=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,u=t.x+t.width,v=t.y,h=t.y+t.height,f=!(nd&&(d=_,pd&&(d=x,m=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var i=a[0],n=a[3],o=a[4],s=a[5];t.x=e.x*i+o,t.y=e.y*n+s,t.width=e.width*i,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Co.x=Do.x=e.x,Co.y=Lo.y=e.y,Mo.x=Lo.x=e.x+e.width,Mo.y=Do.y=e.y+e.height,Co.transform(a),Lo.transform(a),Mo.transform(a),Do.transform(a),t.x=Af(Co.x,Mo.x,Do.x,Lo.x),t.y=Af(Co.y,Mo.y,Do.y,Lo.y);var l=Cf(Co.x,Mo.x,Do.x,Lo.x),u=Cf(Co.y,Mo.y,Do.y,Lo.y);t.width=l-t.x,t.height=u-t.y},r})(),q4="silent";function QY(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:jY}}function jY(){_n(this.event)}var JY=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Xa),Nu=(function(){function r(t,e){this.x=t,this.y=e}return r})(),eZ=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rg=new at(0,0,0,0),W4=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this)||this;return s._hovered=new Nu(0,0),s.storage=e,s.painter=a,s.painterRoot=n,s._pointerSize=o,i=i||new JY,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new zY(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&($(eZ,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,i=e.zrY,n=U4(this,a,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Nu(a,i):this.findHover(a,i),u=l.target,v=this.proxy;v.setCursor&&v.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Nu(0,0)},t.prototype.dispatch=function(e,a){var i=this[e];i&&i.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,i){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var o="on"+a,s=QY(a,e,i);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(a,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,i){var n=this.storage.getDisplayList(),o=new Nu(e,a);if(BD(n,o,e,a,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,v=new at(e-u,a-u,l,l),h=n.length-1;h>=0;h--){var f=n[h];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Rg.copy(f.getBoundingRect()),f.transform&&Rg.applyTransform(f.transform),Rg.intersect(v)&&s.push(f))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function tZ(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,i=void 0,n=!1;a;){if(a.ignoreClip&&(n=!0),!n){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(i=!0);var s=a.__hostTarget;a=s||a.parent}return i?q4:!0}return!1}function BD(r,t,e,a,i){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==i&&!o.ignore&&(s=tZ(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==q4)){t.target=o;break}}}function U4(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var $4=32,zu=7;function rZ(r){for(var t=0;r>=$4;)t|=r&1,r>>=1;return r+t}function VD(r,t,e,a){var i=t+1;if(i===e)return 1;if(a(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function aZ(r,t,e){for(e--;t>>1,i(n,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Eg(r,t,e,a,i,n){var o=0,s=0,l=1;if(n(r,t[e+i])>0){for(s=a-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);n(r,t[e+v])>0?o=v+1:l=v}return l}function kg(r,t,e,a,i,n){var o=0,s=0,l=1;if(n(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=a-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);n(r,t[e+v])<0?l=v:o=v+1}return l}function iZ(r,t){var e=zu,a,i,n=0,o=[];a=[],i=[];function s(c,d){a[n]=c,i[n]=d,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;v(c)}}function u(){for(;n>1;){var c=n-2;c>0&&i[c-1]=zu||w>=zu);if(A)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),d===1){for(m=0;m=0;m--)r[b+m]=r[S+m];r[x]=o[_];return}for(var w=e;;){var A=0,T=0,C=!1;do if(t(o[_],r[y])<0){if(r[x--]=r[y--],A++,T=0,--d===0){C=!0;break}}else if(r[x--]=o[_--],T++,A=0,--g===1){C=!0;break}while((A|T)=0;m--)r[b+m]=r[S+m];if(d===0){C=!0;break}}if(r[x--]=o[_--],--g===1){C=!0;break}if(T=g-Eg(r[y],o,0,g,g-1,t),T!==0){for(x-=T,_-=T,g-=T,b=x+1,S=_+1,m=0;m=zu||T>=zu);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(x-=d,y-=d,b=x+1,S=y+1,m=d-1;m>=0;m--)r[b+m]=r[S+m];r[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),m=0;ms&&(l=s),GD(r,e,e+l,e+n,t),n=l}o.pushRun(e,n),o.mergeRuns(),i-=n,e+=n}while(i!==0);o.forceMergeRuns()}}var ba=1,Dv=2,Dl=4,FD=!1;function Og(){FD||(FD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function HD(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var nZ=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=HD}return r.prototype.traverse=function(t,e){for(var a=0;a0&&(v.__clipPaths=[]),isNaN(v.z)&&(Og(),v.z=0),isNaN(v.z2)&&(Og(),v.z2=0),isNaN(v.zlevel)&&(Og(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,a);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,e,a);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,a=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),xd;xd=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Wv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Wv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Wv.bounceIn(r*2)*.5:Wv.bounceOut(r*2-1)*.5+.5}},Mf=Math.pow,eo=Math.sqrt,Sd=1e-8,Y4=1e-4,qD=eo(3),Df=1/3,Bi=fo(),Ha=fo(),Bl=fo();function Yn(r){return r>-Sd&&rSd||r<-Sd}function br(r,t,e,a,i){var n=1-i;return n*n*(n*r+3*i*t)+i*i*(i*a+3*n*e)}function WD(r,t,e,a,i){var n=1-i;return 3*(((t-r)*n+2*(e-t)*i)*n+(a-e)*i*i)}function bd(r,t,e,a,i,n){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,v=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,c=0;if(Yn(v)&&Yn(h))if(Yn(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[c++]=d)}else{var p=h*h-4*v*f;if(Yn(p)){var g=h/v,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m)}else if(p>0){var y=eo(p),_=v*s+1.5*o*(-h+y),x=v*s+1.5*o*(-h-y);_<0?_=-Mf(-_,Df):_=Mf(_,Df),x<0?x=-Mf(-x,Df):x=Mf(x,Df);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(n[c++]=d)}else{var S=(2*v*s-3*o*h)/(2*eo(v*v*v)),b=Math.acos(S)/3,w=eo(v),A=Math.cos(b),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+qD*Math.sin(b)))/(3*o),T=(-s+w*(A-qD*Math.sin(b)))/(3*o);d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m),T>=0&&T<=1&&(n[c++]=T)}}return c}function X4(r,t,e,a,i){var n=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Yn(o)){if(Z4(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var v=n*n-4*o*s;if(Yn(v))i[0]=-n/(2*o);else if(v>0){var h=eo(v),u=(-n+h)/(2*o),f=(-n-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function so(r,t,e,a,i,n){var o=(t-r)*i+r,s=(e-t)*i+t,l=(a-e)*i+e,u=(s-o)*i+o,v=(l-s)*i+s,h=(v-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=v,n[6]=l,n[7]=a}function K4(r,t,e,a,i,n,o,s,l,u,v){var h,f=.005,c=1/0,d,p,g,m;Bi[0]=l,Bi[1]=u;for(var y=0;y<1;y+=.05)Ha[0]=br(r,e,i,o,y),Ha[1]=br(t,a,n,s,y),g=Jn(Bi,Ha),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var v=o*o-4*n*s;if(Yn(v)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(v>0){var h=eo(v),u=(-o+h)/(2*n),f=(-o-h)/(2*n);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Q4(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function uh(r,t,e,a,i){var n=(t-r)*a+r,o=(e-t)*a+t,s=(o-n)*a+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function j4(r,t,e,a,i,n,o,s,l){var u,v=.005,h=1/0;Bi[0]=o,Bi[1]=s;for(var f=0;f<1;f+=.05){Ha[0]=kr(r,e,i,f),Ha[1]=kr(t,a,n,f);var c=Jn(Bi,Ha);c=0&&c=1?1:bd(0,a,n,1,l,s)&&br(0,i,o,1,s[0])}}}var vZ=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ir,this.ondestroy=t.ondestroy||ir,this.onrestart=t.onrestart||ir,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,i=t-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=He(t)?t:Wv[t]||zA(t)},r})(),J4=(function(){function r(t){this.value=t}return r})(),hZ=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new J4(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Gh=(function(){function r(t){this._list=new hZ,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,i=this._map,n=null;if(i[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new J4(e),s.key=t,a.insertEntry(s),i[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),UD={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function di(r){return r=Math.round(r),r<0?0:r>255?255:r}function fZ(r){return r=Math.round(r),r<0?0:r>360?360:r}function vh(r){return r<0?0:r>1?1:r}function Ng(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?di(parseFloat(t)/100*255):di(parseInt(t,10))}function _s(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?vh(parseFloat(t)/100):vh(parseFloat(t))}function zg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Zn(r,t,e){return r+(t-r)*e}function Na(r,t,e,a,i){return r[0]=t,r[1]=e,r[2]=a,r[3]=i,r}function qw(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var eq=new Gh(20),Lf=null;function tl(r,t){Lf&&qw(Lf,t),Lf=eq.put(r,Lf||t.slice())}function sa(r,t){if(r){t=t||[];var e=eq.get(r);if(e)return qw(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in UD)return qw(t,UD[a]),tl(r,t),t;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){Na(t,0,0,0,1);return}return Na(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),tl(r,t),t}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){Na(t,0,0,0,1);return}return Na(t,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),tl(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),v=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Na(t,+u[0],+u[1],+u[2],1):Na(t,0,0,0,1);v=_s(u.pop());case"rgb":if(u.length>=3)return Na(t,Ng(u[0]),Ng(u[1]),Ng(u[2]),u.length===3?v:_s(u[3])),tl(r,t),t;Na(t,0,0,0,1);return;case"hsla":if(u.length!==4){Na(t,0,0,0,1);return}return u[3]=_s(u[3]),Ww(u,t),tl(r,t),t;case"hsl":if(u.length!==3){Na(t,0,0,0,1);return}return Ww(u,t),tl(r,t),t;default:return}}Na(t,0,0,0,1)}}function Ww(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=_s(r[1]),i=_s(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return t=t||[],Na(t,di(zg(o,n,e+1/3)*255),di(zg(o,n,e)*255),di(zg(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function cZ(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,i=Math.min(t,e,a),n=Math.max(t,e,a),o=n-i,s=(n+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+i):u=o/(2-n-i);var v=((n-t)/6+o/2)/o,h=((n-e)/6+o/2)/o,f=((n-a)/6+o/2)/o;t===n?l=f-h:e===n?l=1/3+v-f:a===n&&(l=2/3+h-v),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function wd(r,t){var e=sa(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return pi(e,e.length===4?"rgba":"rgb")}}function dZ(r){var t=sa(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Uv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),i=Math.floor(a),n=Math.ceil(a),o=t[i],s=t[n],l=a-i;return e[0]=di(Zn(o[0],s[0],l)),e[1]=di(Zn(o[1],s[1],l)),e[2]=di(Zn(o[2],s[2],l)),e[3]=vh(Zn(o[3],s[3],l)),e}}var pZ=Uv;function BA(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),i=Math.floor(a),n=Math.ceil(a),o=sa(t[i]),s=sa(t[n]),l=a-i,u=pi([di(Zn(o[0],s[0],l)),di(Zn(o[1],s[1],l)),di(Zn(o[2],s[2],l)),vh(Zn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:n,value:a}:u}}var gZ=BA;function Vl(r,t,e,a){var i=sa(r);if(r)return i=cZ(i),t!=null&&(i[0]=fZ(t)),e!=null&&(i[1]=_s(e)),a!=null&&(i[2]=_s(a)),pi(Ww(i),"rgba")}function hh(r,t){var e=sa(r);if(e&&t!=null)return e[3]=vh(t),pi(e,"rgba")}function pi(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function fh(r,t){var e=sa(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function mZ(){return pi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var $D=new Gh(100);function Td(r){if(Re(r)){var t=$D.get(r);return t||(t=wd(r,-.1),$D.put(r,t)),t}else if(zh(r)){var e=_e({},r);return e.colorStops=we(r.colorStops,function(a){return{offset:a.offset,color:wd(a.color,-.1)}}),e}return r}const yZ=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Uv,fastMapToColor:pZ,lerp:BA,lift:wd,liftColor:Td,lum:fh,mapToColor:gZ,modifyAlpha:hh,modifyHSL:Vl,parse:sa,random:mZ,stringify:pi,toHex:dZ},Symbol.toStringTag,{value:"Module"}));var Ad=Math.round;function ch(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=sa(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var YD=1e-4;function Xn(r){return r-YD}function If(r){return Ad(r*1e3)/1e3}function Uw(r){return Ad(r*1e4)/1e4}function _Z(r){return"matrix("+If(r[0])+","+If(r[1])+","+If(r[2])+","+If(r[3])+","+Uw(r[4])+","+Uw(r[5])+")"}var xZ={left:"start",right:"end",center:"middle",middle:"middle"};function SZ(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function bZ(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function wZ(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function tq(r){return r&&!!r.image}function TZ(r){return r&&!!r.svgElement}function VA(r){return tq(r)||TZ(r)}function rq(r){return r.type==="linear"}function aq(r){return r.type==="radial"}function iq(r){return r&&(r.type==="linear"||r.type==="radial")}function wp(r){return"url(#"+r+")"}function nq(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function oq(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*Fv,i=Je(r.scaleX,1),n=Je(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(i!==1||n!==1)&&l.push("scale("+i+","+n+")"),(o||s)&&l.push("skew("+Ad(o*Fv)+"deg, "+Ad(s*Fv)+"deg)"),l.join(" ")}var AZ=(function(){return vt.hasGlobalWindow&&He(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),$w=Array.prototype.slice;function un(r,t,e){return(t-r)*e+r}function Bg(r,t,e,a){for(var i=t.length,n=0;na?t:r,n=Math.min(e,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)a.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=XD,l=e;if(Br(e)){var u=LZ(e);s=u,(u===1&&!bt(e[0])||u===2&&!bt(e[0][0]))&&(o=!0)}else if(bt(e)&&!Ul(e))s=Rf;else if(Re(e))if(!isNaN(+e))s=Rf;else{var v=sa(e);v&&(l=v,s=Lv)}else if(zh(e)){var h=_e({},l);h.colorStops=we(e.colorStops,function(c){return{offset:c.offset,color:sa(c.color)}}),rq(e)?s=Yw:aq(e)&&(s=Zw),l=h}n===0?this.valType=s:(s!==this.valType||s===XD)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:e,percent:0};return a&&(f.easing=a,f.easingFunc=He(a)?a:Wv[a]||zA(a)),i.push(f),f},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=Ef(i),u=KD(i),v=0;v=0&&!(o[v].percent<=e);v--);v=f(v,s-2)}else{for(v=h;ve);v++);v=f(v-1,s-2)}d=o[v+1],c=o[v]}if(c&&d){this._lastFr=v,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:f((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?Bu:t[l];if((Ef(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(Ef(n))n===Qc?Bg(y,c[i],d[i],m):CZ(y,c[i],d[i],m);else if(KD(n)){var _=c[i],x=d[i],S=n===Yw;t[l]={type:S?"linear":"radial",x:un(_.x,x.x,m),y:un(_.y,x.y,m),colorStops:we(_.colorStops,function(w,A){var T=x.colorStops[A];return{offset:un(w.offset,T.offset,m),color:Kc(Bg([],w.color,T.color,m))}}),global:x.global},S?(t[l].x2=un(_.x2,x.x2,m),t[l].y2=un(_.y2,x.y2,m)):t[l].r=un(_.r,x.r,m)}else if(u)Bg(y,c[i],d[i],m),a||(t[l]=Kc(y));else{var b=un(c[i],d[i],m);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,i=this._additiveValue;e===Rf?t[a]=t[a]+i:e===Lv?(sa(t[a],Bu),Pf(Bu,Bu,i,1),t[a]=Kc(Bu)):e===Qc?Pf(t[a],t[a],i,1):e===sq&&ZD(t[a],t[a],i,1)},r})(),GA=(function(){function r(t,e,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){mp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,ft(e),a)},r.prototype.whenWithKeys=function(t,e,a,i){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,$v(u),i),this._trackKeys.push(s)}l.addKeyframe(t,$v(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],i=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})();function El(){return new Date().getTime()}var PZ=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,i=e.next;a?a.next=i:this._head=i,i?i.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=El()-this._pausedTime,i=a-this._time,n=this._head;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=a,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(xd(a),!e._paused&&e.update())}xd(a)},t.prototype.start=function(){this._running||(this._time=El(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=El(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=El()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var i=new GA(e,a.loop);return this.addAnimator(i),i},t})(Xa),RZ=300,Vg=vt.domSupported,Gg=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=we(r,function(i){var n=i.replace("mouse","pointer");return e.hasOwnProperty(n)?n:i});return{mouse:r,touch:t,pointer:a}})(),QD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jD=!1;function Xw(r){var t=r.pointerType;return t==="pen"||t==="touch"}function EZ(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Fg(r){r&&(r.zrByTouch=!0)}function kZ(r,t){return Ba(r.dom,new OZ(r,t),!0)}function lq(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var OZ=(function(){function r(t,e){this.stopPropagation=ir,this.stopImmediatePropagation=ir,this.preventDefault=ir,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),li={mousedown:function(r){r=Ba(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ba(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ba(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ba(this.dom,r);var t=r.toElement||r.relatedTarget;lq(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){jD=!0,r=Ba(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){jD||(r=Ba(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ba(this.dom,r),Fg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),li.mousemove.call(this,r),li.mousedown.call(this,r)},touchmove:function(r){r=Ba(this.dom,r),Fg(r),this.handler.processGesture(r,"change"),li.mousemove.call(this,r)},touchend:function(r){r=Ba(this.dom,r),Fg(r),this.handler.processGesture(r,"end"),li.mouseup.call(this,r),+new Date-+this.__lastTouchMomenttL||r<-tL}var Po=[],rl=[],qg=xa(),Wg=Math.abs,pn=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Io(this.rotation)||Io(this.x)||Io(this.y)||Io(this.scaleX-1)||Io(this.scaleY-1)||Io(this.skewX)||Io(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(eL(a),this.invTransform=null);return}a=a||xa(),e?this.getLocalTransform(a):eL(a),t&&(e?Wi(a,t,a):Sp(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Po);var a=Po[0]<0?-1:1,i=Po[1]<0?-1:1,n=((Po[0]-a)*e+a)/Po[0]||0,o=((Po[1]-i)*e+i)/Po[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||xa(),Ns(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),n=Math.PI/2+i-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||xa(),Wi(rl,t.invTransform,e),e=rl);var a=this.originX,i=this.originY;(a||i)&&(qg[4]=a,qg[5]=i,Wi(rl,e,qg),rl[4]-=a,rl[5]-=i,e=rl),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],i=this.invTransform;return i&&Or(a,a,i),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],i=this.transform;return i&&Or(a,a,i),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Wg(t[0]-1)>1e-10&&Wg(t[3]-1)>1e-10?Math.sqrt(Wg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){vq(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,i=t.originY||0,n=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,v=t.x,h=t.y,f=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(a||i||s||l){var d=a+s,p=i+l;e[4]=-d*n-f*p*o,e[5]=-p*o-c*d*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=c*n,e[2]=f*o,u&&co(e,e,u),e[4]+=a+v,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),$i=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vq(r,t){for(var e=0;e<$i.length;e++){var a=$i[e];r[a]=t[a]}}var rL={};function Ca(r,t){t=t||oo;var e=rL[t];e||(e=rL[t]=new Gh(500));var a=e.get(r);return a==null&&(a=mi.measureText(r,t).width,e.put(r,a)),a}function aL(r,t,e,a){var i=Ca(r,t),n=Tp(t),o=Iv(0,i,e),s=Ll(0,n,a),l=new at(o,s,i,n);return l}function Fh(r,t,e,a){var i=((r||"")+"").split("\n"),n=i.length;if(n===1)return aL(i[0],t,e,a);for(var o=new at(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Md(r,t,e){var a=t.position||"inside",i=t.distance!=null?t.distance:5,n=e.height,o=e.width,s=n/2,l=e.x,u=e.y,v="left",h="top";if(a instanceof Array)l+=_i(a[0],e.width),u+=_i(a[1],e.height),v=null,h=null;else switch(a){case"left":l-=i,u+=s,v="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,v="center",h="bottom";break;case"bottom":l+=o/2,u+=n+i,v="center";break;case"inside":l+=o/2,u+=s,v="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,v="right",h="middle";break;case"insideTop":l+=o/2,u+=i,v="center";break;case"insideBottom":l+=o/2,u+=n-i,v="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,v="right";break;case"insideBottomLeft":l+=i,u+=n-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,v="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=v,r.verticalAlign=h,r}var Ug="__zr_normal__",$g=$i.concat(["ignore"]),GZ=Ya($i,function(r,t){return r[t]=!0,r},{ignore:!1}),al={},FZ=new at(0,0,0,0),Ap=(function(){function r(t){this.id=RA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,i=a.local,n=e.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=i?this:null;var u=!1;if(n.copyTransform(e),a.position!=null){var v=FZ;a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(al,a,v):Md(al,a,v),n.x=al.x,n.y=al.y,o=al.align,s=al.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var f=void 0,c=void 0;h==="center"?(f=v.width*.5,c=v.height*.5):(f=_i(h[0],v.width),c=_i(h[1],v.height)),u=!0,n.originX=-n.x+f+(i?0:v.x),n.originY=-n.y+c+(i?0:v.y)}}a.rotation!=null&&(n.rotation=a.rotation);var d=a.offset;d&&(n.x+=d[0],n.y+=d[1],u||(n.originX=-d[0],n.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=a.insideFill,y=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=a.outsideFill,y=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=ba,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jw:jw},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&sa(e);a||(a=[255,255,255,1]);for(var i=a[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*i+(n?0:255)*(1-i);return a[3]=1,pi(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},_e(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if($e(t))for(var a=t,i=ft(a),n=0;n0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ug,!1,t)},r.prototype.useState=function(t,e,a,i){var n=t===Ug,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(nt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!n){mp("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(u);var v=!!(u&&u.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,f=this._textGuide;return h&&h.useState(t,e,a,v),f&&f.useState(t,e,a,v),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ba),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var i=[],n=this.currentStates,o=t.length,s=o===n.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,f),g&&g.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ba)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var i=this.currentStates.slice(),n=nt(i,t),o=nt(i,e)>=0;n>=0?o?i.splice(n,1):i[n]=e:a&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,i=0;i=0&&n.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,i=a.length,n=[],o=0;o0&&e.during&&n[0].during(function(d,p){e.during(p)});for(var f=0;f0||i.force&&!o.length){var A=void 0,T=void 0,C=void 0;if(s){T={},f&&(A={});for(var x=0;x<_;x++){var m=p[x];T[m]=e[m],f?A[m]=a[m]:e[m]=a[m]}}else if(f){C={};for(var x=0;x<_;x++){var m=p[x];C[m]=$v(e[m]),qZ(e,a,m)}}var S=new GA(e,!1,!1,h?Ct(d,function(L){return L.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),f&&A&&S.whenWithKeys(0,A,p),C&&S.whenWithKeys(0,C,p),S.whenWithKeys(u==null?500:u,s?T:a,p).delay(v||0),r.addAnimator(S,t),o.push(S)}}var Ze=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,i=0;i=0&&(i.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var i=nt(this._children,e);return i>=0&&this.replaceAt(a,i),this},t.prototype.replaceAt=function(e,a){var i=this._children,n=i[a];if(e&&e!==this&&e.parent!==this&&e!==n){i[a]=e,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,i=this._children,n=nt(i,e);return n<0?this:(i.splice(n,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=n)return s}else{if(r>=i)return o;if(r<=n)return s}else{if(r===i)return o;if(r===n)return s}return(r-i)/l*u+o}function Ie(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Re(r)?eX(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ar(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),pq),r=(+r).toFixed(t),e?r:+r}function Ta(r){return r.sort(function(t,e){return t-e}),r}function hi(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return gq(r)}function gq(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,i=e>0?e:t.length,n=t.indexOf("."),o=n<0?0:i-1-n;return Math.max(0,o-a)}function FA(r,t){var e=Math.log,a=Math.LN10,i=Math.floor(e(r[1]-r[0])/a),n=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-i+n,0),20);return isFinite(o)?o:20}function tX(r,t,e){if(!r[t])return 0;var a=mq(r,e);return a[t]||0}function mq(r,t){var e=Ya(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),i=we(r,function(c){return(isNaN(c)?0:c)/e*a*100}),n=a*100,o=we(i,function(c){return Math.floor(c)}),s=Ya(o,function(c,d){return c+d},0),l=we(i,function(c,d){return c-o[d]});su&&(u=l[h],v=h);++o[v],l[v]=0,++s}return we(o,function(c){return c/a})}function rX(r,t){var e=Math.max(hi(r),hi(t)),a=r+t;return e>pq?a:ar(a,e)}var rT=9007199254740991;function HA(r){var t=Math.PI*2;return(r%t+t)%t}function Yl(r){return r>-iL&&r=10&&t++,t}function qA(r,t){var e=Cp(r),a=Math.pow(10,e),i=r/a,n;return t?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*a,e>=-20?+r.toFixed(e<0?-e:0):r}function ed(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),i=+r[a-1],n=e-a;return n?i+n*(r[a]-i):i}function aT(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a=0||n&&nt(n,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var MX=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DX=Ls(MX),LX=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return DX(this,t,e)},r})(),nT=new Gh(50);function IX(r){if(typeof r=="string"){var t=nT.get(r);return t&&t.image}else return r}function ZA(r,t,e,a,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=nT.get(r),o={hostEl:e,cb:a,cbPayload:i};return n?(t=n.image,!Dp(t)&&n.pending.push(o)):(t=mi.loadImage(r,lL,lL),t.__zrImageSrc=r,nT.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function lL(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Ca(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Pq(r,t,e){var a=e.containerWidth,i=e.font,n=e.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ca(t,i);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?RX(t,n,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ca(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function RX(r,t,e,a){for(var i=0,n=0,o=r.length;nd&&u){var p=Math.floor(d/s);v=v||f.length>p,f=f.slice(0,p)}if(r&&n&&h!=null)for(var g=Iq(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},y=0;ys&&Kg(e,r.substring(s,u),t,o),Kg(e,l[2],t,o,l[1]),s=Xg.lastIndex}si){var D=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),m(_,S,x),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y),e.isTruncated=e.isTruncated||e.lines.length0&&d+a.accumWidth>a.width&&(v=t.split("\n"),u=!0),a.accumWidth=d}else{var p=Rq(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,v=p.lines}}else v=t.split("\n");for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var BX=Ya(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function VX(r){return zX(r)?!!BX[r]:!0}function Rq(r,t,e,a,i){for(var n=[],o=[],s="",l="",u=0,v=0,h=0;he:i+v+c>e){v?(s||l)&&(d?(s||(s=l,l="",u=0,v=u),n.push(s),o.push(v-u),l+=f,u+=c,s="",v=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(v),s=f,v=c)):d?(n.push(l),o.push(u),l=f,u=c):(n.push(f),o.push(c));continue}v+=c,d?(l+=f,u+=c):(l&&(s+=l,l="",u=0),s+=f)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(v)),n.length===1&&(v+=i),{accumWidth:v,lines:n,linesWidths:o}}var oT="__zr_style_"+Math.round(Math.random()*10),xs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xs[oT]=!0;var vL=["z","z2","invisible"],GX=["invisible"],Za=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=ft(e),i=0;i1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(kf[0]=em(i)*e+r,kf[1]=Jg(i)*a+t,Of[0]=em(n)*e+r,Of[1]=Jg(n)*a+t,u(s,kf,Of),v(l,kf,Of),i=i%Eo,i<0&&(i=i+Eo),n=n%Eo,n<0&&(n=n+Eo),i>n&&!o?n+=Eo:ii&&(Nf[0]=em(c)*e+r,Nf[1]=Jg(c)*a+t,u(s,Nf,s),v(l,Nf,l))}var Ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ko=[],Oo=[],Ci=[],Pn=[],Mi=[],Di=[],tm=Math.min,rm=Math.max,No=Math.cos,zo=Math.sin,nn=Math.abs,sT=Math.PI,Fn=sT*2,am=typeof Float32Array<"u",Vu=[];function im(r){var t=Math.round(r/sT*1e8)/1e8;return t%2*sT}function XA(r,t){var e=im(r[0]);e<0&&(e+=Fn);var a=e-r[0],i=r[1];i+=a,!t&&i-e>=Fn?i=e+Fn:t&&e-i>=Fn?i=e-Fn:!t&&e>i?i=e+(Fn-im(e-i)):t&&e0&&(this._ux=nn(a/Cd/t)||0,this._uy=nn(a/Cd/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ft.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=nn(t-this._xi),i=nn(e-this._yi),n=a>this._ux||i>this._uy;if(this.addData(Ft.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,i,n,o){return this._drawPendingPt(),this.addData(Ft.C,t,e,a,i,n,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,i,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,i){return this._drawPendingPt(),this.addData(Ft.Q,t,e,a,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,i),this._xi=a,this._yi=i,this},r.prototype.arc=function(t,e,a,i,n,o){this._drawPendingPt(),Vu[0]=i,Vu[1]=n,XA(Vu,o),i=Vu[0],n=Vu[1];var s=n-i;return this.addData(Ft.A,t,e,a,a,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,i,n,o),this._xi=No(n)*a+t,this._yi=zo(n)*a+e,this},r.prototype.arcTo=function(t,e,a,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,i,n),this},r.prototype.rect=function(t,e,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,i),this.addData(Ft.R,t,e,a,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ft.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&am&&(this.data=new Float32Array(e));for(var a=0;av.length&&(this._expandData(),v=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ci[0]=Ci[1]=Mi[0]=Mi[1]=Number.MAX_VALUE,Pn[0]=Pn[1]=Di[0]=Di[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,i=0,n=0,o;for(o=0;oa||nn(_)>i||f===e-1)&&(p=Math.sqrt(y*y+_*_),n=g,o=m);break}case Ft.C:{var x=t[f++],S=t[f++],g=t[f++],m=t[f++],b=t[f++],w=t[f++];p=oZ(n,o,x,S,g,m,b,w,10),n=b,o=w;break}case Ft.Q:{var x=t[f++],S=t[f++],g=t[f++],m=t[f++];p=lZ(n,o,x,S,g,m,10),n=g,o=m;break}case Ft.A:var A=t[f++],T=t[f++],C=t[f++],M=t[f++],L=t[f++],D=t[f++],P=D+L;f+=1,d&&(s=No(L)*C+A,l=zo(L)*M+T),p=rm(C,M)*tm(Fn,Math.abs(D)),n=No(P)*C+A,o=zo(P)*M+T;break;case Ft.R:{s=n=t[f++],l=o=t[f++];var I=t[f++],R=t[f++];p=I*2+R*2;break}case Ft.Z:{var y=s-n,_=l-o;p=Math.sqrt(y*y+_*_),n=s,o=l;break}}p>=0&&(u[h++]=p,v+=p)}return this._pathLen=v,v},r.prototype.rebuildPath=function(t,e){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,v,h,f,c=e<1,d,p,g=0,m=0,y,_=0,x,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y)))e:for(var b=0;b0&&(t.lineTo(x,S),_=0),w){case Ft.M:s=u=a[b++],l=v=a[b++],t.moveTo(u,v);break;case Ft.L:{h=a[b++],f=a[b++];var T=nn(h-u),C=nn(f-v);if(T>i||C>n){if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;t.lineTo(u*(1-L)+h*L,v*(1-L)+f*L);break e}g+=M}t.lineTo(h,f),u=h,v=f,_=0}else{var D=T*T+C*C;D>_&&(x=h,S=f,_=D)}break}case Ft.C:{var P=a[b++],I=a[b++],R=a[b++],E=a[b++],k=a[b++],B=a[b++];if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;so(u,P,R,k,L,ko),so(v,I,E,B,L,Oo),t.bezierCurveTo(ko[1],Oo[1],ko[2],Oo[2],ko[3],Oo[3]);break e}g+=M}t.bezierCurveTo(P,I,R,E,k,B),u=k,v=B;break}case Ft.Q:{var P=a[b++],I=a[b++],R=a[b++],E=a[b++];if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;uh(u,P,R,L,ko),uh(v,I,E,L,Oo),t.quadraticCurveTo(ko[1],Oo[1],ko[2],Oo[2]);break e}g+=M}t.quadraticCurveTo(P,I,R,E),u=R,v=E;break}case Ft.A:var F=a[b++],V=a[b++],N=a[b++],O=a[b++],z=a[b++],G=a[b++],q=a[b++],H=!a[b++],U=N>O?N:O,W=nn(N-O)>.001,Y=z+G,X=!1;if(c){var M=d[m++];g+M>y&&(Y=z+G*(y-g)/M,X=!0),g+=M}if(W&&t.ellipse?t.ellipse(F,V,N,O,q,z,Y,H):t.arc(F,V,U,z,Y,H),X)break e;A&&(s=No(z)*N+F,l=zo(z)*O+V),u=No(Y)*N+F,v=zo(Y)*O+V;break;case Ft.R:s=u=a[b],l=v=a[b+1],h=a[b++],f=a[b++];var K=a[b++],Q=a[b++];if(c){var M=d[m++];if(g+M>y){var j=y-g;t.moveTo(h,f),t.lineTo(h+tm(j,K),f),j-=K,j>0&&t.lineTo(h+K,f+tm(j,Q)),j-=Q,j>0&&t.lineTo(h+rm(K-j,0),f+Q),j-=K,j>0&&t.lineTo(h,f+rm(Q-j,0));break e}g+=M}t.rect(h,f,K,Q);break;case Ft.Z:if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;t.lineTo(u*(1-L)+s*L,v*(1-L)+l*L);break e}g+=M}t.closePath(),u=s,v=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Ft,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function qn(r,t,e,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>a+s||or+s&&n>e+s||nt+h&&v>a+h&&v>n+h&&v>s+h||vr+h&&u>e+h&&u>i+h&&u>o+h||ut+u&&l>a+u&&l>n+u||lr+u&&s>e+u&&s>i+u||se||v+ui&&(i+=Gu);var f=Math.atan2(l,s);return f<0&&(f+=Gu),f>=a&&f<=i||f+Gu>=a&&f+Gu<=i}function vn(r,t,e,a,i,n){if(n>t&&n>a||ni?s:0}var Rn=Zi.CMD,Bo=Math.PI*2,YX=1e-4;function ZX(r,t){return Math.abs(r-t)t&&u>a&&u>n&&u>s||u1&&XX(),c=br(t,a,n,s,Ga[0]),f>1&&(d=br(t,a,n,s,Ga[1]))),f===2?gt&&s>a&&s>n||s=0&&u<=1){for(var v=0,h=kr(t,a,n,u),f=0;fe||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ia[0]=-l,ia[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=Bo-1e-4){a=0,i=Bo;var v=n?1:-1;return o>=ia[0]+r&&o<=ia[1]+r?v:0}if(a>i){var h=a;a=i,i=h}a<0&&(a+=Bo,i+=Bo);for(var f=0,c=0;c<2;c++){var d=ia[c];if(d+r>o){var p=Math.atan2(s,d),v=n?1:-1;p<0&&(p=Bo+p),(p>=a&&p<=i||p+Bo>=a&&p+Bo<=i)&&(p>Math.PI/2&&p1&&(e||(s+=vn(l,u,v,h,a,i))),g&&(l=n[d],u=n[d+1],v=l,h=u),p){case Rn.M:v=n[d++],h=n[d++],l=v,u=h;break;case Rn.L:if(e){if(qn(l,u,n[d],n[d+1],t,a,i))return!0}else s+=vn(l,u,n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.C:if(e){if(UX(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],t,a,i))return!0}else s+=KX(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.Q:if(e){if(Eq(l,u,n[d++],n[d++],n[d],n[d+1],t,a,i))return!0}else s+=QX(l,u,n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.A:var m=n[d++],y=n[d++],_=n[d++],x=n[d++],S=n[d++],b=n[d++];d+=1;var w=!!(1-n[d++]);f=Math.cos(S)*_+m,c=Math.sin(S)*x+y,g?(v=f,h=c):s+=vn(l,u,f,c,a,i);var A=(a-m)*x/_+m;if(e){if($X(m,y,x,S,S+b,w,t,A,i))return!0}else s+=jX(m,y,x,S,S+b,w,A,i);l=Math.cos(S+b)*_+m,u=Math.sin(S+b)*x+y;break;case Rn.R:v=l=n[d++],h=u=n[d++];var T=n[d++],C=n[d++];if(f=v+T,c=h+C,e){if(qn(v,h,f,h,t,a,i)||qn(f,h,f,c,t,a,i)||qn(f,c,v,c,t,a,i)||qn(v,c,v,h,t,a,i))return!0}else s+=vn(f,h,f,c,a,i),s+=vn(v,c,v,h,a,i);break;case Rn.Z:if(e){if(qn(l,u,v,h,t,a,i))return!0}else s+=vn(l,u,v,h,a,i);l=v,u=h;break}}return!e&&!ZX(u,h)&&(s+=vn(l,u,v,h,a,i)||0),s!==0}function JX(r,t,e){return kq(r,0,!1,t,e)}function eK(r,t,e,a){return kq(r,t,!0,e,a)}var Dd=Ue({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xs),tK={style:Ue({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lp.style)},nm=$i.concat(["invisible","culling","z","z2","zlevel","parent"]),ht=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var n=i.style;for(var o in a)n[o]!==a[o]&&(n[o]=a[o]);n.fill=a.fill?a.decal:null,n.decal=null,n.shadowColor=null,a.strokeFirst&&(n.stroke=null);for(var s=0;s.5?jw:a>.2?VZ:Jw}else if(e)return Jw}return jw},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Re(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=fh(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,i=!e;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Dl)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var v=this.strokeContainThreshold;u=Math.max(u,v==null?4:v)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect(),o=this.style;if(e=i[0],a=i[1],n.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),eK(s,l/u,e,a)))return!0}if(this.hasFill())return JX(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=a:_e(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Dl)},t.prototype.createStyle=function(e){return Bh(Dd,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=_e({},this.shape))},t.prototype._applyStateObj=function(e,a,i,n,o,s){r.prototype._applyStateObj.call(this,e,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.shape?o?n?u=a.shape:(u=_e({},i.shape),_e(u,a.shape)):(u=_e({},n?this.shape:i.shape),_e(u,a.shape)):l&&(u=i.shape),u)if(o){this.shape=_e({},this.shape);for(var v={},h=ft(u),f=0;f0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return Bh(rK,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var i=Fh(a,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Za);Zl.prototype.type="tspan";var aK=Ue({x:0,y:0},xs),iK={style:Ue({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lp.style)};function nK(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Dr=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Bh(aK,e)},t.prototype._getSize=function(e){var a=this.style,i=a[e];if(i!=null)return i;var n=nK(a.image)?a.image:this.__image;if(!n)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?n[e]:n[e]/n[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return iK},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new at(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Za);Dr.prototype.type="image";function oK(r,t){var e=t.x,a=t.y,i=t.width,n=t.height,o=t.r,s,l,u,v;i<0&&(e=e+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=v=o:o instanceof Array?o.length===1?s=l=u=v=o[0]:o.length===2?(s=u=o[0],l=v=o[1]):o.length===3?(s=o[0],l=v=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],v=o[3]):s=l=u=v=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+v>i&&(h=u+v,u*=i/h,v*=i/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+v>n&&(h=s+v,s*=n/h,v*=n/h),r.moveTo(e+s,a),r.lineTo(e+i-l,a),l!==0&&r.arc(e+i-l,a+l,l,-Math.PI/2,0),r.lineTo(e+i,a+n-u),u!==0&&r.arc(e+i-u,a+n-u,u,0,Math.PI/2),r.lineTo(e+v,a+n),v!==0&&r.arc(e+v,a+n-v,v,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var kl=Math.round;function Oq(r,t,e){if(t){var a=t.x1,i=t.x2,n=t.y1,o=t.y2;r.x1=a,r.x2=i,r.y1=n,r.y2=o;var s=e&&e.lineWidth;return s&&(kl(a*2)===kl(i*2)&&(r.x1=r.x2=fs(a,s,!0)),kl(n*2)===kl(o*2)&&(r.y1=r.y2=fs(n,s,!0))),r}}function Nq(r,t,e){if(t){var a=t.x,i=t.y,n=t.width,o=t.height;r.x=a,r.y=i,r.width=n,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=fs(a,s,!0),r.y=fs(i,s,!0),r.width=Math.max(fs(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(fs(i+o,s,!1)-r.y,o===0?0:1)),r}}function fs(r,t,e){if(!t)return r;var a=kl(r*2);return(a+kl(t))%2===0?a/2:(a+(e?1:-1))/2}var sK=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),lK={},gt=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sK},t.prototype.buildPath=function(e,a){var i,n,o,s;if(this.subPixelOptimize){var l=Nq(lK,a,this.style);i=l.x,n=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else i=a.x,n=a.y,o=a.width,s=a.height;a.r?oK(e,a):e.rect(i,n,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ht);gt.prototype.type="rect";var pL={fill:"#000"},gL=2,uK={style:Ue({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Lp.style)},pt=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=pL,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),D=o.calculatedLineHeight,P=0;P=0&&(P=b[D],P.align==="right");)this._placeToken(P,e,A,m,L,"right",_),T-=P.width,L-=P.width,D--;for(M+=(n-(M-g)-(y-L)-T)/2;C<=D;)P=b[C],this._placeToken(P,e,A,m,M+P.width/2,"center",_),M+=P.width,C++;m+=A}},t.prototype._placeToken=function(e,a,i,n,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var v=e.verticalAlign,h=n+i/2;v==="top"?h=n+e.height/2:v==="bottom"&&(h=n+i-e.height/2);var f=!e.isLineHolder&&om(u);f&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=bL(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Zl),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,x=SL("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,m.fill)),S=xL("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!m.autoStroke||y)?(_=gL,m.stroke):null),b=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||oo,g.opacity=ci(u.opacity,a.opacity,1),yL(g,u),S&&(g.lineWidth=ci(u.lineWidth,a.lineWidth,_),g.lineDash=Je(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=S),x&&(g.fill=x);var w=e.contentWidth,A=e.contentHeight;p.setBoundingRect(new at(Iv(g.x,w,g.textAlign),Ll(g.y,A,g.textBaseline),w,A))},t.prototype._renderBackground=function(e,a,i,n,o,s){var l=e.backgroundColor,u=e.borderWidth,v=e.borderColor,h=l&&l.image,f=l&&!h,c=e.borderRadius,d=this,p,g;if(f||e.lineHeight||u&&v){p=this._getOrCreateChild(gt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=n,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(f){var y=p.style;y.fill=l||null,y.fillOpacity=Je(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Dr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=n,_.width=o,_.height=s}if(u&&v){var y=p.style;y.lineWidth=u,y.stroke=v,y.strokeOpacity=Je(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=ci(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return Bq(e)&&(a=[e.fontStyle,e.fontWeight,zq(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Ua(a)||e.textFont||e.font},t})(Za),vK={left:!0,right:1,center:1},hK={top:1,bottom:1,middle:1},mL=["fontStyle","fontWeight","fontSize","fontFamily"];function zq(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?LA+"px":r+"px"}function yL(r,t){for(var e=0;e=0,n=!1;if(r instanceof ht){var o=Vq(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(il(s)||il(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(n=!0,a=_e({},a),u=_e({},u),u.fill=s):!il(u.fill)&&il(s)?(n=!0,a=_e({},a),u=_e({},u),u.fill=Td(s)):!il(u.stroke)&&il(l)&&(n||(a=_e({},a),u=_e({},u)),u.stroke=Td(l)),a.style=u}}if(a&&a.z2==null){n||(a=_e({},a));var v=r.z2EmphasisLift;a.z2=r.z2+(v!=null?v:nu)}return a}function yK(r,t,e){if(e&&e.z2==null){e=_e({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:cK)}return e}function _K(r,t,e){var a=nt(r.currentStates,t)>=0,i=r.style.opacity,n=a?null:gK(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=_e({},e),o=_e({opacity:a?i:n.opacity*.1},o),e.style=o),e}function sm(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return mK(this,r,t,e);if(r==="blur")return _K(this,r,e);if(r==="select")return yK(this,r,e)}return e}function Is(r){r.stateProxy=sm;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=sm),e&&(e.stateProxy=sm)}function ML(r,t){!$q(r,t)&&!r.__highByOuter&&Mn(r,Gq)}function DL(r,t){!$q(r,t)&&!r.__highByOuter&&Mn(r,Fq)}function xn(r,t){r.__highByOuter|=1<<(t||0),Mn(r,Gq)}function Sn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Mn(r,Fq)}function qq(r){Mn(r,jA)}function JA(r){Mn(r,Hq)}function Wq(r){Mn(r,dK)}function Uq(r){Mn(r,pK)}function $q(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Yq(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(i,n){var o=KA(n),s=i==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){Hq(u)}),s&&e.push(n)),o.isBlured=!1}),$(a,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function uT(r,t,e,a){var i=a.getModel();e=e||"coordinateSystem";function n(u,v){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};n!=null&&(s.dataType=n),t.push(s)}})}),t}function to(r,t,e){cs(r,!0),Mn(r,Is),hT(r,t,e)}function AK(r){cs(r,!1)}function tr(r,t,e,a){a?AK(r):to(r,t,e)}function hT(r,t,e){var a=Xe(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var IL=["emphasis","blur","select"],CK={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vr(r,t,e,a){e=e||"itemStyle";for(var i=0;i1&&(o*=lm(d),s*=lm(d));var p=(i===n?-1:1)*lm((o*o*(s*s)-o*o*(c*c)-s*s*(f*f))/(o*o*(c*c)+s*s*(f*f)))||0,g=p*o*c/s,m=p*-s*f/o,y=(r+e)/2+Bf(h)*g-zf(h)*m,_=(t+a)/2+zf(h)*g+Bf(h)*m,x=kL([1,0],[(f-g)/o,(c-m)/s]),S=[(f-g)/o,(c-m)/s],b=[(-1*f-g)/o,(-1*c-m)/s],w=kL(S,b);if(cT(S,b)<=-1&&(w=Fu),cT(S,b)>=1&&(w=0),w<0){var A=Math.round(w/Fu*1e6)/1e6;w=Fu*2+A%2*Fu}v.addData(u,y,_,o,s,x,w,h,n)}var RK=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,EK=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kK(r){var t=new Zi;if(!r)return t;var e=0,a=0,i=e,n=a,o,s=Zi.CMD,l=r.match(RK);if(!l)return t;for(var u=0;uP*P+I*I&&(A=C,T=M),{cx:A,cy:T,x0:-v,y0:-h,x1:A*(i/S-1),y1:T*(i/S-1)}}function FK(r){var t;if(Se(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function HK(r,t){var e,a=Pv(t.r,0),i=Pv(t.r0||0,0),n=a>0,o=i>0;if(!(!n&&!o)){if(n||(a=i,i=0),i>a){var s=a;a=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var v=t.cx,h=t.cy,f=!!t.clockwise,c=NL(u-l),d=c>um&&c%um;if(d>si&&(c=d),!(a>si))r.moveTo(v,h);else if(c>um-si)r.moveTo(v+a*ol(l),h+a*Vo(l)),r.arc(v,h,a,l,u,!f),i>si&&(r.moveTo(v+i*ol(u),h+i*Vo(u)),r.arc(v,h,i,u,l,f));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=void 0,T=void 0,C=void 0,M=void 0,L=void 0,D=void 0,P=void 0,I=a*ol(l),R=a*Vo(l),E=i*ol(u),k=i*Vo(u),B=c>si;if(B){var F=t.cornerRadius;F&&(e=FK(F),p=e[0],g=e[1],m=e[2],y=e[3]);var V=NL(a-i)/2;if(_=Li(V,m),x=Li(V,y),S=Li(V,p),b=Li(V,g),T=w=Pv(_,x),C=A=Pv(S,b),(w>si||A>si)&&(M=a*ol(u),L=a*Vo(u),D=i*ol(l),P=i*Vo(l),csi){var W=Li(m,T),Y=Li(y,T),X=Vf(D,P,I,R,a,W,f),K=Vf(M,L,E,k,a,Y,f);r.moveTo(v+X.cx+X.x0,h+X.cy+X.y0),T0&&r.arc(v+X.cx,h+X.cy,W,Hr(X.y0,X.x0),Hr(X.y1,X.x1),!f),r.arc(v,h,a,Hr(X.cy+X.y1,X.cx+X.x1),Hr(K.cy+K.y1,K.cx+K.x1),!f),Y>0&&r.arc(v+K.cx,h+K.cy,Y,Hr(K.y1,K.x1),Hr(K.y0,K.x0),!f))}else r.moveTo(v+I,h+R),r.arc(v,h,a,l,u,!f);if(!(i>si)||!B)r.lineTo(v+E,h+k);else if(C>si){var W=Li(p,C),Y=Li(g,C),X=Vf(E,k,M,L,i,-Y,f),K=Vf(I,R,D,P,i,-W,f);r.lineTo(v+X.cx+X.x0,h+X.cy+X.y0),C0&&r.arc(v+X.cx,h+X.cy,Y,Hr(X.y0,X.x0),Hr(X.y1,X.x1),!f),r.arc(v,h,i,Hr(X.cy+X.y1,X.cx+X.x1),Hr(K.cy+K.y1,K.cx+K.x1),f),W>0&&r.arc(v+K.cx,h+K.cy,W,Hr(K.y1,K.x1),Hr(K.y0,K.x0),!f))}else r.lineTo(v+E,h+k),r.arc(v,h,i,u,l,f)}r.closePath()}}}var qK=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Qr=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qK},t.prototype.buildPath=function(e,a){HK(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ht);Qr.prototype.type="sector";var WK=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),ou=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new WK},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.PI*2;e.moveTo(i+a.r,n),e.arc(i,n,a.r,0,o,!1),e.moveTo(i+a.r0,n),e.arc(i,n,a.r0,0,o,!0)},t})(ht);ou.prototype.type="ring";function UK(r,t,e,a){var i=[],n=[],o=[],s=[],l,u,v,h;if(a){v=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,c=r.length;f=2){if(a){var n=UK(i,a,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=n[s*2],u=n[s*2+1],v=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],v[0],v[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sFo[1]){if(s=!1,n)return s;var v=Math.abs(Fo[0]-Go[1]),h=Math.abs(Go[0]-Fo[1]);Math.min(v,h)>i.len()&&(v0){var h=v.duration,f=v.delay,c=v.easing,d={duration:h,delay:f||0,easing:c,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),n&&n()}function wt(r,t,e,a,i,n){aC("update",r,t,e,a,i,n)}function $t(r,t,e,a,i,n){aC("enter",r,t,e,a,i,n)}function Gl(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function VL(r){return!r.isGroup}function rQ(r){return r.shape!=null}function Yh(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){VL(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rQ(o)&&(s.shape=_e({},o.shape)),s}var n=a(r);t.traverse(function(o){if(VL(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),wt(o,l,e,Xe(o).dataIndex)}}})}function oC(r,t){return we(r,function(e){var a=e[0];a=Pd(a,t.x),a=Rd(a,t.x+t.width);var i=e[1];return i=Pd(i,t.y),i=Rd(i,t.y+t.height),[a,i]})}function sW(r,t){var e=Pd(r.x,t.x),a=Rd(r.x+r.width,t.x+t.width),i=Pd(r.y,t.y),n=Rd(r.y+r.height,t.y+t.height);if(a>=e&&n>=i)return{x:e,y:i,width:a-e,height:n-i}}function vu(r,t,e){var a=_e({rectHover:!0},t),i=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Ue(i,e),new Dr(a)):$h(r.replace("path://",""),a,e,"center")}function Rv(r,t,e,a,i){for(var n=0,o=i[i.length-1];n1)return!1;var g=vm(c,d,v,h)/f;return!(g<0||g>1)}function vm(r,t,e,a){return r*a-e*t}function aQ(r){return r<=1e-6&&r>=-1e-6}function zs(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,i=Re(t)?{formatter:t}:t,n=e.mainType,o=e.componentIndex,s={componentType:n,name:a,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&$(ft(l),function(v){Be(s,v)||(s[v]=l[v],s.$vars.push(v))});var u=Xe(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:Ue({content:a,encodeHTMLContent:!0,formatterParams:s},i)}}function GL(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function po(r,t){if(r)if(Se(r))for(var e=0;e=0&&s.push(l)}),s}}function go(r,t){return tt(tt({},r,!0),t,!0)}const pQ={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},gQ={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var kd="ZH",lC="EN",Fl=lC,id={},uC={},dW=vt.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fl).toUpperCase();return r.indexOf(kd)>-1?kd:Fl})():Fl;function vC(r,t){r=r.toUpperCase(),uC[r]=new Mt(t),id[r]=t}function mQ(r){if(Re(r)){var t=id[r.toUpperCase()]||{};return r===kd||r===lC?Ye(t):tt(Ye(t),Ye(id[Fl]),!1)}else return tt(Ye(r),Ye(id[Fl]),!1)}function gT(r){return uC[r]}function yQ(){return uC[Fl]}vC(lC,pQ);vC(kd,gQ);var hC=1e3,fC=hC*60,jv=fC*60,Wa=jv*24,UL=Wa*365,Ev={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Hf="{yyyy}-{MM}-{dd}",$L={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hf,hour:Hf+" "+Ev.hour,minute:Hf+" "+Ev.minute,second:Hf+" "+Ev.second,millisecond:Ev.none},cm=["year","month","day","hour","minute","second","millisecond"],pW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function na(r,t){return r+="","0000".substr(0,t-r.length)+r}function Hl(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function _Q(r){return r===Hl(r)}function xQ(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zh(r,t,e,a){var i=Ma(r),n=i[cC(e)](),o=i[ql(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[zp(e)](),u=i["get"+(e?"UTC":"")+"Day"](),v=i[yh(e)](),h=(v-1)%12+1,f=i[Bp(e)](),c=i[Vp(e)](),d=i[Gp(e)](),p=v>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof Mt?a:gT(a||dW)||yQ(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,na(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,na(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,na(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,na(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,na(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,na(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,na(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,na(d,3)).replace(/{S}/g,d+"")}function SQ(r,t,e,a,i){var n=null;if(Re(e))n=e;else if(He(e))n=e(r.value,t,{level:r.level});else{var o=_e({},Ev);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(Se(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return Zh(new Date(r.value),n,i,a)}function gW(r,t){var e=Ma(r),a=e[ql(t)]()+1,i=e[zp(t)](),n=e[yh(t)](),o=e[Bp(t)](),s=e[Vp(t)](),l=e[Gp(t)](),u=l===0,v=u&&s===0,h=v&&o===0,f=h&&n===0,c=f&&i===1,d=c&&a===1;return d?"year":c?"month":f?"day":h?"hour":v?"minute":u?"second":"millisecond"}function YL(r,t,e){var a=bt(r)?Ma(r):r;switch(t=t||gW(r,e),t){case"year":return a[cC(e)]();case"half-year":return a[ql(e)]()>=6?1:0;case"quarter":return Math.floor((a[ql(e)]()+1)/4);case"month":return a[ql(e)]();case"day":return a[zp(e)]();case"half-day":return a[yh(e)]()/24;case"hour":return a[yh(e)]();case"minute":return a[Bp(e)]();case"second":return a[Vp(e)]();case"millisecond":return a[Gp(e)]()}}function cC(r){return r?"getUTCFullYear":"getFullYear"}function ql(r){return r?"getUTCMonth":"getMonth"}function zp(r){return r?"getUTCDate":"getDate"}function yh(r){return r?"getUTCHours":"getHours"}function Bp(r){return r?"getUTCMinutes":"getMinutes"}function Vp(r){return r?"getUTCSeconds":"getSeconds"}function Gp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function bQ(r){return r?"setUTCFullYear":"setFullYear"}function mW(r){return r?"setUTCMonth":"setMonth"}function yW(r){return r?"setUTCDate":"setDate"}function _W(r){return r?"setUTCHours":"setHours"}function xW(r){return r?"setUTCMinutes":"setMinutes"}function SW(r){return r?"setUTCSeconds":"setSeconds"}function bW(r){return r?"setUTCMilliseconds":"setMilliseconds"}function wQ(r,t,e,a,i,n,o,s){var l=new pt({style:{text:r,font:t,align:e,verticalAlign:a,padding:i,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function dC(r){if(!WA(r))return Re(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function pC(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Vs=xp;function mT(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(v){return v&&Ua(v)?v:"-"}function n(v){return!!(v!=null&&!isNaN(v)&&isFinite(v))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ma(r):r;if(isNaN(+l)){if(s)return"-"}else return Zh(l,a,e)}if(t==="ordinal")return md(r)?i(r):bt(r)&&n(r)?r+"":"-";var u=Yi(r);return n(u)?dC(u):md(r)?i(r):typeof r=="boolean"?r+"":"-"}var ZL=["a","b","c","d","e","f","g"],dm=function(r,t){return"{"+r+(t==null?"":t)+"}"};function gC(r,t,e){Se(t)||(t=[t]);var a=t.length;if(!a)return"";for(var i=t[0].$vars||[],n=0;n':'';var o=e.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function AQ(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r="MM-dd\nyyyy");var a=Ma(t),i=e?"getUTC":"get",n=a[i+"FullYear"](),o=a[i+"Month"]()+1,s=a[i+"Date"](),l=a[i+"Hours"](),u=a[i+"Minutes"](),v=a[i+"Seconds"](),h=a[i+"Milliseconds"]();return r=r.replace("MM",na(o,2)).replace("M",o).replace("yyyy",n).replace("yy",na(n%100+"",2)).replace("dd",na(s,2)).replace("d",s).replace("hh",na(l,2)).replace("h",l).replace("mm",na(u,2)).replace("m",u).replace("ss",na(v,2)).replace("s",v).replace("SSS",na(h,3)),r}function CQ(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ps(r,t){return t=t||"transparent",Re(r)?r:$e(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Od(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var nd=$,TW=["left","right","top","bottom","width","height"],ds=[["width","left","right"],["height","top","bottom"]];function mC(r,t,e,a,i){var n=0,o=0;a==null&&(a=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var v=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=v.width+(f?-f.x+v.x:0);c=n+p,c>a||l.newline?(n=0,c=p,o+=s+e,s=v.height):s=Math.max(s,v.height)}else{var g=v.height+(f?-f.y+v.y:0);d=o+g,d>i||l.newline?(n+=s+e,o=0,d=g,s=v.width):s=Math.max(s,v.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+e:o=d+e)})}var bs=mC;et(mC,"vertical");et(mC,"horizontal");function MQ(r,t,e){var a=t.width,i=t.height,n=Ie(r.left,a),o=Ie(r.top,i),s=Ie(r.right,a),l=Ie(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=Vs(e||0),{width:Math.max(s-n-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function dr(r,t,e){e=Vs(e||0);var a=t.width,i=t.height,n=Ie(r.left,a),o=Ie(r.top,i),s=Ie(r.right,a),l=Ie(r.bottom,i),u=Ie(r.width,a),v=Ie(r.height,i),h=e[2]+e[0],f=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-f-n),isNaN(v)&&(v=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(v)&&(c>a/i?u=a*.8:v=i*.8),isNaN(u)&&(u=c*v),isNaN(v)&&(v=u/c)),isNaN(n)&&(n=a-s-u-f),isNaN(o)&&(o=i-l-v-h),r.left||r.right){case"center":n=a/2-u/2-e[3];break;case"right":n=a-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-v/2-e[0];break;case"bottom":o=i-v-h;break}n=n||0,o=o||0,isNaN(u)&&(u=a-f-n-(s||0)),isNaN(v)&&(v=i-h-o-(l||0));var d=new at(n+e[3],o+e[0],u,v);return d.margin=e,d}function Fp(r,t,e,a,i,n){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new at(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var v=r.getLocalTransform();u=u.clone(),u.applyTransform(v)}var h=dr(Ue({width:u.width,height:u.height},t),e,a),f=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(n.x=f,n.y=c):(n.x+=f,n.y+=c),n===r&&r.markRedraw(),!0}function DQ(r,t){return r[ds[t][0]]!=null||r[ds[t][1]]!=null&&r[ds[t][2]]!=null}function _h(r){var t=r.layoutMode||r.constructor.layoutMode;return $e(t)?t:t?{type:t}:null}function uo(r,t,e){var a=e&&e.ignoreSize;!Se(a)&&(a=[a,a]);var i=o(ds[0],0),n=o(ds[1],1);u(ds[0],r,i),u(ds[1],r,n);function o(v,h){var f={},c=0,d={},p=0,g=2;if(nd(v,function(_){d[_]=r[_]}),nd(v,function(_){s(t,_)&&(f[_]=d[_]=t[_]),l(f,_)&&c++,l(d,_)&&p++}),a[h])return l(t,v[1])?d[v[2]]=null:l(t,v[2])&&(d[v[1]]=null),d;if(p===g||!c)return d;if(c>=g)return f;for(var m=0;m=0;l--)s=tt(s,i[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var i=e+"Index",n=e+"Id";return Hh(this.ecModel,e,{index:this.get(i,!0),id:this.get(n,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(Mt);Dq(ut,Mt);Mp(ut);cQ(ut);dQ(ut,IQ);function IQ(r){var t=[];return $(ut.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=we(t,function(e){return Gi(e).main}),r!=="dataset"&&nt(t,"dataset")<=0&&t.unshift("dataset"),t}var CW="";typeof navigator<"u"&&(CW=navigator.platform||"");var sl="rgba(0, 0, 0, 0.2)";const PQ={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:CW.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var MW=Ge(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qa="original",Jr="arrayRows",ja="objectRows",Ki="keyedColumns",ao="typedArray",DW="unknown",Ui="column",du="row",zr={Must:1,Might:2,Not:3},LW=yt();function RQ(r){LW(r).datasetMap=Ge()}function IW(r,t,e){var a={},i=_C(t);if(!i||!r)return a;var n=[],o=[],s=t.ecModel,l=LW(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,v,h;r=r.slice(),$(r,function(p,g){var m=$e(p)?p:r[g]={name:p};m.type==="ordinal"&&v==null&&(v=g,h=d(m)),a[m.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});$(r,function(p,g){var m=p.name,y=d(p);if(v==null){var _=f.valueWayDim;c(a[m],_,y),c(o,_,y),f.valueWayDim+=y}else if(v===g)c(a[m],0,y),c(n,0,y);else{var _=f.categoryWayDim;c(a[m],_,y),c(o,_,y),f.categoryWayDim+=y}});function c(p,g,m){for(var y=0;yt)return r[a];return r[e-1]}function EW(r,t,e,a,i,n,o){n=n||r;var s=t(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var v=o==null||!a?e:zQ(a,o);if(v=v||e,!(!v||!v.length)){var h=v[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%v.length,h}}function BQ(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qf,Hu,KL,QL="\0_ec_inner",VQ=1,SC=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,i,n,o,s){n=n||{},this.option=null,this._theme=new Mt(n),this._locale=new Mt(o),this._optionManager=s},t.prototype.setOption=function(e,a,i){var n=eI(a);this._optionManager.setOption(e,i,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,a){return this._resetOption(e,eI(a))},t.prototype._resetOption=function(e,a){var i=!1,n=this._optionManager;if(!e||e==="recreate"){var o=n.mountOption(e==="recreate");!this.option||e==="recreate"?KL(this,o):(this.restoreData(),this._mergeOption(o,a)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=n.getMediaOption(this);l.length&&$(l,function(u){i=!0,this._mergeOption(u,a)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var i=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Ge(),u=a&&a.replaceMergeMainTypeMap;RQ(this),$(e,function(h,f){h!=null&&(ut.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Ye(h):tt(i[f],h,!0))}),u&&u.each(function(h,f){ut.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),v,this);function v(h){var f=OQ(this,h,Nt(e[h])),c=n.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=wq(c,f,d);fX(p,h,ut),i[h]=null,n.set(h,null),o.set(h,0);var g=[],m=[],y=0,_;$(p,function(x,S){var b=x.existing,w=x.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=h==="series",T=ut.getClass(h,x.keyInfo.subType,!A);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===T)b.name=x.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=_e({componentIndex:S},x.keyInfo);b=new T(w,this,this,C),_e(b,C),x.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,n.set(h,m),o.set(h,y),h==="series"&&qf(this)}this._seriesIndices||qf(this)},t.prototype.getOption=function(){var e=Ye(this.option);return $(e,function(a,i){if(ut.hasClass(i)){for(var n=Nt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!dh(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,e[i]=n}}),delete e[QL],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var i=this._componentsMap.get(e);if(i){var n=i[a||0];if(n)return n;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function ZQ(r,t){return r.join(",")===t.join(",")}var ri=$,xh=$e,tI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gm(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=tI.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=rX(f,y),p=y;break}}}return a[0]=f,a[1]=p,a})})}var Hp=(function(){function r(t){this.data=t.data||(t.sourceFormat===Ki?{}:[]),this.sourceFormat=t.sourceFormat||DW,this.seriesLayoutBy=t.seriesLayoutBy||Ui,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};lI=(t={},t[Jr+"_"+Ui]={pure:!0,appendData:n},t[Jr+"_"+du]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ja]={pure:!0,appendData:n},t[Ki]={pure:!0,appendData:function(o){var s=this._data;$(o,function(l,u){for(var v=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)v.push(l[h])})}},t[Qa]={appendData:n},t[ao]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function n(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Kl(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function fI(r){var t,e;return $e(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Jv(r){return new hj(r)}var hj=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!a&&(n=this._plan(this.context));var o=v(this._modBy),s=this._modDataCount||0,l=v(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(n="reset");function v(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return n;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},cj=(function(){function r(t,e){if(!bt(e)){var a="";Rt(a)}this._opFn=WW[t],this._rvalFloat=Yi(e)}return r.prototype.evaluate=function(t){return bt(t)?this._opFn(t,this._rvalFloat):this._opFn(Yi(t),this._rvalFloat)},r})(),UW=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=bt(t)?t:Yi(t),i=bt(e)?e:Yi(e),n=isNaN(a),o=isNaN(i);if(n&&(a=this._incomparable),o&&(i=this._incomparable),n&&o){var s=Re(t),l=Re(e);s&&(a=l?t:0),l&&(i=s?e:0)}return ai?-this._resultLT:0},r})(),dj=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Yi(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=Yi(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function pj(r,t){return r==="eq"||r==="ne"?new dj(r==="eq",t):Be(WW,r)?new cj(r,t):null}var gj=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return io(t,e)},r})();function mj(r,t){var e=new gj,a=r.data,i=e.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Ui&&Rt(o);var s=[],l={},u=r.dimensionsDefine;if(u)$(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Be(l,m)&&Rt(_),l[m]=y}});else for(var v=0;v65535?Aj:Cj}function ul(){return[1/0,-1/0]}function Mj(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function pI(r,t,e,a,i){var n=ZW[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new n(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var i=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=we(o,function(y){return y.property}),v=0;vm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var i=this._chunks,n=i[t],o=[];if(!n)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,v=0,h=this.count();v=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=v))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,i=this._count;if(a===Array){t=new a(i);for(var n=0;n=h&&y<=f||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(n===2){for(var g=c[i[0]],_=c[i[1]],x=t[i[1]][0],S=t[i[1]][1],m=0;m=h&&y<=f||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(n===1)for(var m=0;m=h&&y<=f||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[C][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),i=a._chunks,n=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),v,h,f,c=new(ll(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;dv&&(v=h,f=x)}M>0&&Ms&&(p=s-v);for(var g=0;gd&&(d=y,c=v+g)}var _=this.getRawIndex(h),x=this.getRawIndex(c);hv-d&&(l=v-d,s.length=l);for(var p=0;ph[1]&&(h[1]=m),f[c++]=y}return n._count=c,n._indices=f,n._updateGetRawIdx(),n},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,i=this._chunks,n=0,o=this.count();nl&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],i=this._chunks,n=0;n=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,i,n){return io(e[n],this._dimensions[n])}_m={arrayRows:t,objectRows:function(e,a,i,n){return io(e[a],this._dimensions[n])},keyedColumns:t,original:function(e,a,i,n){var o=e&&(e.value==null?e:e.value);return io(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(e,a,i,n){return e[n]}}})(),r})(),XW=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,i,n;if(Wf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var v=e[0];v.prepareSource(),u=v.getSource(),s=u.data,l=u.sourceFormat,n=[v._getVersionSign()]}else s=o.get("data",!0),l=ua(s)?ao:Qa,n=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},c=Je(h.seriesLayoutBy,f.seriesLayoutBy)||null,d=Je(h.sourceHeader,f.sourceHeader),p=Je(h.dimensions,f.dimensions),g=c!==f.seriesLayoutBy||!!d!=!!f.sourceHeader||p;i=g?[xT(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(a){var y=this._applyTransform(e);i=y.sourceList,n=y.upstreamSignList}else{var _=m.get("source",!0);i=[xT(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var n="";t.length!==1&&mI(n)}var o,s=[],l=[];return $(t,function(u){u.prepareSource();var v=u.getSource(i||0),h="";i!=null&&!v&&mI(h),s.push(v),l.push(u._getVersionSign())}),a?o=wj(a,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[ij(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return $(r.blocks,function(i){var n=JW(i);n>=t&&(t=n+ +(a&&(!n||bT(i)&&!i.noHeader)))}),t}return 0}function Pj(r,t,e,a){var i=t.noHeader,n=Ej(JW(t)),o=[],s=t.blocks||[];Kr(!s||Se(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Be(u,l)){var v=new UW(u[l],null);s.sort(function(p,g){return v.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}$(s,function(p,g){var m=t.valueFormatter,y=jW(p)(m?_e(_e({},r),{valueFormatter:m}):r,p,g>0?n.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):wT(a,o.join(""),i?e:n.html);if(i)return h;var f=mT(t.header,"ordinal",r.useUTC),c=QW(a,r.renderMode).nameStyle,d=KW(a);return r.renderMode==="richText"?eU(r,f,c)+n.richText+h:wT(a,'
'+Zr(f)+"
"+h,e)}function Rj(r,t,e,a){var i=r.renderMode,n=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,v=t.valueFormatter||r.valueFormatter||function(x){return x=Se(x)?x:[x],we(x,function(S,b){return mT(S,Se(c)?c[b]:c,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=n?"":mT(l,"ordinal",u),c=t.valueType,d=o?[]:v(t.value,t.dataIndex),p=!s||!n,g=!s&&n,m=QW(a,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(n?"":eU(r,f,y))+(o?"":Nj(r,d,p,g,_)):wT(a,(s?"":h)+(n?"":kj(f,!s,y))+(o?"":Oj(d,p,g,_)),e)}}function yI(r,t,e,a,i,n){if(r){var o=jW(r),s={useUTC:i,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function Ej(r){return{html:Lj[r],richText:Ij[r]}}function wT(r,t,e){var a='
',i="margin: "+e+"px 0 0",n=KW(r);return'
'+t+a+"
"}function kj(r,t,e){var a=t?"margin-left:2px":"";return''+Zr(r)+""}function Oj(r,t,e,a){var i=e?"10px":"20px",n=t?"float:right;margin-left:"+i:"";return r=Se(r)?r:[r],''+we(r,function(o){return Zr(o)}).join("  ")+""}function eU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Nj(r,t,e,a,i){var n=[i],o=a?10:20;return e&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Se(t)?t.join(" "):t,n)}function tU(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Ps(a)}function rU(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var xm=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=_q()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var i=a==="richText"?this._generateStyleName():null,n=wW({color:e,type:t,renderMode:a,markerId:i});return Re(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};Se(e)?$(e,function(n){return _e(a,n)}):_e(a,e);var i=this._generateStyleName();return this.richTextStyles[i]=a,"{"+i+"|"+t+"}"},r})();function aU(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,i=t.getData(),n=i.mapDimensionsAll("defaultedTooltip"),o=n.length,s=t.getRawValue(e),l=Se(s),u=tU(t,e),v,h,f,c;if(o>1||l&&!o){var d=zj(s,t,e,n,u);v=d.inlineValues,h=d.inlineValueTypes,f=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(n[0]);c=v=Kl(i,e,n[0]),h=p.type}else c=v=l?s[0]:s;var g=UA(t),m=g&&t.name||"",y=i.getName(e),_=a?m:y;return Mr("section",{header:m,noHeader:a||!g,sortParam:c,blocks:[Mr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ua(_),value:v,valueType:h,dataIndex:e})].concat(f||[])})}function zj(r,t,e,a,i){var n=t.getData(),o=Ya(r,function(h,f,c){var d=n.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?$(a,function(h){v(Kl(n,e,h),h)}):$(r,v);function v(h,f){var c=n.getDimensionInfo(f);!c||c.otherDims.tooltip===!1||(o?u.push(Mr("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var En=yt();function Uf(r,t){return r.getName(t)||r.getId(t)}var od="__universalTransitionEnabled",zt=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,i){this.seriesIndex=this.componentIndex,this.dataTask=Jv({count:Vj,reset:Gj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var n=En(this).sourceManager=new XW(this);n.prepareSource();var o=this.getInitialData(e,i);xI(o,this),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var i=_h(this),n=i?cu(e):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),tt(e,a.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),Ms(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&uo(e,n,i)},t.prototype.mergeOption=function(e,a){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=_h(this);i&&uo(this.option,e,i);var n=En(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(e,a);xI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ua(e))for(var a=["show"],i=0;ithis.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,i){var n=this.ecModel,o=xC.prototype.getColorFromPalette.call(this,e,a,i);return o||(o=n.getColorFromPalette(e,a,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(a);if(n==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,a){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(a);return(i==="all"||i[Uf(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[od])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var i,n,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$e(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,v=0;v0&&this._innerSelect(e,a)}},t.registerClass=function(e){return ut.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ut);nr(zt,qp);nr(zt,xC);Dq(zt,ut);function _I(r){var t=r.name;UA(r)||(r.name=Bj(r)||t)}function Bj(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return $(e,function(i){var n=t.getDimensionInfo(i);n.displayName&&a.push(n.displayName)}),a.join(" ")}function Vj(r){return r.model.getRawData().count()}function Gj(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Fj}function Fj(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xI(r,t){$($l(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,et(Hj,t))})}function Hj(r,t){var e=TT(r);return e&&e.setOutputEnd((t||this).count()),t}function TT(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var i=a.agentStubMap;i&&(a=i.get(r.uid))}return a}}var Wt=(function(){function r(){this.group=new Ze,this.uid=fu("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,i){},r.prototype.updateLayout=function(t,e,a,i){},r.prototype.updateVisual=function(t,e,a,i){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();YA(Wt);Mp(Wt);function gu(){var r=yt();return function(t){var e=r(t),a=t.pipelineContext,i=!!e.large,n=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(i!==o||n!==s)&&"reset"}}var iU=yt(),qj=gu(),kt=(function(){function r(){this.group=new Ze,this.uid=fu("viewChart"),this.renderTask=Jv({plan:Wj,reset:Uj}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,i){},r.prototype.highlight=function(t,e,a,i){var n=t.getData(i&&i.dataType);n&&bI(n,i,"emphasis")},r.prototype.downplay=function(t,e,a,i){var n=t.getData(i&&i.dataType);n&&bI(n,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.updateLayout=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.updateVisual=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.eachRendered=function(t){po(this.group,t)},r.markUpdateMethod=function(t,e){iU(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function SI(r,t,e){r&&gh(r)&&(t==="emphasis"?xn:Sn)(r,e)}function bI(r,t,e){var a=Ds(r,t),i=t&&t.highlightKey!=null?DK(t.highlightKey):null;a!=null?$(Nt(a),function(n){SI(r.getItemGraphicEl(n),e,i)}):r.eachItemGraphicEl(function(n){SI(n,e,i)})}YA(kt);Mp(kt);function Wj(r){return qj(r.model)}function Uj(r){var t=r.model,e=r.ecModel,a=r.api,i=r.payload,n=t.pipelineContext.progressiveRender,o=r.view,s=i&&iU(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,i),$j[l]}var $j={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Nd="\0__throttleOriginMethod",wI="\0__throttleRate",TI="\0__throttleType";function Up(r,t,e){var a,i=0,n=0,o=null,s,l,u,v;t=t||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var f=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),i=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(c){v=c},f}function mu(r,t,e,a){var i=r[t];if(i){var n=i[Nd]||i,o=i[TI],s=i[wI];if(s!==e||o!==a){if(e==null||!a)return r[t]=n;i=r[t]=Up(n,e,a==="debounce"),i[Nd]=n,i[TI]=a,i[wI]=e}return i}}function Sh(r,t){var e=r[t];e&&e[Nd]&&(e.clear&&e.clear(),r[t]=e[Nd])}var AI=yt(),CI={itemStyle:Ls(cW,!0),lineStyle:Ls(fW,!0)},Yj={lineStyle:"stroke",itemStyle:"fill"};function nU(r,t){var e=r.visualStyleMapper||CI[t];return e||(console.warn("Unknown style type '"+t+"'."),CI.itemStyle)}function oU(r,t){var e=r.visualDrawType||Yj[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Zj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=nU(r,a),o=n(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=oU(r,a),u=o[l],v=He(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||v||h){var f=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=f,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||He(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||He(o.stroke)?f:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&v)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=_e({},o);g[l]=v(p),c.setItemVisual(d,"style",g)}}}},Wu=new Mt,Xj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=nU(r,a),n=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Wu.option=l[a];var u=i(Wu),v=o.ensureUniqueItemVisual(s,"style");_e(v,u),Wu.option.decal&&(o.setItemVisual(s,"decal",Wu.option.decal),Wu.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Kj={performRawSeries:!0,overallReset:function(r){var t=Ge();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+a,n=t.get(i);n||(n={},t.set(i,n)),AI(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),i={},n=e.getData(),o=AI(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=oU(e,s);n.each(function(u){var v=n.getRawIndex(u);i[v]=u}),a.each(function(u){var v=i[u],h=n.getItemVisual(v,"colorFromPalette");if(h){var f=n.ensureUniqueItemVisual(v,"style"),c=a.getName(u)||u+"",d=a.count();f[l]=e.getColorFromPalette(c,o,d)}})}})}},$f=Math.PI;function Qj(r,t){t=t||{},Ue(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Ze,a=new gt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var i=new pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),n=new gt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(n);var o;return t.showSpinner&&(o=new Uh({shape:{startAngle:-$f/2,endAngle:-$f/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:$f*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$f*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),v=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:v}),n.setShape({x:u-l,y:v-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var sU=(function(){function r(t,e,a,i){this._stageTaskMap=Ge(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=a.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var i=a.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),i=a.context,n=!e&&a.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=n?a.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),i=t.getData(),n=i.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&n>=a.threshold,s=t.get("large")&&n>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?n:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Ge();t.eachSeries(function(i){var n=i.getProgressive(),o=i.uid;a.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;$(this._allHandlers,function(i){var n=t.get(i.uid)||t.set(i.uid,{}),o="";Kr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,n,e,a),i.overallReset&&this._createOverallStageTask(i,n,e,a)},this)},r.prototype.prepareView=function(t,e,a,i){var n=t.renderTask,o=n.context;o.model=e,o.ecModel=a,o.api=i,n.__block=!t.incrementalPrepareRender,this._pipe(e,n)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,i){i=i||{};var n=!1,o=this;$(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var v=o._stageTaskMap.get(l.uid),h=v.seriesTaskMap,f=v.overallTask;if(f){var c,d=f.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&f.dirty(),o.updatePayload(f,a);var p=o.getPerformArgs(f,i.block);d.each(function(g){g.perform(p)}),f.perform(p)&&(n=!0)}else h&&h.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,i){var n=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(v):l?a.eachRawSeriesByType(l,v):u&&u(a,i).each(v);function v(h){var f=h.uid,c=s.set(f,o&&o.get(f)||Jv({plan:rJ,reset:aJ,count:nJ}));c.context={model:h,ecModel:a,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:n},n._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,a,i){var n=this,o=e.overallTask=e.overallTask||Jv({reset:jj});o.context={ecModel:a,api:i,overallReset:t.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Ge(),u=t.seriesType,v=t.getTargetSeries,h=!0,f=!1,c="";Kr(!t.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):v?v(a,i).each(d):(h=!1,$(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(f=!0,Jv({reset:Jj,onDirty:tJ})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,n._pipe(p,m)}f&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,i=this._pipelineMap.get(a);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return He(t)&&(t={overallReset:t,seriesType:oJ(t)}),t.uid=fu("stageHandler"),e&&(t.visualType=e),t},r})();function jj(r){r.overallReset(r.ecModel,r.api,r.payload)}function Jj(r){return r.overallProgress&&eJ}function eJ(){this.agent.dirty(),this.getDownstream().dirty()}function tJ(){this.agent&&this.agent.dirty()}function rJ(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function aJ(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?we(t,function(e,a){return lU(a)}):iJ}var iJ=lU(0);function lU(r){return function(t,e){var a=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var n=t.start;n0&&c===u.length-f.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[f.toLowerCase()]=l,v=!0)}}s.hasOwnProperty(u)&&(a[u]=l,v=!0),v||(i[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:i}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var i=a.targetEl,n=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return v(l,o,"mainType")&&v(l,o,"subType")&&v(l,o,"index","componentIndex")&&v(l,o,"name")&&v(l,o,"id")&&v(u,n,"name")&&v(u,n,"dataIndex")&&v(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,n));function v(h,f,c,d){return h[c]==null||f[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),AT=["symbol","symbolSize","symbolRotate","symbolOffset"],II=AT.concat(["symbolKeepAspect"]),uJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},i={},n=!1,o=0;o=0&&gs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function CT(r,t,e){for(var a=t.type==="radial"?TJ(r,t,e):wJ(r,t,e),i=t.colorStops,n=0;n0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:bt(r)?[r]:Se(r)?r:null}function MC(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&CJ(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=we(e,function(n){return n/i}),a/=i)}return[e,a]}var MJ=new Zi(!0);function Vd(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function PI(r){return typeof r=="string"&&r!=="none"}function Gd(r){var t=r.fill;return t!=null&&t!=="none"}function RI(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function EI(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function MT(r,t,e){var a=ZA(t.image,t.__image,e);if(Dp(a)){var i=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*Fv),n.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(n)}return i}}function DJ(r,t,e,a){var i,n=Vd(e),o=Gd(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var v=t.path||MJ,h=t.__dirty;if(!a){var f=e.fill,c=e.stroke,d=o&&!!f.colorStops,p=n&&!!c.colorStops,g=o&&!!f.image,m=n&&!!c.image,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(y=h?CT(r,f,b):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=h?CT(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=h||!t.__canvasFillPattern?MT(r,f,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(S=h||!t.__canvasStrokePattern?MT(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=y:g&&(x?r.fillStyle=x:o=!1),p?r.strokeStyle=_:m&&(S?r.strokeStyle=S:n=!1)}var w=t.getGlobalScale();v.setScale(w[0],w[1],t.segmentIgnoreThreshold);var A,T;r.setLineDash&&e.lineDash&&(i=MC(t),A=i[0],T=i[1]);var C=!0;(u||h&Dl)&&(v.setDPR(r.dpr),l?v.setContext(null):(v.setContext(r),C=!1),v.reset(),t.buildPath(v,t.shape,a),v.toStatic(),t.pathUpdated()),C&&v.rebuildPath(r,l?s:1),A&&(r.setLineDash(A),r.lineDashOffset=T),a||(e.strokeFirst?(n&&EI(r,e),o&&RI(r,e)):(o&&RI(r,e),n&&EI(r,e))),A&&r.setLineDash([])}function LJ(r,t,e){var a=t.__image=ZA(e.image,t.__image,t,t.onload);if(!(!a||!Dp(a))){var i=e.x||0,n=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,v=e.sy||0;r.drawImage(a,u,v,e.sWidth,e.sHeight,i,n,o,s)}else if(e.sx&&e.sy){var u=e.sx,v=e.sy,h=o-u,f=s-v;r.drawImage(a,u,v,h,f,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function IJ(r,t,e){var a,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||oo,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=MC(t),n=a[0],o=a[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),e.strokeFirst?(Vd(e)&&r.strokeText(i,e.x,e.y),Gd(e)&&r.fillText(i,e.x,e.y)):(Gd(e)&&r.fillText(i,e.x,e.y),Vd(e)&&r.strokeText(i,e.x,e.y)),n&&r.setLineDash([])}}var kI=["shadowBlur","shadowOffsetX","shadowOffsetY"],OI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dU(r,t,e,a,i){var n=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){_a(r,i),n=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?xs.opacity:o}(a||t.blend!==e.blend)&&(n||(_a(r,i),n=!0),r.globalCompositeOperation=t.blend||xs.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,i){if(!this[qr]){if(this._disposed){this.id;return}var n,o,s;if($e(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[qr]=!0,!this._model||a){var l=new WQ(this._api),u=this._theme,v=this._model=new SC;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},LT);var h={seriesTransition:s,optionChanged:!0};if(i)this[da]={silent:n,updateParams:h},this[qr]=!1,this.getZr().wakeUp();else{try{hl(this),kn.update.call(this,null,h)}catch(f){throw this[da]=null,this[qr]=!1,f}this._ssr||this._zr.flush(),this[da]=null,this[qr]=!1,Uu.call(this,n),$u.call(this,n)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return $(a,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,i=this._model,n=[],o=this;$(a,function(l){i.eachComponent({mainType:l},function(u){var v=o._componentsMap[u.__viewId];v.group.ignore||(n.push(v),v.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return $(n,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",i=this.group,n=Math.min,o=Math.max,s=1/0;if(Wd[i]){var l=s,u=s,v=-s,h=-s,f=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();$(ws,function(_,x){if(_.group===i){var S=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ye(e)),b=_.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),v=o(b.right,v),h=o(b.bottom,h),f.push({dom:S,left:b.left,top:b.top})}}),l*=c,u*=c,v*=c,h*=c;var d=v-l,p=h-u,g=mi.createCanvas(),m=eT(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return $(f,function(_){var x=_.left-l,S=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new gt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),$(f,function(_){var x=new Dr({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Am(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Am(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var i=this._model,n,o=Zv(i,e);return $(o,function(s,l){l.indexOf("Models")>=0&&$(s,function(u){var v=u.coordinateSystem;if(v&&v.containPoint)n=n||!!v.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(a,u))}},this)},this),!!n},t.prototype.getVisual=function(e,a){var i=this._model,n=Zv(i,e,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?CC(s,l,a):Xh(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;$(tee,function(a){var i=function(n){var o=e.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&ps(s,function(d){var p=Xe(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=_e({},p.eventData),!0},!0),l){var v=l.componentType,h=l.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",h=l.seriesIndex);var f=v&&h!=null&&o.getComponent(v,h),c=f&&e[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=n,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:c},e.trigger(a,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(a,i,e)}),$(eh,function(a,i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),$(["selectchanged"],function(a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),hJ(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Aq(this.getDom(),PC,"");var a=this,i=a._api,n=a._model;$(a._componentsViews,function(o){o.dispose(n,i)}),$(a._chartsViews,function(o){o.dispose(n,i)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete ws[a.id]},t.prototype.resize=function(e){if(!this[qr]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var i=a.resetOption("media"),n=e&&e.silent;this[da]&&(n==null&&(n=this[da].silent),i=!0,this[da]=null),this[qr]=!0;try{i&&hl(this),kn.update.call(this,{type:"resize",animation:_e({duration:0},e&&e.animation)})}catch(o){throw this[qr]=!1,o}this[qr]=!1,Uu.call(this,n),$u.call(this,n)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if($e(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!IT[e]){var i=IT[e](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=_e({},e);return a.type=eh[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if($e(a)||(a={silent:!!a}),!!Hd[e.type]&&this._model){if(this[qr]){this._pendingActions.push(e);return}var i=a.silent;Mm.call(this,e,i);var n=a.flush;n?this._zr.flush():n!==!1&&vt.browser.weChat&&this._throttledZrFlush(),Uu.call(this,i),$u.call(this,i)}},t.prototype.updateLabelLayout=function(){ui.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(a);n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){hl=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),Tm(h,!0),Tm(h,!1),f.plan()},Tm=function(h,f){for(var c=h._model,d=h._scheduler,p=f?h._componentsViews:h._chartsViews,g=f?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_f.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,f){var c=h.get("blendMode")||null;f.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,f){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;f.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,f,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;f.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Gl(m))return;if(m instanceof ht&&LK(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&i(m)}})}ZI=function(h){return new((function(f){he(c,f);function c(){return f!==null&&f.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){xn(d,p),Pa(h)},c.prototype.leaveEmphasis=function(d,p){Sn(d,p),Pa(h)},c.prototype.enterBlur=function(d){qq(d),Pa(h)},c.prototype.leaveBlur=function(d){JA(d),Pa(h)},c.prototype.enterSelect=function(d){Wq(d),Pa(h)},c.prototype.leaveSelect=function(d){Uq(d),Pa(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c})(kW))(h)},IU=function(h){function f(c,d){for(var p=0;p=0)){KI.push(e);var n=sU.wrapStageHandler(e,i);n.__prio=t,n.__raw=e,r.push(n)}}function zC(r,t){IT[r]=t}function vee(r){I4({createCanvas:r})}function zU(r,t,e){var a=xU("registerMap");a&&a(r,t,e)}function hee(r){var t=xU("getMap");return t&&t(r)}var BU=bj;mo(LC,Zj);mo($p,Xj);mo($p,Kj);mo(LC,uJ);mo($p,vJ);mo(wU,BJ);kC(NW);OC(WJ,rj);zC("default",Qj);Si({type:Ss,event:Ss,update:Ss},ir);Si({type:td,event:td,update:td},ir);Si({type:Xv,event:Xv,update:Xv},ir);Si({type:rd,event:rd,update:rd},ir);Si({type:Kv,event:Kv,update:Kv},ir);EC("light",sJ);EC("dark",hU);var fee={};function Yu(r){return r==null?0:r.length||1}function QI(r){return r}var bn=(function(){function r(t,e,a,i,n,o){this._old=t,this._new=e,this._oldKeyGetter=a||QI,this._newKeyGetter=i||QI,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},i=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,a,n,"_newKeyGetter");for(var o=0;o1){var v=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(v,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},i={},n=[],o=[];this._initIndexMap(t,a,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(v,u),i[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(v,u),i[l]=null;else if(h===1&&f===1)this._update&&this._update(v,u),i[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(v,u),i[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Zu=$e,On=we,yee=typeof Int32Array>"u"?Array:Int32Array,_ee="e\0\0",jI=-1,xee=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],See=["_approximateExtent"],JI,Qf,Xu,Ku,Im,Qu,Pm,Xr=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,i=!1;GU(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,a=t),a=a||["x","y"];for(var n={},o=[],s={},l=!1,u={},v=0;v=e)){var a=this._store,i=a.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Qa;if(l&&!i.pure)for(var u=[],v=t;v0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,i=a[t];i||(i=a[t]={});var n=i[e];return n==null&&(n=this.getVisual(e),Se(n)?n=n.slice():Zu(n)&&(n=_e({},n)),i[e]=n),n},r.prototype.setItemVisual=function(t,e,a){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Zu(e)?_e(i,e):i[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Zu(t)?_e(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?_e(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;lT(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){$(this._graphicEls,function(a,i){a&&t&&t.call(e,a,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:On(this.dimensions,this._getDimInfo,this),this.hostModel)),Im(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];He(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=a.apply(this,arguments);return e.apply(this,[i].concat(_p(arguments)))})},r.internalField=(function(){JI=function(t){var e=t._invertedIndicesMap;$(e,function(a,i){var n=t._dimInfos[i],o=n.ordinalMeta,s=t._store;if(o){a=e[i]=new yee(o.categories.length);for(var l=0;l1&&(l+="__ec__"+v),i[e]=l}}})(),r})();function bee(r,t){return _u(r,t).dimensions}function _u(r,t){bC(r)||(r=wC(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],i=Ge(),n=[],o=Tee(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qU(o),l=a===r.dimensionsDefine,u=l?HU(r):FU(a),v=t.encodeDefine;!v&&t.encodeDefaulter&&(v=t.encodeDefaulter(r,o));for(var h=Ge(v),f=new YW(o),c=0;c0&&(a.name=i+(n-1)),n++,t.set(i,n)}}function Tee(r,t,e,a){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return $(t,function(n){var o;$e(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function Aee(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Cee=(function(){function r(t){this.coordSysDims=[],this.axisMap=Ge(),this.categoryAxisMap=Ge(),this.coordSysName=t}return r})();function Mee(r){var t=r.get("coordinateSystem"),e=new Cee(t),a=Dee[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Dee={cartesian2d:function(r,t,e,a){var i=r.getReferringComponents("xAxis",cr).models[0],n=r.getReferringComponents("yAxis",cr).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",n),fl(i)&&(a.set("x",i),t.firstCategoryDimIndex=0),fl(n)&&(a.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var i=r.getReferringComponents("singleAxis",cr).models[0];t.coordSysDims=["single"],e.set("single",i),fl(i)&&(a.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var i=r.getReferringComponents("polar",cr).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",o),fl(n)&&(a.set("radius",n),t.firstCategoryDimIndex=0),fl(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=n.dimensions.slice();$(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),v=o[l];e.set(v,u),fl(u)&&(a.set(v,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function fl(r){return r.get("type")==="category"}function WU(r,t,e){e=e||{};var a=e.byIndex,i=e.stackedCoordDimension,n,o,s;Lee(t)?n=t:(o=t.schema,n=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,v,h,f;if($(n,function(y,_){Re(y)&&(n[_]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!v&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(v=y))}),v&&!a&&!u&&(a=!0),v){h="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=v.coordDim,d=v.type,p=0;$(n,function(y){y.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:f,coordDim:f,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(n.push(g),n.push(m))}return{stackedDimension:v&&v.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:h}}function Lee(r){return!GU(r.schema)}function wn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function BC(r,t){return wn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Iee(r,t){var e=r.get("coordinateSystem"),a=pu.get(e),i;return t&&t.coordSysDims&&(i=we(t.coordSysDims,function(n){var o={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");o.type=Ud(l)}return o})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),i}function Pee(r,t,e){var a,i;return e&&$(r,function(n,o){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&a!=null&&(r[a].otherDims.itemName=0),a}function Qi(r,t,e){e=e||{};var a=t.getSourceManager(),i,n=!1;r?(n=!0,i=wC(r)):(i=a.getSource(),n=i.sourceFormat===Qa);var o=Mee(t),s=Iee(t,o),l=e.useEncodeDefaulter,u=He(l)?l:l?et(IW,s,t):null,v={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=_u(i,v),f=Pee(h.dimensions,e.createInvertedIndices,o),c=n?null:a.getSharedDataStore(h),d=WU(t,{schema:h,store:c}),p=new Xr(h,t);p.setCalculationInfo(d);var g=f!=null&&Ree(i)?function(m,y,_,x){return x===f?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(n?i:c,null,g),p}function Ree(r){if(r.sourceFormat===Qa){var t=Eee(r.data||[]);return!Se(iu(t))}}function Eee(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Mp(ji);var kee=0,PT=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++kee}return r.createByAxisModel=function(t){var e=t.option,a=e.data,i=a&&we(a,Oee);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Re(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Ge(this.categories))},r})();function Oee(r){return $e(r)&&r.value!=null?r.value:r+""}function RT(r){return r.type==="interval"||r.type==="log"}function Nee(r,t,e,a){var i={},n=r[1]-r[0],o=i.interval=qA(n/t,!0);e!=null&&oa&&(o=i.interval=a);var s=i.intervalPrecision=UU(o),l=i.niceTickExtent=[ar(Math.ceil(r[0]/o)*o,s),ar(Math.floor(r[1]/o)*o,s)];return zee(l,r),i}function Rm(r){var t=Math.pow(10,Cp(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ar(e*t)}function UU(r){return hi(r)+2}function e2(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function zee(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),e2(r,0,t),e2(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Zp(r,t){return r>=t[0]&&r<=t[1]}function Xp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Kp(r,t){return r*(t[1]-t[0])+t[0]}var Qp=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new PT({})),Se(i)&&(i=new PT({categories:we(i,function(n){return $e(n)?n.value:n})})),a._ordinalMeta=i,a._extent=a.getSetting("extent")||[0,i.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Re(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Zp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Xp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Kp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,i=a[0];i<=a[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(ji);ji.registerClass(Qp);var Uo=ar,Tn=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Zp(e,this._extent)},t.prototype.normalize=function(e){return Xp(e,this._extent)},t.prototype.scale=function(e){return Kp(e,this._extent)},t.prototype.setExtent=function(e,a){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(a)||(i[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=UU(e)},t.prototype.getTicks=function(e){var a=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;i[0]l)return[];var v=s.length?s[s.length-1].value:n[1];return i[1]>v&&(e?s.push({value:Uo(v+a,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),i=[],n=this.getExtent(),o=1;on[0]&&c0&&(n=n===null?s:Math.min(n,s))}e[a]=n}}return e}function XU(r){var t=Gee(r),e=[];return $(r,function(a){var i=a.coordinateSystem,n=i.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=t[l],v=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?v/f*u:v}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Ie(a.get("barWidth"),s),p=Ie(a.get("barMaxWidth"),s),g=Ie(a.get("barMinWidth")||(e6(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:VC(n),stackId:YU(a)})}),KU(e)}function KU(r){var t={};$(r,function(a,i){var n=a.axisKey,o=a.bandWidth,s=t[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[n]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var v=a.barWidth;v&&!l[u].width&&(l[u].width=v,v=Math.min(s.remainedWidth,v),s.remainedWidth-=v);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var f=a.barMinWidth;f&&(l[u].minWidth=f);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return $(t,function(a,i){e[i]={};var n=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=Ie(s,o),v=Ie(a.gap,1),h=a.remainedWidth,f=a.autoWidthCount,c=(h-u)/(f+(f-1)*v);c=Math.max(c,0),$(n,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,h-=x+v*x,f--}else{var x=c;y&&yx&&(x=_),x!==c&&(m.width=x,h-=x+v*x,f--)}}),c=(h-u)/(f+(f-1)*v),c=Math.max(c,0);var d=0,p;$(n,function(m,y){m.width||(m.width=c),p=m,d+=m.width*(1+v)}),p&&(d-=p.width*v);var g=-d/2;$(n,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+v)})}),e}function Fee(r,t,e){if(r&&t){var a=r[VC(t)];return a}}function QU(r,t){var e=ZU(r,t),a=XU(e);$(e,function(i){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=YU(i),u=a[VC(s)][l],v=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:v,size:h})})}function jU(r){return{seriesType:r,plan:gu(),reset:function(t){if(JU(t)){var e=t.getData(),a=t.coordinateSystem,i=a.getBaseAxis(),n=a.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(n.dim),v=e.getCalculationInfo("stackResultDimension"),h=wn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),f=n.isHorizontal(),c=Hee(i,n),d=e6(t),p=t.get("barMinHeight")||0,g=v&&e.getDimensionIndex(v),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&Fi(S*3),w=d&&l&&Fi(S*3),A=d&&Fi(S),T=a.master.getRect(),C=f?T.width:T.height,M,L=x.getStore(),D=0;(M=_.next())!=null;){var P=L.get(h?g:o,M),I=L.get(s,M),R=c,E=void 0;h&&(E=+P-L.get(o,M));var k=void 0,B=void 0,F=void 0,V=void 0;if(f){var N=a.dataToPoint([P,I]);if(h){var O=a.dataToPoint([E,I]);R=O[0]}k=R,B=N[1]+y,F=N[0]-R,V=m,Math.abs(F)0?e:1:e))}var qee=function(r,t,e,a){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=jf.length,l=Math.min(qee(jf,this._approxInterval,0,s),s-1);this._interval=jf[l][1],this._minLevelUnit=jf[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return bt(e)?e:+Ma(e)},t.prototype.contain=function(e){return Zp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Xp(this.parse(e),this._extent)},t.prototype.scale=function(e){return Kp(e,this._extent)},t.type="time",t})(Tn),jf=[["second",hC],["minute",fC],["hour",jv],["quarter-day",jv*6],["half-day",jv*12],["day",Wa*1.2],["half-week",Wa*3.5],["week",Wa*7],["month",Wa*31],["quarter",Wa*95],["half-year",UL/2],["year",UL]];function Wee(r,t,e,a){var i=Ma(t),n=Ma(e),o=function(d){return YL(i,d,a)===YL(n,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},v=function(){return u()&&o("hour")},h=function(){return v()&&o("minute")},f=function(){return h()&&o("second")},c=function(){return f()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return v();case"minute":return h();case"second":return f();case"millisecond":return c()}}function Uee(r,t){return r/=Wa,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function $ee(r){var t=30*Wa;return r/=t,r>6?6:r>3?3:r>2?2:1}function Yee(r){return r/=jv,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function t2(r,t){return r/=t?fC:hC,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Zee(r){return qA(r,!0)}function Xee(r,t,e){var a=new Date(r);switch(Hl(t)){case"year":case"month":a[mW(e)](0);case"day":a[yW(e)](1);case"hour":a[_W(e)](0);case"minute":a[xW(e)](0);case"second":a[SW(e)](0),a[bW(e)](0)}return a.getTime()}function Kee(r,t,e,a){var i=1e4,n=pW,o=0;function s(C,M,L,D,P,I,R){for(var E=new Date(M),k=M,B=E[D]();k1&&I===0&&L.unshift({value:L[0].value-k})}}for(var I=0;I=a[0]&&y<=a[1]&&h++)}var _=(a[1]-a[0])/t;if(h>_*1.5&&f>_/1.5||(u.push(g),h>_||r===n[c]))break}v=[]}}}for(var x=Ct(we(u,function(C){return Ct(C,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(C){return C.length>0}),S=[],b=x.length-1,c=0;c0;)n*=10;var s=[ar(Jee(a[0]/n)*n),ar(jee(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){th.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ai(e)/ai(this.base),Zp(e,this._extent)},t.prototype.normalize=function(e){return e=ai(e)/ai(this.base),Xp(e,this._extent)},t.prototype.scale=function(e){return e=Kp(e,this._extent),Jf(this.base,e)},t.type="log",t})(ji),t6=FC.prototype;t6.getMinorTicks=th.getMinorTicks;t6.getLabel=th.getLabel;function ec(r,t){return Qee(r,hi(t))}ji.registerClass(FC);var ete=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!v&&(l=0));var f=this._determinedMin,c=this._determinedMax;return f!=null&&(s=f,u=!0),c!=null&&(l=c,v=!0),{min:s,max:l,minFixed:u,maxFixed:v,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[rte[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=tte[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),tte={min:"_determinedMin",max:"_determinedMax"},rte={min:"_dataMin",max:"_dataMax"};function r6(r,t,e){var a=r.rawExtentInfo;return a||(a=new ete(r,t,e),r.rawExtentInfo=a,a)}function tc(r,t){return t==null?null:Ul(t)?NaN:r.parse(t)}function a6(r,t){var e=r.type,a=r6(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var i=a.min,n=a.max,o=t.ecModel;if(o&&e==="time"){var s=ZU("bar",o),l=!1;if($(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=XU(s),v=ate(i,n,t,u);i=v.min,n=v.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function ate(r,t,e,a){var i=e.axis.getExtent(),n=Math.abs(i[1]-i[0]),o=Fee(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;$(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;$(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,v=t-r,h=1-(s+l)/n,f=v/h-v;return t+=f*(l/u),r-=f*(s/u),{min:r,max:t}}function Rs(r,t){var e=t,a=a6(r,e),i=a.extent,n=e.get("splitNumber");r instanceof FC&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:n,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Kh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new GC({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ji.getClass(t)||Tn)}}function ite(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function xu(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(i,n){return r.scale.getFormattedLabel(i,n,a)}})(t):Re(t)?(function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}})(t):He(t)?(function(a){return function(i,n){return e!=null&&(n=i.value-e),a(HC(r,i),n,i.level!=null?{level:i.level}:null)}})(t):function(a){return r.scale.getLabel(a)}}function HC(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function nte(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,i,n=e.getExtent();e instanceof Qp?i=e.count():(a=e.getTicks(),i=a.length);var o=r.getLabelModel(),s=xu(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var v=0;vr[1]&&(r[1]=i[1])})}var Su=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function lte(r){return Qi(null,r)}var ute={isDimensionStacked:wn,enableDataStack:WU,getStackedDimension:BC};function vte(r,t){var e=t;t instanceof Mt||(e=new Mt(t));var a=Kh(e);return a.setExtent(r[0],r[1]),Rs(a,e),a}function hte(r){nr(r,Su)}function fte(r,t){return t=t||{},Ht(r,null,null,t.state!=="normal")}const cte=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:bee,createList:lte,createScale:vte,createSymbol:lr,createTextStyle:fte,dataStack:ute,enableHoverEmphasis:to,getECData:Xe,getLayoutRect:dr,mixinAxisModelCommonMethods:hte},Symbol.toStringTag,{value:"Module"}));var a2=[],dte={registerPreprocessor:kC,registerProcessor:OC,registerPostInit:EU,registerPostUpdate:kU,registerUpdateLifecycle:Yp,registerAction:Si,registerCoordinateSystem:OU,registerLayout:NU,registerVisual:mo,registerTransform:BU,registerLoading:zC,registerMap:zU,registerImpl:VJ,PRIORITY:TU,ComponentModel:ut,ComponentView:Wt,SeriesModel:zt,ChartView:kt,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){Wt.registerClass(r)},registerSeriesModel:function(r){zt.registerClass(r)},registerChartView:function(r){kt.registerClass(r)},registerSubTypeDefaulter:function(r,t){ut.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){fq(r,t)}};function ot(r){if(Se(r)){$(r,function(t){ot(t)});return}nt(a2,r)>=0||(a2.push(r),He(r)&&(r={install:r}),r.install(dte))}var pte=1e-8;function i2(r,t){return Math.abs(r-t)i&&(a=o,i=l)}if(a)return mte(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var i=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return $(o,function(s){s.type==="polygon"?n2(s.exterior,i,n,e):$(s.points,function(l){n2(l,i,n,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),a=new at(i[0],i[1],n[0]-i[0],n[1]-i[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),i=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var n=0,o=i.length;n>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,a.push([s/e,l/e])}return a}function kT(r,t){return r=_te(r),we(Ct(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,i=e.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new o2(o[0],o.slice(1)));break;case"MultiPolygon":$(i.coordinates,function(l){l[0]&&n.push(new o2(l[0],l.slice(1)))});break;case"LineString":n.push(new s2([i.coordinates]));break;case"MultiLineString":n.push(new s2(i.coordinates))}var s=new o6(a[t||"name"],n,a.cp);return s.properties=a,s})}const xte=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:rT,asc:Ta,getPercentWithPrecision:tX,getPixelPrecision:FA,getPrecision:hi,getPrecisionSafe:gq,isNumeric:WA,isRadianAroundZero:Yl,linearMap:Pt,nice:qA,numericToNumber:Yi,parseDate:Ma,quantile:ed,quantity:yq,quantityExponent:Cp,reformIntervals:aT,remRadian:HA,round:ar},Symbol.toStringTag,{value:"Module"})),Ste=Object.freeze(Object.defineProperty({__proto__:null,format:Zh,parse:Ma},Symbol.toStringTag,{value:"Module"})),bte=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uh,BezierCurve:su,BoundingRect:at,Circle:Xi,CompoundPath:Ep,Ellipse:Wh,Group:Ze,Image:Dr,IncrementalDisplayable:rW,Line:xr,LinearGradient:lu,Polygon:jr,Polyline:ea,RadialGradient:rC,Rect:gt,Ring:ou,Sector:Qr,Text:pt,clipPointsByRect:oC,clipRectByRect:sW,createIcon:vu,extendPath:nW,extendShape:iW,getShapeClass:kp,getTransform:ro,initProps:$t,makeImage:iC,makePath:$h,mergePath:wa,registerShape:Ka,resizePath:nC,updateProps:wt},Symbol.toStringTag,{value:"Module"})),wte=Object.freeze(Object.defineProperty({__proto__:null,addCommas:dC,capitalFirst:CQ,encodeHTML:Zr,formatTime:AQ,formatTpl:gC,getTextRect:wQ,getTooltipMarker:wW,normalizeCssArray:Vs,toCamelCase:pC,truncateText:PX},Symbol.toStringTag,{value:"Module"})),Tte=Object.freeze(Object.defineProperty({__proto__:null,bind:Ne,clone:Ye,curry:et,defaults:Ue,each:$,extend:_e,filter:Ct,indexOf:nt,inherits:EA,isArray:Se,isFunction:He,isObject:$e,isString:Re,map:we,merge:tt,reduce:Ya},Symbol.toStringTag,{value:"Module"}));var Th=yt();function l6(r,t){var e=we(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Ate(r){var t=r.getLabelModel().get("customValues");if(t){var e=xu(r),a=r.scale.getExtent(),i=l6(r,t),n=Ct(i,function(o){return o>=a[0]&&o<=a[1]});return{labels:we(n,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?Mte(r):Lte(r)}function Cte(r,t){var e=r.getTickModel().get("customValues");if(e){var a=r.scale.getExtent(),i=l6(r,e);return{ticks:Ct(i,function(n){return n>=a[0]&&n<=a[1]})}}return r.type==="category"?Dte(r,t):{ticks:we(r.scale.getTicks(),function(n){return n.value})}}function Mte(r){var t=r.getLabelModel(),e=u6(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function u6(r,t){var e=v6(r,"labels"),a=qC(t),i=h6(e,a);if(i)return i;var n,o;return He(a)?n=d6(r,a):(o=a==="auto"?Ite(r):a,n=c6(r,o)),f6(e,a,{labels:n,labelCategoryInterval:o})}function Dte(r,t){var e=v6(r,"ticks"),a=qC(t),i=h6(e,a);if(i)return i;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),He(a))n=d6(r,a,!0);else if(a==="auto"){var s=u6(r,r.getLabelModel());o=s.labelCategoryInterval,n=we(s.labels,function(l){return l.tickValue})}else o=a,n=c6(r,o,!0);return f6(e,a,{ticks:n,tickCategoryInterval:o})}function Lte(r){var t=r.scale.getTicks(),e=xu(r);return{labels:we(t,function(a,i){return{level:a.level,formattedLabel:e(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function v6(r,t){return Th(r)[t]||(Th(r)[t]=[])}function h6(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),v=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),f=0,c=0;l<=n[1];l+=s){var d=0,p=0,g=Fh(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,f=Math.max(f,d,7),c=Math.max(c,p,7)}var m=f/v,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=Th(r.model),S=r.getExtent(),b=x.lastAutoInterval,w=x.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=S[0],x.axisExtent1=S[1]),_}function Rte(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function c6(r,t,e){var a=xu(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=n[0],v=i.count();u!==0&&l>1&&v/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=i6(r),f=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;f&&u!==n[0]&&p(n[0]);for(var d=u;d<=n[1];d+=l)p(d);c&&d-l!==n[1]&&p(n[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:a(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function d6(r,t,e){var a=r.scale,i=xu(r),n=[];return $(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&n.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),n}var l2=[0,1],Ja=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=a&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return FA(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(a=a.slice(),u2(a,i.count())),Pt(t,l2,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),u2(a,i.count()));var n=Pt(t,a,l2,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=Cte(this,e),i=a.ticks,n=we(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Ete(this,n,o,t.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),i=we(a,function(n){return we(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return Ate(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/a},r.prototype.calculateCategoryInterval=function(){return Pte(this)},r})();function u2(r,t){var e=r[1]-r[0],a=t,i=e/a/2;r[0]+=i,r[1]-=i}function Ete(r,t,e,a){var i=t.length;if(!r.onBand||e||!i)return;var n=r.getExtent(),o,s;if(i===1)t[0].coord=n[0],o=t[1]={coord:n[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;$(t,function(c){c.coord-=u/2});var v=r.scale.getExtent();s=1+v[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:v[1]+1},t.push(o)}var h=n[0]>n[1];f(t[0].coord,n[0])&&(a?t[0].coord=n[0]:t.shift()),a&&f(n[0],t[0].coord)&&t.unshift({coord:n[0]}),f(n[1],o.coord)&&(a?o.coord=n[1]:t.pop()),a&&f(o.coord,n[1])&&t.push({coord:n[1]});function f(c,d){return c=ar(c),d=ar(d),h?c>d:ci&&(i+=ju);var c=Math.atan2(s,o);if(c<0&&(c+=ju),c>=a&&c<=i||c+ju>=a&&c+ju<=i)return l[0]=v,l[1]=h,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(i)+r,m=e*Math.sin(i)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Yd(r,t,e,a,i,n,o,s){var l=i-r,u=n-t,v=e-r,h=a-t,f=Math.sqrt(v*v+h*h);v/=f,h/=f;var c=l*v+u*h,d=c/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var p=o[0]=r+d*v,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-n)*(g-n))}function p6(r,t,e,a,i,n,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(i,r),s),v=o[1]=Math.min(Math.max(n,t),l);return Math.sqrt((u-i)*(u-i)+(v-n)*(v-n))}var vi=[];function Fte(r,t,e){var a=p6(t.x,t.y,t.width,t.height,r.x,r.y,vi);return e.set(vi[0],vi[1]),a}function Hte(r,t,e){for(var a=0,i=0,n=0,o=0,s,l,u=1/0,v=t.data,h=r.x,f=r.y,c=0;c0){t=t/180*Math.PI,fi.fromArray(r[0]),qt.fromArray(r[1]),sr.fromArray(r[2]),rt.sub(Hi,fi,qt),rt.sub(Vi,sr,qt);var e=Hi.len(),a=Vi.len();if(!(e<.001||a<.001)){Hi.scale(1/e),Vi.scale(1/a);var i=Hi.dot(Vi),n=Math.cos(t);if(n1&&rt.copy(oa,sr),oa.toArray(r[1])}}}}function qte(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,fi.fromArray(r[0]),qt.fromArray(r[1]),sr.fromArray(r[2]),rt.sub(Hi,qt,fi),rt.sub(Vi,sr,qt);var a=Hi.len(),i=Vi.len();if(!(a<.001||i<.001)){Hi.scale(1/a),Vi.scale(1/i);var n=Hi.dot(t),o=Math.cos(e);if(n=l)rt.copy(oa,sr);else{oa.scaleAndAdd(Vi,s/Math.tan(Math.PI/2-v));var h=sr.x!==qt.x?(oa.x-qt.x)/(sr.x-qt.x):(oa.y-qt.y)/(sr.y-qt.y);if(isNaN(h))return;h<0?rt.copy(oa,qt):h>1&&rt.copy(oa,sr)}oa.toArray(r[1])}}}}function Om(r,t,e,a){var i=e==="normal",n=i?r:r.ensureState(e);n.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function Wte(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var i=fn(a[0],a[1]),n=fn(a[1],a[2]);if(!i||!n){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(i,n)*e,s=qv([],a[1],a[0],o/i),l=qv([],a[1],a[2],o/n),u=qv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var v=1;v0){_(T*A,0,o);var C=T+b;C<0&&x(-C*A,1)}else x(-b*A,1)}}function _(b,w,A){b!==0&&(u=!0);for(var T=w;T0)for(var C=0;C0;C--){var P=A[C-1]*D;_(-P,C,o)}}}function S(b){var w=b<0?-1:1;b=Math.abs(b);for(var A=Math.ceil(b/(o-1)),T=0;T0?_(A,0,T+1):_(-A,o-T-1,o),b-=A,b<=0)return}return u}function Ute(r,t,e,a){return y6(r,"x","width",t,e)}function _6(r,t,e,a){return y6(r,"y","height",t,e)}function x6(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new at(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&a.attr(n.oldLayoutSelect),nt(f,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),wt(a,u,e,l)}else if(a.attr(u),!hu(a).valueAnimation){var h=Je(a.style.opacity,1);a.style.opacity=0,$t(a,{style:{opacity:h}},e,l)}if(n.oldLayout=u,a.states.select){var c=n.oldLayoutSelect={};rc(c,u,ac),rc(c,a.states.select,ac)}if(a.states.emphasis){var d=n.oldLayoutEmphasis={};rc(d,u,ac),rc(d,a.states.emphasis,ac)}hW(a,l,v,e,e)}if(i&&!i.ignore&&!i.invisible){var n=Zte(i),o=n.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),wt(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,$t(i,{style:{strokePercent:1}},e)),n.oldLayout=p}},r})(),zm=yt();function S6(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var i=zm(e).labelManager;i||(i=zm(e).labelManager=new Xte),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var i=zm(e).labelManager;a.updatedSeries.forEach(function(n){i.addLabelsOfSeries(e.getViewOfSeriesModel(n))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}const S1e=Object.freeze(Object.defineProperty({__proto__:null,Axis:Ja,ChartView:kt,ComponentModel:ut,ComponentView:Wt,List:Xr,Model:Mt,PRIORITY:TU,SeriesModel:zt,color:yZ,connect:nee,dataTool:fee,dependencies:FJ,disConnect:oee,disconnect:RU,dispose:see,env:vt,extendChartView:zte,extendComponentModel:kte,extendComponentView:Ote,extendSeriesModel:Nte,format:wte,getCoordinateSystemDimensions:uee,getInstanceByDom:RC,getInstanceById:lee,getMap:hee,graphic:bte,helper:cte,init:iee,innerDrawElementOnCanvas:DC,matrix:KY,number:xte,parseGeoJSON:kT,parseGeoJson:kT,registerAction:Si,registerCoordinateSystem:OU,registerLayout:NU,registerLoading:zC,registerLocale:vC,registerMap:zU,registerPostInit:EU,registerPostUpdate:kU,registerPreprocessor:kC,registerProcessor:OC,registerTheme:EC,registerTransform:BU,registerUpdateLifecycle:Yp,registerVisual:mo,setCanvasCreator:vee,setPlatformAPI:I4,throttle:Up,time:Ste,use:ot,util:Tte,vector:NY,version:GJ,zrUtil:LY,zrender:JZ},Symbol.toStringTag,{value:"Module"}));var Kte=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Ze,i=lr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=e.itemHeight*.8,u=lr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var v=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=v*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(zt);function jl(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var i=Kl(r,t,e[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o=0&&a.push(t[n])}return a.join(" ")}var Qh=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this)||this;return o.updateData(e,a,i,n),o}return t.prototype._createSymbol=function(e,a,i,n,o){this.removeAll();var s=lr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Qte,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){xn(this.childAt(0))},t.prototype.downplay=function(){Sn(this.childAt(0))},t.prototype.setZ=function(e,a){var i=this.childAt(0);i.zlevel=e,i.z=a},t.prototype.setDraggable=function(e,a){var i=this.childAt(0);i.draggable=e,i.cursor=!a&&e?"move":i.cursor},t.prototype.updateData=function(e,a,i,n){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,v=n&&n.disableAnimation;if(u){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,h)}else{var f=this.childAt(0);f.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};v?f.attr(c):wt(f,c,s,a),xi(f)}if(this._updateCommon(e,a,l,i,n),u){var f=this.childAt(0);if(!v){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,$t(f,c,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,i,n,o){var s=this.childAt(0),l=e.hostModel,u,v,h,f,c,d,p,g,m;if(n&&(u=n.emphasisItemStyle,v=n.blurItemStyle,h=n.selectItemStyle,f=n.focus,c=n.blurScope,p=n.labelStatesModels,g=n.hoverScale,m=n.cursorStyle,d=n.emphasisDisabled),!n||e.hasItemOption){var y=n&&n.itemModel?n.itemModel:e.getItemModel(a),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),v=y.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Cr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Gs(e.getItemVisual(a,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Dr){var A=s.style;s.useStyle(_e({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(_e({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(a,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var M=o&&o.useNameLabel;Gr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(I){return M?e.getName(I):jl(e,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=v;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*P,D.scaleY=this._sizeY*P,this.setSymbolScale(1),tr(this,f,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,i){var n=this.childAt(0),o=Xe(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&lo(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();lo(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return yu(e.getItemVisual(a,"symbolSize"))},t})(Ze);function Qte(r,t){this.parent.drift(r,t)}function Bm(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function f2(r){return r!=null&&!$e(r)&&(r={isIgnore:r}),r||{}}function c2(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Cr(t),cursorStyle:t.get("cursor")}}var jh=(function(){function r(t){this.group=new Ze,this._SymbolCtor=t||Qh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=f2(e);var a=this.group,i=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=c2(t),u={disableAnimation:s},v=e.getSymbolPoint||function(h){return t.getItemLayout(h)};n||a.removeAll(),t.diff(n).add(function(h){var f=v(h);if(Bm(t,f,h,e)){var c=new o(t,h,l,u);c.setPosition(f),t.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,f){var c=n.getItemGraphicEl(f),d=v(h);if(!Bm(t,d,h,e)){a.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?c.attr(m):wt(c,m,i)}a.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var f=n.getItemGraphicEl(h);f&&f.fadeOut(function(){a.remove(f)},i)}).execute(),this._getSymbolPoint=v,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,i){var n=t._getSymbolPoint(i);a.setPosition(n),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=c2(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=f2(a);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0?e=a[0]:a[1]<0&&(e=a[1]),e}function T6(r,t,e,a){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=e.get(r.baseDim,a),o[1-n]=i,t.dataToPoint(o)}function Jte(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,i){e.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function ere(r,t,e,a,i,n,o,s){for(var l=Jte(r,t),u=[],v=[],h=[],f=[],c=[],d=[],p=[],g=w6(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||p<0)break;if(Ts(m,y)){if(l){p+=n;continue}break}if(p===e)r[n>0?"moveTo":"lineTo"](m,y),h=m,f=y;else{var _=m-u,x=y-v;if(_*_+x*x<.5){p+=n;continue}if(o>0){for(var S=p+n,b=t[S*2],w=t[S*2+1];b===m&&w===y&&g=a||Ts(b,w))c=m,d=y;else{C=b-u,M=w-v;var P=m-u,I=b-m,R=y-v,E=w-y,k=void 0,B=void 0;if(s==="x"){k=Math.abs(P),B=Math.abs(I);var F=C>0?1:-1;c=m-F*k*o,d=y,L=m+F*B*o,D=y}else if(s==="y"){k=Math.abs(R),B=Math.abs(E);var V=M>0?1:-1;c=m,d=y-V*k*o,L=m,D=y+V*B*o}else k=Math.sqrt(P*P+R*R),B=Math.sqrt(I*I+E*E),T=B/(B+k),c=m-C*o*(1-T),d=y-M*o*(1-T),L=m+C*o*T,D=y+M*o*T,L=Nn(L,zn(b,m)),D=Nn(D,zn(w,y)),L=zn(L,Nn(b,m)),D=zn(D,Nn(w,y)),C=L-m,M=D-y,c=m-C*k/B,d=y-M*k/B,c=Nn(c,zn(u,m)),d=Nn(d,zn(v,y)),c=zn(c,Nn(u,m)),d=zn(d,Nn(v,y)),C=m-c,M=y-d,L=m+C*B/k,D=y+M*B/k}r.bezierCurveTo(h,f,c,d,m,y),h=L,f=D}else r.lineTo(m,y)}u=m,v=y,p+=n}return g}var A6=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),tre=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A6},t.prototype.buildPath=function(e,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Ts(i[o*2-2],i[o*2-1]);o--);for(;n=0){var x=u?(d-l)*_+l:(c-s)*_+s;return u?[e,x]:[x,e]}s=c,l=d;break;case o.C:c=n[h++],d=n[h++],p=n[h++],g=n[h++],m=n[h++],y=n[h++];var S=u?bd(s,c,p,m,e,v):bd(l,d,g,y,e,v);if(S>0)for(var b=0;b=0){var x=u?br(l,d,g,y,w):br(s,c,p,m,w);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t})(ht),rre=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(A6),C6=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new rre},t.prototype.buildPath=function(e,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Ts(i[s*2-2],i[s*2-1]);s--);for(;ot){n?e.push(o(n,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),n=l}return e}function nre(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var i,n,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=a[o];break}}if(n){var l=t.getAxis(i),u=we(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),v=u.length,h=n.outerColors.slice();v&&u[0].coord>u[v-1].coord&&(u.reverse(),h.reverse());var f=ire(u,i==="x"?e.getWidth():e.getHeight()),c=f.length;if(!c&&v)return u[0].coord<0?h[1]?h[1]:u[v-1].color:h[0]?h[0]:u[0].color;var d=10,p=f[0].coord-d,g=f[c-1].coord+d,m=g-p;if(m<.001)return"transparent";$(f,function(_){_.offset=(_.coord-p)/m}),f.push({offset:c?f[c-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:c?f[0].offset:.5,color:h[0]||"transparent"});var y=new lu(0,0,0,0,f,!0);return y[i]=p,y[i+"2"]=g,y}}}function ore(r,t,e){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&sre(n,t))){var o=t.mapDimension(n.dim),s={};return $(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function sre(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),o=0;oa)return!1;return!0}function lre(r,t){return isNaN(r)||isNaN(t)}function ure(r){for(var t=r.length/2;t>0&&lre(r[t*2-2],r[t*2-1]);t--);return t-1}function y2(r,t){return[r[t*2],r[t*2+1]]}function vre(r,t,e){for(var a=r.length/2,i=e==="x"?0:1,n,o,s=0,l=-1,u=0;u=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}function L6(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}Xe(d).seriesIndex=e.seriesIndex,tr(d,R,E,k);var F=m2(e.get("smooth")),V=e.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:V,connectNulls:w}),p){var N=s.getCalculationInfo("stackedOnSeries"),O=0;p.useStyle(Ue(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),N&&(O=m2(N.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:O,smoothMonotone:V,connectNulls:w}),Vr(p,e,"areaStyle"),Xe(p).seriesIndex=e.seriesIndex,tr(p,R,E,k)}var z=this._changePolyState;s.eachItemGraphicEl(function(G){G&&(G.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=v,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){Xe(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,i,n){var o=e.getData(),s=Ds(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var v=l[s*2],h=l[s*2+1];if(isNaN(v)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,h))return;var f=e.get("zlevel")||0,c=e.get("z")||0;u=new Qh(o,s),u.x=v,u.y=h,u.setZ(f,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=f,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else kt.prototype.highlight.call(this,e,a,i,n)},t.prototype.downplay=function(e,a,i,n){var o=e.getData(),s=Ds(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else kt.prototype.downplay.call(this,e,a,i,n)},t.prototype._changePolyState=function(e){var a=this._polygon;Ld(this._polyline,e),a&&Ld(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new tre({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new C6({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=e.hostModel,v=u.get("animationDuration");He(v)&&(v=v(null));var h=u.get("animationDelay")||0,f=He(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var x=i,S=a.pointToCoord(g);n?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var b=i;n?(m=b.x,y=b.x+b.width,_=c.x):(m=b.y+b.height,y=b.y,_=c.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var A=He(h)?h(d):v*w+f,T=p.getSymbolPath(),C=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,i){var n=e.getModel("endLabel");if(L6(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var v=ure(l);v>=0&&(Gr(s,Cr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:v,defaultText:function(h,f,c){return c!=null?b6(o,c):jl(o,h)},enableTextSetter:!0},hre(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,i,n,o,s,l){var u=this._endLabel,v=this._polyline;if(u){e<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=i.getLayout("points"),f=i.hostModel,c=f.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=a.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),b=(m?0:-p)*(y?-1:1),w=m?"x":"y",A=vre(h,x,w),T=A.range,C=T[1]-T[0],M=void 0;if(C>=1){if(C>1&&!c){var L=y2(h,T[0]);u.attr({x:L[0]+S,y:L[1]+b}),o&&(M=f.getRawValue(T[0]))}else{var L=v.getPointOn(x,w);L&&u.attr({x:L[0]+S,y:L[1]+b});var D=f.getRawValue(T[0]),P=f.getRawValue(T[1]);o&&(M=Cq(i,d,D,P,A.t))}n.lastFrameIndex=T[0]}else{var I=e===1||n.lastFrameIndex>0?T[0]:0,L=y2(h,I);o&&(M=f.getRawValue(I)),u.attr({x:L[0]+S,y:L[1]+b})}if(o){var R=hu(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,i,n,o,s,l){var u=this._polyline,v=this._polygon,h=e.hostModel,f=ere(this._data,e,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin),c=f.current,d=f.stackedOnCurrent,p=f.next,g=f.stackedOnNext;if(o&&(d=Bn(f.stackedOnCurrent,f.current,i,o,l),c=Bn(f.current,null,i,o,l),g=Bn(f.stackedOnNext,f.next,i,o,l),p=Bn(f.next,null,i,o,l)),g2(c,p)>3e3||v&&g2(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),v&&(v.stopAnimation(),v.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=c;var m={shape:{points:p}};f.current!==c&&(m.shape.__points=f.next),u.stopAnimation(),wt(u,m,h),v&&(v.setShape({points:c,stackedOnPoints:d}),v.stopAnimation(),wt(v,{shape:{stackedOnPoints:g}},h),u.shape.points!==v.shape.points&&(v.shape.points=u.shape.points));for(var y=[],_=f.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=e.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){v&&v.dirtyShape();for(var w=u.shape.__points,A=0;At&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),v=l.getExtent(),h=a.getDevicePixelRatio(),f=Math.abs(v[1]-v[0])*(h||1),c=Math.round(s/f);if(isFinite(c)&&c>1){n==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):n==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var d=void 0;Re(n)?d=cre[n]:He(n)&&(d=n),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,dre))}}}}}function pre(r){r.registerChartView(fre),r.registerSeriesModel(Kte),r.registerLayout(ef("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I6("line"))}var Ah=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(i)$(n.getAxes(),function(f,c){if(f.type==="category"&&a!=null){var d=f.getTicksCoords(),p=f.getTickModel().get("alignWithLabel"),g=o[c],m=a[c]==="x1"||a[c]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;Sg){_=(b+y)/2;break}S===1&&(x=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=f.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),v=l.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;s[h]+=u+v/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(zt);zt.registerClass(Ah);var gre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Qi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,i){return i.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=go(Ah.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Ah),mre=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Xd=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new mre},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,v=a.startAngle,h=a.endAngle,f=a.clockwise,c=Math.PI*2,d=f?h-vMath.PI/2&&vs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,i,n){if(this._isOrderChangedWithinSameData(e,a,i)){var o=this._dataSort(e,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,i){var n=a.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){mh(n,e,Xe(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(kt),_2={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,n=r.y+r.height,o=Gm(t.x,r.x),s=Fm(t.x+t.width,i),l=Gm(t.y,r.y),u=Fm(t.y+t.height,n),v=si?s:o,t.y=h&&l>n?u:l,t.width=v?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),v||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var i=Fm(t.r,r.r),n=Gm(t.r0,r.r0);t.r=i,t.r0=n;var o=i-n<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},x2={cartesian2d:function(r,t,e,a,i,n,o,s,l){var u=new gt({shape:_e({},a),z2:1});if(u.__dataIndex=e,u.name="item",n){var v=u.shape,h=i?"height":"width";v[h]=0}return u},polar:function(r,t,e,a,i,n,o,s,l){var u=!i&&l?Xd:Qr,v=new u({shape:a,z2:1});v.name="item";var h=P6(i);if(v.calculateTextPosition=yre(h,{isRoundCap:u===Xd}),n){var f=v.shape,c=i?"r":"endAngle",d={};f[c]=i?a.r0:a.startAngle,d[c]=a[c],(s?wt:$t)(v,{shape:d},n)}return v}};function bre(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function S2(r,t,e,a,i,n,o,s){var l,u;n?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?wt:$t)(e,{shape:l},t,i,null);var v=t?r.baseAxis.model:null;(o?wt:$t)(e,{shape:u},v,i)}function b2(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function Are(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function P6(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function T2(r,t,e,a,i,n,o,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var v=r.shape,h=ys(a.getModel("itemStyle"),v,!0);_e(v,h),r.setShape(v)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var f=a.getShallow("cursor");f&&r.attr("cursor",f);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Cr(a);Gr(r,d,{labelFetcher:n,labelDataIndex:e,defaultText:jl(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,_re(r,g==="outside"?c:g,P6(o),a.get(["label","rotate"]))}vW(p,d,n.getRawValue(e),function(y){return b6(t,y)});var m=a.getModel(["emphasis"]);tr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Vr(r,a),Are(i)&&(r.style.fill="none",r.style.stroke="none",$(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Cre(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,i,n)}var Mre=(function(){function r(){}return r})(),A2=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Mre},t.prototype.buildPath=function(e,a){for(var i=a.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,v=0;v=0?e:null},30,!1);function Dre(r,t,e){for(var a=r.baseDimIdx,i=1-a,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,v=0,h=n.length/3;v=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[v]}return-1}function R6(r,t,e){if(Fs(e,"cartesian2d")){var a=t,i=e.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function Lre(r,t,e){var a=r.type==="polar"?Qr:gt;return new a({shape:R6(t,e,r),silent:!0,z2:0})}function Ire(r){r.registerChartView(Sre),r.registerSeriesModel(gre),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(QU,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jU("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I6("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var D2=Math.PI*2,sc=Math.PI/180;function E6(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k6(r,t){var e=E6(r,t),a=r.get("center"),i=r.get("radius");Se(i)||(i=[0,i]);var n=Ie(e.width,t.getWidth()),o=Ie(e.height,t.getHeight()),s=Math.min(n,o),l=Ie(i[0],s/2),u=Ie(i[1],s/2),v,h,f=r.coordinateSystem;if(f){var c=f.dataToPoint(a);v=c[0]||0,h=c[1]||0}else Se(a)||(a=[a,a]),v=Ie(a[0],n)+e.x,h=Ie(a[1],o)+e.y;return{cx:v,cy:h,r0:l,r:u}}function Pre(r,t,e){t.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=E6(a,e),s=k6(a,e),l=s.cx,u=s.cy,v=s.r,h=s.r0,f=-a.get("startAngle")*sc,c=a.get("endAngle"),d=a.get("padAngle")*sc;c=c==="auto"?f-D2:-c*sc;var p=a.get("minAngle")*sc,g=p+d,m=0;i.each(n,function(E){!isNaN(E)&&m++});var y=i.getSum(n),_=Math.PI/(y||m)*2,x=a.get("clockwise"),S=a.get("roseType"),b=a.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var A=x?1:-1,T=[f,c],C=A*d/2;XA(T,!x),f=T[0],c=T[1];var M=O6(a);M.startAngle=f,M.endAngle=c,M.clockwise=x;var L=Math.abs(c-f),D=L,P=0,I=f;if(i.setLayout({viewRect:o,r:v}),i.each(n,function(E,k){var B;if(isNaN(E)){i.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:h,r:S?NaN:v});return}S!=="area"?B=y===0&&b?_:E*_:B=L/m,BB?(V=I+A*B/2,N=V):(V=I+C,N=F-C),i.setItemLayout(k,{angle:B,startAngle:V,endAngle:N,clockwise:x,cx:l,cy:u,r0:h,r:S?Pt(E,w,[h,v]):v}),I=F}),De?m:g,S=Math.abs(_.label.y-e);if(S>=x.maxY){var b=_.label.x-t-_.len2*i,w=a+_.len,A=Math.abs(b)r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();n.width=p.width;var g=(a.style.margin||0)+2.1;n.height=p.height+g,n.y-=(n.height-h)/2}}}function Hm(r){return r.position==="center"}function kre(r){var t=r.getData(),e=[],a,i,n=!1,o=(r.get("minShowLabelAngle")||0)*Rre,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,v=s.x,h=s.y,f=s.height;function c(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),A=w.shape,T=w.getTextContent(),C=w.getTextGuideLine(),M=t.getItemModel(b),L=M.getModel("label"),D=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),I=L.get("alignTo"),R=Ie(L.get("edgeDistance"),u),E=L.get("bleedMargin"),k=M.getModel("labelLine"),B=k.get("length");B=Ie(B,u);var F=k.get("length2");if(F=Ie(F,u),Math.abs(A.endAngle-A.startAngle)0?"right":"left":N>0?"left":"right"}var te=Math.PI,Z=0,ee=L.get("rotate");if(bt(ee))Z=ee*(te/180);else if(D==="center")Z=0;else if(ee==="radial"||ee===!0){var le=N<0?-V+te:-V;Z=le}else if(ee==="tangential"&&D!=="outside"&&D!=="outer"){var oe=Math.atan2(N,O);oe<0&&(oe=te*2+oe);var fe=O>0;fe&&(oe=te+oe),Z=oe-te}if(n=!!Z,T.x=z,T.y=G,T.rotation=Z,T.setStyle({verticalAlign:"middle"}),U){T.setStyle({align:H});var ye=T.states.select;ye&&(ye.x+=T.x,ye.y+=T.y)}else{var se=T.getBoundingRect().clone();se.applyTransform(T.getComputedTransform());var ve=(T.style.margin||0)+2.1;se.y-=ve/2,se.height+=ve,e.push({label:T,labelLine:C,position:D,len:B,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new rt(N,O),linePoints:q,textAlign:H,labelDistance:P,labelAlignTo:I,edgeDistance:R,bleedMargin:E,rect:se,unconstrainedWidth:se.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:U})}}),!n&&r.get("avoidLabelOverlap")&&Ere(e,a,i,l,u,f,v,h);for(var p=0;p0){for(var v=o.getItemLayout(0),h=1;isNaN(v&&v.startAngle)&&h=n.r0}},t.type="pie",t})(kt);function bu(r,t,e){t=Se(t)&&{coordDimensions:t}||_e({encodeDefine:r.getEncode()},t);var a=r.getSource(),i=_u(a,t).dimensions,n=new Xr(i,r);return n.initData(a,e),n}var rf=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),zre=yt(),Bre=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return bu(this,{coordDimensions:["value"],encodeDefaulter:et(yC,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),i=zre(a),n=i.seats;if(!n){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),n=i.seats=mq(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=n[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ms(e,"labelLine",["show"]);var a=e.labelLine,i=e.emphasis.labelLine;a.show=a.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(zt);function Vre(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(i){var n=a.mapDimension("value"),o=a.get(n,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function Gre(r){r.registerChartView(Nre),r.registerSeriesModel(Bre),cU("pie",r.registerAction),r.registerLayout(et(Pre,"pie")),r.registerProcessor(tf("pie")),r.registerProcessor(Vre("pie"))}var Fre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,i){return i.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(zt),z6=4,Hre=(function(){function r(){}return r})(),qre=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new Hre},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var i=a.points,n=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&n[0]=0;u--){var v=u*2,h=n[v]-s/2,f=n[v+1]-l/2;if(e>=h&&a>=f&&e<=h+s&&a<=f+l)return u}return-1},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(e=i[0],a=i[1],n.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,i=a.points,n=a.size,o=n[0],s=n[1],l=1/0,u=1/0,v=-1/0,h=-1/0,f=0;f=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Ure=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,i){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ef("").reset(e,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var i=this._symbolDraw,n=a.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Wre:new jh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(kt),$re=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ut),NT=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cr).models[0]},t.type="cartesian2dAxis",t})(ut);nr(NT,Su);var B6={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Yre=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},B6),$C=tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},B6),Zre=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$C),Xre=Ue({logBase:10},$C);const V6={category:Yre,value:$C,time:Zre,log:Xre};var Kre={value:1,category:1,time:1,log:1};function Jl(r,t,e,a){$(Kre,function(i,n){var o=tt(tt({},V6[n],!0),a,!0),s=(function(l){he(u,l);function u(){var v=l!==null&&l.apply(this,arguments)||this;return v.type=t+"Axis."+n,v}return u.prototype.mergeDefaultAndTheme=function(v,h){var f=_h(this),c=f?cu(v):{},d=h.getTheme();tt(v,d.get(n+"Axis")),tt(v,this.getDefaultOption()),v.type=I2(v),f&&uo(v,c,f)},u.prototype.optionUpdated=function(){var v=this.option;v.type==="category"&&(this.__ordinalMeta=PT.createByAxisModel(this))},u.prototype.getCategories=function(v){var h=this.option;if(h.type==="category")return v?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+n,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",I2)}function I2(r){return r.type||(r.data?"category":"value")}var Qre=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return we(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),zT=["x","y"];function P2(r){return r.type==="interval"||r.type==="time"}var jre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=zT,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!P2(e)||!P2(a))){var i=e.getExtent(),n=a.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var v=(s[0]-o[0])/l,h=(s[1]-o[1])/u,f=o[0]-i[0]*v,c=o[1]-n[0]*h,d=this._transform=[v,0,0,h,f,c];this._invTransform=Ns([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var i=this.dataToPoint(e),n=this.dataToPoint(a),o=this.getArea(),s=new at(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,i){i=i||[];var n=e[0],o=e[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Or(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},t.prototype.clampData=function(e,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(e[0]),u=n.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var i=[];if(this._invTransform)return Or(i,e,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(e[0]),a),i[1]=o.coordToData(o.toLocalCoord(e[1]),a),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(a[0],a[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(a[0],a[1])-n+e,l=Math.max(i[0],i[1])-o+e;return new at(n,o,s,l)},t})(Qre),Jre=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Ja);function BT(r,t,e){e=e||{};var a=r.coordinateSystem,i=t.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,v=a.getRect(),h=[v.x,v.x+v.width,v.y,v.y+v.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[f.onZero]=Math.max(Math.min(p,d[1]),d[0])}n.position=[u==="y"?d[f[l]]:h[0],u==="x"?d[f[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?d[f[s]]-d[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),wr(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=t.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-m:m,n.z2=1,n}function R2(r){return r.get("coordinateSystem")==="cartesian2d"}function E2(r){var t={xAxisModel:null,yAxisModel:null};return $(t,function(e,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,cr).models[0];t[a]=n}),t}var qm=Math.log;function G6(r,t,e){var a=Tn.prototype,i=a.getTicks.call(e),n=a.getTicks.call(e,!0),o=i.length-1,s=a.getInterval.call(e),l=a6(r,t),u=l.extent,v=l.fixMin,h=l.fixMax;if(r.type==="log"){var f=qm(r.base);u=[qm(u[0])/f,qm(u[1])/f]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:v,fixMax:h});var c=a.getExtent.call(r);v&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(v&&h)d=(g-p)/o;else if(v)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Rm(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Rm(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=ar(g-y),p<0&&u[0]>=0?(p=0,g=ar(y)):g>0&&u[1]<=0&&(g=0,p=-ar(y))}var _=(i[0].value-n[0].value)/s,x=(i[o].value-n[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d)}var eae=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zT,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=ft(o),u=l.length;if(u){for(var v=[],h=u-1;h>=0;h--){var f=+l[h],c=o[f],d=c.model,p=c.scale;RT(p)&&d.get("alignTicks")&&d.get("interval")==null?v.push(c):(Rs(p,d),RT(p)&&(s=c))}v.length&&(s||(s=v.pop(),Rs(s.scale,s.model)),$(v,function(g){G6(g.scale,g.model,s.scale)}))}}i(a.x),i(a.y);var n={};$(a.x,function(o){k2(a,"y",o,n)}),$(a.y,function(o){k2(a,"x",o,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var i=t.getBoxLayoutParams(),n=!a&&t.get("containLabel"),o=dr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),n&&($(s,function(u){if(!u.model.get(["axisLabel","inside"])){var v=nte(u);if(v){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[h]-=v[h]+f,u.position==="top"?o.y+=v.height+f:u.position==="left"&&(o.x+=v.width+f)}}}),l()),$(this._coordsList,function(u){u.calcAffineTransform()});function l(){$(s,function(u){var v=u.isHorizontal(),h=v?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),tae(u,v?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}$e(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):Yl(i-Kn)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),N2={axisLine:function(r,t,e,a){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=t.axis.getExtent(),o=a.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(Or(s,s,o),Or(l,l,o));var v=_e({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new xr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:v,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Xl(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var f=t.get(["axisLine","symbol"]);if(f!=null){var c=t.get(["axisLine","symbolSize"]);Re(f)&&(f=[f,f]),(Re(c)||bt(c))&&(c=[c,c]);var d=Gs(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];$([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(f[y]!=="none"&&f[y]!=null){var _=lr(f[y],-p/2,-g/2,p,g,v.stroke,!0),x=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+x*Math.cos(r.rotation),y:S[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var i=iae(e,a,t,r),n=oae(e,a,t,r);if(aae(t,n,i),nae(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=m6(we(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));x6(o)}},axisName:function(r,t,e,a){var i=wr(r.axisName,t.get("name"));if(i){var n=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),v=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-v*l:n==="end"?u[1]+v*l:(u[0]+u[1])/2,B2(n)?r.labelOffset+o*l:0],f,c=t.get("nameRotate");c!=null&&(c=c*Kn/180);var d;B2(n)?f=la.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(f=rae(r.rotation,n,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(f.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=wr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new pt({x:h[0],y:h[1],rotation:f.rotation,silent:la.isLabelSilent(t),style:Ht(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(zs({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=la.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Xe(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function rae(r,t,e,a){var i=HA(e-r),n,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Yl(i-Kn/2)?(o=l?"bottom":"top",n="center"):Yl(i-Kn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",iKn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function aae(r,t,e){if(!i6(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var n=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],v=e[1],h=e[e.length-1],f=e[e.length-2];a===!1?(Ra(n),Ra(u)):z2(n,o)&&(a?(Ra(o),Ra(v)):(Ra(n),Ra(u))),i===!1?(Ra(s),Ra(h)):z2(l,s)&&(i?(Ra(l),Ra(f)):(Ra(s),Ra(h)))}}function Ra(r){r&&(r.ignore=!0)}function z2(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var i=Vh([]);return co(i,i,-r.rotation),e.applyTransform(Wi([],i,r.getLocalTransform())),a.applyTransform(Wi([],i,t.getLocalTransform())),e.intersect(a)}}function B2(r){return r==="middle"||r==="center"}function F6(r,t,e,a,i){for(var n=[],o=[],s=[],l=0;l=0||r===t}function fae(r){var t=YC(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,i=e.option,n=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=VT(e);n==null&&(i.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Ue({color:d.color},l));var g=tt(Ye(d),{boundaryGap:e,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:f},!1);if(Re(v)){var m=g.name;g.name=v.replace("{value}",m!=null?m:"")}else He(v)&&(g.name=v(g.name,g));var y=new Mt(g,null,this.ecModel);return nr(y,Su.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:tt({lineStyle:{color:"#bbb"}},Ju.axisLine),axisLabel:lc(Ju.axisLabel,!1),axisTick:lc(Ju.axisTick,!1),splitLine:lc(Ju.splitLine,!0),splitArea:lc(Ju.splitArea,!0),indicator:[]},t})(ut),Aae=["axisLine","axisTickLabel","axisName"],Cae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,i=a.getIndicatorAxes(),n=we(i,function(o){var s=o.model.get("showName")?o.name:"",l=new la(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});$(n,function(o){$(Aae,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),h=s.get("show"),f=l.get("color"),c=u.get("color"),d=Se(f)?f:[f],p=Se(c)?c:[c],g=[],m=[];function y(I,R,E){var k=E%R.length;return I[k]=I[k]||[],k}if(n==="circle")for(var _=i[0].getTicksCoords(),x=a.cx,S=a.cy,b=0;b<_.length;b++){if(v){var w=y(g,d,b);g[w].push(new Xi({shape:{cx:x,cy:S,r:_[b].coord}}))}if(h&&b<_.length-1){var w=y(m,p,b);m[w].push(new ou({shape:{cx:x,cy:S,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var A,T=we(i,function(I,R){var E=I.getTicksCoords();return A=A==null?E.length-1:Math.min(E.length-1,A),we(E,function(k){return a.coordToPoint(k.coord,R)})}),C=[],b=0;b<=A;b++){for(var M=[],L=0;L3?1.4:o>1?1.2:1.1,v=n>0?u:1/u;$m(this,"zoom","zoomOnMouseWheel",e,{scale:v,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(n),f=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);$m(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!W2(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;$m(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(Xa);function $m(r,t,e,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(_n(a.event),Y6(r,t,e,a,i))}function Y6(r,t,e,a,i){i.isAvailableBehavior=Ne(ld,null,e,a),r.trigger(t,i)}function ld(r,t,e){var a=e[r];return!r||a&&(!Re(a)||t.event[a+"Key"])}function XC(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function KC(r,t,e,a){var i=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(a-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Eae={axisPointer:1,tooltip:1,brush:1};function jp(r,t,e){var a=t.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==e&&!Eae.hasOwnProperty(a.mainType)&&i&&i.model!==e}function Z6(r){if(Re(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Ym,Kd={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},U2=ft(Kd),Qd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$2=ft(Qd),kae=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=Z6(t);this._defsUsePending=[];var i=new Ze;this._root=i;var n=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sa(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;zae(this._defs,this._defsUsePending),this._defsUsePending=[];var v,h;if(o){var f=Jp(o);f.length>=4&&(v={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(v&&s!=null&&l!=null&&(h=K6(v,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=i;i=new Ze,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new gt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:v,viewBoxTransform:h,named:n}},r.prototype._parseNode=function(t,e,a,i,n,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!n){var v=Ym[s];if(v&&Be(Ym,s)){l=v.call(this,t,e);var h=t.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(f),s==="g"&&(u=f)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var c=Y2[s];if(c&&Be(Y2,s)){var d=c.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new Zl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),Oae(a,e);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=(function(){Ym={g:function(t,e){var a=new Ze;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new gt;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Xi;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new xr;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Wh;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),i;a&&(i=K2(a));var n=new jr({shape:{points:i||[]},silent:!0});return Ea(e,n),Sa(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var a=t.getAttribute("points"),i;a&&(i=K2(a));var n=new ea({shape:{points:i||[]},silent:!0});return Ea(e,n),Sa(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var a=new Dr;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new Ze;return Ea(e,s),Sa(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),i=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ze;return Ea(e,s),Sa(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",i=jq(a);return Ea(e,i),Sa(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),r})(),Y2={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new lu(t,e,a,i);return Z2(r,n),X2(r,n),n},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new rC(t,e,a);return Z2(r,i),X2(r,i),i}};function Z2(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function X2(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};X6(e,n,n);var o=n.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Ea(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ue(t.__inheritedStyle,r.__inheritedStyle))}function K2(r){for(var t=Jp(r),e=[],a=0;a0;n-=2){var o=a[n],s=a[n-1],l=Jp(o);switch(i=i||xa(),s){case"translate":yi(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bp(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":co(i,i,-parseFloat(l[0])*Zm,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Zm);Wi(i,[1,0,u,1,0,0],i);break;case"skewY":var v=Math.tan(parseFloat(l[0])*Zm);Wi(i,[1,v,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var j2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function X6(r,t,e){var a=r.getAttribute("style");if(a){j2.lastIndex=0;for(var i;(i=j2.exec(a))!=null;){var n=i[1],o=Be(Kd,n)?Kd[n]:null;o&&(t[o]=i[2]);var s=Be(Qd,n)?Qd[n]:null;s&&(e[s]=i[2])}}}function Fae(r,t,e){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Ge(),a=Ge(),i=this._regionsGroup,n=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function v(c,d){return d&&(c=d(c)),c&&[c[0]*n.scaleX+n.x,c[1]*n.scaleY+n.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(f=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Gr(t,Cr(a),{labelFetcher:f,labelDataIndex:h,defaultText:e},c);var d=t.getTextContent();if(d&&(Q6(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function aP(r,t,e,a,i,n){r.data?r.data.setItemGraphicEl(n,t):Xe(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:a&&a.option||{}}}function iP(r,t,e,a,i){r.data||zs({el:t,componentModel:i,itemName:e,itemTooltipOption:a.get("tooltip")})}function nP(r,t,e,a,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return tr(t,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&MK(t,i,e),o}function oP(r,t,e){var a=[],i;function n(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=t({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),$(r,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(zt);function sie(r,t){var e={};return $(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[n].length,v=0;v1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var S=r.getBoxLayoutParams();S.aspect=g,x=dr(S,{width:d,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function hie(r,t){$(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var fie=(function(){function r(){this.dimensions=J6}return r.prototype.create=function(t,e){var a=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new HT(l+s,l,_e({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=vP,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var n={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),$(n,function(o,s){var l=we(o,function(v){return v.get("nameMap")}),u=new HT(s,s,_e({nameMap:yp(l)},i(o[0])));u.zoomLimit=wr.apply(null,we(o,function(v){return v.get("scaleLimit")})),a.push(u),u.resize=vP,u.resize(o[0],e),$(o,function(v){v.coordinateSystem=u,hie(u,v)})}),a},r.prototype.getFilledRegions=function(t,e,a,i){for(var n=(t||[]).slice(),o=Ge(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function yie(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Sie(r);var n=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=bie(r,i,r.parentNode.hierNode.defaultAncestor||a[0],t)}function _ie(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function fP(r){return arguments.length?r:Aie}function Ov(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function xie(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Sie(r){for(var t=r.children,e=t.length,a=0,i=0;--e>=0;){var n=t[e];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function bie(r,t,e,a){if(t){for(var i=r,n=r,o=n.parentNode.children[0],s=t,l=i.hierNode.modifier,u=n.hierNode.modifier,v=o.hierNode.modifier,h=s.hierNode.modifier;s=Xm(s),n=Km(n),s&&n;){i=Xm(i),o=Km(o),i.hierNode.ancestor=r;var f=s.hierNode.prelim+h-n.hierNode.prelim-u+a(s,n);f>0&&(Tie(wie(s,r,e),r,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,v+=o.hierNode.modifier}s&&!Xm(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),n&&!Km(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-v,e=r)}return e}function Xm(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Km(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function wie(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Tie(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function Aie(r,t){return r.parentNode===t.parentNode?1:2}var Cie=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Mie=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cie},t.prototype.buildPath=function(e,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],l=i[n-1];if(n===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,v=u==="TB"||u==="BT"?0:1,h=1-v,f=Ie(a.forkPosition,1),c=[];c[v]=o[v],c[h]=o[h]+(l[h]-o[h])*f,e.moveTo(o[0],o[1]),e.lineTo(c[0],c[1]),e.moveTo(s[0],s[1]),c[v]=s[v],e.lineTo(c[0],c[1]),c[v]=l[v],e.lineTo(c[0],c[1]),e.lineTo(l[0],l[1]);for(var d=1;dy.x,S||(x=x-Math.PI));var w=S?"left":"right",A=s.getModel("label"),T=A.get("rotate"),C=T*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:A.get("position")||w,rotation:T==null?-x:C,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),D=L==="relative"?$l(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;D&&(Xe(e).focus=D),Lie(i,o,v,e,d,c,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var I=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===qh||Ld(e.__edge,P)}})}function Lie(r,t,e,a,i,n,o,s){var l=t.getModel(),u=r.get("edgeShape"),v=r.get("layout"),h=r.getOrient(),f=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new su({shape:qT(v,h,f,i,i)})),wt(p,{shape:qT(v,h,f,n,o)},r));else if(u==="polyline"&&v==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;ye&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,i=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,i=r.targetNode;if(Re(i)&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function n8(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function tM(r,t){var e=n8(r);return nt(e,t)>=0}function eg(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var Bie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},i=e.leaves||{},n=new Mt(i,this,this.ecModel),o=eM.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(f,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(f.parentModel=n),f})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=e.expandAndCollapse,v=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var f=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=f&&f.collapsed!=null?!f.collapsed:h.depth<=v}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=eg(i,this),a.collapsed=!i.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(zt);function Vie(r,t,e){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)e.push(i[n])}}function Gie(r,t){r.eachSeriesByType("tree",function(e){Fie(e,t)})}function Fie(r,t){var e=xie(r,t);r.layoutInfo=e;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(e.height,e.width)/2,o=fP(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(i=e.width,n=e.height,o=fP());var s=r.getData().tree.root,l=s.children[0];if(l){mie(s),Vie(l,yie,o),s.hierNode.modifier=-l.hierNode.prelim,tv(l,_ie);var u=l,v=l,h=l;tv(l,function(_){var x=_.getLayout().x;xv.getLayout().x&&(v=_),_.depth>h.depth&&(h=_)});var f=u===v?1:o(u,v)/2,c=f-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=i/(v.getLayout().x+f+c),p=n/(h.depth-1||1),tv(l,function(_){g=(_.getLayout().x+c)*d,m=(_.depth-1)*p;var x=Ov(g,m);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=n/(v.getLayout().x+f+c),d=i/(h.depth-1||1),tv(l,function(_){m=(_.getLayout().x+c)*p,g=y==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=i/(v.getLayout().x+f+c),p=n/(h.depth-1||1),tv(l,function(_){g=(_.getLayout().x+c)*d,m=y==="TB"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function Hie(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");_e(s,o)})})}function qie(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=t.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var n=i.coordinateSystem,o=jC(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Wie(r){r.registerChartView(Die),r.registerSeriesModel(Bie),r.registerLayout(Gie),r.registerVisual(Hie),qie(r)}var mP=["treemapZoomToNode","treemapRender","treemapMove"];function Uie(r){for(var t=0;t1;)n=n.parentNode;var o=_T(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var $ie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};s8(i);var n=e.levels||[],o=this.designatedVisualItemStyle={},s=new Mt({itemStyle:o},this,a);n=e.levels=Yie(n,a);var l=we(n||[],function(h){return new Mt(h,s,a)},this),u=eM.createTree(i,this,v);function v(h){h.wrapMethod("getItemModel",function(f,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return f.parentModel=p||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.getRawValue(e),s=n.getName(e);return Mr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=eg(i,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},_e(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=Ge(),this._idIndexMapCount=0);var i=a.get(e);return i==null&&a.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){o8(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(zt);function s8(r){var t=0;$(r.children,function(a){s8(a);var i=a.value;Se(i)&&(i=i[0]),t+=i});var e=r.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(r.value)?r.value[0]=e:r.value=e}function Yie(r,t){var e=Nt(t.get("color")),a=Nt(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,n;$(r,function(s){var l=new Mt(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!n&&a&&(o.decal=a.slice()),r}}var Zie=8,yP=8,Qm=5,Xie=(function(){function r(t){this.group=new Ze,t.add(this.group)}return r.prototype.render=function(t,e,a,i){var n=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),h={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(t,h,s,l,u,v,i),Fp(o,h.pos,h.box)}},r.prototype._prepare=function(t,e,a){for(var i=t;i;i=i.parentNode){var n=_r(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+Zie*2,e.emptyItemWidth);e.totalWidth+=s+yP,e.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(t,e,a,i,n,o,s){for(var l=0,u=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),h=MQ(e.pos,e.box),f=e.totalWidth,c=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=c.length-1;p>=0;p--){var g=c[p],m=g.node,y=g.width,_=g.text;f>h.width&&(f-=y-u,y=u,_=null);var x=new jr({shape:{points:Kie(l,0,y,v,p===c.length-1,p===0)},style:Ue(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new pt({style:Ht(n,{text:_})}),textConfig:{position:"inside"},z2:nu*1e4,onclick:et(s,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Ht(o,{text:_}),x.ensureState("emphasis").style=d,tr(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Qie(x,t,m),l+=y+yP}},r.prototype.remove=function(){this.group.removeAll()},r})();function Kie(r,t,e,a,i,n){var o=[[i?r:r-Qm,t],[r+e,t],[r+e,t+a],[i?r:r-Qm,t+a]];return!n&&o.splice(2,0,[r+e+Qm,t+a/2]),!i&&o.push([r,t+a/2]),o}function Qie(r,t,e){Xe(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&eg(e,t)}}var jie=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,i,n){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,n=this._storage.length;ixP||Math.abs(e.dy)>xP)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var a=e.originX,i=e.originY,n=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,v=this._controllerHost;u=v.zoomLimit;var h=v.zoom=v.zoom||1;if(h*=n,u){var f=u.min||0,c=u.max||1/0;h=Math.max(Math.min(c,h),f)}var d=h/v.zoom;v.zoom=h;var p=this.seriesModel.layoutInfo;a-=p.x,i-=p.y;var g=xa();yi(g,g,[-a,-i]),bp(g,g,[d,d]),yi(g,g,[a,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(n){var o=a.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&Od(u,v)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,i){var n=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Xie(this.group))).render(e,a,i.node,function(o){n._state!=="animating"&&(tM(e.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t})(kt);function rv(){return{nodeGroup:[],background:[],content:[]}}function ine(r,t,e,a,i,n,o,s,l,u){if(!o)return;var v=o.getLayout(),h=r.getData(),f=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var c=v.width,d=v.height,p=v.borderWidth,g=v.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,x=v.upperHeight,S=_&&_.length,b=f.getModel("itemStyle"),w=f.getModel(["emphasis","itemStyle"]),A=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,M=G("nodeGroup",WT);if(!M)return;if(l.add(M),M.x=v.x||0,M.y=v.y||0,M.markRedraw(),jd(M).nodeWidth=c,jd(M).nodeHeight=d,v.isAboveViewRoot)return M;var L=G("background",_P,u,tne);L&&F(M,L,S&&v.upperLabelHeight);var D=f.getModel("emphasis"),P=D.get("focus"),I=D.get("blurScope"),R=D.get("disabled"),E=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(S)gh(M)&&cs(M,!1),L&&(cs(L,!R),h.setItemGraphicEl(o.dataIndex,L),hT(L,E,I));else{var k=G("content",_P,u,rne);k&&V(M,k),L.disableMorphing=!0,L&&gh(L)&&cs(L,!1),cs(M,!R),h.setItemGraphicEl(o.dataIndex,M);var B=f.getShallow("cursor");B&&k.attr("cursor",B),hT(M,E,I)}return M;function F(U,W,Y){var X=Xe(W);if(X.dataIndex=o.dataIndex,X.seriesIndex=r.seriesIndex,W.setShape({x:0,y:0,width:c,height:d,r:C}),g)N(W);else{W.invisible=!1;var K=o.getVisual("style"),Q=K.stroke,j=wP(b);j.fill=Q;var te=rs(w);te.fill=w.get("borderColor");var Z=rs(A);Z.fill=A.get("borderColor");var ee=rs(T);if(ee.fill=T.get("borderColor"),Y){var le=c-2*p;O(W,Q,K.opacity,{x:p,y:0,width:le,height:x})}else W.removeTextContent();W.setStyle(j),W.ensureState("emphasis").style=te,W.ensureState("blur").style=Z,W.ensureState("select").style=ee,Is(W)}U.add(W)}function V(U,W){var Y=Xe(W);Y.dataIndex=o.dataIndex,Y.seriesIndex=r.seriesIndex;var X=Math.max(c-2*p,0),K=Math.max(d-2*p,0);if(W.culling=!0,W.setShape({x:p,y:p,width:X,height:K,r:C}),g)N(W);else{W.invisible=!1;var Q=o.getVisual("style"),j=Q.fill,te=wP(b);te.fill=j,te.decal=Q.decal;var Z=rs(w),ee=rs(A),le=rs(T);O(W,j,Q.opacity,null),W.setStyle(te),W.ensureState("emphasis").style=Z,W.ensureState("blur").style=ee,W.ensureState("select").style=le,Is(W)}U.add(W)}function N(U){!U.invisible&&n.push(U)}function O(U,W,Y,X){var K=f.getModel(X?bP:SP),Q=_r(f.get("name"),null),j=K.getShallow("show");Gr(U,Cr(f,X?bP:SP),{defaultText:j?Q:null,inheritColor:W,defaultOpacity:Y,labelFetcher:r,labelDataIndex:o.dataIndex});var te=U.getTextContent();if(te){var Z=te.style,ee=xp(Z.padding||0);X&&(U.setTextConfig({layoutRect:X}),te.disableLabelLayout=!0),te.beforeUpdate=function(){var oe=Math.max((X?X.width:U.shape.width)-ee[1]-ee[3],0),fe=Math.max((X?X.height:U.shape.height)-ee[0]-ee[2],0);(Z.width!==oe||Z.height!==fe)&&te.setStyle({width:oe,height:fe})},Z.truncateMinChar=2,Z.lineOverflow="truncate",z(Z,X,v);var le=te.getState("emphasis");z(le?le.style:null,X,v)}}function z(U,W,Y){var X=U?U.text:null;if(!W&&Y.isLeafRoot&&X!=null){var K=r.get("drillDownIcon",!0);U.text=K?K+" "+X:X}}function G(U,W,Y,X){var K=y!=null&&e[U][y],Q=i[U];return K?(e[U][y]=null,q(Q,K)):g||(K=new W,K instanceof Za&&(K.z2=nne(Y,X)),H(Q,K)),t[U][m]=K}function q(U,W){var Y=U[m]={};W instanceof WT?(Y.oldX=W.x,Y.oldY=W.y):Y.oldShape=_e({},W.shape)}function H(U,W){var Y=U[m]={},X=o.parentNode,K=W instanceof Ze;if(X&&(!a||a.direction==="drillDown")){var Q=0,j=0,te=i.background[X.getRawIndex()];!a&&te&&te.oldShape&&(Q=te.oldShape.width,j=te.oldShape.height),K?(Y.oldX=0,Y.oldY=j):Y.oldShape={x:Q,y:j,width:0,height:0}}Y.fadein=!K}}function nne(r,t){return r*ene+t}var Dh=$,one=$e,Jd=-1,Ar=(function(){function r(t){var e=t.mappingMethod,a=t.type,i=this.option=Ye(t);this.type=a,this.mappingMethod=e,this._normalizeData=une[e];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(jm(i),sne(i)):e==="category"?i.categories?lne(i):jm(i,!0):(Kr(e!=="linear"||i.dataExtent),jm(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Ne(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){$e(t)?$(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var i,n=Se(t)?[]:$e(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},a;return t&&Dh(r.visualHandlers,function(i,n){t.hasOwnProperty(n)&&(e[n]=t[n],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(Se(t))t=t.slice();else if(one(t)){var e=[];Dh(t,function(a,i){e.push(i)}),t=e}else return[];return t.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var i,n=1/0,o=0,s=e.length;o=0;n--)a[n]==null&&(delete e[t[n]],t.pop())}function jm(r,t){var e=r.visual,a=[];$e(e)?Dh(e,function(n){a.push(n)}):e!=null&&a.push(e);var i={color:1,symbol:1};!t&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),l8(r,a)}function vc(r){return{applyVisual:function(t,e,a){var i=this.mapValueToVisual(t);a("color",r(e("color"),i))},_normalizedToVisual:UT([0,1])}}function TP(r){var t=this.option.visual;return t[Math.round(Pt(r,[0,1],[0,t.length-1],!0))]||{}}function av(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Nv(r){var t=this.option.visual;return t[this.option.loop&&r!==Jd?r%t.length:r]}function as(){return this.option.visual[0]}function UT(r){return{linear:function(t){return Pt(t,r,this.option.visual,!0)},category:Nv,piecewise:function(t,e){var a=$T.call(this,e);return a==null&&(a=Pt(t,r,this.option.visual,!0)),a},fixed:as}}function $T(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Ar.findPieceIndex(r,e),i=e[a];if(i&&i.visual)return i.visual[this.type]}}function l8(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=we(t,function(e){var a=sa(e);return a||[0,0,0,1]})),t}var une={linear:function(r){return Pt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ar.findPieceIndex(r,t,!0);if(e!=null)return Pt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Jd:t},fixed:ir};function hc(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var m=pne(i,l,p,g,d,a);v8(p,m,e,a)}})}}}function fne(r,t,e){var a=_e({},t),i=e.designatedVisualItemStyle;return $(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function AP(r){var t=Jm(r,"color");if(t){var e=Jm(r,"colorAlpha"),a=Jm(r,"colorSaturation");return a&&(t=Vl(t,null,null,a)),e&&(t=hh(t,e)),t}}function cne(r,t){return t!=null?Vl(t,null,null,r):null}function Jm(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function dne(r,t,e,a,i,n){if(!(!n||!n.length)){var o=ey(t,"color")||i.color!=null&&i.color!=="none"&&(ey(t,"colorAlpha")||ey(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var v=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(v==="index"||v==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var f=new Ar(h);return u8(f).drColorMappingBy=v,f}}}function ey(r,t){var e=r.get(t);return Se(e)&&e.length?{name:t,range:e}:null}function pne(r,t,e,a,i,n){var o=_e({},t);if(i){var s=i.type,l=s==="color"&&u8(i).drColorMappingBy,u=l==="index"?a:l==="id"?n.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Lh=Math.max,ep=Math.min,CP=wr,rM=$,h8=["itemStyle","borderWidth"],gne=["itemStyle","gapWidth"],mne=["upperLabel","show"],yne=["upperLabel","height"];const _ne={seriesType:"treemap",reset:function(r,t,e,a){var i=e.getWidth(),n=e.getHeight(),o=r.option,s=dr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=Ie(CP(s.width,l[0]),i),v=Ie(CP(s.height,l[1]),n),h=a&&a.type,f=["treemapZoomToNode","treemapRootToNode"],c=Mh(a,f,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=n8(p);if(h!=="treemapMove"){var m=h==="treemapZoomToNode"?Ane(r,c,p,u,v):d?[d.width,d.height]:[u,v],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(x),f8(p,_,!1,0),x=p.getLayout(),rM(g,function(b,w){var A=(g[w+1]||p).getValue();b.setLayout(_e({dataExtent:[A,A],borderWidth:0,upperHeight:0},x))})}var S=r.getData().tree.root;S.setLayout(Cne(s,d,c),!0),r.setLayoutInfo(s),c8(S,new at(-s.x,-s.y,i,n),g,p,0)}};function f8(r,t,e,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),l=s.get(h8),u=s.get(gne)/2,v=d8(s),h=Math.max(l,v),f=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:v},!0),i=Lh(i-2*f,0),n=Lh(n-f-c,0);var d=i*n,p=xne(r,s,d,t,e,a);if(p.length){var g={x:f,y:c,width:i,height:n},m=ep(i,n),y=1/0,_=[];_.area=0;for(var x=0,S=p.length;x=0;l--){var u=i[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function Tne(r,t,e){for(var a=0,i=1/0,n=0,o=void 0,s=r.length;na&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Lh(u*a/l,l/(u*i)):1/0}function MP(r,t,e,a,i){var n=t===e.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=e[s[n]],v=t?r.area/t:0;(i||v>e[l[o]])&&(v=e[l[o]]);for(var h=0,f=r.length;hrT&&(u=rT),n=s}ua&&(a=t);var n=a%2?a+2:a+3;i=[];for(var o=0;o0&&(S[0]=-S[0],S[1]=-S[1]);var w=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(x[1],x[0]);h[0].8?"left":f[0]<-.8?"right":"center",p=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":n.x=-f[0]*m+v[0],n.y=-f[1]*y+v[1],d=f[0]>.8?"right":f[0]<-.8?"left":"center",p=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=m*w+v[0],n.y=v[1]+T,d=x[0]<0?"right":"left",n.originX=-m*w,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+T,d="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-m*w+h[0],n.y=h[1]+T,d=x[0]>=0?"right":"left",n.originX=m*w,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||d})}},t})(Ze),sM=(function(){function r(t){this.group=new Ze,this._LineCtor=t||oM}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=t,n||i.removeAll();var o=EP(t);t.diff(n).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(n,t,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=EP(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!Wne(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function EP(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Cr(t)}}function kP(r){return isNaN(r[0])||isNaN(r[1])}function ny(r){return r&&!kP(r[0])&&!kP(r[1])}var oy=[],sy=[],ly=[],pl=kr,uy=Jn,OP=Math.abs;function NP(r,t,e){for(var a=r[0],i=r[1],n=r[2],o=1/0,s,l=e*e,u=.1,v=.1;v<=.9;v+=.1){oy[0]=pl(a[0],i[0],n[0],v),oy[1]=pl(a[1],i[1],n[1],v);var h=OP(uy(oy,t)-l);h=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function vy(r,t){var e=[],a=uh,i=[[],[],[]],n=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[qi(u[0]),qi(u[1])],u[2]&&u.__original.push(qi(u[2])));var f=u.__original;if(u[2]!=null){if($r(i[0],f[0]),$r(i[1],f[2]),$r(i[2],f[1]),v&&v!=="none"){var c=Bv(s.node1),d=NP(i,f[0],c*t);a(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],a(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(h&&h!=="none"){var c=Bv(s.node2),d=NP(i,f[1],c*t);a(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],a(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}$r(u[0],i[0]),$r(u[1],i[2]),$r(u[2],i[1])}else{if($r(n[0],f[0]),$r(n[1],f[1]),$n(o,n[1],n[0]),Os(o,o),v&&v!=="none"){var c=Bv(s.node1);yd(n[0],n[0],o,c*t)}if(h&&h!=="none"){var c=Bv(s.node2);yd(n[1],n[1],o,-c*t)}$r(u[0],n[0]),$r(u[1],n[1])}})}function zP(r){return r.type==="view"}var Une=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var i=new jh,n=new sM,o=this.group;this._controller=new af(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},t.prototype.render=function(e,a,i){var n=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(zP(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):wt(u,v,e)}vy(e.getGraph(),zv(e));var h=e.getData();s.updateData(h);var f=e.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(e,a,i),clearTimeout(this._layoutTimeout);var c=e.forceLayout,d=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=e.get("layout");h.graph.eachNode(function(_){var x=_.dataIndex,S=_.getGraphicEl(),b=_.getModel();if(S){S.off("drag").off("dragend");var w=b.get("draggable");w&&S.on("drag",function(T){switch(p){case"force":c.warmUp(),!n._layouting&&n._startForceLayoutIteration(c,d),c.setFixed(x),h.setItemLayout(x,[S.x,S.y]);break;case"circular":h.setItemLayout(x,[S.x,S.y]),_.setLayout({fixed:!0},!0),nM(e,"symbolSize",_,[T.offsetX,T.offsetY]),n.updateLayout(e);break;default:h.setItemLayout(x,[S.x,S.y]),iM(e.getGraph(),e),n.updateLayout(e);break}}).on("dragend",function(){c&&c.setUnfixed(x)}),S.setDraggable(w,!!b.get("cursor"));var A=b.get(["emphasis","focus"]);A==="adjacency"&&(Xe(S).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var x=_.getGraphicEl(),S=_.getModel().get(["emphasis","focus"]);x&&S==="adjacency"&&(Xe(x).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=h.getLayout("cx"),y=h.getLayout("cy");h.graph.eachNode(function(_){y8(_,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var i=this;(function n(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(a?i._layoutTimeout=setTimeout(n,16):n())})})()},t.prototype._updateController=function(e,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,h){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(v,h)&&!jp(u,i,e)}),!zP(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){XC(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){KC(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),vy(e.getGraph(),zv(e)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),i=zv(e);a.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},t.prototype.updateLayout=function(e){vy(e.getGraph(),zv(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(kt);function gl(r){return"_EC_"+r}var $ne=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[gl(t)]){var i=new is(t,e);return i.hostGraph=this,this.nodes.push(i),a[gl(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[gl(t)]},r.prototype.addEdge=function(t,e,a){var i=this._nodesMap,n=this._edgesMap;if(bt(t)&&(t=this.nodes[t]),bt(e)&&(e=this.nodes[e]),t instanceof is||(t=i[gl(t)]),e instanceof is||(e=i[gl(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new x8(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof is&&(t=t.id),e instanceof is&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,i=a.length,n=0;n=0&&t.call(e,a[n],n)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,i=a.length,n=0;n=0&&a[n].node1.dataIndex>=0&&a[n].node2.dataIndex>=0&&t.call(e,a[n],n)},r.prototype.breadthFirstTraverse=function(t,e,a,i){if(e instanceof is||(e=this._nodesMap[gl(e)]),!!e){for(var n=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}nr(is,S8("hostGraph","data"));nr(x8,S8("hostGraph","edgeData"));function b8(r,t,e,a,i){for(var n=new $ne(a),o=0;o "+f)),u++)}var c=e.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=Qi(r,e);else{var p=pu.get(c),g=p?p.dimensions||[]:[];nt(g,"value")<0&&g.concat(["value"]);var m=_u(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Xr(m,e),d.initData(r)}var y=new Xr(["value"],e);return y.initData(l,s),i&&i(d,y),a8({mainData:d,struct:n,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var Yne=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new rf(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ms(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=this;if(n&&i){Ene(this);var s=b8(n,i,this,!0,l);return $(s.edges,function(u){kne(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),m=p[g];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var h=Mt.prototype.getModel;function f(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}v.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=f,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(e,i),s=n.graph.getEdgeByIndex(e),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Mr("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var h=aU({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=we(this.option.categories||[],function(i){return i.value!=null?i:_e({value:0},i)}),a=new Xr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(zt),Zne={type:"graphRoam",event:"graphRoam",update:"none"};function Xne(r){r.registerChartView(Une),r.registerSeriesModel(Yne),r.registerProcessor(Dne),r.registerVisual(Lne),r.registerVisual(Ine),r.registerLayout(One),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,zne),r.registerLayout(Vne),r.registerCoordinateSystem("graphView",{dimensions:nf.dimensions,create:Fne}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ir),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ir),r.registerAction(Zne,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(i){var n=i.coordinateSystem,o=jC(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Kne=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),Qne=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new Kne},t.prototype.buildPath=function(e,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),v=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,v),e.lineTo(a.x+i(l)*s,a.y+n(l)*s),e.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),e.lineTo(a.x-i(l)*s,a.y-n(l)*s),e.lineTo(u,v)},t})(ht);function jne(r,t){var e=r.get("center"),a=t.getWidth(),i=t.getHeight(),n=Math.min(a,i),o=Ie(e[0],t.getWidth()),s=Ie(e[1],t.getHeight()),l=Ie(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function cc(r,t){var e=r==null?"":r+"";return t&&(Re(t)?e=t.replace("{value}",e):He(t)&&(e=t(r))),e}var Jne=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this.group.removeAll();var n=e.get(["axisLine","lineStyle","color"]),o=jne(e,i);this._renderMain(e,a,i,n,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,i,n,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,v=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),f=h.get("roundCap"),c=f?Xd:Qr,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),m=[u,v];XA(m,!l),u=m[0],v=m[1];for(var y=v-u,_=u,x=[],S=0;d&&S=T&&(C===0?0:n[C-1][0])Math.PI/2&&(z+=Math.PI)):O==="tangential"?z=-A-Math.PI/2:bt(O)&&(z=O*Math.PI/180),z===0?h.add(new pt({style:Ht(_,{text:B,x:V,y:N,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new pt({style:Ht(_,{text:B,x:V,y:N,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:V,originY:N,rotation:z}))}if(y.get("show")&&R!==x){var E=y.get("distance");E=E?E+v:v;for(var G=0;G<=S;G++){P=Math.cos(A),I=Math.sin(A);var q=new xr({shape:{x1:P*(d-E)+f,y1:I*(d-E)+c,x2:P*(d-w-E)+f,y2:I*(d-w-E)+c},silent:!0,style:L});L.stroke==="auto"&&q.setStyle({stroke:n((R+G/S)/x)}),h.add(q),A+=C}A-=C}else A+=T}},t.prototype._renderPointer=function(e,a,i,n,o,s,l,u,v){var h=this.group,f=this._data,c=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),y=e.getData(),_=y.mapDimension("value"),x=+e.get("min"),S=+e.get("max"),b=[x,S],w=[s,l];function A(C,M){var L=y.getItemModel(C),D=L.getModel("pointer"),P=Ie(D.get("width"),o.r),I=Ie(D.get("length"),o.r),R=e.get(["pointer","icon"]),E=D.get("offsetCenter"),k=Ie(E[0],o.r),B=Ie(E[1],o.r),F=D.get("keepAspect"),V;return R?V=lr(R,k-P/2,B-I,P,I,null,F):V=new Qne({shape:{angle:-Math.PI/2,width:P,r:I,x:k,y:B}}),V.rotation=-(M+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function T(C,M){var L=g.get("roundCap"),D=L?Xd:Qr,P=g.get("overlap"),I=P?g.get("width"):v/y.count(),R=P?o.r-I:o.r-(C+1)*I,E=P?o.r:o.r-C*I,k=new D({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:E}});return P&&(k.z2=Pt(y.get(_,C),[x,S],[100,0],!0)),k}(m||p)&&(y.diff(f).add(function(C){var M=y.get(_,C);if(p){var L=A(C,s);$t(L,{rotation:-((isNaN(+M)?w[0]:Pt(M,b,w,!0))+Math.PI/2)},e),h.add(L),y.setItemGraphicEl(C,L)}if(m){var D=T(C,s),P=g.get("clip");$t(D,{shape:{endAngle:Pt(M,b,w,P)}},e),h.add(D),lT(e.seriesIndex,y.dataType,C,D),d[C]=D}}).update(function(C,M){var L=y.get(_,C);if(p){var D=f.getItemGraphicEl(M),P=D?D.rotation:s,I=A(C,P);I.rotation=P,wt(I,{rotation:-((isNaN(+L)?w[0]:Pt(L,b,w,!0))+Math.PI/2)},e),h.add(I),y.setItemGraphicEl(C,I)}if(m){var R=c[M],E=R?R.shape.endAngle:s,k=T(C,E),B=g.get("clip");wt(k,{shape:{endAngle:Pt(L,b,w,B)}},e),h.add(k),lT(e.seriesIndex,y.dataType,C,k),d[C]=k}}).execute(),y.each(function(C){var M=y.getItemModel(C),L=M.getModel("emphasis"),D=L.get("focus"),P=L.get("blurScope"),I=L.get("disabled");if(p){var R=y.getItemGraphicEl(C),E=y.getItemVisual(C,"style"),k=E.fill;if(R instanceof Dr){var B=R.style;R.useStyle(_e({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},E))}else R.useStyle(E),R.type!=="pointer"&&R.setColor(k);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",n(Pt(y.get(_,C),b,[0,1],!0))),R.z2EmphasisLift=0,Vr(R,M),tr(R,D,P,I)}if(m){var F=d[C];F.useStyle(y.getItemVisual(C,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,Vr(F,M),tr(F,D,P,I)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var i=e.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),v=lr(s,a.cx-o/2+Ie(l[0],a.r),a.cy-o/2+Ie(l[1],a.r),o,o,null,u);v.z2=i.get("showAbove")?1:0,v.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(v)}},t.prototype._renderTitleAndDetail=function(e,a,i,n,o){var s=this,l=e.getData(),u=l.mapDimension("value"),v=+e.get("min"),h=+e.get("max"),f=new Ze,c=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){c[m]=new pt({silent:!0}),d[m]=new pt({silent:!0})}).update(function(m,y){c[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),x=new Ze,S=n(Pt(_,[v,h],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),A=o.cx+Ie(w[0],o.r),T=o.cy+Ie(w[1],o.r),C=c[m];C.attr({z2:g?0:2,style:Ht(b,{x:A,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var M=y.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),D=o.cx+Ie(L[0],o.r),P=o.cy+Ie(L[1],o.r),I=Ie(M.get("width"),o.r),R=Ie(M.get("height"),o.r),E=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,C=d[m],k=M.get("formatter");C.attr({z2:g?0:2,style:Ht(M,{x:D,y:P,text:cc(_,k),width:isNaN(I)?null:I,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:E})}),vW(C,{normal:M},_,function(F){return cc(F,k)}),p&&hW(C,m,l,e,{getFormattedLabel:function(F,V,N,O,z,G){return cc(G?G.interpolatedValue:_,k)}}),x.add(C)}f.add(x)}),this.group.add(f),this._titleEls=c,this._detailEls=d},t.type="gauge",t})(kt),eoe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return bu(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(zt);function toe(r){r.registerChartView(Jne),r.registerSeriesModel(eoe)}var roe=["itemStyle","opacity"],aoe=(function(r){he(t,r);function t(e,a){var i=r.call(this)||this,n=i,o=new ea,s=new pt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,a,!0),i}return t.prototype.updateData=function(e,a,i){var n=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),v=s.get(roe);v=v==null?1:v,i||xi(n),n.useStyle(e.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,$t(n,{style:{opacity:v}},o,a)):wt(n,{style:{opacity:v},shape:{points:l.points}},o,a),Vr(n,s),this._updateLabel(e,a),tr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),v=u.label,h=e.getItemVisual(a,"style"),f=h.fill;Gr(o,Cr(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),i.setTextConfig({local:!0,inside:!!v.inside,insideStroke:f,outsideFill:f});var c=v.linePoints;n.setShape({points:c}),i.textGuideLineConfig={anchor:c?new rt(c[0][0],c[0][1]):null},wt(o,{style:{x:v.x,y:v.y}},s,a),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),WC(i,UC(l),{stroke:f})},t})(jr),ioe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new aoe(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(n,l),s.add(v),n.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);mh(u,e,l)}).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(kt),noe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return bu(this,{coordDimensions:["value"],encodeDefaulter:et(yC,this)})},t.prototype._defaultLabelLine=function(e){Ms(e,"labelLine",["show"]);var a=e.labelLine,i=e.emphasis.labelLine;a.show=a.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),i=r.prototype.getDataParams.call(this,e),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(zt);function ooe(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function soe(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),i=[],n=t==="ascending",o=0,s=r.count();owoe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!fy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function fy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var Coe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&tt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var i=e.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){$(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],i=Ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);$(i,function(n){e.push("dim"+n.get("dim")),a.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(ut),Moe=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(Ja);function qs(r,t,e,a,i,n){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ml(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=ml(s,[0,o]),i=n=ml(s,[i,n]),a=0}t[0]=ml(t[0],e),t[1]=ml(t[1],e);var l=cy(t,a);t[a]+=r;var u=i||0,v=e.slice();l.sign<0?v[0]+=u:v[1]-=u,t[a]=ml(t[a],v);var h;return h=cy(t,a),i!=null&&(h.sign!==l.sign||h.spann&&(t[1-a]=t[a]+h.sign*n),t}function cy(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ml(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var dy=$,T8=Math.min,A8=Math.max,GP=Math.floor,Doe=Math.ceil,FP=ar,Loe=Math.PI,Ioe=(function(){function r(t,e,a){this.type="parallel",this._axesMap=Ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var i=t.dimensions,n=t.parallelAxisIndex;dy(i,function(o,s){var l=n[s],u=e.getComponent("parallelAxis",l),v=this._axesMap.set(o,new Moe(o,Kh(u),[0,0],u.get("type"),l)),h=v.type==="category";v.onBand=h&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,i=e.layoutBase,n=e.pixelDimIndex,o=t[1-n],s=t[n];return o>=a&&o<=a+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var i=a.getData();dy(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Rs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=dr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],i=["width","height"],n=t.get("layout"),o=n==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,v=dc(t.get("axisExpandWidth"),l),h=dc(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>h&&h>1&&v>0&&s>0,c=t.get("axisExpandWindow"),d;if(c)d=dc(c[1]-c[0],l),c[1]=c[0]+d;else{d=dc(v*(h-1),l);var p=t.get("axisExpandCenter")||GP(u/2);c=[v*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var m=[GP(FP(c[0]/v,1))+1,Doe(FP(c[1]/v,1))-1],y=g/v*c[0];return{layout:n,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[i[1-o]],axisExpandable:f,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),dy(a,function(o,s){var l=(i.axisExpandable?Roe:Poe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},v={horizontal:Loe/2,vertical:0},h=[u[n].x+t.x,u[n].y+t.y],f=v[n],c=xa();co(c,c,f),yi(c,c,h),this._axesLayout[o]={position:h,rotation:f,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,i){a==null&&(a=0),i==null&&(i=t.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];$(o,function(g){s.push(t.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),v=a;vn*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/v,l?qs(l,i,o,"all"):u="none";else{var c=i[1]-i[0],d=o[1]*s/c;i=[A8(0,d-c/2)],i[1]=T8(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r})();function dc(r,t){return T8(A8(r,t[0]),t[1])}function Poe(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function Roe(r,t){var e=t.layoutLength,a=t.axisExpandWidth,i=t.axisCount,n=t.axisCollapseWidth,o=t.winInnerIndices,s,l=n,u=!1,v;return r=0;i--)Ta(a[i])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,o=a.length;nzoe}function P8(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function R8(r,t,e,a){var i=new Ze;return i.add(new gt({name:"main",style:fM(e),silent:!0,draggable:!0,cursor:"move",drift:et(WP,r,t,i,["n","s","w","e"]),ondragend:et(ks,t,{isEnd:!0})})),$(a,function(n){i.add(new gt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(WP,r,t,i,n),ondragend:et(ks,t,{isEnd:!0})}))}),i}function E8(r,t,e,a){var i=a.brushStyle.lineWidth||0,n=eu(i,Boe),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,v=e[0][1],h=e[1][1],f=v-n+i/2,c=h-n+i/2,d=v-o,p=h-s,g=d+i,m=p+i;sn(r,t,"main",o,s,d,p),a.transformable&&(sn(r,t,"w",l,u,n,m),sn(r,t,"e",f,u,n,m),sn(r,t,"n",l,u,g,n),sn(r,t,"s",l,c,g,n),sn(r,t,"nw",l,u,n,n),sn(r,t,"ne",f,u,n,n),sn(r,t,"sw",l,c,n,n),sn(r,t,"se",f,c,n,n))}function jT(r,t){var e=t.__brushOption,a=e.transformable,i=t.childAt(0);i.useStyle(fM(e)),i.attr({silent:!a,cursor:a?"move":"default"}),$([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=t.childOfName(n.join("")),s=n.length===1?JT(r,n[0]):Woe(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?Goe[s]+"-resize":null})})}function sn(r,t,e,a,i,n,o){var s=t.childOfName(e);s&&s.setShape($oe(cM(r,t,[[a,i],[a+n,i+o]])))}function fM(r){return Ue({strokeNoScale:!0},r.brushStyle)}function k8(r,t,e,a){var i=[Ph(r,e),Ph(t,a)],n=[eu(r,e),eu(t,a)];return[[i[0],n[0]],[i[1],n[1]]]}function qoe(r){return ro(r.group)}function JT(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=Op(e[t],qoe(r));return a[i]}function Woe(r,t){var e=[JT(r,t[0]),JT(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function WP(r,t,e,a,i,n){var o=e.__brushOption,s=r.toRectRange(o.range),l=O8(t,i,n);$(a,function(u){var v=Voe[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=r.fromRectRange(k8(s[0][0],s[1][0],s[0][1],s[1][1])),uM(t,e),ks(t,{isEnd:!1})}function Uoe(r,t,e,a){var i=t.__brushOption.range,n=O8(r,e,a);$(i,function(o){o[0]+=n[0],o[1]+=n[1]}),uM(r,t),ks(r,{isEnd:!1})}function O8(r,t,e){var a=r.group,i=a.transformCoordToLocal(t,e),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function cM(r,t,e){var a=I8(r,t);return a&&a!==Es?a.clipPath(e,r._transform):Ye(e)}function $oe(r){var t=Ph(r[0][0],r[1][0]),e=Ph(r[0][1],r[1][1]),a=eu(r[0][0],r[1][0]),i=eu(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:i-e}}function Yoe(r,t,e){if(!(!r._brushType||Xoe(r,t.offsetX,t.offsetY))){var a=r._zr,i=r._covers,n=hM(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var rg={lineX:YP(0),lineY:YP(1),rect:{createCover:function(r,t){function e(a){return a}return R8({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=P8(r);return k8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){E8(r,t,e,a)},updateCommon:jT,contain:tA},polygon:{createCover:function(r,t){var e=new Ze;return e.add(new ea({name:"main",style:fM(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new jr({name:"main",draggable:!0,drift:et(Uoe,r,t),ondragend:et(ks,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:cM(r,t,e)})},updateCommon:jT,contain:tA}};function YP(r){return{createCover:function(t,e){return R8({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=P8(t),a=Ph(e[0][r],e[1][r]),i=eu(e[0][r],e[1][r]);return[a,i]},updateCoverShape:function(t,e,a,i){var n,o=I8(t,e);if(o!==Es&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=t._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),E8(t,e,l,i)},updateCommon:jT,contain:tA}}function z8(r){return r=dM(r),function(t){return oC(t,r)}}function B8(r,t){return r=dM(r),function(e){var a=t!=null?t:e,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function V8(r,t,e){var a=dM(r);return function(i,n){return a.contain(n[0],n[1])&&!jp(i,t,e)}}function dM(r){return at.create(r)}var Koe=["axisLine","axisTickLabel","axisName"],Qoe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new lM(a.getZr())).on("brush",Ne(this._onBrush,this))},t.prototype.render=function(e,a,i,n){if(!joe(e,a,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ze,this.group.add(this._axisGroup),!!e.get("show")){var s=ese(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),v=u.width,h=e.axis.dim,f=l.getAxisLayout(h),c=_e({strokeContainThreshold:v},f),d=new la(e,c);$(Koe,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,e,s,v,i),Yh(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),h=at.create({x:l[0],y:-o/2,width:u,height:o});h.x-=v,h.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:z8(h),isTargetByCursor:V8(h,s,n),getLinearBrushOtherExtent:B8(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Joe(i))},t.prototype._onBrush=function(e){var a=e.areas,i=this.axisModel,n=i.axis,o=we(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(Wt);function joe(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Joe(r){var t=r.axis;return we(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function ese(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var tse={type:"axisAreaSelect",event:"axisAreaSelected"};function rse(r){r.registerAction(tse,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var ase={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function G8(r){r.registerComponentView(Toe),r.registerComponentModel(Coe),r.registerCoordinateSystem("parallel",koe),r.registerPreprocessor(xoe),r.registerComponentModel(KT),r.registerComponentView(Qoe),Jl(r,"parallel",KT,ase),rse(r)}function ise(r){ot(G8),r.registerChartView(foe),r.registerSeriesModel(poe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,_oe)}var nse=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),ose=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new nse},t.prototype.buildPath=function(e,a){var i=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+i,a.y2),e.bezierCurveTo(a.cpx2+i,a.cpy2,a.cpx1+i,a.cpy1,a.x1+i,a.y1)):(e.lineTo(a.x2,a.y2+i),e.bezierCurveTo(a.cpx2,a.cpy2+i,a.cpx1,a.cpy1+i,a.x1,a.y1+i)),e.closePath()},t.prototype.highlight=function(){xn(this)},t.prototype.downplay=function(){Sn(this)},t})(ht),sse=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,a,i){var n=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,v=l.height,h=e.getData(),f=e.getData("edge"),c=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new ose,g=Xe(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var m=d.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),x=d.node1.getLayout(),S=d.node1.getModel(),b=S.get("localX"),w=S.get("localY"),A=d.node2.getLayout(),T=d.node2.getModel(),C=T.get("localX"),M=T.get("localY"),L=d.getLayout(),D,P,I,R,E,k,B,F;p.shape.extent=Math.max(1,L.dy),p.shape.orient=c,c==="vertical"?(D=(b!=null?b*u:x.x)+L.sy,P=(w!=null?w*v:x.y)+x.dy,I=(C!=null?C*u:A.x)+L.ty,R=M!=null?M*v:A.y,E=D,k=P*(1-_)+R*_,B=I,F=P*_+R*(1-_)):(D=(b!=null?b*u:x.x)+x.dx,P=(w!=null?w*v:x.y)+L.sy,I=C!=null?C*u:A.x,R=(M!=null?M*v:A.y)+L.ty,E=D*(1-_)+I*_,k=P,B=D*_+I*(1-_),F=R),p.setShape({x1:D,y1:P,x2:I,y2:R,cpx1:E,cpy1:k,cpx2:B,cpy2:F}),p.useStyle(y.getItemStyle()),ZP(p.style,c,d);var V=""+m.get("value"),N=Cr(m,"edgeLabel");Gr(p,N,{labelFetcher:{getFormattedLabel:function(G,q,H,U,W,Y){return e.getFormattedLabel(G,q,"edge",U,ci(W,N.normal&&N.normal.get("formatter"),V),Y)}},labelDataIndex:d.dataIndex,defaultText:V}),p.setTextConfig({position:"inside"});var O=m.getModel("emphasis");Vr(p,m,"lineStyle",function(G){var q=G.getItemStyle();return ZP(q,c,d),q}),s.add(p),f.setItemGraphicEl(d.dataIndex,p);var z=O.get("focus");tr(p,z==="adjacency"?d.getAdjacentDataIndices():z==="trajectory"?d.getTrajectoryDataIndices():z,O.get("blurScope"),O.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),m=g.get("localX"),y=g.get("localY"),_=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,S=new gt({shape:{x:m!=null?m*u:p.x,y:y!=null?y*v:p.y,width:p.dx,height:p.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});Gr(S,Cr(g),{labelFetcher:{getFormattedLabel:function(w,A){return e.getFormattedLabel(w,A,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),Vr(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),Xe(S).dataType="node";var b=_.get("focus");tr(S,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(m,y){n._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/v})},d.ondragend=function(){n._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(lse(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(kt);function ZP(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),i=e.node2.getVisual("color");Re(a)&&Re(i)&&(r.fill=new lu(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:i,offset:1}]))}}function lse(r,t,e){var a=new gt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return $t(a,{shape:{width:r.width+20}},t,e),a}var use=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Mt(o[l],this,a));var u=b8(n,i,this,!0,v);return u.data;function v(h,f){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var m=g.depth,y=p.levelModels[m];y&&(c.parentModel=y)}return c}),f.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(c.parentModel=_)}return c})}},t.prototype.setNodePosition=function(e,a){var i=this.option.data||this.option.nodes,n=i[e];n.localX=a[0],n.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,i){function n(c){return isNaN(c)||c==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Mr("nameValue",{name:u,value:l,noValue:n(l)})}else{var v=this.getGraph().getNodeByIndex(e),h=v.getLayout().value,f=this.getDataParams(e,i).data.name;return Mr("nameValue",{name:f!=null?f+"":null,value:h,noValue:n(h)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var i=r.prototype.getDataParams.call(this,e,a);if(i.value==null&&a==="node"){var n=this.getGraph().getNodeByIndex(e),o=n.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t})(zt);function vse(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),i=e.get("nodeGap"),n=hse(e,t);e.layoutInfo=n;var o=n.width,s=n.height,l=e.getGraph(),u=l.nodes,v=l.edges;cse(u);var h=Ct(u,function(p){return p.getLayout().value===0}),f=h.length!==0?0:e.get("layoutIterations"),c=e.get("orient"),d=e.get("nodeAlign");fse(u,v,a,i,o,s,f,c,d)})}function hse(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function fse(r,t,e,a,i,n,o,s,l){dse(r,t,e,i,n,s,l),yse(r,t,n,i,a,o,s),Mse(r,s)}function cse(r){$(r,function(t){var e=no(t.outEdges,tp),a=no(t.inEdges,tp),i=t.getValue()||0,n=Math.max(e,a,i);t.setLayout({value:n},!0)})}function dse(r,t,e,a,i,n,o){for(var s=[],l=[],u=[],v=[],h=0,f=0;f=0;m&&g.depth>c&&(c=g.depth),p.setLayout({depth:m?g.depth:h},!0),n==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var y=0;yh-1?c:h-1;o&&o!=="left"&&pse(r,o,n,w);var A=n==="vertical"?(i-e)/w:(a-e)/w;mse(r,A,n)}function F8(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function pse(r,t,e,a){if(t==="right"){for(var i=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,Sse(s,l,o),py(s,i,e,a,o),Cse(s,l,o),py(s,i,e,a,o)}function _se(r,t){var e=[],a=t==="vertical"?"y":"x",i=iT(r,function(n){return n.getLayout()[a]});return i.keys.sort(function(n,o){return n-o}),$(i.keys,function(n){e.push(i.buckets.get(n))}),e}function xse(r,t,e,a,i,n){var o=1/0;$(r,function(s){var l=s.length,u=0;$(s,function(h){u+=h.getLayout().value});var v=n==="vertical"?(a-(l-1)*i)/u:(e-(l-1)*i)/u;v0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]+l.getLayout()[f]+t;var d=i==="vertical"?a:e;if(u=v-t-d,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[n]+l.getLayout()[f]+t-v,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]}})}function Sse(r,t,e){$(r.slice().reverse(),function(a){$(a,function(i){if(i.outEdges.length){var n=no(i.outEdges,bse,e)/no(i.outEdges,tp);if(isNaN(n)){var o=i.outEdges.length;n=o?no(i.outEdges,wse,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(n-vo(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-vo(i,e))*t;i.setLayout({y:l},!0)}}})})}function bse(r,t){return vo(r.node2,t)*r.getValue()}function wse(r,t){return vo(r.node2,t)}function Tse(r,t){return vo(r.node1,t)*r.getValue()}function Ase(r,t){return vo(r.node1,t)}function vo(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function tp(r){return r.getValue()}function no(r,t,e){for(var a=0,i=r.length,n=-1;++no&&(o=l)}),$(a,function(s){var l=new Ar({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&$(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Lse(r){r.registerChartView(sse),r.registerSeriesModel(use),r.registerLayout(vse),r.registerVisual(Dse),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var H8=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,i=e.getComponent("xAxis",this.get("xAxisIndex")),n=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(t.layout="horizontal",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],v=t.layout==="horizontal"?0:1,h=this._baseAxisDim=u[v],f=u[1-v],c=[i,n],d=c[v].get("type"),p=c[1-v].get("type"),g=t.data;if(g&&l){var m=[];$(g,function(x,S){var b;Se(x)?(b=x.slice(),x.unshift(S)):Se(x.value)?(b=_e({},x),b.value=b.value.slice(),x.value.unshift(S)):b=x,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:h,type:Ud(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Ud(p),dimsDef:y.slice()}];return bu(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:et(IW,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),q8=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(zt);nr(q8,H8,!0);var Ise=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var v=n.getItemLayout(u),h=XP(v,n,u,l,!0);n.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,v){var h=s.getItemGraphicEl(v);if(!n.hasValue(u)){o.remove(h);return}var f=n.getItemLayout(u);h?(xi(h),W8(f,h,n,u)):h=XP(f,n,u,l),o.add(h),n.setItemGraphicEl(u,h)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=n},t.prototype.remove=function(e){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},t.type="boxplot",t})(kt),Pse=(function(){function r(){}return r})(),Rse=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new Pse},t.prototype.buildPath=function(e,a){var i=a.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();np){var x=[m,_];a.push(x)}}}return{boxData:e,outliers:a}}var Vse={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Jr){var a="";Rt(a)}var i=Bse(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Gse(r){r.registerSeriesModel(q8),r.registerChartView(Ise),r.registerLayout(kse),r.registerTransform(Vse)}var Fse=["itemStyle","borderColor"],Hse=["itemStyle","borderColor0"],qse=["itemStyle","borderColorDoji"],Wse=["itemStyle","color"],Use=["itemStyle","color0"];function pM(r,t){return t.get(r>0?Wse:Use)}function gM(r,t){return t.get(r===0?qse:r>0?Fse:Hse)}var $se={seriesType:"candlestick",plan:gu(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,i){for(var n;(n=a.next())!=null;){var o=i.getItemModel(n),s=i.getItemLayout(n).sign,l=o.getItemStyle();l.fill=pM(s,o),l.stroke=gM(s,o)||l.fill;var u=i.ensureUniqueItemVisual(n,"style");_e(u,l)}}}}}},Yse=["color","borderColor"],Zse=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),i=this._data,n=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),a.diff(i).add(function(v){if(a.hasValue(v)){var h=a.getItemLayout(v);if(s&&KP(u,h))return;var f=gy(h,v,!0);$t(f,{shape:{points:h.ends}},e,v),my(f,a,v,o),n.add(f),a.setItemGraphicEl(v,f)}}).update(function(v,h){var f=i.getItemGraphicEl(h);if(!a.hasValue(v)){n.remove(f);return}var c=a.getItemLayout(v);if(s&&KP(u,c)){n.remove(f);return}f?(wt(f,{shape:{points:c.ends}},e,v),xi(f)):f=gy(c),my(f,a,v,o),n.add(f),a.setItemGraphicEl(v,f)}).remove(function(v){var h=i.getItemGraphicEl(v);h&&n.remove(h)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),QP(e,this.group);var a=e.get("clip",!0)?Jh(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var i=a.getData(),n=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=gy(s);my(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){QP(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(kt),Xse=(function(){function r(){}return r})(),Kse=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new Xse},t.prototype.buildPath=function(e,a){var i=a.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t})(ht);function gy(r,t,e){var a=r.ends;return new Kse({shape:{points:e?Qse(a,r):a},z2:100})}function KP(r,t){for(var e=!0,a=0;aS?M[n]:C[n],ends:P,brushRect:B(b,w,_)})}function E(V,N){var O=[];return O[i]=N,O[n]=V,isNaN(N)||isNaN(V)?[NaN,NaN]:t.dataToPoint(O)}function k(V,N,O){var z=N.slice(),G=N.slice();z[i]=ad(z[i]+a/2,1,!1),G[i]=ad(G[i]-a/2,1,!0),O?V.push(z,G):V.push(G,z)}function B(V,N,O){var z=E(V,O),G=E(N,O);return z[i]-=a/2,G[i]-=a/2,{x:z[0],y:z[1],width:a,height:G[1]-z[1]}}function F(V){return V[i]=ad(V[i],1),V}}function d(p,g){for(var m=Fi(p.count*4),y=0,_,x=[],S=[],b,w=g.getStore(),A=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var T=w.get(s,b),C=w.get(u,b),M=w.get(v,b),L=w.get(h,b),D=w.get(f,b);if(isNaN(T)||isNaN(L)||isNaN(D)){m[y++]=NaN,y+=3;continue}m[y++]=jP(w,b,C,M,v,A),x[i]=T,x[n]=L,_=t.dataToPoint(x,null,S),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,x[n]=D,_=t.dataToPoint(x,null,S),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function jP(r,t,e,a,i,n){var o;return e>a?o=-1:e0?r.get(i,t-1)<=a?1:-1:1,o}function tle(r,t){var e=r.getBaseAxis(),a,i=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),n=Ie(Je(r.get("barMaxWidth"),i),i),o=Ie(Je(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,n),o)}function rle(r){r.registerChartView(Zse),r.registerSeriesModel(U8),r.registerPreprocessor(Jse),r.registerVisual($se),r.registerLayout(ele)}function JP(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var ale=(function(r){he(t,r);function t(e,a){var i=r.call(this)||this,n=new Qh(e,a),o=new Ze;return i.add(n),i.add(o),i.updateData(e,a),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,i=e.color,n=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var f=void 0;He(h)?f=h(i):f=h,n.__t>0&&(f=-s*n.__t),this._animateSymbol(n,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,i,n,o){if(a>0){e.__t=0;var s=this,l=e.animate("",n).when(o?a*2:a,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});n||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return fn(e.__p1,e.__cp1)+fn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,i){this.childAt(0).updateData(e,a,i),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=kr,v=Hw;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var h=e.__t<1?v(a[0],n[0],i[0],o):v(i[0],n[0],a[0],1-o),f=e.__t<1?v(a[1],n[1],i[1],o):v(i[1],n[1],a[1],1-o);e.rotation=-Math.atan2(f,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(n[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var v=(a-n[l])/(n[l+1]-n[l]),h=i[l],f=i[l+1];e.x=h[0]*(1-v)+v*f[0],e.y=h[1]*(1-v)+v*f[1];var c=e.__t<1?f[0]-h[0]:h[0]-f[0],d=e.__t<1?f[1]-h[1]:h[1]-f[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t})($8),lle=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),ule=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lle},t.prototype.buildPath=function(e,a){var i=a.segs,n=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(i[o++],i[o++]);for(var l=1;l0){var c=(u+h)/2-(v-f)*n,d=(v+f)/2-(h-u)*n;e.quadraticCurveTo(c,d,h,f)}else e.lineTo(h,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var h=n[u++],f=n[u++],c=1;c0){var g=(h+d)/2-(f-p)*o,m=(f+p)/2-(d-h)*o;if(Eq(h,f,g,m,d,p,s,e,a))return l}else if(qn(h,f,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(e=i[0],a=i[1],n.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,i=a.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Z8={seriesType:"lines",plan:gu(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,l=i.end-i.start;if(e){for(var u=0,v=i.start;v0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var h=e.get("clip",!0)&&Jh(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,i){var n=e.getData(),o=this._updateLineDraw(n,e);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,i){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Z8.reset(e,a,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,a){var i=this._lineDraw,n=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new vle:new sM(o?n?sle:Y8:n?$8:oM),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),i=a.painter.getType()==="svg";!i&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t})(kt),fle=typeof Uint32Array>"u"?Array:Uint32Array,cle=typeof Float64Array>"u"?Array:Float64Array;function eR(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=we(t,function(e){var a=[e[0].coord,e[1].coord],i={coords:a};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),yp([i,e[0],e[1]])}))}var dle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],eR(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(eR(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=$l(this._flatCoords,a.flatCoords),this._flatCoordsOffset=$l(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),i=a.option instanceof Array?a.option:a.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(zt);function pc(r){return r instanceof Array||(r=[r,r]),r}var ple={seriesType:"lines",reset:function(r){var t=pc(r.get("symbol")),e=pc(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function i(n,o){var s=n.getItemModel(o),l=pc(s.getShallow("symbol",!0)),u=pc(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?i:null}}};function gle(r){r.registerChartView(hle),r.registerSeriesModel(dle),r.registerLayout(Z8),r.registerVisual(ple)}var mle=256,yle=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=mi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),v=this.pointSize+this.blurSize,h=this.canvas,f=h.getContext("2d"),c=t.length;h.width=e,h.height=a;for(var d=0;d0){var L=o(_)?l:u;_>0&&(_=_*C+A),S[b++]=L[M],S[b++]=L[M+1],S[b++]=L[M+2],S[b++]=L[M+3]*_*256}else b+=4}return f.putImageData(x,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=mi.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var i=t.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,i=a[e]||(a[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},r})();function _le(r,t,e){var a=r[1]-r[0];t=we(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var i=t.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function tR(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Sle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):tR(o)&&this._renderOnGeo(o,e,n,i)},t.prototype.incrementalPrepareRender=function(e,a,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,i,n){var o=a.coordinateSystem;o&&(tR(o)?this.render(a,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,i,n,o){var s=e.coordinateSystem,l=Fs(s,"cartesian2d"),u,v,h,f;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,v=d.getBandWidth()+.5,h=c.scale.getExtent(),f=d.scale.getExtent()}for(var p=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),S=Cr(e),b=e.getModel("emphasis"),w=b.get("focus"),A=b.get("blurScope"),T=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mh[1]||If[1])continue;var R=s.dataToPoint([P,I]);L=new gt({shape:{x:R[0]-u/2,y:R[1]-v/2,width:u,height:v},style:D})}else{if(isNaN(g.get(C[1],M)))continue;L=new gt({z2:1,shape:s.dataToRect([g.get(C[0],M)]).contentShape,style:D})}if(g.hasItemOption){var E=g.getItemModel(M),k=E.getModel("emphasis");m=k.getModel("itemStyle").getItemStyle(),y=E.getModel(["blur","itemStyle"]).getItemStyle(),_=E.getModel(["select","itemStyle"]).getItemStyle(),x=E.get(["itemStyle","borderRadius"]),w=k.get("focus"),A=k.get("blurScope"),T=k.get("disabled"),S=Cr(E)}L.shape.r=x;var B=e.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),Gr(L,S,{labelFetcher:e,labelDataIndex:M,defaultOpacity:D.opacity,defaultText:F}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=y,L.ensureState("select").style=_,tr(L,w,A,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new yle;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var v=e.getViewRect().clone(),h=e.getRoamTransform();v.applyTransform(h);var f=Math.max(v.x,0),c=Math.max(v.y,0),d=Math.min(v.width+v.x,n.getWidth()),p=Math.min(v.height+v.y,n.getHeight()),g=d-f,m=p-c,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,A,T){var C=e.dataToPoint([w,A]);return C[0]-=f,C[1]-=c,C.push(T),C}),x=i.getExtent(),S=i.type==="visualMap.continuous"?xle(x,i.option.range):_le(x,i.getPieceList(),i.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new Dr({style:{width:g,height:m,x:f,y:c,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t})(kt),ble=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=pu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(zt);function wle(r){r.registerChartView(Sle),r.registerSeriesModel(ble)}var Tle=["itemStyle","borderWidth"],rR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xy=new Xi,Ale=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),h=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:v,valueDim:rR[+v],categoryDim:rR[1-+v]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=iR(o,d),g=aR(o,d,p,f),m=nR(o,f,g);o.setItemGraphicEl(d,m),n.add(m),sR(m,f,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){n.remove(g);return}var m=iR(o,d),y=aR(o,d,m,f),_=e7(o,y);g&&_!==g.__pictorialShapeStr&&(n.remove(g),o.setItemGraphicEl(d,null),g=null),g?Rle(g,f,y):g=nR(o,f,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,n.add(g),sR(g,f,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&oR(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var c=e.get("clip",!0)?Jh(e.coordinateSystem,!1,e):null;return c?n.setClipPath(c):n.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){oR(n,Xe(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t})(kt);function aR(r,t,e,a){var i=r.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Cle(e,n,i,a,f),Mle(r,t,i,n,o,f.boundingLength,f.pxSign,v,a,f),Dle(e,f.symbolScale,u,a,f);var c=f.symbolSize,d=Gs(e.get("symbolOffset"),c);return Lle(e,c,i,n,o,d,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,a,f),f}function Cle(r,t,e,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[n.wh]<=0),v;if(Se(o)){var h=[Sy(s,o[0])-l,Sy(s,o[1])-l];h[1]=0?1:-1:v>0?1:-1}function Sy(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Mle(r,t,e,a,i,n,o,s,l,u){var v=l.valueDim,h=l.categoryDim,f=Math.abs(e[h.wh]),c=r.getItemVisual(t,"symbolSize"),d;Se(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=Ie(d[h.index],f),d[v.index]=Ie(d[v.index],a?f:Math.abs(n)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[v.index]*=(l.isHorizontal?-1:1)*o}function Dle(r,t,e,a,i){var n=r.get(Tle)||0;n&&(xy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),xy.updateTransform(),n/=xy.getLineScale(),n*=t[a.valueDim.index]),i.valueLineWidth=n||0}function Lle(r,t,e,a,i,n,o,s,l,u,v,h){var f=v.categoryDim,c=v.valueDim,d=h.pxSign,p=Math.max(t[c.index]+s,0),g=p;if(a){var m=Math.abs(l),y=wr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=Ie(y,t[c.index]),S=Math.max(p+x*2,0),b=_?0:x*2,w=WA(a),A=w?a:lR((m+b)/S),T=m-A*p;x=T/2/(_?A:Math.max(A-1,1)),S=p+x*2,b=_?0:x*2,!w&&a!=="fixed"&&(A=u?lR((Math.abs(u)+b)/S):0),g=A*S-b,h.repeatTimes=A,h.symbolMargin=x}var C=d*(g/2),M=h.pathPosition=[];M[f.index]=e[f.wh]/2,M[c.index]=o==="start"?C:o==="end"?l-C:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var L=h.bundlePosition=[];L[f.index]=e[f.xy],L[c.index]=e[c.xy];var D=h.barRectShape=_e({},e);D[c.wh]=d*Math.max(Math.abs(e[c.wh]),Math.abs(M[c.index]+C)),D[f.wh]=e[f.wh];var P=h.clipShape={};P[f.xy]=-e[f.xy],P[f.wh]=v.ecSize[f.wh],P[c.xy]=0,P[c.wh]=e[c.wh]}function X8(r){var t=r.symbolPatternSize,e=lr(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function K8(r,t,e,a){var i=r.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,v=0,h=n[t.valueDim.index]+o+e.symbolMargin*2;for(mM(r,function(p){p.__pictorialAnimationIndex=v,p.__pictorialRepeatTimes=u,v0:m<0)&&(y=u-1-p),g[l.index]=h*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Q8(r,t,e,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?Wl(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(n=r.__pictorialMainPath=X8(e),i.add(n),Wl(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function j8(r,t,e){var a=_e({},t.barRectShape),i=r.__pictorialBarRect;i?Wl(i,null,{shape:a},t,e):(i=r.__pictorialBarRect=new gt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function J8(r,t,e,a){if(e.symbolClip){var i=r.__pictorialClipPath,n=_e({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)wt(i,{shape:n},s,l);else{n[o.wh]=0,i=new gt({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Bs[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function iR(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=Ile,e.isAnimationEnabled=Ple,e}function Ile(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Ple(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nR(r,t,e,a){var i=new Ze,n=new Ze;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?K8(i,t,e):Q8(i,t,e),j8(i,e,a),J8(i,t,e,a),i.__pictorialShapeStr=e7(r,e),i.__pictorialSymbolMeta=e,i}function Rle(r,t,e){var a=e.animationModel,i=e.dataIndex,n=r.__pictorialBundle;wt(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,i),e.symbolRepeat?K8(r,t,e,!0):Q8(r,t,e,!0),j8(r,e,!0),J8(r,t,e,!0)}function oR(r,t,e,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];mM(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),$(n,function(o){lo(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function e7(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function mM(r,t,e){$(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Wl(r,t,e,a,i,n){t&&r.attr(t),a.symbolClip&&!i?e&&r.attr(e):e&&Bs[i?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,n)}function sR(r,t,e){var a=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),v=n.get("focus"),h=n.get("blurScope"),f=n.get("scale");mM(r,function(p){if(p instanceof Dr){var g=p.style;p.useStyle(_e({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,f&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var c=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Gr(d,Cr(i),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:jl(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:c}),tr(r,v,h,n.get("disabled"))}function lR(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var Ele=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=go(Ah.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(Ah);function kle(r){r.registerChartView(Ale),r.registerSeriesModel(Ele),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(QU,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jU("pictorialBar"))}var Ole=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=n.getLayout("layoutInfo"),v=u.rect,h=u.boundaryGap;s.x=0,s.y=v.y+h[0];function f(g){return g.name}var c=new bn(this._layersSeries||[],l,f,f),d=[];c.add(Ne(p,this,"add")).update(Ne(p,this,"update")).remove(Ne(p,this,"remove")).execute();function p(g,m,y){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var x=[],S=[],b,w=l[m].indices,A=0;An&&(n=s),a.push(s)}for(var u=0;un&&(n=h)}return{y0:i,max:n}}function Gle(r){r.registerChartView(Ole),r.registerSeriesModel(zle),r.registerLayout(Ble),r.registerProcessor(tf("themeRiver"))}var Fle=2,Hle=4,vR=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this)||this;o.z2=Fle,o.textConfig={inside:!0},Xe(o).seriesIndex=a.seriesIndex;var s=new pt({z2:Hle,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,i,n),o}return t.prototype.updateData=function(e,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;Xe(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),v=a.getLayout(),h=_e({},v);h.label=null;var f=a.getVisual("style");f.lineJoin="bevel";var c=a.getVisual("decal");c&&(f.decal=Ql(c,o));var d=ys(l.getModel("itemStyle"),h,!0);_e(h,d),$(va,function(y){var _=s.ensureState(y),x=l.getModel([y,"itemStyle"]);_.style=x.getItemStyle();var S=ys(x,h);S&&(_.shape=S)}),e?(s.setShape(h),s.shape.r=v.r0,$t(s,{shape:{r:v.r}},i,a.dataIndex)):(wt(s,{shape:h},i),xi(s)),s.useStyle(f),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),m=g==="relative"?$l(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;tr(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),h=this,f=h.getTextContent(),c=this.node.dataIndex,d=n.get("minAngle")/180*Math.PI,p=n.get("show")&&!(d!=null&&Math.abs(s)P&&!Yl(R-P)&&R0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,e,a,i):(o.virtualPiece=new vR(y,e,a,i),v.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(_.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";Od(u,v)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rA,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},t.type="sunburst",t})(kt),$le=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};t7(i);var n=this._levelModels=we(e.levels||[],function(l){return new Mt(l,this,a)},this),o=eM.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var h=o.getNodeByDataIndex(v),f=n[h.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=eg(i,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){o8(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t})(zt);function t7(r){var t=0;$(r.children,function(a){t7(a);var i=a.value;Se(i)&&(i=i[0]),t+=i});var e=r.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(r.value)?r.value[0]=e:r.value=e}var fR=Math.PI/180;function Yle(r,t,e){t.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");Se(n)||(n=[0,n]),Se(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=Ie(i[0],o),v=Ie(i[1],s),h=Ie(n[0],l/2),f=Ie(n[1],l/2),c=-a.get("startAngle")*fR,d=a.get("minAngle")*fR,p=a.getData().tree.root,g=a.getViewRoot(),m=g.depth,y=a.get("sort");y!=null&&r7(g,y);var _=0;$(g.children,function(R){!isNaN(R.getValue())&&_++});var x=g.getValue(),S=Math.PI/(x||_)*2,b=g.depth>0,w=g.height-(b?-1:1),A=(f-h)/(w||1),T=a.get("clockwise"),C=a.get("stillShowZeroSum"),M=T?1:-1,L=function(R,E){if(R){var k=E;if(R!==p){var B=R.getValue(),F=x===0&&C?S:B*S;F1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Re(s)&&(s=wd(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");_e(u,l)})})}function Kle(r){r.registerChartView(Ule),r.registerSeriesModel($le),r.registerLayout(et(Yle,"sunburst")),r.registerProcessor(et(tf,"sunburst")),r.registerVisual(Xle),Wle(r)}var cR={color:"fill",borderColor:"stroke"},Qle={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mn=yt(),jle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return Qi(null,this)},t.prototype.getDataParams=function(e,a,i){var n=r.prototype.getDataParams.call(this,e,a);return i&&(n.info=mn(i).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(zt);function Jle(r,t){return t=t||[0,0],we(["x","y"],function(e,a){var i=this.getAxis(e),n=t[a],o=r[a]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function eue(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(Jle,r)}}}function tue(r,t){return t=t||[0,0],we([0,1],function(e){var a=t[e],i=r[e]/2,n=[],o=[];return n[e]=a-i,o[e]=a+i,n[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(n)[e]-this.dataToPoint(o)[e])},this)}function rue(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(tue,r)}}}function aue(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-i)-e.dataToCoord(a+i))}function iue(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(aue,r)}}}function nue(r,t){return t=t||[0,0],we(["Radius","Angle"],function(e,a){var i="get"+e+"Axis",n=this[i](),o=t[a],s=r[a]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function oue(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(i){var n=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:Ne(nue,r)}}}function sue(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,i){return r.dataToPoint(a,i)}}}}function a7(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Be(r,"text")))}function i7(r,t,e){var a=r,i,n,o;if(t==="text")o=a;else{o={},Be(a,"text")&&(o.text=a.text),Be(a,"rich")&&(o.rich=a.rich),Be(a,"textFill")&&(o.fill=a.textFill),Be(a,"textStroke")&&(o.stroke=a.textStroke),Be(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Be(a,"fontSize")&&(o.fontSize=a.fontSize),Be(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Be(a,"fontWeight")&&(o.fontWeight=a.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=Be(a,"textPosition");e?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Be(a,"textPosition")&&(i.position=a.textPosition),Be(a,"textOffset")&&(i.offset=a.textOffset),Be(a,"textRotation")&&(i.rotation=a.textRotation),Be(a,"textDistance")&&(i.distance=a.textDistance)}return dR(o,r),$(o.rich,function(l){dR(l,l)}),{textConfig:i,textContent:n}}function dR(r,t){t&&(t.font=t.textFont||t.font,Be(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Be(t,"textAlign")&&(r.align=t.textAlign),Be(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Be(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Be(t,"textWidth")&&(r.width=t.textWidth),Be(t,"textHeight")&&(r.height=t.textHeight),Be(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Be(t,"textPadding")&&(r.padding=t.textPadding),Be(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Be(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Be(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Be(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Be(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Be(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Be(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function pR(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||"#000";gR(a,t);var o=a.textFill==null;return i?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,$(t.rich,function(s){gR(s,s)}),a}function gR(r,t){t&&(Be(t,"fill")&&(r.textFill=t.fill),Be(t,"stroke")&&(r.textStroke=t.fill),Be(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Be(t,"font")&&(r.font=t.font),Be(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Be(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Be(t,"fontSize")&&(r.fontSize=t.fontSize),Be(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Be(t,"align")&&(r.textAlign=t.align),Be(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Be(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Be(t,"width")&&(r.textWidth=t.width),Be(t,"height")&&(r.textHeight=t.height),Be(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Be(t,"padding")&&(r.textPadding=t.padding),Be(t,"borderColor")&&(r.textBorderColor=t.borderColor),Be(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Be(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Be(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Be(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Be(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Be(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Be(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Be(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Be(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Be(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var n7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mR=ft(n7);Ya($i,function(r,t){return r[t]=1,r},{});$i.join(", ");var rp=["","style","shape","extra"],tu=yt();function yM(r,t,e,a,i){var n=r+"Animation",o=uu(r,a,i)||{},s=tu(t).userDuring;return o.duration>0&&(o.during=s?Ne(fue,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),_e(o,e[n]),o}function ud(r,t,e,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=tu(r),u=t.style;l.userDuring=t.during;var v={},h={};if(due(r,t,h),_R("shape",t,h),_R("extra",t,h),!n&&s&&(cue(r,t,v),yR("shape",r,t,v),yR("extra",r,t,v),pue(r,t,u,v)),h.style=u,lue(r,h,o),vue(r,t),s)if(n){var f={};$(rp,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(f[d]=f[d]||{}),_e(d?f[d]:f,p.enterFrom))});var c=yM("enter",r,t,e,i);c.duration>0&&r.animateFrom(f,c)}else uue(r,t,i||0,e,v);o7(r,t),u?r.dirty():r.markRedraw()}function o7(r,t){for(var e=tu(r).leaveToProps,a=0;a0&&r.animateFrom(i,n)}}function vue(r,t){Be(t,"silent")&&(r.silent=t.silent),Be(t,"ignore")&&(r.ignore=t.ignore),r instanceof Za&&Be(t,"invisible")&&(r.invisible=t.invisible),r instanceof ht&&Be(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Oi={},hue={setTransform:function(r,t){return Oi.el[r]=t,this},getTransform:function(r){return Oi.el[r]},setShape:function(r,t){var e=Oi.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Oi.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Oi.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Oi.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Oi.el.extra||(Oi.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Oi.el.extra;if(t)return t[r]}};function fue(){var r=this,t=r.el;if(t){var e=tu(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}Oi.el=t,a(hue)}}function yR(r,t,e,a){var i=e[r];if(i){var n=t[r],o;if(n){var s=e.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),As(l))_e(o,n);else for(var u=Nt(l),v=0;v=0){!o&&(o=a[r]={});for(var c=ft(n),v=0;v=0)){var f=r.getAnimationStyleProps(),c=f?f.style:null;if(c){!n&&(n=a.style={});for(var d=ft(e),u=0;u=0?t.getStore().get(E,I):void 0}var k=t.get(R.name,I),B=R&&R.ordinalMeta;return B?B.categories[k]:k}function b(P,I){I==null&&(I=u);var R=t.getItemVisual(I,"style"),E=R&&R.fill,k=R&&R.opacity,B=y(I,Qn).getItemStyle();E!=null&&(B.fill=E),k!=null&&(B.opacity=k);var F={inheritColor:Re(E)?E:"#000"},V=_(I,Qn),N=Ht(V,null,F,!1,!0);N.text=V.getShallow("show")?Je(r.getFormattedLabel(I,Qn),jl(t,I)):null;var O=Ed(V,F,!1);return T(P,B),B=pR(B,N,O),P&&A(B,P),B.legacy=!0,B}function w(P,I){I==null&&(I=u);var R=y(I,yn).getItemStyle(),E=_(I,yn),k=Ht(E,null,null,!0,!0);k.text=E.getShallow("show")?ci(r.getFormattedLabel(I,yn),r.getFormattedLabel(I,Qn),jl(t,I)):null;var B=Ed(E,null,!0);return T(P,R),R=pR(R,k,B),P&&A(R,P),R.legacy=!0,R}function A(P,I){for(var R in I)Be(I,R)&&(P[R]=I[R])}function T(P,I){P&&(P.textFill&&(I.textFill=P.textFill),P.textPosition&&(I.textPosition=P.textPosition))}function C(P,I){if(I==null&&(I=u),Be(cR,P)){var R=t.getItemVisual(I,"style");return R?R[cR[P]]:null}if(Be(Qle,P))return t.getItemVisual(I,P)}function M(P){if(n.type==="cartesian2d"){var I=n.getBaseAxis();return Vee(Ue({axis:I},P))}}function L(){return e.getCurrentSeriesIndices()}function D(P){return sC(P,e)}}function Aue(r){var t={};return $(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var i=a.coordDim,n=t[i]=t[i]||[];n[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Ay(r,t,e,a,i,n,o){if(!a){n.remove(t);return}var s=wM(r,t,e,a,i,n);return s&&o.setItemGraphicEl(e,s),s&&tr(s,a.focus,a.blurScope,a.emphasisDisabled),s}function wM(r,t,e,a,i,n){var o=-1,s=t;t&&v7(t,a,i)&&(o=nt(n.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=SM(a),s&&Sue(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ka.normal.cfg=ka.normal.conOpt=ka.emphasis.cfg=ka.emphasis.conOpt=ka.blur.cfg=ka.blur.conOpt=ka.select.cfg=ka.select.conOpt=null,ka.isLegacy=!1,Mue(u,e,a,i,l,ka),Cue(u,e,a,i,l),bM(r,u,e,a,ka,i,l),Be(a,"info")&&(mn(u).info=a.info);for(var v=0;v=0?n.replaceAt(u,o):n.add(u),u}function v7(r,t,e){var a=mn(r),i=t.type,n=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==a.customGraphicType||i==="path"&&Rue(n)&&h7(n)!==a.customPathData||i==="image"&&Be(o,"image")&&o.image!==a.customImagePath}function Cue(r,t,e,a,i){var n=e.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&v7(o,n,a)&&(o=null),o||(o=SM(n),r.setClipPath(o)),bM(null,o,t,n,null,a,i)}}function Mue(r,t,e,a,i,n){if(!r.isGroup){SR(e,null,n),SR(e,yn,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=r.getTextContent();if(o===!1)v&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=SM(o),r.setTextContent(v)),bM(null,v,t,o,null,a,i);for(var h=o&&o.style,f=0;f=v;c--){var d=t.childAt(c);Lue(t,d,i)}}}function Lue(r,t,e){t&&ag(t,mn(r).option,e)}function Iue(r){new bn(r.oldChildren,r.newChildren,bR,bR,r).add(wR).update(wR).remove(Pue).execute()}function bR(r,t){var e=r&&r.name;return e!=null?e:_ue+t}function wR(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;wM(e.api,i,e.dataIndex,a,e.seriesModel,e.group)}function Pue(r){var t=this.context,e=t.oldChildren[r];e&&ag(e,mn(e).option,t.seriesModel)}function h7(r){return r&&(r.pathData||r.d)}function Rue(r){return r&&(Be(r,"pathData")||Be(r,"d"))}function Eue(r){r.registerChartView(bue),r.registerSeriesModel(jle)}var ls=yt(),TR=Ye,Cy=Ne,AM=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,i){var n=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,t,e,a);var v=u.graphicKey;v!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=v;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Ze,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var f=et(AR,e,h);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,e)}MR(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),i=t.axis,n=i.type==="category",o=e.get("snap");if(!o&&!n)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=YC(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,i,n){},r.prototype.createPointerEl=function(t,e,a,i){var n=e.pointer;if(n){var o=ls(t).pointerEl=new Bs[n.type](TR(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,i){if(e.label){var n=ls(t).labelEl=new pt(TR(e.label));t.add(n),CR(n,i)}},r.prototype.updatePointerEl=function(t,e,a){var i=ls(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),a(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,i){var n=ls(t).labelEl;n&&(n.setStyle(e.label.style),a(n,{x:e.label.x,y:e.label.y}),CR(n,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=e.getModel("handle"),o=e.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vu(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_n(u.event)},onmousedown:Cy(this._onHandleDragMove,this,0,0),drift:Cy(this._onHandleDragMove,this),ondragend:Cy(this._onHandleDragEnd,this)}),a.add(i)),MR(i,e,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");Se(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,mu(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){AR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,My(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var i=this.updateHandleTransform(My(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(My(i)),ls(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,i=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Sh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function AR(r,t,e,a){f7(ls(e).lastProp,a)||(ls(e).lastProp=a,t?wt(e,a,r):(e.stopAnimation(),e.attr(a)))}function f7(r,t){if($e(r)&&$e(t)){var e=!0;return $(t,function(a,i){e=e&&f7(r[i],a)}),!!e}else return r===t}function CR(r,t){r[t.get(["label","show"])?"show":"hide"]()}function My(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function MR(r,t,e){var a=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=e)})}function CM(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function c7(r,t,e,a,i){var n=e.get("value"),o=d7(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Vs(s.get("padding")||0),u=s.getFont(),v=Fh(o,u),h=i.position,f=v.width+l[1]+l[3],c=v.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=f),d==="center"&&(h[0]-=f/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),kue(h,f,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ht(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function kue(r,t,e,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function d7(r,t,e,a,i){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:HC(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};$(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),v=l.dataIndexInside,h=u&&u.getDataParams(v);h&&s.seriesData.push(h)}),Re(o)?n=o.replace("{value}",n):He(o)&&(n=o(s))}return n}function MM(r,t,e){var a=xa();return co(a,a,e.rotation),yi(a,a,e.position),gi([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function p7(r,t,e,a,i,n){var o=la.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),c7(t,a,i,n,{position:MM(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DM(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function g7(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function DR(r,t,e,a,i,n){return{cx:r,cy:t,r0:e,r:a,startAngle:i,endAngle:n,clockwise:!0}}var Oue=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),v=LR(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var f=CM(n),c=Nue[u](s,h,v);c.style=f,e.graphicKey=c.type,e.pointer=c}var d=BT(l.model,i);p7(a,e,d,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=BT(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=MM(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LR(s,o).getOtherAxis(o).getGlobalExtent(),v=o.dim==="x"?0:1,h=[e.x,e.y];h[v]+=a[v],h[v]=Math.min(l[1],h[v]),h[v]=Math.max(l[0],h[v]);var f=(u[1]+u[0])/2,c=[f,f];c[v]=h[v];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[v]}},t})(AM);function LR(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Nue={line:function(r,t,e){var a=DM([t,e[0]],[t,e[1]],IR(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:g7([t-a/2,e[0]],[a,i],IR(r))}}};function IR(r){return r.dim==="x"?0:1}var zue=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ut),gn=yt(),Bue=$;function m7(r,t,e){if(!vt.node){var a=t.getZr();gn(a).records||(gn(a).records={}),Vue(a,t);var i=gn(a).records[r]||(gn(a).records[r]={});i.handler=e}}function Vue(r,t){if(gn(r).initialized)return;gn(r).initialized=!0,e("click",et(PR,"click")),e("mousemove",et(PR,"mousemove")),e("globalout",Fue);function e(a,i){r.on(a,function(n){var o=Hue(t);Bue(gn(r).records,function(s){s&&i(s,n,o.dispatchAction)}),Gue(o.pendings,t)})}}function Gue(r,t){var e=r.showTip.length,a=r.hideTip.length,i;e?i=r.showTip[e-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Fue(r,t,e){r.handler("leave",null,e)}function PR(r,t,e,a){t.handler(r,e,a)}function Hue(r){var t={showTip:[],hideTip:[]},e=function(a){var i=t[a.type];i?i.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function nA(r,t){if(!vt.node){var e=t.getZr(),a=(gn(e).records||{})[r];a&&(gn(e).records[r]=null)}}var que=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=a.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";m7("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){nA("axisPointer",a)},t.prototype.dispose=function(e,a){nA("axisPointer",a)},t.type="axisPointer",t})(Wt);function y7(r,t){var e=[],a=r.seriesIndex,i;if(a==null||!(i=t.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=Ds(n,r);if(o==null||o<0||Se(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),v=l.getOtherAxis(u),h=v.dim,f=u.dim,c=h==="x"||h==="radius"?1:0,d=n.mapDimension(f),p=[];p[c]=n.get(d,o),p[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(n.getValues(we(l.dimensions,function(m){return n.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var RR=yt();function Wue(r,t,e){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||Ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){vd(i)&&(i=y7({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=vd(i),u=n.axesInfo,v=s.axesInfo,h=a==="leave"||vd(i),f={},c={},d={list:[],map:{}},p={showPointer:et($ue,c),showTooltip:et(Yue,d)};$(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);$(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,w=Que(u,x);if(!h&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=b.pointToData(i)),A!=null&&ER(x,A,p,!1,f)}})});var g={};return $(v,function(m,y){var _=m.linkGroup;_&&!c[y]&&$(_.axesInfo,function(x,S){var b=c[S];if(x!==m&&b){var w=b.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,kR(x),kR(m)))),g[m.key]=w}})}),$(g,function(m,y){ER(v[y],m,p,!0,f)}),Zue(c,v,f),Xue(d,i,r,o),Kue(v,o,e),f}}function ER(r,t,e,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Uue(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&_e(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Uue(r,t){var e=t.axis,a=e.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return $(t.seriesModels,function(l,u){var v=l.getData().mapDimensionsAll(a),h,f;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(v,r,e);f=c.dataIndices,h=c.nestestValue}else{if(f=l.getData().indicesOfNearest(v[0],r,e.type==="category"?.5:null),!f.length)return;h=l.getData().get(v[0],f[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=h,n.length=0),$(f,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function $ue(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Yue(r,t,e,a){var i=e.payloadBatch,n=t.axis,o=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ch(l),v=r.map[u];v||(v=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(v)),v.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Zue(r,t,e){var a=e.axesInfo=[];$(t,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Xue(r,t,e,a){if(vd(t)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function Kue(r,t,e){var a=e.getZr(),i="axisPointerLastHighlights",n=RR(a)[i]||{},o=RR(a)[i]={};$(r,function(u,v){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&$(h.seriesDataIndices,function(f){var c=f.seriesIndex+" | "+f.dataIndex;o[c]=f})});var s=[],l=[];$(n,function(u,v){!o[v]&&l.push(u)}),$(o,function(u,v){!n[v]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Que(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function kR(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function vd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function of(r){Hs.registerAxisPointerClass("CartesianAxisPointer",Oue),r.registerComponentModel(zue),r.registerComponentView(que),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Se(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=sae(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Wue)}function jue(r){ot($6),ot(of)}var Jue=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),h=s.dataToCoord(a),f=n.get("type");if(f&&f!=="none"){var c=CM(n),d=tve[f](s,l,h,v);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=n.get(["label","margin"]),g=eve(a,i,n,l,p);c7(e,i,n,o,g)},t})(AM);function eve(r,t,e,a,i){var n=t.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,v,h;if(n.dim==="radius"){var f=xa();co(f,f,s),yi(f,f,[a.cx,a.cy]),u=gi([o,-i],f);var c=t.getModel("axisLabel").get("rotate")||0,d=la.innerTextLayout(s,c*Math.PI/180,-1);v=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+i,o]);var g=a.cx,m=a.cy;v=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:v,verticalAlign:h}}var tve={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:DM(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:DR(t.cx,t.cy,a[0],a[1],(-e-i/2)*n,(-e+i/2)*n)}:{type:"Sector",shape:DR(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}},rve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(ut),LM=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",cr).models[0]},t.type="polarAxis",t})(ut);nr(LM,Su);var ave=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(LM),ive=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(LM),IM=(function(r){he(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t})(Ja);IM.prototype.dataToRadius=Ja.prototype.dataToCoord;IM.prototype.radiusToData=Ja.prototype.coordToData;var nve=yt(),PM=(function(r){he(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),i=e.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),v=Fh(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(v.height,7),f=h/u;isNaN(f)&&(f=1/0);var c=Math.max(0,Math.floor(f)),d=nve(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},t})(Ja);PM.prototype.dataToAngle=Ja.prototype.dataToCoord;PM.prototype.angleToData=Ja.prototype.coordToData;var _7=["radius","angle"],ove=(function(){function r(t){this.dimensions=_7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new IM,this._angleAxis=new PM,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===t&&e.push(a),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,v=us;)u+=v*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,i=Math.cos(a)*e+this.cx,n=-Math.sin(a)*e+this.cy;return[i,n]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var i=t.getExtent(),n=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,v=l-this.cy,h=u*u+v*v,f=this.r,c=this.r0;return f!==c&&h-o<=f*f&&h+o>=c*c}}},r.prototype.convertToPixel=function(t,e,a){var i=OR(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=OR(e);return i===this?this.pointToData(a):null},r})();function OR(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function sve(r,t,e){var a=t.get("center"),i=e.getWidth(),n=e.getHeight();r.cx=Ie(a[0],i),r.cy=Ie(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=t.get("radius");l==null?l=[0,"100%"]:Se(l)||(l=[0,l]);var u=[Ie(l[0],s),Ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function lve(r,t){var e=this,a=e.getAngleAxis(),i=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();$($d(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),$($d(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Rs(a.scale,a.model),Rs(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function uve(r){return r.mainType==="angleAxis"}function NR(r,t){var e;if(r.type=t.get("type"),r.scale=Kh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),uve(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,i)}t.axis=r,r.model=t}var vve={dimensions:_7,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,i){var n=new ove(i+"");n.update=lve;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");NR(o,l),NR(s,u),sve(n,a,t),e.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",cr).models[0];a.coordinateSystem=i.coordinateSystem}}),e}},hve=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function gc(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function mc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function zR(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var fve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=we(i.getViewLabels(),function(v){v=Ye(v);var h=i.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=i.dataToCoord(f),v});zR(u),zR(s),$(hve,function(v){e.get([v,"show"])&&(!i.scale.isBlank()||v==="axisLine")&&cve[v](this.group,e,n,s,l,o,u)},this)}},t.type="angleAxis",t})(Hs),cve={axisLine:function(r,t,e,a,i,n){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=mc(e),h=v?0:1,f,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[h]===0?f=new Bs[c]({shape:{cx:e.cx,cy:e.cy,r:n[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new ou({shape:{cx:e.cx,cy:e.cy,r:n[v],r0:n[h]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,t,e,a,i,n){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[mc(e)],u=we(a,function(v){return new xr({shape:gc(e,[l,l+s],v.coord)})});r.add(wa(u,{style:Ue(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,i,n){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[mc(e)],v=[],h=0;hm?"left":"right",x=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var S=s[d];$e(S)&&S.textStyle&&(c=new Mt(S.textStyle,l,l.ecModel))}var b=new pt({silent:la.isLabelSilent(t),style:Ht(c,{x:g[0],y:g[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:x})});if(r.add(b),v){var w=la.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=h.rawLabel,Xe(b).eventData=w}},this)},splitLine:function(r,t,e,a,i,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],h=0;h=0?"p":"n",I=T;S&&(a[v][D]||(a[v][D]={p:T,n:T}),I=a[v][D][P]);var R=void 0,E=void 0,k=void 0,B=void 0;if(d.dim==="radius"){var F=d.dataToCoord(L)-T,V=l.dataToCoord(D);Math.abs(F)=B})}}})}function xve(r){var t={};$(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=S7(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=t[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;t[l]=h;var c=x7(a);f[c]||h.autoWidthCount++,f[c]=f[c]||{width:0,maxWidth:0};var d=Ie(a.get("barWidth"),v),p=Ie(a.get("barMaxWidth"),v),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!f[c].width&&(d=Math.min(h.remainedWidth,d),f[c].width=d,h.remainedWidth-=d),p&&(f[c].maxWidth=p),g!=null&&(h.gap=g),m!=null&&(h.categoryGap=m)});var e={};return $(t,function(a,i){e[i]={};var n=a.stacks,o=a.bandWidth,s=Ie(a.categoryGap,o),l=Ie(a.gap,1),u=a.remainedWidth,v=a.autoWidthCount,h=(u-s)/(v+(v-1)*l);h=Math.max(h,0),$(n,function(p,g){var m=p.maxWidth;m&&m=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),i=[],n=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[n]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(t,e,a){var i=BR(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=BR(e);return i===this?this.pointToData(a):null},r})();function BR(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Pve(r,t){var e=[];return r.eachComponent("singleAxis",function(a,i){var n=new Ive(a,r,t);n.name="single_"+i,n.resize(a,t),a.coordinateSystem=n,e.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",cr).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),e}var Rve={create:Pve,dimensions:b7},VR=["x","y"],Eve=["width","height"],kve=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Dy(l,1-np(s)),v=l.dataToPoint(a)[0],h=n.get("type");if(h&&h!=="none"){var f=CM(n),c=Ove[h](s,v,u);c.style=f,e.graphicKey=c.type,e.pointer=c}var d=oA(i);p7(a,e,d,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=oA(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=MM(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.coordinateSystem,l=np(o),u=Dy(s,l),v=[e.x,e.y];v[l]+=a[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var h=Dy(s,1-l),f=(h[1]+h[0])/2,c=[f,f];return c[l]=v[l],{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t})(AM),Ove={line:function(r,t,e){var a=DM([t,e[0]],[t,e[1]],np(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:g7([t-a/2,e[0]],[a,i],np(r))}}};function np(r){return r.isHorizontal()?0:1}function Dy(r,t){var e=r.getRect();return[e[VR[t]],e[VR[t]]+e[Eve[t]]]}var Nve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(Wt);function zve(r){ot(of),Hs.registerAxisPointerClass("SingleAxisPointer",kve),r.registerComponentView(Nve),r.registerComponentView(Mve),r.registerComponentModel(hd),Jl(r,"single",hd,hd.defaultOption),r.registerCoordinateSystem("single",Rve)}var Bve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,i){var n=cu(e);r.prototype.init.apply(this,arguments),GR(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),GR(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(ut);function GR(r,t){var e=r.cellSize,a;Se(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var i=we([0,1],function(n){return DQ(t,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});uo(r,t,{type:"box",ignoreSize:i})}var Vve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,n),this._renderLines(e,s,l,n),this._renderYearText(e,s,l,n),this._renderMonthText(e,u,l,n),this._renderWeekText(e,u,s,l,n)},t.prototype._renderDayRect=function(e,a,i){for(var n=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=a.start.time;u<=a.end.time;u=n.getNextNDay(u,1).time){var v=n.dataToRect([u],!1).tl,h=new gt({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},t.prototype._renderLines=function(e,a,i,n){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,f=0;h.time<=a.end.time;f++){d(h.formatedDate),f===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,i),l,n)},t.prototype._getEdgesPoints=function(e,a,i){var n=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},t.prototype._drawSplitline=function(e,a,i){var n=new ea({z2:20,shape:{points:e},style:a});i.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,a,i){for(var n=e.coordinateSystem,o=n.getDateInfo(a),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),v=n.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Re(e)&&e?TQ(e,a):He(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,i,n,o){var s=a[0],l=a[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(n==="left"||n==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,i,n){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,f=i==="horizontal"?0:1,c={top:[v,u[f][1]],bottom:[v,u[1-f][1]],left:[u[1-f][0],h],right:[u[f][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},m=this._formatterLabel(p,g),y=new pt({z2:30,style:Ht(o,{text:m}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,c[l],i,l,s)),n.add(y)}},t.prototype._monthTextPositionControl=function(e,a,i,n,o){var s="left",l="top",u=e[0],v=e[1];return i==="horizontal"?(v=v+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,i,n){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||Re(s))&&(s&&(a=gT(s)||a),s=a.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=v==="center",p=o.get("silent"),g=0;g=i.start.time&&a.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var i=Math.floor(e[1].time/Ly)-Math.floor(e[0].time/Ly)+1,n=new Date(e[0].time),o=n.getDate(),s=e[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-e[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-e[1].time)*u>0;)i-=u,n.setDate(l-u);var v=Math.floor((i+e[0].day+6)/7),h=a?-v+1:v-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:v,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var i=this._getRangeInfo(a);if(t>i.weeks||t===0&&ei.lweek)return null;var n=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(i){var n=new r(i);a.push(n),i.coordinateSystem=n}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function FR(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Fve(r){r.registerComponentModel(Bve),r.registerComponentView(Vve),r.registerCoordinateSystem("calendar",Gve)}function Hve(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function HR(r,t){var e;return $(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function qve(r,t,e){var a=_e({},e),i=r[t],n=e.$action||"merge";n==="merge"?i?(tt(i,a,!0),uo(i,a,{ignoreSize:!0}),AW(e,i),yc(e,i),yc(e,i,"shape"),yc(e,i,"style"),yc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=a:n==="replace"?r[t]=a:n==="remove"&&i&&(r[t]=null)}var w7=["transition","enterFrom","leaveTo"],Wve=w7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?w7:Wve,i=0;i=0;v--){var h=i[v],f=_r(h.id,null),c=f!=null?o.get(f):null;if(c){var d=c.parent,m=Fa(d),y=d===n?{width:s,height:l}:{width:m.width,height:m.height},_={},x=Fp(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Fa(c).isNew&&x){for(var S=h.transition,b={},w=0;w=0)?b[A]=T:c[A]=T}wt(c,b,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(i){fd(i,Fa(i).option,a,e._lastGraphicModel)}),this._elMap=Ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(Wt);function sA(r){var t=Be(qR,r)?qR[r]:kp(r),e=new t({});return Fa(e).type=r,e}function WR(r,t,e,a){var i=sA(e);return t.add(i),a.set(r,i),Fa(i).id=r,Fa(i).isNew=!0,i}function fd(r,t,e,a){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(n){fd(n,t,e,a)}),ag(r,t,a),e.removeKey(Fa(r).id))}function UR(r,t,e,a){r.isGroup||$([["cursor",Za.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(i){var n=i[0];Be(t,n)?r[n]=Je(t[n],i[1]):r[n]==null&&(r[n]=i[1])}),$(ft(t),function(i){if(i.indexOf("on")===0){var n=t[i];r[i]=He(n)?n:null}}),Be(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Zve(r){return r=_e({},r),$(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(TW),function(t){delete r[t]}),r}function Xve(r,t,e){var a=Xe(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Xe(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Kve(r){r.registerComponentModel($ve),r.registerComponentView(Yve),r.registerPreprocessor(function(t){var e=t.graphic;Se(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var $R=["x","y","radius","angle","single"],Qve=["cartesian2d","polar","singleAxis"];function jve(r){var t=r.get("coordinateSystem");return nt(Qve,t)>=0}function jn(r){return r+"Axis"}function Jve(r,t){var e=Ge(),a=[],i=Ge();r.eachComponent({mainType:"dataZoom",query:t},function(v){i.get(v.uid)||s(v)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(v){!i.get(v.uid)&&l(v)&&(s(v),n=!0)}function s(v){i.set(v.uid,!0),a.push(v),u(v)}function l(v){var h=!1;return v.eachTargetAxis(function(f,c){var d=e.get(f);d&&d[c]&&(h=!0)}),h}function u(v){v.eachTargetAxis(function(h,f){(e.get(h)||e.set(h,[]))[f]=!0})}return a}function T7(r){var t=r.ecModel,e={infoList:[],infoMap:Ge()};return r.eachTargetAxis(function(a,i){var n=t.getComponent(jn(a),i);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(n)}}}),e}var Iy=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),Rh=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,i){var n=YR(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this._doInit(n)},t.prototype.mergeOption=function(e){var a=YR(e);tt(this.option,e,!0),tt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;$([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(a[n[0]]=i[n[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=Ge(),i=this._fillSpecifiedTargetAxis(a);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return $($R,function(i){var n=this.getReferringComponents(jn(i),gX);if(n.specified){a=!0;var o=new Iy;$(n.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var i=this.ecModel,n=!0;if(n){var o=a==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===a}});l(s,"single")}function l(u,v){var h=u[0];if(h){var f=new Iy;if(f.add(h.componentIndex),e.set(v,f),n=!1,v==="x"||v==="y"){var c=h.getReferringComponents("grid",cr).models[0];c&&$(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",cr).models[0]&&f.add(d.componentIndex)})}}}n&&$($R,function(u){if(n){var v=i.findComponents({mainType:jn(u),filter:function(f){return f.get("type",!0)==="category"}});if(v[0]){var h=new Iy;h.add(v[0].componentIndex),e.set(u,h),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,i=this.get("rangeMode");$([["start","startValue"],["end","endValue"]],function(n,o){var s=e[n[0]]!=null,l=e[n[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":i?a[o]=i[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,i){e==null&&(e=this.ecModel.getComponent(jn(a),i))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(i,n){$(i.indexList,function(o){e.call(a,n,o)})})},t.prototype.getAxisProxy=function(e,a){var i=this.getAxisModel(e,a);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[a])return this.ecModel.getComponent(jn(e),a)},t.prototype.setRawRange=function(e){var a=this.option,i=this.settledOption;$([["start","startValue"],["end","endValue"]],function(n){(e[n[0]]!=null||e[n[1]]!=null)&&(a[n[0]]=i[n[0]]=e[n[0]],a[n[1]]=i[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;$(["start","startValue","end","endValue"],function(i){a[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,i=this._targetAxisInfoMap.keys(),n=0;no[1];if(_&&!x&&!S)return!0;_&&(g=!0),x&&(d=!0),S&&(p=!0)}return g&&d&&p})}else Il(v,function(c){if(n==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Il(v,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Il(["min","max"],function(i){var n=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Pt(a[0]+o,a,[0,100],!0):n!=null&&(o=Pt(n,[0,100],a,!0)-a[0]),t[i+"Span"]=n,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var i=FA(a,[0,500]);i=Math.min(i,20);var n=t.axis.scale.rawExtentInfo;e[0]!==0&&n.setDeterminedMinMax("min",+a[0].toFixed(i)),e[1]!==100&&n.setDeterminedMinMax("max",+a[1].toFixed(i)),n.freeze()}},r})();function ahe(r,t,e){var a=[1/0,-1/0];Il(e,function(o){ste(a,o.getData(),t)});var i=r.getAxisModel(),n=r6(i.axis.scale,i,a).calculate();return[n.min,n.max]}var ihe={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(jn(o),s);i(o,s,l,n)})})}t(function(i,n,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new rhe(i,n,s,r),e.push(o.__dzAxisProxy))});var a=Ge();return $(e,function(i){$(i.getTargetSeriesModels(),function(n){a.set(n.uid,n)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).reset(e)}),e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var i=a.getDataPercentWindow(),n=a.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};function nhe(r){r.registerAction("dataZoom",function(t,e){var a=Jve(e,t);$(a,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var XR=!1;function EM(r){XR||(XR=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ihe),nhe(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ohe(r){r.registerComponentModel(ehe),r.registerComponentView(the),EM(r)}var qa=(function(){function r(){}return r})(),A7={};function Pl(r,t){A7[r]=t}function C7(r){return A7[r]}var she=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;$(this.option.feature,function(a,i){var n=C7(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),tt(a,n.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t})(ut);function lhe(r,t,e){var a=t.getBoxLayoutParams(),i=t.get("padding"),n={width:e.getWidth(),height:e.getHeight()},o=dr(a,n,i);bs(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Fp(r,a,n,i)}function M7(r,t){var e=Vs(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new gt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var uhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i,n){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},v=this._features||(this._features={}),h=[];$(u,function(d,p){h.push(p)}),new bn(this._featureNames||[],h).add(f).update(f).remove(et(f,null)).execute(),this._featureNames=h;function f(d,p){var g=h[d],m=h[p],y=u[g],_=new Mt(y,e,e.ecModel),x;if(n&&n.newTitle!=null&&n.featureName===g&&(y.title=n.newTitle),g&&!m){if(vhe(g))x={onclick:_.option.onclick,featureName:g};else{var S=C7(g);if(!S)return;x=new S}v[g]=x}else if(x=v[m],!x)return;x.uid=fu("toolbox-feature"),x.model=_,x.ecModel=a,x.api=i;var b=x instanceof qa;if(!g&&m){b&&x.dispose&&x.dispose(a,i);return}if(!_.get("show")||b&&x.unusable){b&&x.remove&&x.remove(a,i);return}c(_,x,g),_.setIconStatus=function(w,A){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=A,C[w]&&(A==="emphasis"?xn:Sn)(C[w])},x instanceof qa&&x.render&&x.render(_,a,i,n)}function c(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof qa&&p.getIcons?p.getIcons():d.get("icon"),x=d.get("title")||{},S,b;Re(_)?(S={},S[g]=_):S=_,Re(x)?(b={},b[g]=x):b=x;var w=d.iconPaths={};$(S,function(A,T){var C=vu(A,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(m.getItemStyle());var M=C.ensureState("emphasis");M.style=y.getItemStyle();var L=new pt({style:{text:b[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:sC({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},a)},ignore:!0});C.setTextContent(L),zs({el:C,componentModel:e,itemName:T,formatterParamsExtra:{title:b[T]}}),C.__title=b[T],C.on("mouseover",function(){var D=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?xn:Sn)(C),o.add(C),C.on("click",Ne(p.onclick,p,a,i,T)),w[T]=C})}lhe(o,e,i),o.add(M7(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!He(_)&&p){var x=_.style||(_.style={}),S=Fh(p,pt.makeFont(x)),b=d.x+o.x,w=d.y+o.y+s,A=!1;w+S.height>i.getHeight()&&(m.position="top",A=!0);var T=A?-5-S.height:s+10;b+S.width/2>i.getWidth()?(m.position=["100%",T],x.align="right"):b-S.width/2<0&&(m.position=[0,T],x.align="left")}})},t.prototype.updateView=function(e,a,i,n){$(this._features,function(o){o instanceof qa&&o.updateView&&o.updateView(o.model,a,i,n)})},t.prototype.remove=function(e,a){$(this._features,function(i){i instanceof qa&&i.remove&&i.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){$(this._features,function(i){i instanceof qa&&i.dispose&&i.dispose(e,a)})},t.type="toolbox",t})(Wt);function vhe(r){return r.indexOf("my")===0}var hhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var i=this.model,n=i.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=vt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=n+"."+s,v.target="_blank",v.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),c=f[0].indexOf("base64")>-1,d=o?decodeURIComponent(f[1]):f[1];c&&(d=window.atob(d));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,S=x.document;S.open("image/svg+xml","replace"),S.write(d),S.close(),x.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),w='',A=window.open();A.document.write(w),A.document.title=n}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t})(qa),KR="__ec_magicType_stack__",fhe=[["line","bar"],["stack"]],che=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),i={};return $(e.get("type"),function(n){a[n]&&(i[n]=a[n])}),i},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(QR[i]){var s={series:[]},l=function(h){var f=h.subType,c=h.id,d=QR[i](f,c,h,n);d&&(Ue(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=h.getReferringComponents(y,cr).models[0],x=_.componentIndex;s[y]=s[y]||[];for(var S=0;S<=x;S++)s[y][x]=s[y][x]||{};s[y][x].boundaryGap=i==="bar"}}};$(fhe,function(h){nt(h,i)>=0&&$(h,function(f){n.setIconStatus(f,"normal")})}),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=i;i==="stack"&&(u=tt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(v="tiled")),a.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},t})(qa),QR={line:function(r,t,e,a){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var i=e.get("stack")===KR;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":KR},a.get(["option","stack"])||{},!0)}};Si({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var ig=new Array(60).join("-"),ru=" ";function dhe(r){var t={},e=[],a=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function phe(r){var t=[];return $(r,function(e,a){var i=e.categoryAxis,n=e.valueAxis,o=n.dim,s=[" "].concat(we(e.series,function(c){return c.name})),l=[i.model.getCategories()];$(e.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ru)],v=0;v=0)return!0}var lA=new RegExp("["+ru+"]+","g");function _he(r){for(var t=r.split(/\n+/g),e=op(t.shift()).split(lA),a=[],i=we(e,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=e[n];if(o[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function Ahe(r){var t=kM(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return D7(e,function(i,n){for(var o=t.length-1;o>=0;o--)if(i=t[o][n],i){a[n]=i;break}}),a}function Che(r){L7(r).snapshots=null}function Mhe(r){return kM(r).length}function kM(r){var t=L7(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Dhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){Che(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t})(qa);Si({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Lhe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],OM=(function(){function r(t,e,a){var i=this;this._targetInfoList=[];var n=jR(e,t);$(Ihe,function(o,s){(!a||!a.include||nt(a.include,s)>=0)&&o(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,i,n){if((a.coordRanges||(a.coordRanges=[])).push(i),!a.coordRange){a.coordRange=i;var o=Py[a.brushType](0,n,i);a.__rangeOffset={offset:rE[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){$(t,function(i){var n=this.findTargetInfo(i,e);n&&n!==!0&&$(n.coordSyses,function(o){var s=Py[i.brushType](1,o,i.range,!0);a(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){$(t,function(a){var i=this.findTargetInfo(a,e);if(a.range=a.range||[],i&&i!==!0){a.panelId=i.panelId;var n=Py[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?rE[a.brushType](n.values,o.offset,Phe(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(t,e){return we(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:z8(i),isTargetByCursor:V8(i,t,a.coordSysModel),getLinearBrushOtherExtent:B8(i)}})},r.prototype.controlSeries=function(t,e,a){var i=this.findTargetInfo(t,a);return i===!0||i&&nt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,i=jR(e,t),n=0;nr[1]&&r.reverse(),r}function jR(r,t){return Zv(r,t,{includeMainTypes:Lhe})}var Ihe={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=Ge(),o={},s={};!e&&!a&&!i||($(e,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),$(a,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),$(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,v=[];$(u.getCartesians(),function(h,f){(nt(e,h.getAxis("x").model)>=0||nt(a,h.getAxis("y").model)>=0)&&v.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:eE.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){$(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:eE.geo})})}},JR=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&a&&(i=a.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],eE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ro(r)),t}},Py={lineX:et(tE,0),lineY:et(tE,1),rect:function(r,t,e,a){var i=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),n=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[uA([i[0],n[0]]),uA([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var i=[[1/0,-1/0],[1/0,-1/0]],n=we(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function tE(r,t,e,a){var i=e.getAxis(["x","y"][r]),n=uA(we([0,1],function(s){return t?i.coordToData(i.toLocalCoord(a[s]),!0):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var rE={lineX:et(aE,0),lineY:et(aE,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return we(r,function(a,i){return[a[0]-e[0]*t[i][0],a[1]-e[1]*t[i][1]]})}};function aE(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function Phe(r,t){var e=iE(r),a=iE(t),i=[e[0]/a[0],e[1]/a[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function iE(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var vA=$,Rhe=hX("toolbox-dataZoom_"),Ehe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i,n){this._brushController||(this._brushController=new lM(i.getZr()),this._brushController.on("brush",Ne(this._onBrush,this)).mount()),Nhe(e,a,this,n,i),Ohe(e,a)},t.prototype.onclick=function(e,a,i){khe[i].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new OM(NM(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,v,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",h,v[0]),s("y",h,v[1])):s({lineX:"x",lineY:"y"}[f],h,v)}}),The(n,i),this._dispatchZoomAction(i);function s(u,v,h){var f=v.getAxis(u),c=f.model,d=l(u,c,n),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=qs(0,h.slice(),f.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,v,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,v.componentIndex);d&&(f=c)}),f}},t.prototype._dispatchZoomAction=function(e){var a=[];vA(e,function(i,n){a.push(Ye(i))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t})(qa),khe={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ahe(this.ecModel))}};function NM(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Ohe(r,t){r.setIconStatus("back",Mhe(t)>1?"emphasis":"normal")}function Nhe(r,t,e,a,i){var n=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(n=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new OM(NM(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}kQ("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),i=[],n=NM(a),o=Zv(r,n);vA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),vA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var h=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Rhe+u+h};f[v]=h,i.push(f)}return i});function zhe(r){r.registerComponentModel(she),r.registerComponentView(uhe),Pl("saveAsImage",hhe),Pl("magicType",che),Pl("dataView",bhe),Pl("dataZoom",Ehe),Pl("restore",Dhe),ot(ohe)}var Bhe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ut);function I7(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function P7(r){if(vt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var v=u*Math.PI/180,h=o+i,f=h*Math.abs(Math.cos(v))+h*Math.abs(Math.sin(v)),c=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2)*100)/100;s+=";"+n+":-"+c+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function Uhe(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,i="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,i+=vt.transformSupported?","+zM+a:",left"+a+",top"+a),Fhe+":"+i}function nE(r,t,e){var a=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return e?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=vt.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+zM+":"+o+";":[["top",0],["left",0],[R7,o]]}function $he(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var i=Je(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var n=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return n&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),$(["decoration","align"],function(u){var v=r.get(u);v&&t.push("text-"+u+":"+v)}),t.join(";")}function Yhe(r,t,e){var a=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),v=r.getModel("textStyle"),h=rU(r,"html"),f=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+f),t&&i&&a.push(Uhe(i,e)),n&&a.push("background-color:"+n),$(["width","color","radius"],function(c){var d="border-"+c,p=pC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push($he(v)),h!=null&&a.push("padding:"+Vs(h).join("px ")+"px"),a.join(";")+";"}function oE(r,t,e,a,i){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&VY(r,o,e,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Zhe=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),n=e.appendTo,o=n&&(Re(n)?document.querySelector(n):Cs(n)?n:He(n)&&n(t.getDom()));oE(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,v=i.painter.getViewportRoot();Ba(v,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=Ghe(e,"position"),i=e.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative")}var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=Hhe+Yhe(t,!this._firstShow,this._longHide)+nE(n[0],n[1],!0)+("border-color:"+Ps(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,i,n){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Re(n)&&a.get("trigger")==="item"&&!I7(a)&&(s=Whe(a,i,n)),Re(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Se(t)||(t=[t]);for(var l=0;l=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,i=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,a,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,i,n){if(!(n.from===this.uid||vt.node||!i.getDom())){var o=uE(n,i);this._ticket="";var s=n.dataByCoordSys,l=tfe(n,a,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var v=Khe;v.x=n.x,v.y=n.y,v.update(),Xe(v).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:v},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,i,n))return;var h=y7(n,a),f=h.point[0],c=h.point[1];f!=null&&c!=null&&this._tryShow({offsetX:f,offsetY:c,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(uE(n,i))},t.prototype._manuallyAxisShowTip=function(e,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var v=u.getData(),h=iv([v.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,a){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=Xe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ps(i,function(v){if(Xe(v).dataIndex!=null)return l=v,!0;if(Xe(v).tooltipConfig!=null)return u=v,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var i=e.get("showDelay");a=Ne(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},t.prototype._showAxisTooltip=function(e,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=iv([a.tooltipOption],n),l=this._renderMode,u=[],v=Mr("section",{blocks:[],noHeader:!0}),h=[],f=new xm;$(e,function(y){$(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var b=d7(S,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Mr("section",{header:b,noHeader:!Ua(b),sortBlocks:!0,blocks:[]});v.blocks.push(w),$(_.seriesDataIndices,function(A){var T=i.getSeriesByIndex(A.seriesIndex),C=A.dataIndexInside,M=T.getDataParams(C);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=HC(x.axis,{value:S}),M.axisValueLabel=b,M.marker=f.makeTooltipMarker("item",Ps(M.color),l);var L=fI(T.formatTooltip(C,!0,null)),D=L.frag;if(D){var P=iv([T],n).get("valueFormatter");w.blocks.push(P?_e({valueFormatter:P},D):D)}L.text&&h.push(L.text),u.push(M)}})}})}),v.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=yI(v,f,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?"\n\n":"
",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,f)})},t.prototype._showSeriesItemTooltip=function(e,a,i){var n=this._ecModel,o=Xe(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,v=o.dataIndex,h=o.dataType,f=u.getData(h),c=this._renderMode,d=e.positionDefault,p=iv([f.getItemModel(v),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(v,h),y=new xm;m.marker=y.makeTooltipMarker("item",Ps(m.color),c);var _=fI(u.formatTooltip(v,!1,h)),x=p.get("order"),S=p.get("valueFormatter"),b=_.frag,w=b?yI(S?_e({valueFormatter:S},b):b,y,c,x,n.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+v;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,A,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:v,dataIndex:f.getRawIndex(v),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,i){var n=this._renderMode==="html",o=Xe(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Re(l)){var v=l;l={content:v,formatter:v},u=!0}u&&n&&l.content&&(l=Ye(l),l.content=Zr(l.content));var h=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&h.push(f),h.push({formatter:l.content});var c=e.positionDefault,d=iv(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",m=new xm;this._showOrMove(d,function(){var y=Ye(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,a,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,i,n,o,s,l,u,v){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var f=e.get("formatter");l=l||e.get("position");var c=a,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(f)if(Re(f)){var g=e.ecModel.get("useUTC"),m=Se(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=f,y&&(c=Zh(m.axisValue,c,g)),c=gC(c,i,!0)}else if(He(f)){var _=Ne(function(x,S){x===this._ticket&&(h.setContent(S,v,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=n,c=f(i,n,_)}else c=f;h.setContent(c,v,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,a,i,n){if(i==="axis"||Se(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!Se(a))return{color:n||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,i,n,o,s,l){var u=this._api.getWidth(),v=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),f=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),He(a)&&(a=a([i,n],s,o.el,d,{viewSize:[u,v],contentSize:h.slice()})),Se(a))i=Ie(a[0],u),n=Ie(a[1],v);else if($e(a)){var p=a;p.width=h[0],p.height=h[1];var g=dr(p,{width:u,height:v});i=g.x,n=g.y,f=null,c=null}else if(Re(a)&&l){var m=efe(a,d,h,e.get("borderWidth"));i=m[0],n=m[1]}else{var m=jhe(i,n,o,u,v,f?null:20,c?null:20);i=m[0],n=m[1]}if(f&&(i-=vE(f)?h[0]/2:f==="right"?h[0]:0),c&&(n-=vE(c)?h[1]/2:c==="bottom"?h[1]:0),I7(e)){var m=Jhe(i,n,o,u,v);i=m[0],n=m[1]}o.moveTo(i,n)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===e.length;return o&&$(i,function(s,l){var u=s.dataByAxis||[],v=e[l]||{},h=v.dataByAxis||[];o=o&&u.length===h.length,o&&$(u,function(f,c){var d=h[c]||{},p=f.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&f.value===d.value&&f.axisType===d.axisType&&f.axisId===d.axisId&&p.length===g.length,o&&$(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),n&&$(f.seriesDataIndices,function(m){var y=m.seriesIndex,_=a[y],x=n[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){vt.node||!a.getDom()||(Sh(this,"_updatePosition"),this._tooltipContent.dispose(),nA("itemTooltip",a))},t.type="tooltip",t})(Wt);function iv(r,t,e){var a=t.ecModel,i;e?(i=new Mt(e,a,a),i=new Mt(t.option,i,a)):i=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Re(o)&&(o={formatter:o}),o&&(i=new Mt(o,i,a)))}return i}function uE(r,t){return r.dispatchAction||Ne(t.dispatchAction,t)}function jhe(r,t,e,a,i,n,o){var s=e.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function Jhe(r,t,e,a,i){var n=e.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function efe(r,t,e,a){var i=e[0],n=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,v=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+v/2-n/2;break;case"top":s=t.x+u/2-i/2,l=t.y-n-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+v+o;break;case"left":s=t.x-i-o,l=t.y+v/2-n/2;break;case"right":s=t.x+u+o,l=t.y+v/2-n/2}return[s,l]}function vE(r){return r==="center"||r==="middle"}function tfe(r,t,e){var a=$A(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Hh(t,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var v=Xe(u).tooltipConfig;if(v&&v.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function rfe(r){ot(of),r.registerComponentModel(Bhe),r.registerComponentView(Qhe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ir),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ir)}var afe=["rect","polygon","keep","clear"];function ife(r,t){var e=Nt(r?r.brush:[]);if(e.length){var a=[];$(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var i=r&&r.toolbox;Se(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),nfe(s),t&&!s.length&&s.push.apply(s,afe)}}function nfe(r){var t={};$(r,function(e){t[e]=1}),r.length=0,$(t,function(e,a){r.push(a)})}var hE=$;function fE(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function hA(r,t,e){var a={};return hE(t,function(n){var o=a[n]=i();hE(r[n],function(s,l){if(Ar.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new Ar(u),l==="opacity"&&(u=Ye(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ar(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function k7(r,t,e){var a;$(e,function(i){t.hasOwnProperty(i)&&fE(t[i])&&(a=!0)}),a&&$(e,function(i){t.hasOwnProperty(i)&&fE(t[i])?r[i]=Ye(t[i]):delete r[i]})}function ofe(r,t,e,a,i,n){var o={};$(r,function(h){var f=Ar.prepareVisualTypes(t[h]);o[h]=f});var s;function l(h){return CC(e,s,h)}function u(h,f){fU(e,s,h,f)}e.each(v);function v(h,f){s=h;var c=e.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(i,h),p=t[d],g=o[d],m=0,y=g.length;mt[0][1]&&(t[0][1]=n[0]),n[1]t[1][1]&&(t[1][1]=n[1])}return t&&mE(t)}};function mE(r){return new at(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var dfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new lM(a.getZr())).on("brush",Ne(this._onBrush,this)).mount()},t.prototype.render=function(e,a,i,n){this.model=e,this._updateController(e,a,i,n)},t.prototype.updateTransform=function(e,a,i,n){O7(a),this._updateController(e,a,i,n)},t.prototype.updateVisual=function(e,a,i,n){this.updateTransform(e,a,i,n)},t.prototype.updateView=function(e,a,i,n){this._updateController(e,a,i,n)},t.prototype._updateController=function(e,a,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Ye(i),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Ye(i),$from:a})},t.type="brush",t})(Wt),pfe="#ddd",gfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var i=this.option;!a&&k7(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pfe},n.hasOwnProperty("liftZ")||(n.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=we(e,function(a){return yE(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=yE(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t})(ut);function yE(r,t){return tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Mt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var mfe=["rect","polygon","lineX","lineY","keep","clear"],yfe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i){var n,o,s;a.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,$(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,i){this.render(e,a,i)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),i={};return $(e.get("type",!0),function(n){a[n]&&(i[n]=a[n])}),i},t.prototype.onclick=function(e,a,i){var n=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:mfe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t})(qa);function _fe(r){r.registerComponentView(dfe),r.registerComponentModel(gfe),r.registerPreprocessor(ife),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ufe),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ir),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ir),Pl("brush",yfe)}var xfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(ut),Sfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){if(this.group.removeAll(),!!e.get("show")){var n=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Je(e.get("textBaseline"),e.get("textVerticalAlign")),v=new pt({style:Ht(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=v.getBoundingRect(),f=e.get("subtext"),c=new pt({style:Ht(s,{text:f,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);v.silent=!d&&!g,c.silent=!p&&!g,d&&v.on("click",function(){Od(d,"_"+e.get("target"))}),p&&c.on("click",function(){Od(p,"_"+e.get("subtarget"))}),Xe(v).eventData=Xe(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,n.add(v),f&&n.add(c);var m=n.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=dr(y,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var x={align:l,verticalAlign:u};v.setStyle(x),c.setStyle(x),m=n.getBoundingRect();var S=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new gt({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(w)}},t.type="title",t})(Wt);function bfe(r){r.registerComponentModel(xfe),r.registerComponentView(Sfe)}var _E=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],i=e.axisType,n=this._names=[],o;i==="category"?(o=[],$(a,function(u,v){var h=_r(iu(u),""),f;$e(u)?(f=Ye(u),f.value=v):f=v,o.push(f),n.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Xr([{name:"value",type:s}],this);l.initData(o,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t})(ut),N7=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=go(_E.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t})(_E);nr(N7,qp.prototype);var wfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t})(Wt),Tfe=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this,e,a,i)||this;return o.type=n||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(Ja),Ey=Math.PI,xE=yt(),Afe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,i){if(this.model=e,this.api=i,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var n=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,e);e.formatTooltip=function(u){var v=l.scale.getLabel({value:u});return Mr("nameValue",{noName:!0,value:v})},$(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,e)},this),this._renderAxisLabel(n,s,l,e),this._position(n,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var i=e.get(["label","position"]),n=e.get("orient"),o=Mfe(e,a),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:Ey/2},h=n==="vertical"?o.height:o.width,f=e.getModel("controlStyle"),c=f.get("show",!0),d=c?f.get("itemSize"):0,p=c?f.get("itemGap"):0,g=d+p,m=e.get(["label","rotate"])||0;m=m*Ey/180;var y,_,x,S=f.get("position",!0),b=c&&f.get("showPlayBtn",!0),w=c&&f.get("showPrevBtn",!0),A=c&&f.get("showNextBtn",!0),T=0,C=h;S==="left"||S==="bottom"?(b&&(y=[0,0],T+=g),w&&(_=[T,0],T+=g),A&&(x=[C-d,0],C-=g)):(b&&(y=[C-d,0],C-=g),w&&(_=[0,0],T+=g),A&&(x=[C-d,0],C-=g));var M=[T,C];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:v[n],labelRotation:m,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:_,nextBtnPosition:x,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var i=this._mainGroup,n=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=xa(),l=o.x,u=o.y+o.height;yi(s,s,[-l,-u]),co(s,s,-Ey/2),yi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=y(o),h=y(i.getBoundingRect()),f=y(n.getBoundingRect()),c=[i.x,i.y],d=[n.x,n.y];d[0]=c[0]=v[0][0];var p=e.labelPosOpt;if(p==null||Re(p)){var g=p==="+"?0:1;_(c,h,v,1,g),_(d,f,v,1,1-g)}else{var g=p>=0?0:1;_(c,h,v,1,g),d[1]=c[1]+p}i.setPosition(c),n.setPosition(d),i.rotation=n.rotation=e.rotation,m(i),m(n);function m(x){x.originX=v[0][0]-x.x,x.originY=v[1][0]-x.y}function y(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,S,b,w,A){x[w]+=b[w][A]-S[w][A]}},t.prototype._createAxis=function(e,a){var i=a.getData(),n=a.get("axisType"),o=Cfe(a,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Tfe("value",o,e.axisExtent,n);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new Ze;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,i,n){var o=i.getExtent();if(n.get(["lineStyle","show"])){var s=new xr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:_e({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new xr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ue({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],$(l,function(u){var v=i.dataToCoord(u.value),h=s.getItemModel(u.value),f=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:v,y:0,onclick:Ne(o._changeTimeline,o,u.value)},g=SE(h,f,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),to(g);var m=Xe(g);h.get("tooltip")?(m.dataIndex=u.value,m.dataModel=n):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,i,n){var o=this,s=i.getLabelModel();if(s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],$(u,function(v){var h=v.tickValue,f=l.getItemModel(h),c=f.getModel("label"),d=f.getModel(["emphasis","label"]),p=f.getModel(["progress","label"]),g=i.dataToCoord(v.tickValue),m=new pt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Ne(o._changeTimeline,o,h),silent:!1,style:Ht(c,{text:v.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});m.ensureState("emphasis").style=Ht(d),m.ensureState("progress").style=Ht(p),a.add(m),to(m),xE(m).dataIndex=h,o._tickLabels.push(m)})}},t.prototype._renderControl=function(e,a,i,n){var o=e.controlSize,s=e.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),v=n.getPlayState(),h=n.get("inverse",!0);f(e.nextBtnPosition,"next",Ne(this._changeTimeline,this,h?"-":"+")),f(e.prevBtnPosition,"prev",Ne(this._changeTimeline,this,h?"+":"-")),f(e.playPosition,v?"stop":"play",Ne(this._handlePlayClick,this,!v),!0);function f(c,d,p,g){if(c){var m=_i(Je(n.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=Dfe(n,d+"Icon",y,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),to(_)}}},t.prototype._renderCurrentPointer=function(e,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(h){h.draggable=!0,h.drift=Ne(u._handlePointerDrag,u),h.ondragend=Ne(u._handlePointerDragend,u),bE(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){bE(h,u._progressLine,s,i,n)}};this._currentPointer=SE(l,l,this._mainGroup,{},this._currentPointer,v)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var i=this._toAxisCoord(e)[0],n=this._axis,o=Ta(n.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[n]=+o[n].toFixed(f)),[o,h]}var ky={min:et(Sc,"min"),max:et(Sc,"max"),average:et(Sc,"average"),median:et(Sc,"median")};function Eh(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,i=a&&a.dimensions;if(!kfe(t)&&!Se(t.coord)&&Se(i)){var n=z7(t,e,a,r);if(t=Ye(t),t.type&&ky[t.type]&&n.baseAxis&&n.valueAxis){var o=nt(i,n.baseAxis.dim),s=nt(i,n.valueAxis.dim),l=ky[t.type](e,n.baseDataDim,n.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Se(i))t.coord=[];else for(var u=t.coord,v=0;v<2;v++)ky[u[v]]&&(u[v]=VM(e,e.mapDimension(i[v]),u[v]));return t}}function z7(r,t,e,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(Ofe(a,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Ofe(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function kh(r,t){return r&&r.containData&&t.coord&&!cA(t)?r.containData(t.coord):!0}function Nfe(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!cA(t)&&!cA(e)?r.containZone(t.coord,e.coord):!0}function B7(r,t){return r?function(e,a,i,n){var o=n<2?e.coord&&e.coord[n]:e.value;return io(o,t[n])}:function(e,a,i,n){return io(e.value,t[n])}}function VM(r,t,e){if(e==="average"){var a=0,i=0;return r.each(t,function(n,o){isNaN(n)||(a+=n,i++)}),a/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Oy=yt(),GM=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Ge()},t.prototype.render=function(e,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){Oy(s).keep=!1}),a.eachSeries(function(s){var l=Cn.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!Oy(s).keep&&n.group.remove(s.group)})},t.prototype.markKeep=function(e){Oy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var i=this;$(e,function(n){var o=Cn.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?qq(l):JA(l))})}})},t.type="marker",t})(Wt);function TE(r,t,e){var a=t.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=Ie(n.get("x"),e.getWidth()),l=Ie(n.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(a){var u=r.get(a.dimensions[0],i),v=r.get(a.dimensions[1],i);o=a.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var zfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markPoint");o&&(TE(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new jh),h=Bfe(o,e,a);a.setData(h),TE(a.getData(),e,n),h.each(function(f){var c=h.getItemModel(f),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),m=c.getShallow("symbolOffset"),y=c.getShallow("symbolKeepAspect");if(He(d)||He(p)||He(g)||He(m)){var _=a.getRawValue(f),x=a.getDataParams(f);He(d)&&(d=d(_,x)),He(p)&&(p=p(_,x)),He(g)&&(g=g(_,x)),He(m)&&(m=m(_,x))}var S=c.getModel("itemStyle").getItemStyle(),b=Xh(l,"color");S.fill||(S.fill=b),h.setItemVisual(f,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:S})}),v.updateData(h),this.group.add(v.group),h.eachItemGraphicEl(function(f){f.traverse(function(c){Xe(c).dataModel=a})}),this.markKeep(v),v.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t})(GM);function Bfe(r,t,e){var a;r?a=we(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return _e(_e({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Xr(a,e),n=we(e.get("data"),et(Eh,t));r&&(n=Ct(n,et(kh,r)));var o=B7(!!r,a);return i.initData(n,null,o),i}function Vfe(r){r.registerComponentModel(Efe),r.registerComponentView(zfe),r.registerPreprocessor(function(t){BM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Gfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(Cn),bc=yt(),Ffe=function(r,t,e,a){var i=r.getData(),n;if(Se(a))n=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=wr(a.yAxis,a.xAxis);else{var u=z7(a,i,t,r);s=u.valueAxis;var v=BC(i,u.valueDataDim);l=VM(i,v,o)}var h=s.dim==="x"?0:1,f=1-h,c=Ye(a),d={coord:[]};c.type=null,c.coord=[],c.coord[f]=-1/0,d.coord[f]=1/0;var p=e.get("precision");p>=0&&bt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,n=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[Eh(r,n[0]),Eh(r,n[1]),_e({},n[2])];return g[2].type=g[2].type||null,tt(g[2],g[0]),tt(g[2],g[1]),g};function sp(r){return!isNaN(r)&&!isFinite(r)}function AE(r,t,e,a){var i=1-r,n=a.dimensions[r];return sp(t[i])&&sp(e[i])&&t[r]===e[r]&&a.getAxis(n).containData(t[r])}function Hfe(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(AE(1,e,a,r)||AE(0,e,a,r)))return!0}return kh(r,t[0])&&kh(r,t[1])}function Ny(r,t,e,a,i){var n=a.coordinateSystem,o=r.getItemModel(t),s,l=Ie(o.get("x"),i.getWidth()),u=Ie(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var v=n.dimensions,h=r.get(v[0],t),f=r.get(v[1],t);s=n.dataToPoint([h,f])}if(Fs(n,"cartesian2d")){var c=n.getAxis("x"),d=n.getAxis("y"),v=n.dimensions;sp(r.get(v[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):sp(r.get(v[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var qfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=bc(o).from,u=bc(o).to;l.each(function(v){Ny(l,v,!0,n,i),Ny(u,v,!1,n,i)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new sM);this.group.add(v.group);var h=Wfe(o,e,a),f=h.from,c=h.to,d=h.line;bc(a).from=f,bc(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),y=a.get("symbolOffset");Se(p)||(p=[p,p]),Se(g)||(g=[g,g]),Se(m)||(m=[m,m]),Se(y)||(y=[y,y]),h.from.each(function(x){_(f,x,!0),_(c,x,!1)}),d.each(function(x){var S=d.getItemModel(x).getModel("lineStyle").getLineStyle();d.setItemLayout(x,[f.getItemLayout(x),c.getItemLayout(x)]),S.stroke==null&&(S.stroke=f.getItemVisual(x,"style").fill),d.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:c.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(x,"symbolOffset"),toSymbolRotate:c.getItemVisual(x,"symbolRotate"),toSymbolSize:c.getItemVisual(x,"symbolSize"),toSymbol:c.getItemVisual(x,"symbol"),style:S})}),v.updateData(d),h.line.eachItemGraphicEl(function(x){Xe(x).dataModel=a,x.traverse(function(S){Xe(S).dataModel=a})});function _(x,S,b){var w=x.getItemModel(S);Ny(x,S,b,e,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Xh(l,"color")),x.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Je(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Je(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Je(w.get("symbolSize"),g[b?0:1]),symbol:Je(w.get("symbol",!0),p[b?0:1]),style:A})}this.markKeep(v),v.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t})(GM);function Wfe(r,t,e){var a;r?a=we(r&&r.dimensions,function(u){var v=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return _e(_e({},v),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Xr(a,e),n=new Xr(a,e),o=new Xr([],e),s=we(e.get("data"),et(Ffe,t,r,e));r&&(s=Ct(s,et(Hfe,r)));var l=B7(!!r,a);return i.initData(we(s,function(u){return u[0]}),null,l),n.initData(we(s,function(u){return u[1]}),null,l),o.initData(we(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}function Ufe(r){r.registerComponentModel(Gfe),r.registerComponentView(qfe),r.registerPreprocessor(function(t){BM(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var $fe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(Cn),wc=yt(),Yfe=function(r,t,e,a){var i=a[0],n=a[1];if(!(!i||!n)){var o=Eh(r,i),s=Eh(r,n),l=o.coord,u=s.coord;l[0]=wr(l[0],-1/0),l[1]=wr(l[1],-1/0),u[0]=wr(u[0],1/0),u[1]=wr(u[1],1/0);var v=yp([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function lp(r){return!isNaN(r)&&!isFinite(r)}function CE(r,t,e,a){var i=1-r;return lp(t[i])&&lp(e[i])}function Zfe(r,t){var e=t.coord[0],a=t.coord[1],i={coord:e,x:t.x0,y:t.y0},n={coord:a,x:t.x1,y:t.y1};return Fs(r,"cartesian2d")?e&&a&&(CE(1,e,a)||CE(0,e,a))?!0:Nfe(r,i,n):kh(r,i)||kh(r,n)}function ME(r,t,e,a,i){var n=a.coordinateSystem,o=r.getItemModel(t),s,l=Ie(o.get(e[0]),i.getWidth()),u=Ie(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var v=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),f=n.clampData(v),c=n.clampData(h),d=[];e[0]==="x0"?d[0]=f[0]>c[0]?h[0]:v[0]:d[0]=f[0]>c[0]?v[0]:h[0],e[1]==="y0"?d[1]=f[1]>c[1]?h[1]:v[1]:d[1]=f[1]>c[1]?v[1]:h[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),m=[p,g];n.clampData&&n.clampData(m,m),s=n.dataToPoint(m,!0)}if(Fs(n,"cartesian2d")){var y=n.getAxis("x"),_=n.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);lp(p)?s[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):lp(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var DE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Xfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=we(DE,function(h){return ME(s,l,h,n,i)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new Ze});this.group.add(v.group),this.markKeep(v);var h=Kfe(o,e,a);a.setData(h),h.each(function(f){var c=we(DE,function(A){return ME(h,f,A,e,n)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),y=[d.parse(h.get("x0",f)),d.parse(h.get("x1",f))],_=[p.parse(h.get("y0",f)),p.parse(h.get("y1",f))];Ta(y),Ta(_);var x=!(g[0]>y[1]||g[1]_[1]||m[1]<_[0]),S=!x;h.setItemLayout(f,{points:c,allClipped:S});var b=h.getItemModel(f).getModel("itemStyle").getItemStyle(),w=Xh(l,"color");b.fill||(b.fill=w,Re(b.fill)&&(b.fill=hh(b.fill,.4))),b.stroke||(b.stroke=w),h.setItemVisual(f,"style",b)}),h.diff(wc(v).data).add(function(f){var c=h.getItemLayout(f);if(!c.allClipped){var d=new jr({shape:{points:c.points}});h.setItemGraphicEl(f,d),v.group.add(d)}}).update(function(f,c){var d=wc(v).data.getItemGraphicEl(c),p=h.getItemLayout(f);p.allClipped?d&&v.group.remove(d):(d?wt(d,{shape:{points:p.points}},a,f):d=new jr({shape:{points:p.points}}),h.setItemGraphicEl(f,d),v.group.add(d))}).remove(function(f){var c=wc(v).data.getItemGraphicEl(f);v.group.remove(c)}).execute(),h.eachItemGraphicEl(function(f,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");f.useStyle(h.getItemVisual(c,"style")),Gr(f,Cr(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:Re(p.fill)?hh(p.fill,1):"#000"}),Vr(f,d),tr(f,null,null,d.get(["emphasis","disabled"])),Xe(f).dataModel=a}),wc(v).data=h,v.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t})(GM);function Kfe(r,t,e){var a,i,n=["x0","y0","x1","y1"];if(r){var o=we(r&&r.dimensions,function(u){var v=t.getData(),h=v.getDimensionInfo(v.mapDimension(u))||{};return _e(_e({},h),{name:u,ordinalMeta:null})});i=we(n,function(u,v){return{name:u,type:o[v%2].type}}),a=new Xr(i,e)}else i=[{name:"value",type:"float"}],a=new Xr(i,e);var s=we(e.get("data"),et(Yfe,t,r,e));r&&(s=Ct(s,et(Zfe,r)));var l=r?function(u,v,h,f){var c=u.coord[Math.floor(f/2)][f%2];return io(c,i[f])}:function(u,v,h,f){return io(u.value,i[f])};return a.initData(s,null,l),a.hasItemOption=!0,a}function Qfe(r){r.registerComponentModel($fe),r.registerComponentView(Xfe),r.registerPreprocessor(function(t){BM(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var jfe=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},dA=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,i=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),Se(a)&&$(a,function(n,o){Re(n)&&(n={type:n}),a[o]=tt(n,jfe(i,n.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ut),yl=et,pA=$,Tc=Ze,V7=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tc),this.group.add(this._selectorGroup=new Tc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,i,l,s,u);var v=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},f=e.get("padding"),c=dr(v,h,f),d=this.layoutInner(e,o,c,n,l,u),p=dr(Ue({width:d.width,height:d.height},v),h,f);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=M7(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,i,n,o,s,l){var u=this.getContentGroup(),v=Ge(),h=a.get("selectedMode"),f=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&f.push(c.id)}),pA(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p==="\n")){var g=new Tc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!v.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),b=this._createItem(m,p,d,c,a,e,_,S,x,h,n);b.on("click",yl(LE,p,null,n,f)).on("mouseover",yl(gA,m.name,null,n,f)).on("mouseout",yl(mA,m.name,null,n,f)),i.ssr&&b.eachChild(function(w){var A=Xe(w);A.seriesIndex=m.seriesIndex,A.dataIndex=d,A.ssrType="legend"}),v.set(p,!0)}else i.eachRawSeries(function(w){if(!v.get(p)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(p))return;var T=A.indexOfName(p),C=A.getItemVisual(T,"style"),M=A.getItemVisual(T,"legendIcon"),L=sa(C.fill);L&&L[3]===0&&(L[3]=.2,C=_e(_e({},C),{fill:pi(L,"rgba")}));var D=this._createItem(w,p,d,c,a,e,{},C,M,h,n);D.on("click",yl(LE,null,p,n,f)).on("mouseover",yl(gA,null,p,n,f)).on("mouseout",yl(mA,null,p,n,f)),i.ssr&&D.eachChild(function(P){var I=Xe(P);I.seriesIndex=w.seriesIndex,I.dataIndex=d,I.ssrType="legend"}),v.set(p,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},t.prototype._createSelector=function(e,a,i,n,o){var s=this.getSelectorGroup();pA(e,function(u){var v=u.type,h=new pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var f=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);Gr(h,{normal:f,emphasis:c},{defaultText:u.title}),to(h)})},t.prototype._createItem=function(e,a,i,n,o,s,l,u,v,h,f){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),_=n.get("icon");v=_||v||"roundRect";var x=Jfe(v,n,l,u,c,g,f),S=new Tc,b=n.getModel("textStyle");if(He(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:v,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;S.add(ece({itemWidth:d,itemHeight:p,icon:v,iconRotate:w,itemStyle:x.itemStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,T=s,C=o.get("formatter"),M=a;Re(C)&&C?M=C.replace("{name}",a!=null?a:""):He(C)&&(M=C(a));var L=g?b.getTextColor():n.get("inactiveColor");S.add(new pt({style:Ht(b,{text:M,x:A,y:p/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var D=new gt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&zs({el:D,componentModel:o,itemName:a,itemTooltipOption:P.option}),S.add(D),S.eachChild(function(I){I.silent=!0}),D.silent=!h,this.getContentGroup().add(S),to(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bs(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var v=l.getBoundingRect(),h=[-v.x,-v.y];if(u.markRedraw(),l.markRedraw(),o){bs("horizontal",u,e.get("selectorItemGap",!0));var f=u.getBoundingRect(),c=[-f.x,-f.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=v[g]+d:h[p]+=f[g]+d,c[1-p]+=v[m]/2-f[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=v[g]+d+f[g],_[m]=Math.max(v[m],f[m]),_[y]=Math.min(0,f[y]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Wt);function Jfe(r,t,e,a,i,n,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),pA(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),v=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:Ql(h,o),u.fill==="inherit"&&(u.fill=a[i]),u.stroke==="inherit"&&(u.stroke=a[v]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?a:e).opacity),s(u,a);var f=t.getModel("lineStyle"),c=f.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!n){var d=t.get("inactiveBorderWidth"),p=u[v];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function ece(r){var t=r.icon||"roundRect",e=lr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function LE(r,t,e,a){mA(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),gA(r,t,e,a)}function G7(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,i=t.length;ai[o],g=[-c.x,-c.y];a||(g[n]=v[u]);var m=[0,0],y=[-d.x,-d.y],_=Je(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[n]+=i[o]-d[o]:m[n]+=d[o]+_}y[1-n]+=c[s]/2-d[s]/2,v.setPosition(g),h.setPosition(m),f.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:c[o],S[s]=Math.max(c[s],d[s]),S[l]=Math.min(0,d[l]+y[1-n]),h.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],h.setClipPath(new gt({shape:b})),h.__rectSize=b[o]}else f.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&wt(v,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),S},t.prototype._pageGo=function(e,a,i){var n=this._getPageInfo(a)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var i=this._controllerGroup;$(["pagePrev","pageNext"],function(v){var h=v+"DataIndex",f=a[h]!=null,c=i.childOfName(v);c&&(c.setStyle("fill",f?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=f?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",Re(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,s=zy[o],l=By[o],u=this._findTargetItemIndex(a),v=i.children(),h=v[u],f=v.length,c=f?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=x(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=f;++g)_=x(v[g]),(!_&&y.e>m.s+n||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(v[g]),(!_||!S(y,_.s))&&m.i=w&&b.s<=w+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(a=s)}),a!=null?a:n},t.type="legend.scroll",t})(V7);function nce(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(a)})})}function oce(r){ot(F7),r.registerComponentModel(ace),r.registerComponentView(ice),nce(r)}function sce(r){ot(F7),ot(oce)}var lce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=go(Rh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Rh),FM=yt();function uce(r,t,e){FM(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function vce(r,t){for(var e=FM(r).coordSysRecordMap,a=e.keys(),i=0;ia[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function pce(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=FM(e),i=a.coordSysRecordMap||(a.coordSysRecordMap=Ge());i.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=T7(n);$(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,hce(e,s.model)),v=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ge());v.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){H7(i,n);return}var v=dce(l);o.enable(v.controlType,v.opt),o.setPointerChecker(n.containsPoint),mu(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var gce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),uce(i,e,{pan:Ne(Vy.pan,this),zoom:Ne(Vy.zoom,this),scrollMove:Ne(Vy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vce(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(RM),Vy={zoom:function(r,t,e,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(o){var s=Gy[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/a.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(qs(0,n,[0,100],0,v.minSpan,v.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:EE(function(r,t,e,a,i,n){var o=Gy[a]([n.oldX,n.oldY],[n.newX,n.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:EE(function(r,t,e,a,i,n){var o=Gy[a]([0,0],[n.scrollDelta,n.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*n.scrollDelta})};function EE(r){return function(t,e,a,i){var n=this.range,o=n.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,i);if(qs(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Gy={grid:function(r,t,e,a,i){var n=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,t,e,a,i){var n=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,t,e,a,i){var n=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};function q7(r){EM(r),r.registerComponentModel(lce),r.registerComponentView(gce),pce(r)}var mce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=go(Rh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})(Rh),sv=gt,kE=7,yce=1,Fy=30,_ce=7,lv="horizontal",OE="vertical",xce=5,Sce=["line","bar","candlestick","scatter"],bce={easing:"cubicOut",duration:100,delay:0},wce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Ne(this._onBrush,this),this._onBrushEnd=Ne(this._onBrushEnd,this)},t.prototype.render=function(e,a,i,n){if(r.prototype.render.apply(this,arguments),mu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Sh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new Ze;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,i=e.get("brushSelect"),n=i?_ce:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===lv?{right:s.width-o.x-o.width,top:s.height-Fy-kE-n,width:o.width,height:Fy}:{right:kE,top:o.y,width:Fy,height:o.height},u=cu(e.option);$(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var v=dr(u,s);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===OE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===lv&&!o?{scaleY:l?1:-1,scaleX:1}:i===lv&&o?{scaleY:l?1:-1,scaleX:-1}:i===OE&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,i=this._displayables.sliderGroup,n=e.get("brushSelect");i.add(new sv({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new sv({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Ne(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,i=this._shadowSize||[],n=e.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,v=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==i[0]||a[1]!==i[1]){var h=o.getDataExtent(l),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var c=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],m=d[1]/(o.count()-1),y=0,_=Math.round(o.count()/a[0]),x;o.each([l],function(T,C){if(_>0&&C%_){y+=m;return}var M=T==null||isNaN(T)||T==="",L=M?0:Pt(T,h,c,!0);M&&!x&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(p.push([y,0]),g.push([y,0])),p.push([y,L]),g.push([y,L]),y+=m,x=M}),u=this._shadowPolygonPts=p,v=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var S=this.dataZoomModel;function b(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),M=new Ze,L=new jr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new ea({shape:{points:v},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(D),M}for(var w=0;w<3;w++){var A=b(w===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var i,n=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();$(l,function(u){if(!i&&!(a!==!0&&nt(Sce,u.get("type"))<0)){var v=n.getComponent(jn(o),s).axis,h=Tce(o),f,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(f=c.getOtherAxis(v).inverse),h=u.getData().mapDimension(h),i={thisAxis:v,series:u,thisDim:o,otherDim:h,otherAxisInverse:f}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,i=a.handles=[null,null],n=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,v=l.get("borderRadius")||0,h=l.get("brushSelect"),f=a.filler=new sv({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new sv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:v},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:yce,fill:"rgba(0,0,0,0)"}})),$([0,1],function(_){var x=l.get("handleIcon");!Bd[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=lr(x,-1,0,2,2,null,!0);S.attr({cursor:NE(this._orient),draggable:!0,drift:Ne(this._onDragMove,this,_),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Ie(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),to(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(i[_]=S);var T=l.getModel("textStyle"),C=l.get("handleLabel")||{},M=C.show||!1;e.add(n[_]=new pt({silent:!0,invisible:!M,style:Ht(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var c=f;if(h){var d=Ie(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new gt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=a.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new gt({invisible:!0,shape:{y:s[1]-y,height:d+y}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(c)}c.attr({draggable:!0,cursor:NE(this._orient),drift:Ne(this._onDragMove,this,"all"),ondragstart:Ne(this._showDataInfo,this,!0),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Pt(e[0],[0,100],a,!0),Pt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];qs(a,n,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Pt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Pt(s.maxSpan,l,o,!0):null);var u=this._range,v=this._range=Ta([Pt(n[0],o,l,!0),Pt(n[1],o,l,!0)]);return!u||u[0]!==v[0]||u[1]!==v[1]},t.prototype._updateView=function(e){var a=this._displayables,i=this._handleEnds,n=Ta(i.slice()),o=this._size;$([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,n[0],n[1],o[0]],v=0;va[0]||i[1]<0||i[1]>a[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,i=e.offsetY;this._brushStart=new rt(a,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var i=a.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ta([Pt(i.x,o,s,!0),Pt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(_n(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new sv({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),v=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:v[0],y:0,width:u[0]-v[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?bce:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=T7(this.dataZoomModel).infoList;if(!e&&a.length){var i=a[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var n=this.api.getWidth(),o=this.api.getHeight();e={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(RM);function Tce(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function NE(r){return r==="vertical"?"ns-resize":"ew-resize"}function W7(r){r.registerComponentModel(mce),r.registerComponentView(wce),EM(r)}function Ace(r){ot(q7),ot(W7)}var U7={get:function(r,t,e){var a=Ye((Cce[r]||{})[t]);return e&&Se(a)?a[a.length-1]:a}},Cce={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},zE=Ar.mapVisual,Mce=Ar.eachVisual,Dce=Se,BE=$,Lce=Ta,Ice=Pt,up=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,a){var i=this.option;!a&&k7(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Ne(e,this),this.controllerVisuals=hA(this.option.controller,a,e),this.targetVisuals=hA(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,n){a.push(n)}):a=Nt(e),a},t.prototype.eachTargetSeries=function(e,a){$(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(a,n)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(i){i===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],Se(e)&&(e=e.slice(),u=!0);var v=a?e:u?[h(e[0]),h(e[1])]:h(e);if(Re(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(He(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+v[1]:e[1]===s[1]?i[1]+" "+v[0]:v[0]+" - "+v[1];return v;function h(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=Lce([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var i=e.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});tt(n,i),tt(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),v.call(this,o);function l(h){Dce(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,f,c){var d=h[f],p=h[c];d&&!p&&(p=h[c]={},BE(d,function(g,m){if(Ar.isValidType(m)){var y=U7.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function v(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";BE(this.stateList,function(m){var y=this.itemSize,_=h[m];_||(_=h[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=f&&Ye(f)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Ye(c)||(s?y[0]:[y[0],y[0]])),_.symbol=zE(_.symbol,function(b){return b==="none"?g:b});var x=_.symbolSize;if(x!=null){var S=-1/0;Mce(x,function(b){b>S&&(S=b)}),_.symbolSize=zE(x,function(b){return Ice(b,[0,S],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(ut),VE=[20,140],Pce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=VE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=VE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):Se(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),$(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ta((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=i[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},t.prototype.getVisualMeta=function(e){var a=GE(this,"outOfRange",this.getExtent()),i=GE(this,"inRange",this.option.range.slice()),n=[];function o(c,d){n.push({value:c,color:e(c,d)})}for(var s=0,l=0,u=i.length,v=a.length;le[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),n},t.prototype._createBarPoints=function(e,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,i=this.visualMapModel.get("inverse");return new Ze(a==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent(),v=this._applyTransform("left",i.mainGroup);Rce([0,1],function(h){var f=o[h];f.setStyle("fill",a.handlesColor[h]),f.y=e[h];var c=Ni(e[h],[0,l[1]],u,!0),d=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var p=gi(i.handleLabelPoints[h],ro(f,this.group));if(this._orient==="horizontal"){var g=v==="left"||v==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[h].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,h=v.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},c=this.getControllerVisual(e,"color",f),d=this.getControllerVisual(e,"symbolSize"),p=Ni(e,s,u,!0),g=l[0]-d/2,m={x:h.x,y:h.y};h.y=p,h.x=g;var y=gi(v.indicatorLabelPoint,ro(h,this.group)),_=v.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",v.mainGroup),S=this._orient,b=S==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:b?x:"middle",align:b?"center":x});var w={x:g,y:p,style:{fill:c}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};h.x=m.x,h.y=m.y,h.animateTo(w,T),_.animateTo(A,T)}else h.attr(w),_.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(v,h[1],"< ",l):h[1]===1/0?this._showIndicator(v,h[0],"> ",l):this._showIndicator(v,v,"≈ ",l));var f=this._hoverLinkDataIndices,c=[];(a||WE(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=dX(f,c);this._dispatchHighDown("downplay",cd(d[0],i)),this._dispatchHighDown("highlight",cd(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(ps(e.target,function(l){var u=Xe(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var i=this.ecModel.getSeriesByIndex(a.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var o=i.getData(a.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i=0&&(n.dimension=o,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function Gce(r,t,e,a){for(var i=t.targetVisuals[a],n=Ar.prepareVisualTypes(i),o={color:Xh(r.getData(),"color")},s=0,l=n.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(zce,Bce),$(Vce,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Fce))}function X7(r){r.registerComponentModel(Pce),r.registerComponentView(Oce),Z7(r)}var Hce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],qce[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ye(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=we(this._pieceList,function(l){return l=Ye(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},i=Ar.listVisualTypes(),n=this.isCategory();$(e.pieces,function(s){$(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),$(a,function(s,l){var u=!1;$(this.stateList,function(v){u=u||o(e,v,l)||o(e.target,v,l)},this),!u&&$(this.stateList,function(v){(e[v]||(e[v]={}))[l]=U7.get(l,v==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var i=this.option,n=this._pieceList,o=(a?i:e).selected||{};if(i.selected=o,$(n,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),i.selectedMode==="single"){var s=!1;$(n,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Ye(e)},t.prototype.getValueState=function(e){var a=Ar.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=Ar.findPieceIndex(l,i);v===e&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var i=e.interval||[];a=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(v,h){var f=n.getRepresentValue({interval:v});h||(h=n.getValueState(f));var c=e(f,h);v[0]===-1/0?i[0]=c:v[1]===1/0?i[1]=c:a.push({value:v[0],color:c},{value:v[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return $(s,function(v){var h=v.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=go(up.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(up),qce={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function ZE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Wce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=a.itemSize,v=this._getViewData(),h=v.endsText,f=wr(a.get("showLabel",!0),!h),c=!a.get("selectedMode");h&&this._renderEndsText(e,h[0],u,f,l),$(v.viewPieceList,function(d){var p=d.piece,g=new Ze;g.onclick=Ne(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var m=a.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]],c),f){var y=this.visualMapModel.getValueState(m);g.add(new pt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1},silent:c}))}e.add(g)},this),h&&this._renderEndsText(e,h[1],u,f,l),bs(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:cd(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return Y7(e,this.api,e.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,a,i,n,o){if(a){var s=new Ze,l=this.visualMapModel.textStyleModel;s.add(new pt({style:Ht(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=we(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),n=e.get("orient"),o=e.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},t.prototype._createItemSymbol=function(e,a,i,n){var o=lr(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color"));o.silent=n,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,i=a.option,n=i.selectedMode;if(n){var o=Ye(i.selected),s=a.getSelectedMapKey(e);n==="single"||n===!0?(o[s]=!0,$(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})($7);function K7(r){r.registerComponentModel(Hce),r.registerComponentView(Wce),Z7(r)}function Uce(r){ot(X7),ot(K7)}var $ce={label:{enabled:!0},decal:{show:!1}},XE=yt(),Yce={};function Zce(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Ye($ce);tt(a.label,r.getLocaleModel().get("aria"),!1),tt(e.option,a,!1),i(),n();function i(){var u=e.getModel("decal"),v=u.get("show");if(v){var h=Ge();r.eachSeries(function(f){if(!f.isColorBySeries()){var c=h.get(f.type);c||(c={},h.set(f.type,c)),XE(f).scope=c}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(He(f.enableAriaDecal)){f.enableAriaDecal();return}var c=f.getData();if(f.isColorBySeries()){var y=_T(f.ecModel,f.name,Yce,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",x(_,y))}else{var d=f.getRawData(),p={},g=XE(f).scope;c.each(function(S){var b=c.getRawIndex(S);p[b]=S});var m=d.count();d.each(function(S){var b=p[S],w=d.getName(S)||S+"",A=_T(f.ecModel,w,g,m),T=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",x(T,A))})}function x(S,b){var w=S?_e(_e({},b),S):b;return w.dirty=!0,w}})}}function n(){var u=t.getZr().dom;if(u){var v=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=Ue(h.option,v),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var f=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,p=Math.min(f,d),g;if(!(f<1)){var m=s();if(m){var y=h.get(["general","withTitle"]);g=o(y,{title:m})}else g=h.get(["general","withoutTitle"]);var _=[],x=f>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(x,{seriesCount:f}),r.eachSeries(function(A,T){if(T1?h.get(["series","multiple",L]):h.get(["series","single",L]),C=o(C,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var D=A.getData();if(D.count()>c){var P=h.get(["data","partialData"]);C+=o(P,{displayCnt:c})}else C+=h.get(["data","allData"]);for(var I=h.get(["data","separator","middle"]),R=h.get(["data","separator","end"]),E=h.get(["data","excludeDimensionId"]),k=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Qce=(function(){function r(t){var e=this._condVal=Re(t)?new RegExp(t):O4(t)?t:null;if(e==null){var a="";Rt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Re(e)?this._condVal.test(t):bt(e)?this._condVal.test(t+""):!1},r})(),jce=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Jce=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(i),i=[D,P]}function v(D,P,I,R){Nl(D,I)&&Nl(P,R)||i.push(D,P,I,R,I,R)}function h(D,P,I,R,E,k){var B=Math.abs(P-D),F=Math.tan(B/4)*4/3,V=PA:M2&&a.push(i),a}function _A(r,t,e,a,i,n,o,s,l,u){if(Nl(r,e)&&Nl(t,a)&&Nl(i,o)&&Nl(n,s)){l.push(o,s);return}var v=2/u,h=v*v,f=o-r,c=s-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var p=e-r,g=a-t,m=i-o,y=n-s,_=p*p+g*g,x=m*m+y*y;if(_=0&&A=0){l.push(o,s);return}var T=[],C=[];so(r,e,i,o,.5,T),so(t,a,n,s,.5,C),_A(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),_A(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function fde(r,t){var e=yA(r),a=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),h=J7([l,u],v?0:1,t),f=(v?s:u)/h.length,c=0;ci,o=J7([a,i],n?0:1,t),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",v=n?"y":"x",h=r[s]/o.length,f=0;f1?null:new rt(p*l+r,p*u+t)}function pde(r,t,e){var a=new rt;rt.sub(a,e,t),a.normalize();var i=new rt;rt.sub(i,r,t);var n=i.dot(a);return n}function xl(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function gde(r,t,e){for(var a=r.length,i=[],n=0;no?(u.x=v.x=s+n/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+n),gde(t,u,v)}function vp(r,t,e,a){if(e===1)a.push(t);else{var i=Math.floor(e/2),n=r(t);vp(r,n[0],i,a),vp(r,n[1],e-i,a)}return a}function mde(r,t){for(var e=[],a=0;a0;u/=2){var v=0,h=0;(r&u)>0&&(v=1),(t&u)>0&&(h=1),s+=u*u*(3*v^h),h===0&&(v===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function cp(r){var t=1/0,e=1/0,a=-1/0,i=-1/0,n=we(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(v,t),e=Math.min(h,e),a=Math.max(v,a),i=Math.max(h,i),[v,h]}),o=we(n,function(s,l){return{cp:s,z:Cde(s[0],s[1],t,e,a,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function r9(r){return xde(r.path,r.count)}function xA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mde(r,t,e){var a=[];function i(S){for(var b=0;b=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var n=l.length,u=Math.ceil(n/2);e[i].many=l.slice(u,n),e[s].many=l.slice(0,u),s++}return e}var Lde={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;ik(r)&&(u=r,v=t),ik(t)&&(u=t,v=r);function h(m,y,_,x,S){var b=m.many,w=m.one;if(b.length===1&&!S){var A=y?b[0]:w,T=y?w:b[0];if(hp(A))h({many:[A],one:T},!0,_,x,!0);else{var C=s?Ue({delay:s(_,x)},l):l;qM(A,T,C),n(A,T,A,T,C)}}else for(var M=Ue({dividePath:Lde[e],individualDelay:s&&function(E,k,B,F){return s(E+_,x)}},l),L=y?Mde(b,w,M):Dde(w,b,M),D=L.fromIndividuals,P=L.toIndividuals,I=D.length,R=0;Rt.length,c=u?nk(v,u):nk(f?t:r,[f?r:t]),d=0,p=0;pa9))for(var n=a.getIndices(),o=0;o0&&b.group.traverse(function(A){A instanceof ht&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function vk(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function hk(r){return Se(r)?r.sort().join(","):r}function Wn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Nde(r,t){var e=Ge(),a=Ge(),i=Ge();return $(r.oldSeries,function(n,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=vk(n),v=hk(u);a.set(v,{dataGroupId:s,data:l}),Se(u)&&$(u,function(h){i.set(h,{key:v,dataGroupId:s,data:l})})}),$(t.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var o=n.get("dataGroupId"),s=n.getData(),l=vk(n),u=hk(l),v=a.get(u);if(v)e.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Wn(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Wn(s),data:s}]});else if(Se(l)){var h=[];$(l,function(d){var p=a.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:Wn(p.data),data:p.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Wn(s)}]})}else{var f=i.get(l);if(f){var c=e.get(f.key);c||(c={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Wn(f.data)}],newSeries:[]},e.set(f.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Wn(s)})}}}}),e}function fk(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wn(t.oldData[s]),groupIdDim:o.dimension})}),$(Nt(r.to),function(o){var s=fk(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();n.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wn(l),groupIdDim:o.dimension})}}),i.length>0&&n.length>0&&i9(i,n,a)}function Bde(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){$(Nt(a.seriesTransition),function(i){$(Nt(i.to),function(n){for(var o=a.updatedSeries,s=0;s=Zo:-u>=Zo),c=u>0?u%Zo:u%Zo+Zo,d=!1;f?d=!0:Xn(h)?d=!1:d=c>=n9==!!v;var p=t+a*Yy(o),g=e+i*$y(o);this._start&&this._add("M",p,g);var m=Math.round(n*Vde);if(f){var y=1/this._p,_=(v?1:-1)*(Zo-y);this._add("A",a,i,m,1,+v,t+a*Yy(o+_),e+i*$y(o+_)),y>.01&&this._add("A",a,i,m,0,+v,p,g)}else{var x=t+a*Yy(s),S=e+i*$y(s);this._add("A",a,i,m,+d,+v,x,S)}},r.prototype.rect=function(t,e,a,i){this._add("M",t,e),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,i,n,o,s,l,u){for(var v=[],h=this._p,f=1;f"}function Zde(r){return""}function UM(r,t){t=t||{};var e=t.newline?"\n":"";function a(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return Yde(o,s)+(o!=="style"?Zr(l):l||"")+(n?""+e+we(n,function(u){return a(u)}).join(e)+e:"")+Zde(o)}return a(r)}function Xde(r,t,e){e=e||{};var a=e.newline?"\n":"",i=" {"+a,n=a+"}",o=we(ft(r),function(l){return l+i+we(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+n}).join(a),s=we(ft(t),function(l){return"@keyframes "+l+i+we(ft(t[l]),function(u){return u+i+we(ft(t[l][u]),function(v){var h=t[l][u][v];return v==="d"&&(h='path("'+h+'")'),v+":"+h+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":[""].join(a)}function bA(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dk(r,t,e,a){return Tr("svg","root",{width:r,height:t,xmlns:s9,"xmlns:xlink":l9,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var Kde=0;function v9(){return Kde++}var pk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},os="transform-origin";function Qde(r,t,e){var a=_e({},r.shape);_e(a,t),r.buildPath(e,a);var i=new o9;return i.reset(nq(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function jde(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[os]=e+"px "+a+"px")}var Jde={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function h9(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function epe(r,t,e){var a=r.shape.paths,i={},n,o;if($(a,function(l){var u=bA(e.zrId);u.animation=!0,ng(l,{},u,!0);var v=u.cssAnims,h=u.cssNodes,f=ft(v),c=f.length;if(c){o=f[c-1];var d=v[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in h){var y=h[m].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){t.d=!1;var s=h9(i,e);return n.replace(o,s)}}function gk(r){return Re(r)?pk[r]?"cubic-bezier("+pk[r]+")":zA(r)?r:"":""}function ng(r,t,e,a){var i=r.animators,n=i.length,o=[];if(r instanceof Ep){var s=epe(r,t,e);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var H=h9(w,e);return H+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=e.zrId+"-cls-"+v9();e.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function tpe(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};mk(a,t,e)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=i.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=Td(l))}var u=i.lineWidth;if(u){var v=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/v}var a={cursor:"pointer"};n&&(a.fill=n),i.stroke&&(a.stroke=i.stroke),u&&(a["stroke-width"]=u),mk(a,t,e)}}function mk(r,t,e,a){var i=JSON.stringify(r),n=e.cssStyleCache[i];n||(n=e.zrId+"-cls-"+v9(),e.cssStyleCache[i]=n,e.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var Oh=Math.round;function f9(r){return r&&Re(r.src)}function c9(r){return r&&He(r.toDataURL)}function $M(r,t,e,a){Wde(function(i,n){var o=i==="fill"||i==="stroke";o&&iq(n)?p9(t,r,i,a):o&&VA(n)?g9(e,r,i,a):r[i]=n,o&&a.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,e,!1),lpe(e,r,a)}function YM(r,t){var e=cq(t);e&&(e.each(function(a,i){a!=null&&(r[(ck+i).toLowerCase()]=a+"")}),t.isSilent()&&(r[ck+"silent"]="true"))}function yk(r){return Xn(r[0]-1)&&Xn(r[1])&&Xn(r[2])&&Xn(r[3]-1)}function rpe(r){return Xn(r[4])&&Xn(r[5])}function ZM(r,t,e){if(t&&!(rpe(t)&&yk(t))){var a=1e4;r.transform=yk(t)?"translate("+Oh(t[4]*a)/a+" "+Oh(t[5]*a)/a+")":_Z(t)}}function _k(r,t,e){for(var a=r.points,i=[],n=0;n"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Kr(f,g),Kr(c,g)}else if(f==null||c==null){var m=function(C,M){if(C){var L=C.elm,D=f||M.width,P=c||M.height;C.tag==="pattern"&&(u?(P=1,D/=n.width):v&&(D=1,P/=n.height)),C.attrs.width=D,C.attrs.height=P,L&&(L.setAttribute("width",D),L.setAttribute("height",P))}},y=ZA(d,null,r,function(C){l||m(b,C),m(h,C)});y&&y.width&&y.height&&(f=f||y.width,c=c||y.height)}h=Tr("image","img",{href:d,width:f,height:c}),o.width=f,o.height=c}else i.svgElement&&(h=Ye(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,x;l?_=x=1:u?(x=1,_=o.width/n.width):v?(_=1,x=o.height/n.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=oq(i);S&&(o.patternTransform=S);var b=Tr("pattern","",o,[h]),w=UM(b),A=a.patternCache,T=A[w];T||(T=a.zrId+"-p"+a.patternIdx++,A[w]=T,o.id=T,b=a.defs[T]=Tr("pattern",T,o,[h])),t[e]=wp(T)}}function upe(r,t,e){var a=e.clipPathCache,i=e.defs,n=a[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var o={id:n};a[r.id]=n,i[n]=Tr("clipPath",n,o,[d9(r,e)])}t["clip-path"]=wp(n)}function bk(r){return document.createTextNode(r)}function vs(r,t,e){r.insertBefore(t,e)}function wk(r,t){r.removeChild(t)}function Tk(r,t){r.appendChild(t)}function m9(r){return r.parentNode}function y9(r){return r.nextSibling}function Zy(r,t){r.textContent=t}var Ak=58,vpe=120,hpe=Tr("","");function wA(r){return r===void 0}function zi(r){return r!==void 0}function fpe(r,t,e){for(var a={},i=t;i<=e;++i){var n=r[i].key;n!==void 0&&(a[n]=i)}return a}function Vv(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Nh(r){var t,e=r.children,a=r.tag;if(zi(a)){var i=r.elm=u9(a);if(XM(hpe,r),Se(e))for(t=0;tn?(d=e[l+1]==null?null:e[l+1].elm,_9(r,d,e,i,l)):dp(r,t,a,n))}function Rl(r,t){var e=t.elm=r.elm,a=r.children,i=t.children;r!==t&&(XM(r,t),wA(t.text)?zi(a)&&zi(i)?a!==i&&cpe(e,a,i):zi(i)?(zi(r.text)&&Zy(e,""),_9(e,null,i,0,i.length-1)):zi(a)?dp(e,a,0,a.length-1):zi(r.text)&&Zy(e,""):r.text!==t.text&&(zi(a)&&dp(e,a,0,a.length-1),Zy(e,t.text)))}function dpe(r,t){if(Vv(r,t))Rl(r,t);else{var e=r.elm,a=m9(e);Nh(t),a!==null&&(vs(a,t.elm,y9(e)),dp(a,[r],0,0))}return t}var ppe=0,gpe=(function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Ck(),this.configLayer=Ck(),this.storage=e,this._opts=a=_e({},a),this.root=t,this._id="zr"+ppe++,this._oldVNode=dk(a.width,a.height),t&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=u9("svg");XM(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",dpe(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Sk(t,bA(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,i=this._height,n=bA(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=mpe(a,i,this._backgroundColor,n);s&&o.push(s);var l=t.compress?null:this._mainVNode=Tr("g","main",{},[]);this._paintList(e,n,l?l.children:o),l&&o.push(l);var u=we(ft(n.defs),function(f){return n.defs[f]});if(u.length&&o.push(Tr("defs","defs",{},u)),t.animation){var v=Xde(n.cssNodes,n.cssAnims,{newline:!0});if(v){var h=Tr("style","stl",{},[],v);o.push(h)}}return dk(a,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},UM(this.renderToVNode({animation:Je(t.cssAnimation,!0),emphasis:Je(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Je(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var i=t.length,n=[],o=0,s,l,u=0,v=0;v=0&&!(f&&l&&f[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=n[o-1];for(var m=p+1;m=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)A=g.__endIndex;else for(var C=c.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=a[i[l]]}if(i.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,i=0;i0?Ac:0),this._needsManuallyCompositing),v.__builtin__||mp("ZLevel "+u+" has been used by unkown layer "+v.id),v!==n&&(v.__used=!0,v.__startIndex!==l&&(v.__dirty=!0),v.__startIndex=l,v.incremental?v.__drawIndex=-1:v.__drawIndex=l,e(l),n=v),i.__dirty&ba&&!i.__inHover&&(v.__dirty=!0,v.incremental&&v.__drawIndex<0&&(v.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,f){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,$(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?tt(a[t],e,!0):a[t]=e;for(var i=0;i"u"&&(r=!0);var t=r;return jy.__DEV__=t,jy}var Ko={},Jy,Ik;function S9(){if(Ik)return Jy;Ik=1;var r=2311;function t(){return r++}return Jy=t,Jy}var e0,Pk;function pr(){if(Pk)return e0;Pk=1;var r={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?r={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document>"u"&&typeof self<"u"?r={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator>"u"?r={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r=e(navigator.userAgent);var t=r;function e(a){var i={},n={},o=a.match(/Firefox\/([\d.]+)/),s=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),l=a.match(/Edge\/([\d.]+)/),u=/micromessenger/i.test(a);return o&&(n.firefox=!0,n.version=o[1]),s&&(n.ie=!0,n.version=s[1]),l&&(n.edge=!0,n.version=l[1]),u&&(n.weChat=!0),{browser:n,os:i,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect<"u",touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:typeof document<"u"}}return e0=t,e0}var St={},Rk;function ie(){if(Rk)return St;Rk=1;var r={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},t={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},e=Object.prototype.toString,a=Array.prototype,i=a.forEach,n=a.filter,o=a.slice,s=a.map,l=a.reduce,u={};function v(Z,ee){Z==="createCanvas"&&(m=null),u[Z]=ee}function h(Z){if(Z==null||typeof Z!="object")return Z;var ee=Z,le=e.call(Z);if(le==="[object Array]"){if(!X(Z)){ee=[];for(var oe=0,fe=Z.length;oe"u"?Array:Float32Array;function t(C,M){var L=new r(2);return C==null&&(C=0),M==null&&(M=0),L[0]=C,L[1]=M,L}function e(C,M){return C[0]=M[0],C[1]=M[1],C}function a(C){var M=new r(2);return M[0]=C[0],M[1]=C[1],M}function i(C,M,L){return C[0]=M,C[1]=L,C}function n(C,M,L){return C[0]=M[0]+L[0],C[1]=M[1]+L[1],C}function o(C,M,L,D){return C[0]=M[0]+L[0]*D,C[1]=M[1]+L[1]*D,C}function s(C,M,L){return C[0]=M[0]-L[0],C[1]=M[1]-L[1],C}function l(C){return Math.sqrt(v(C))}var u=l;function v(C){return C[0]*C[0]+C[1]*C[1]}var h=v;function f(C,M,L){return C[0]=M[0]*L[0],C[1]=M[1]*L[1],C}function c(C,M,L){return C[0]=M[0]/L[0],C[1]=M[1]/L[1],C}function d(C,M){return C[0]*M[0]+C[1]*M[1]}function p(C,M,L){return C[0]=M[0]*L,C[1]=M[1]*L,C}function g(C,M){var L=l(M);return L===0?(C[0]=0,C[1]=0):(C[0]=M[0]/L,C[1]=M[1]/L),C}function m(C,M){return Math.sqrt((C[0]-M[0])*(C[0]-M[0])+(C[1]-M[1])*(C[1]-M[1]))}var y=m;function _(C,M){return(C[0]-M[0])*(C[0]-M[0])+(C[1]-M[1])*(C[1]-M[1])}var x=_;function S(C,M){return C[0]=-M[0],C[1]=-M[1],C}function b(C,M,L,D){return C[0]=M[0]+D*(L[0]-M[0]),C[1]=M[1]+D*(L[1]-M[1]),C}function w(C,M,L){var D=M[0],P=M[1];return C[0]=L[0]*D+L[2]*P+L[4],C[1]=L[1]*D+L[3]*P+L[5],C}function A(C,M,L){return C[0]=Math.min(M[0],L[0]),C[1]=Math.min(M[1],L[1]),C}function T(C,M,L){return C[0]=Math.max(M[0],L[0]),C[1]=Math.max(M[1],L[1]),C}return Qt.create=t,Qt.copy=e,Qt.clone=a,Qt.set=i,Qt.add=n,Qt.scaleAndAdd=o,Qt.sub=s,Qt.len=l,Qt.length=u,Qt.lenSquare=v,Qt.lengthSquare=h,Qt.mul=f,Qt.div=c,Qt.dot=d,Qt.scale=p,Qt.normalize=g,Qt.distance=m,Qt.dist=y,Qt.distanceSquare=_,Qt.distSquare=x,Qt.negate=S,Qt.lerp=b,Qt.applyTransform=w,Qt.min=A,Qt.max=T,Qt}var t0,kk;function wpe(){if(kk)return t0;kk=1;function r(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}r.prototype={constructor:r,_dragStart:function(a){for(var i=a.target;i&&!i.draggable;)i=i.parent;i&&(this._draggingTarget=i,i.dragging=!0,this._x=a.offsetX,this._y=a.offsetY,this.dispatchToElement(t(i,a),"dragstart",a.event))},_drag:function(a){var i=this._draggingTarget;if(i){var n=a.offsetX,o=a.offsetY,s=n-this._x,l=o-this._y;this._x=n,this._y=o,i.drift(s,l,a),this.dispatchToElement(t(i,a),"drag",a.event);var u=this.findHover(n,o,i).target,v=this._dropTarget;this._dropTarget=u,i!==u&&(v&&u!==v&&this.dispatchToElement(t(v,a),"dragleave",a.event),u&&u!==v&&this.dispatchToElement(t(u,a),"dragenter",a.event))}},_dragEnd:function(a){var i=this._draggingTarget;i&&(i.dragging=!1),this.dispatchToElement(t(i,a),"dragend",a.event),this._dropTarget&&this.dispatchToElement(t(this._dropTarget,a),"drop",a.event),this._draggingTarget=null,this._dropTarget=null}};function t(a,i){return{target:a,topTarget:i&&i.topTarget}}var e=r;return t0=e,t0}var r0,Ok;function Ws(){if(Ok)return r0;Ok=1;var r=Array.prototype.slice,t=function(n){this._$handlers={},this._$eventProcessor=n};t.prototype={constructor:t,one:function(n,o,s,l){return a(this,n,o,s,l,!0)},on:function(n,o,s,l){return a(this,n,o,s,l,!1)},isSilent:function(n){var o=this._$handlers;return!o[n]||!o[n].length},off:function(n,o){var s=this._$handlers;if(!n)return this._$handlers={},this;if(o){if(s[n]){for(var l=[],u=0,v=s[n].length;u3&&(l=r.call(l,1));for(var v=o.length,h=0;h4&&(l=r.call(l,1,l.length-1));for(var v=l[l.length-1],h=o.length,f=0;f>1)%2;m.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",c[y]+":0",d[_]+":0",c[1-y]+":auto",d[1-_]+":auto",""].join("!important;"),v.appendChild(g),f.push(g)}return f}function l(v,h,f){for(var c=f?"invTrans":"trans",d=h[c],p=h.srcCoords,g=!0,m=[],y=[],_=0;_<4;_++){var x=v[_].getBoundingClientRect(),S=2*_,b=x.left,w=x.top;m.push(b,w),g=g&&p&&b===p[S]&&w===p[S+1],y.push(v[_].offsetLeft,v[_].offsetTop)}return g&&d?d:(h.srcCoords=m,h[c]=f?e(y,m):e(m,y))}function u(v){return v.nodeName.toUpperCase()==="CANVAS"}return uv.transformLocalCoord=n,uv.transformCoordWithViewport=o,uv.isCanvasEl=u,uv}var Bk;function Ji(){if(Bk)return ii;Bk=1;var r=Ws();ii.Dispatcher=r;var t=pr(),e=b9(),a=e.isCanvasEl,i=e.transformCoordWithViewport,n=typeof window<"u"&&!!window.addEventListener,o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[];function l(m,y,_,x){return _=_||{},x||!t.canvasSupported?u(m,y,_):t.browser.firefox&&y.layerX!=null&&y.layerX!==y.offsetX?(_.zrX=y.layerX,_.zrY=y.layerY):y.offsetX!=null?(_.zrX=y.offsetX,_.zrY=y.offsetY):u(m,y,_),_}function u(m,y,_){if(t.domSupported&&m.getBoundingClientRect){var x=y.clientX,S=y.clientY;if(a(m)){var b=m.getBoundingClientRect();_.zrX=x-b.left,_.zrY=S-b.top;return}else if(i(s,m,x,S)){_.zrX=s[0],_.zrY=s[1];return}}_.zrX=_.zrY=0}function v(m){return m||window.event}function h(m,y,_){if(y=v(y),y.zrX!=null)return y;var x=y.type,S=x&&x.indexOf("touch")>=0;if(!S)l(m,y,y,_),y.zrDelta=y.wheelDelta?y.wheelDelta/120:-(y.detail||0)/3;else{var b=x!=="touchend"?y.targetTouches[0]:y.changedTouches[0];b&&l(m,b,y,_)}var w=y.button;return y.which==null&&w!==void 0&&o.test(y.type)&&(y.which=w&1?1:w&2?3:w&4?2:0),y}function f(m,y,_,x){n?m.addEventListener(y,_,x):m.attachEvent("on"+y,_)}function c(m,y,_,x){n?m.removeEventListener(y,_,x):m.detachEvent("on"+y,_)}var d=n?function(m){m.preventDefault(),m.stopPropagation(),m.cancelBubble=!0}:function(m){m.returnValue=!1,m.cancelBubble=!0};function p(m){return m.which===2||m.which===3}function g(m){return m.which>1}return ii.clientToLocal=l,ii.getNativeEvent=v,ii.normalizeEvent=h,ii.addEventListener=f,ii.removeEventListener=c,ii.stop=d,ii.isMiddleOrRightButtonOnMouseUpDown=p,ii.notLeftMouse=g,ii}var i0,Vk;function Ape(){if(Vk)return i0;Vk=1;var r=Ji(),t=function(){this._track=[]};t.prototype={constructor:t,recognize:function(o,s,l){return this._doTrack(o,s,l),this._recognize(o)},clear:function(){return this._track.length=0,this},_doTrack:function(o,s,l){var u=o.touches;if(u){for(var v={points:[],touches:[],target:s,event:o},h=0,f=u.length;h1&&u&&u.length>1){var h=e(u)/e(v);!isFinite(h)&&(h=1),s.pinchScale=h;var f=a(u);return s.pinchX=f[0],s.pinchY=f[1],{type:"pinch",target:o[0].target,event:s}}}}},n=t;return i0=n,i0}var n0,Gk;function Cpe(){if(Gk)return n0;Gk=1;var r=ie(),t=Jt(),e=wpe(),a=Ws(),i=Ji(),n=Ape(),o="silent";function s(p,g,m){return{type:p,event:m,target:g.target,topTarget:g.topTarget,cancelBubble:!1,offsetX:m.zrX,offsetY:m.zrY,gestureEvent:m.gestureEvent,pinchX:m.pinchX,pinchY:m.pinchY,pinchScale:m.pinchScale,wheelDelta:m.zrDelta,zrByTouch:m.zrByTouch,which:m.which,stop:l}}function l(){i.stop(this.event)}function u(){}u.prototype.dispose=function(){};var v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(p,g,m,y){a.call(this),this.storage=p,this.painter=g,this.painterRoot=y,m=m||new u,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,e.call(this),this.setHandlerProxy(m)};h.prototype={constructor:h,setHandlerProxy:function(p){this.proxy&&this.proxy.dispose(),p&&(r.each(v,function(g){p.on&&p.on(g,this[g],this)},this),p.handler=this),this.proxy=p},mousemove:function(p){var g=p.zrX,m=p.zrY,y=c(this,g,m),_=this._hovered,x=_.target;x&&!x.__zr&&(_=this.findHover(_.x,_.y),x=_.target);var S=this._hovered=y?{x:g,y:m}:this.findHover(g,m),b=S.target,w=this.proxy;w.setCursor&&w.setCursor(b?b.cursor:"default"),x&&b!==x&&this.dispatchToElement(_,"mouseout",p),this.dispatchToElement(S,"mousemove",p),b&&b!==x&&this.dispatchToElement(S,"mouseover",p)},mouseout:function(p){var g=p.zrEventControl,m=p.zrIsToLocalDOM;g!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",p),g!=="no_globalout"&&!m&&this.trigger("globalout",{type:"globalout",event:p})},resize:function(p){this._hovered={}},dispatch:function(p,g){var m=this[p];m&&m.call(this,g)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(p){var g=this.proxy;g.setCursor&&g.setCursor(p)},dispatchToElement:function(p,g,m){p=p||{};var y=p.target;if(!(y&&y.silent)){for(var _="on"+g,x=s(g,p,m);y&&(y[_]&&(x.cancelBubble=y[_].call(y,x)),y.trigger(g,x),y=y.parent,!x.cancelBubble););x.cancelBubble||(this.trigger(g,x),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[_]=="function"&&S[_].call(S,x),S.trigger&&S.trigger(g,x)}))}},findHover:function(p,g,m){for(var y=this.storage.getDisplayList(),_={x:p,y:g},x=y.length-1;x>=0;x--){var S;if(y[x]!==m&&!y[x].ignore&&(S=f(y[x],p,g))&&(!_.topTarget&&(_.topTarget=y[x]),S!==o)){_.target=y[x];break}}return _},processGesture:function(p,g){this._gestureMgr||(this._gestureMgr=new n);var m=this._gestureMgr;g==="start"&&m.clear();var y=m.recognize(p,this.findHover(p.zrX,p.zrY,null).target,this.proxy.dom);if(g==="end"&&m.clear(),y){var _=y.type;p.gestureEvent=_,this.dispatchToElement({target:y.target},_,y.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(p){h.prototype[p]=function(g){var m=g.zrX,y=g.zrY,_=c(this,m,y),x,S;if((p!=="mouseup"||!_)&&(x=this.findHover(m,y),S=x.target),p==="mousedown")this._downEl=S,this._downPoint=[g.zrX,g.zrY],this._upEl=S;else if(p==="mouseup")this._upEl=S;else if(p==="click"){if(this._downEl!==this._upEl||!this._downPoint||t.dist(this._downPoint,[g.zrX,g.zrY])>4)return;this._downPoint=null}this.dispatchToElement(x,p,g)}});function f(p,g,m){if(p[p.rectHover?"rectContain":"contain"](g,m)){for(var y=p,_;y;){if(y.clipPath&&!y.clipPath.contain(g,m))return!1;y.silent&&(_=!0),y=y.parent}return _?o:!0}return!1}function c(p,g,m){var y=p.painter;return g<0||g>y.getWidth()||m<0||m>y.getHeight()}r.mixin(h,a),r.mixin(h,e);var d=h;return n0=d,n0}var ni={},Fk;function ha(){if(Fk)return ni;Fk=1;var r=typeof Float32Array>"u"?Array:Float32Array;function t(){var v=new r(6);return e(v),v}function e(v){return v[0]=1,v[1]=0,v[2]=0,v[3]=1,v[4]=0,v[5]=0,v}function a(v,h){return v[0]=h[0],v[1]=h[1],v[2]=h[2],v[3]=h[3],v[4]=h[4],v[5]=h[5],v}function i(v,h,f){var c=h[0]*f[0]+h[2]*f[1],d=h[1]*f[0]+h[3]*f[1],p=h[0]*f[2]+h[2]*f[3],g=h[1]*f[2]+h[3]*f[3],m=h[0]*f[4]+h[2]*f[5]+h[4],y=h[1]*f[4]+h[3]*f[5]+h[5];return v[0]=c,v[1]=d,v[2]=p,v[3]=g,v[4]=m,v[5]=y,v}function n(v,h,f){return v[0]=h[0],v[1]=h[1],v[2]=h[2],v[3]=h[3],v[4]=h[4]+f[0],v[5]=h[5]+f[1],v}function o(v,h,f){var c=h[0],d=h[2],p=h[4],g=h[1],m=h[3],y=h[5],_=Math.sin(f),x=Math.cos(f);return v[0]=c*x+g*_,v[1]=-c*_+g*x,v[2]=d*x+m*_,v[3]=-d*_+x*m,v[4]=x*p+_*y,v[5]=x*y-_*p,v}function s(v,h,f){var c=f[0],d=f[1];return v[0]=h[0]*c,v[1]=h[1]*d,v[2]=h[2]*c,v[3]=h[3]*d,v[4]=h[4]*c,v[5]=h[5]*d,v}function l(v,h){var f=h[0],c=h[2],d=h[4],p=h[1],g=h[3],m=h[5],y=f*g-p*c;return y?(y=1/y,v[0]=g*y,v[1]=-p*y,v[2]=-c*y,v[3]=f*y,v[4]=(c*m-g*d)*y,v[5]=(p*d-f*m)*y,v):null}function u(v){var h=t();return a(h,v),h}return ni.create=t,ni.identity=e,ni.copy=a,ni.mul=i,ni.translate=n,ni.rotate=o,ni.scale=s,ni.invert=l,ni.clone=u,ni}var o0,Hk;function og(){if(Hk)return o0;Hk=1;var r=ha(),t=Jt(),e=r.identity,a=5e-5;function i(h){return h>a||h<-a}var n=function(h){h=h||{},h.position||(this.position=[0,0]),h.rotation==null&&(this.rotation=0),h.scale||(this.scale=[1,1]),this.origin=this.origin||null},o=n.prototype;o.transform=null,o.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)};var s=[];o.updateTransform=function(){var h=this.parent,f=h&&h.transform,c=this.needLocalTransform(),d=this.transform;if(!(c||f)){d&&e(d);return}d=d||r.create(),c?this.getLocalTransform(d):e(d),f&&(c?r.mul(d,h.transform,d):r.copy(d,h.transform)),this.transform=d;var p=this.globalScaleRatio;if(p!=null&&p!==1){this.getGlobalScale(s);var g=s[0]<0?-1:1,m=s[1]<0?-1:1,y=((s[0]-g)*p+g)/s[0]||0,_=((s[1]-m)*p+m)/s[1]||0;d[0]*=y,d[1]*=y,d[2]*=_,d[3]*=_}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,d)},o.getLocalTransform=function(h){return n.getLocalTransform(this,h)},o.setTransform=function(h){var f=this.transform,c=h.dpr||1;f?h.setTransform(c*f[0],c*f[1],c*f[2],c*f[3],c*f[4],c*f[5]):h.setTransform(c,0,0,c,0,0)},o.restoreTransform=function(h){var f=h.dpr||1;h.setTransform(f,0,0,f,0,0)};var l=[],u=r.create();o.setLocalTransform=function(h){if(h){var f=h[0]*h[0]+h[1]*h[1],c=h[2]*h[2]+h[3]*h[3],d=this.position,p=this.scale;i(f-1)&&(f=Math.sqrt(f)),i(c-1)&&(c=Math.sqrt(c)),h[0]<0&&(f=-f),h[3]<0&&(c=-c),d[0]=h[4],d[1]=h[5],p[0]=f,p[1]=c,this.rotation=Math.atan2(-h[1]/c,h[0]/f)}},o.decomposeTransform=function(){if(this.transform){var h=this.parent,f=this.transform;h&&h.transform&&(r.mul(l,h.invTransform,f),f=l);var c=this.origin;c&&(c[0]||c[1])&&(u[4]=c[0],u[5]=c[1],r.mul(l,f,u),l[4]-=c[0],l[5]-=c[1],f=l),this.setLocalTransform(f)}},o.getGlobalScale=function(h){var f=this.transform;return h=h||[],f?(h[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),h[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(h[0]=-h[0]),f[3]<0&&(h[1]=-h[1]),h):(h[0]=1,h[1]=1,h)},o.transformCoordToLocal=function(h,f){var c=[h,f],d=this.invTransform;return d&&t.applyTransform(c,c,d),c},o.transformCoordToGlobal=function(h,f){var c=[h,f],d=this.transform;return d&&t.applyTransform(c,c,d),c},n.getLocalTransform=function(h,f){f=f||[],e(f);var c=h.origin,d=h.scale||[1,1],p=h.rotation||0,g=h.position||[0,0];return c&&(f[4]-=c[0],f[5]-=c[1]),r.scale(f,f,d),p&&r.rotate(f,f,p),c&&(f[4]+=c[0],f[5]+=c[1]),f[4]+=g[0],f[5]+=g[1],f};var v=n;return o0=v,o0}var s0,qk;function Mpe(){if(qk)return s0;qk=1;var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)))},elasticOut:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-a)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?-.5*(i*Math.pow(2,10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)):i*Math.pow(2,-10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var a=1.70158;return e*e*((a+1)*e-a)},backOut:function(e){var a=1.70158;return--e*e*((a+1)*e+a)+1},backInOut:function(e){var a=2.5949095;return(e*=2)<1?.5*(e*e*((a+1)*e-a)):.5*((e-=2)*e*((a+1)*e+a)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?r.bounceIn(e*2)*.5:r.bounceOut(e*2-1)*.5+.5}},t=r;return s0=t,s0}var l0,Wk;function Dpe(){if(Wk)return l0;Wk=1;var r=Mpe();function t(a){this._target=a.target,this._life=a.life||1e3,this._delay=a.delay||0,this._initialized=!1,this.loop=a.loop==null?!1:a.loop,this.gap=a.gap||0,this.easing=a.easing||"Linear",this.onframe=a.onframe,this.ondestroy=a.ondestroy,this.onrestart=a.onrestart,this._pausedTime=0,this._paused=!1}t.prototype={constructor:t,step:function(a,i){if(this._initialized||(this._startTime=a+this._delay,this._initialized=!0),this._paused){this._pausedTime+=i;return}var n=(a-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var o=this.easing,s=typeof o=="string"?r[o]:o,l=typeof s=="function"?s(n):n;return this.fire("frame",l),n===1?this.loop?(this.restart(a),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(a){var i=(a-this._startTime-this._pausedTime)%this._life;this._startTime=a-i+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(a,i){a="on"+a,this[a]&&this[a](this._target,i)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var e=t;return l0=e,l0}var Oa={},u0,Uk;function w9(){if(Uk)return u0;Uk=1;var r=function(){this.head=null,this.tail=null,this._len=0},t=r.prototype;t.insert=function(o){var s=new e(o);return this.insertEntry(s),s},t.insertEntry=function(o){this.head?(this.tail.next=o,o.prev=this.tail,o.next=null,this.tail=o):this.head=this.tail=o,this._len++},t.remove=function(o){var s=o.prev,l=o.next;s?s.next=l:this.head=l,l?l.prev=s:this.tail=s,o.next=o.prev=null,this._len--},t.len=function(){return this._len},t.clear=function(){this.head=this.tail=null,this._len=0};var e=function(o){this.value=o,this.next,this.prev},a=function(o){this._list=new r,this._map={},this._maxSize=o||10,this._lastRemovedEntry=null},i=a.prototype;i.put=function(o,s){var l=this._list,u=this._map,v=null;if(u[o]==null){var h=l.len(),f=this._lastRemovedEntry;if(h>=this._maxSize&&h>0){var c=l.head;l.remove(c),delete u[c.key],v=c.value,this._lastRemovedEntry=c}f?f.value=s:f=new e(s),f.key=o,l.insertEntry(f),u[o]=f}return v},i.get=function(o){var s=this._map[o],l=this._list;if(s!=null)return s!==l.tail&&(l.remove(s),l.insertEntry(s)),s.value},i.clear=function(){this._list.clear(),this._map={}};var n=a;return u0=n,u0}var $k;function en(){if($k)return Oa;$k=1;var r=w9(),t={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(C){return C=Math.round(C),C<0?0:C>255?255:C}function a(C){return C=Math.round(C),C<0?0:C>360?360:C}function i(C){return C<0?0:C>1?1:C}function n(C){return C.length&&C.charAt(C.length-1)==="%"?e(parseFloat(C)/100*255):e(parseInt(C,10))}function o(C){return C.length&&C.charAt(C.length-1)==="%"?i(parseFloat(C)/100):i(parseFloat(C))}function s(C,M,L){return L<0?L+=1:L>1&&(L-=1),L*6<1?C+(M-C)*L*6:L*2<1?M:L*3<2?C+(M-C)*(2/3-L)*6:C}function l(C,M,L){return C+(M-C)*L}function u(C,M,L,D,P){return C[0]=M,C[1]=L,C[2]=D,C[3]=P,C}function v(C,M){return C[0]=M[0],C[1]=M[1],C[2]=M[2],C[3]=M[3],C}var h=new r(20),f=null;function c(C,M){f&&v(f,M),f=h.put(C,f||M.slice())}function d(C,M){if(C){M=M||[];var L=h.get(C);if(L)return v(M,L);C=C+"";var D=C.replace(/ /g,"").toLowerCase();if(D in t)return v(M,t[D]),c(C,M),M;if(D.charAt(0)==="#"){if(D.length===4){var P=parseInt(D.substr(1),16);if(!(P>=0&&P<=4095)){u(M,0,0,0,1);return}return u(M,(P&3840)>>4|(P&3840)>>8,P&240|(P&240)>>4,P&15|(P&15)<<4,1),c(C,M),M}else if(D.length===7){var P=parseInt(D.substr(1),16);if(!(P>=0&&P<=16777215)){u(M,0,0,0,1);return}return u(M,(P&16711680)>>16,(P&65280)>>8,P&255,1),c(C,M),M}return}var I=D.indexOf("("),R=D.indexOf(")");if(I!==-1&&R+1===D.length){var E=D.substr(0,I),k=D.substr(I+1,R-(I+1)).split(","),B=1;switch(E){case"rgba":if(k.length!==4){u(M,0,0,0,1);return}B=o(k.pop());case"rgb":if(k.length!==3){u(M,0,0,0,1);return}return u(M,n(k[0]),n(k[1]),n(k[2]),B),c(C,M),M;case"hsla":if(k.length!==4){u(M,0,0,0,1);return}return k[3]=o(k[3]),p(k,M),c(C,M),M;case"hsl":if(k.length!==3){u(M,0,0,0,1);return}return p(k,M),c(C,M),M;default:return}}u(M,0,0,0,1)}}function p(C,M){var L=(parseFloat(C[0])%360+360)%360/360,D=o(C[1]),P=o(C[2]),I=P<=.5?P*(D+1):P+D-P*D,R=P*2-I;return M=M||[],u(M,e(s(R,I,L+1/3)*255),e(s(R,I,L)*255),e(s(R,I,L-1/3)*255),1),C.length===4&&(M[3]=C[3]),M}function g(C){if(C){var M=C[0]/255,L=C[1]/255,D=C[2]/255,P=Math.min(M,L,D),I=Math.max(M,L,D),R=I-P,E=(I+P)/2,k,B;if(R===0)k=0,B=0;else{E<.5?B=R/(I+P):B=R/(2-I-P);var F=((I-M)/6+R/2)/R,V=((I-L)/6+R/2)/R,N=((I-D)/6+R/2)/R;M===I?k=N-V:L===I?k=1/3+F-N:D===I&&(k=2/3+V-F),k<0&&(k+=1),k>1&&(k-=1)}var O=[k*360,B,E];return C[3]!=null&&O.push(C[3]),O}}function m(C,M){var L=d(C);if(L){for(var D=0;D<3;D++)M<0?L[D]=L[D]*(1-M)|0:L[D]=(255-L[D])*M+L[D]|0,L[D]>255?L[D]=255:C[D]<0&&(L[D]=0);return T(L,L.length===4?"rgba":"rgb")}}function y(C){var M=d(C);if(M)return((1<<24)+(M[0]<<16)+(M[1]<<8)+ +M[2]).toString(16).slice(1)}function _(C,M,L){if(!(!(M&&M.length)||!(C>=0&&C<=1))){L=L||[];var D=C*(M.length-1),P=Math.floor(D),I=Math.ceil(D),R=M[P],E=M[I],k=D-P;return L[0]=e(l(R[0],E[0],k)),L[1]=e(l(R[1],E[1],k)),L[2]=e(l(R[2],E[2],k)),L[3]=i(l(R[3],E[3],k)),L}}var x=_;function S(C,M,L){if(!(!(M&&M.length)||!(C>=0&&C<=1))){var D=C*(M.length-1),P=Math.floor(D),I=Math.ceil(D),R=d(M[P]),E=d(M[I]),k=D-P,B=T([e(l(R[0],E[0],k)),e(l(R[1],E[1],k)),e(l(R[2],E[2],k)),i(l(R[3],E[3],k))],"rgba");return L?{color:B,leftIndex:P,rightIndex:I,value:D}:B}}var b=S;function w(C,M,L,D){if(C=d(C),C)return C=g(C),M!=null&&(C[0]=a(M)),L!=null&&(C[1]=o(L)),D!=null&&(C[2]=o(D)),T(p(C),"rgba")}function A(C,M){if(C=d(C),C&&M!=null)return C[3]=i(M),T(C,"rgba")}function T(C,M){if(!(!C||!C.length)){var L=C[0]+","+C[1]+","+C[2];return(M==="rgba"||M==="hsva"||M==="hsla")&&(L+=","+C[3]),M+"("+L+")"}}return Oa.parse=d,Oa.lift=m,Oa.toHex=y,Oa.fastLerp=_,Oa.fastMapToColor=x,Oa.lerp=S,Oa.mapToColor=b,Oa.modifyHSL=w,Oa.modifyAlpha=A,Oa.stringify=T,Oa}var v0,Yk;function T9(){if(Yk)return v0;Yk=1;var r=Dpe(),t=en(),e=ie(),a=e.isArrayLike,i=Array.prototype.slice;function n(x,S){return x[S]}function o(x,S,b){x[S]=b}function s(x,S,b){return(S-x)*b+x}function l(x,S,b){return b>.5?S:x}function u(x,S,b,w,A){var T=x.length;if(A===1)for(var C=0;CA;if(T)x.length=A;else for(var C=w;C=0&&!(F[se]<=fe);se--);se=Math.min(se,D-2)}else{for(se=U;sefe);se++);se=Math.min(se-1,D-2)}U=se,W=fe;var ve=F[se+1]-F[se];if(ve!==0)if(X=(fe-F[se])/ve,L)if(Q=V[se],K=V[se===0?se:se-1],j=V[se>D-2?D-1:se+1],te=V[se>D-3?D-1:se+2],I)f(K,Q,j,te,X,X*X,X*X*X,C(oe,A),k);else{var ye;if(R)ye=f(K,Q,j,te,X,X*X,X*X*X,Z,1),ye=p(Z);else{if(E)return l(Q,j,X);ye=c(K,Q,j,te,X,X*X,X*X*X)}M(oe,A,ye)}else if(I)u(V[se],V[se+1],X,C(oe,A),k);else{var ye;if(R)u(V[se],V[se+1],X,Z,1),ye=p(Z);else{if(E)return l(V[se],V[se+1],X);ye=s(V[se],V[se+1],X)}M(oe,A,ye)}},le=new r({target:x._target,life:B,loop:x._loop,delay:x._delay,onframe:ee,ondestroy:b});return S&&S!=="spline"&&(le.easing=S),le}}}var y=function(x,S,b,w){this._tracks={},this._target=x,this._loop=S||!1,this._getter=b||n,this._setter=w||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};y.prototype={when:function(x,S){var b=this._tracks;for(var w in S)if(S.hasOwnProperty(w)){if(!b[w]){b[w]=[];var A=this._getter(this._target,w);if(A==null)continue;x!==0&&b[w].push({time:0,value:d(A)})}b[w].push({time:x,value:S[w]})}return this},during:function(x){return this._onframeList.push(x),this},pause:function(){for(var x=0;x0&&c.animate(d,!1).when(m==null?500:m,x).delay(y||0)}function h(c,d,p,g){if(!d)c.attr(p,g);else{var m={};m[d]={},m[d][p]=g,c.attr(m)}}var f=l;return f0=f,f0}var c0,Qk;function A9(){if(Qk)return c0;Qk=1;var r=S9(),t=Ws(),e=og(),a=Lpe(),i=ie(),n=function(s){e.call(this,s),t.call(this,s),a.call(this,s),this.id=s.id||r()};n.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(s,l){switch(this.draggable){case"horizontal":l=0;break;case"vertical":s=0;break}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=s,u[5]+=l,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(s,l){},attrKV:function(s,l){if(s==="position"||s==="scale"||s==="origin"){if(l){var u=this[s];u||(u=this[s]=[]),u[0]=l[0],u[1]=l[1]}}else this[s]=l},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(s,l){if(typeof s=="string")this.attrKV(s,l);else if(i.isObject(s))for(var u in s)s.hasOwnProperty(u)&&this.attrKV(u,s[u]);return this.dirty(!1),this},setClipPath:function(s){var l=this.__zr;l&&s.addSelfToZr(l),this.clipPath&&this.clipPath!==s&&this.removeClipPath(),this.clipPath=s,s.__zr=l,s.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var s=this.clipPath;s&&(s.__zr&&s.removeSelfFromZr(s.__zr),s.__zr=null,s.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(s){this.__zr=s;var l=this.animators;if(l)for(var u=0;u=u.x&&s<=u.x+u.width&&l>=u.y&&l<=u.y+u.height},clone:function(){return new n(this.x,this.y,this.width,this.height)},copy:function(s){this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},n.create=function(s){return new n(s.x,s.y,s.width,s.height)};var o=n;return d0=o,d0}var p0,Jk;function Us(){if(Jk)return p0;Jk=1;var r=ie(),t=A9(),e=rr(),a=function(n){n=n||{},t.call(this,n);for(var o in n)n.hasOwnProperty(o)&&(this[o]=n[o]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(n){return this._children[n]},childOfName:function(n){for(var o=this._children,s=0;s=0&&(s.splice(l,0,n),this._doAdd(n))}return this},_doAdd:function(n){n.parent&&n.parent.remove(n),n.parent=this;var o=this.__storage,s=this.__zr;o&&o!==n.__storage&&(o.addToStorage(n),n instanceof a&&n.addChildrenToStorage(o)),s&&s.refresh()},remove:function(n){var o=this.__zr,s=this.__storage,l=this._children,u=r.indexOf(l,n);return u<0?this:(l.splice(u,1),n.parent=null,s&&(s.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(s)),o&&o.refresh(),this)},removeAll:function(){var n=this._children,o=this.__storage,s,l;for(l=0;l=r;)h|=v&1,v>>=1;return v+h}function a(v,h,f,c){var d=h+1;if(d===f)return 1;if(c(v[d++],v[h])<0){for(;d=0;)d++;return d-h}function i(v,h,f){for(f--;h>>1,d(p,v[y])<0?m=y:g=y+1;var _=c-g;switch(_){case 3:v[g+3]=v[g+2];case 2:v[g+2]=v[g+1];case 1:v[g+1]=v[g];break;default:for(;_>0;)v[g+_]=v[g+_-1],_--}v[g]=p}}function o(v,h,f,c,d,p){var g=0,m=0,y=1;if(p(v,h[f+d])>0){for(m=c-d;y0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m),g+=d,y+=d}else{for(m=d+1;ym&&(y=m);var _=g;g=d-y,y=d-_}for(g++;g>>1);p(v,h[f+x])>0?g=x+1:y=x}return y}function s(v,h,f,c,d,p){var g=0,m=0,y=1;if(p(v,h[f+d])<0){for(m=d+1;ym&&(y=m);var _=g;g=d-y,y=d-_}else{for(m=c-d;y=0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m),g+=d,y+=d}for(g++;g>>1);p(v,h[f+x])<0?y=x:g=x+1}return y}function l(v,h){var f=t,c,d,p=0;v.length;var g=[];c=[],d=[];function m(w,A){c[p]=w,d[p]=A,p+=1}function y(){for(;p>1;){var w=p-2;if(w>=1&&d[w-1]<=d[w]+d[w+1]||w>=2&&d[w-2]<=d[w]+d[w-1])d[w-1]d[w+1])break;x(w)}}function _(){for(;p>1;){var w=p-2;w>0&&d[w-1]=t||E>=t);if(k)break;I<0&&(I=0),I+=2}if(f=I,f<1&&(f=1),A===1){for(M=0;M=0;M--)v[R+M]=v[I+M];v[P]=g[D];return}for(var E=f;;){var k=0,B=0,F=!1;do if(h(g[D],v[L])<0){if(v[P--]=v[L--],k++,B=0,--A===0){F=!0;break}}else if(v[P--]=g[D--],B++,k=0,--C===1){F=!0;break}while((k|B)=0;M--)v[R+M]=v[I+M];if(A===0){F=!0;break}}if(v[P--]=g[D--],--C===1){F=!0;break}if(B=C-o(v[L],g,0,C,C-1,h),B!==0){for(P-=B,D-=B,C-=B,R=P+1,I=D+1,M=0;M=t||B>=t);if(F)break;E<0&&(E=0),E+=2}if(f=E,f<1&&(f=1),C===1){for(P-=A,L-=A,R=P+1,I=L+1,M=A-1;M>=0;M--)v[R+M]=v[I+M];v[P]=g[D]}else{if(C===0)throw new Error;for(I=P-(C-1),M=0;Mm&&(y=m),n(v,f,f+y,f+p,h),p=y}g.pushRun(f,p),g.mergeRuns(),d-=p,f+=p}while(d!==0);g.forceMergeRuns()}}return g0=u,g0}var m0,tO;function Ipe(){if(tO)return m0;tO=1;var r=ie(),t=pr(),e=Us(),a=KM();function i(s,l){return s.zlevel===l.zlevel?s.z===l.z?s.z2-l.z2:s.z-l.z:s.zlevel-l.zlevel}var n=function(){this._roots=[],this._displayList=[],this._displayListLen=0};n.prototype={constructor:n,traverse:function(s,l){for(var u=0;u=0&&(this.delFromStorage(s),this._roots.splice(h,1),s instanceof e&&s.delChildrenFromStorage(this))},addToStorage:function(s){return s&&(s.__storage=this,s.dirty(!1)),this},delFromStorage:function(s){return s&&(s.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:i};var o=n;return m0=o,m0}var y0,rO;function C9(){if(rO)return y0;rO=1;var r={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function t(e,a,i){return r.hasOwnProperty(a)?i*=e.dpr:i}return y0=t,y0}var Mc={},aO;function lg(){if(aO)return Mc;aO=1;var r={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},t=9;return Mc.ContextCachedBy=r,Mc.WILL_BE_RESTORED=t,Mc}var _0,iO;function QM(){if(iO)return _0;iO=1;var r=C9(),t=lg(),e=t.ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],i=function(h){this.extendFrom(h,!1)};function n(h,f,c){var d=f.x==null?0:f.x,p=f.x2==null?1:f.x2,g=f.y==null?0:f.y,m=f.y2==null?0:f.y2;f.global||(d=d*c.width+c.x,p=p*c.width+c.x,g=g*c.height+c.y,m=m*c.height+c.y),d=isNaN(d)?0:d,p=isNaN(p)?1:p,g=isNaN(g)?0:g,m=isNaN(m)?0:m;var y=h.createLinearGradient(d,g,p,m);return y}function o(h,f,c){var d=c.width,p=c.height,g=Math.min(d,p),m=f.x==null?.5:f.x,y=f.y==null?.5:f.y,_=f.r==null?.5:f.r;f.global||(m=m*d+c.x,y=y*p+c.y,_=_*g);var x=h.createRadialGradient(m,y,0,m,y,_);return x}i.prototype={constructor:i,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(h,f,c){var d=this,p=c&&c.style,g=!p||h.__attrCachedBy!==e.STYLE_BIND;h.__attrCachedBy=e.STYLE_BIND;for(var m=0;m0},extendFrom:function(h,f){if(h)for(var c in h)h.hasOwnProperty(c)&&(f===!0||(f===!1?!this.hasOwnProperty(c):h[c]!=null))&&(this[c]=h[c])},set:function(h,f){typeof h=="string"?this[h]=f:this.extendFrom(h,!0)},clone:function(){var h=new this.constructor;return h.extendFrom(this,!0),h},getGradient:function(h,f,c){for(var d=f.type==="radial"?o:n,p=d(h,f,c),g=f.colorStops,m=0;mv&&(u=0,l={}),u++,l[B]=V,V}function g(E,k,B,F,V,N,O,z){return O?y(E,k,B,F,V,N,O,z):m(E,k,B,F,V,N,z)}function m(E,k,B,F,V,N,O){var z=D(E,k,V,N,O),G=p(E,k);V&&(G+=V[1]+V[3]);var q=z.outerHeight,H=_(0,G,B),U=x(0,q,F),W=new r(H,U,G,q);return W.lineHeight=z.lineHeight,W}function y(E,k,B,F,V,N,O,z){var G=P(E,{rich:O,truncate:z,font:k,textAlign:B,textPadding:V,textLineHeight:N}),q=G.outerWidth,H=G.outerHeight,U=_(0,q,B),W=x(0,H,F);return new r(U,W,q,H)}function _(E,k,B){return B==="right"?E-=k:B==="center"&&(E-=k/2),E}function x(E,k,B){return B==="middle"?E-=k/2:B==="bottom"&&(E-=k),E}function S(E,k,B){var F=k.textPosition,V=k.textDistance,N=B.x,O=B.y;V=V||0;var z=B.height,G=B.width,q=z/2,H="left",U="top";switch(F){case"left":N-=V,O+=q,H="right",U="middle";break;case"right":N+=V+G,O+=q,U="middle";break;case"top":N+=G/2,O-=V,H="center",U="bottom";break;case"bottom":N+=G/2,O+=z+V,H="center";break;case"inside":N+=G/2,O+=q,H="center",U="middle";break;case"insideLeft":N+=V,O+=q,U="middle";break;case"insideRight":N+=G-V,O+=q,H="right",U="middle";break;case"insideTop":N+=G/2,O+=V,H="center";break;case"insideBottom":N+=G/2,O+=z-V,H="center",U="bottom";break;case"insideTopLeft":N+=V,O+=V;break;case"insideTopRight":N+=G-V,O+=V,H="right";break;case"insideBottomLeft":N+=V,O+=z-V,U="bottom";break;case"insideBottomRight":N+=G-V,O+=z-V,H="right",U="bottom";break}return E=E||{},E.x=N,E.y=O,E.textAlign=H,E.textVerticalAlign=U,E}function b(E,k,B){var F={textPosition:E,textDistance:B};return S({},F,k)}function w(E,k,B,F,V){if(!k)return"";var N=(E+"").split("\n");V=A(k,B,F,V);for(var O=0,z=N.length;O=O;G++)z-=O;var q=p(V,k);return q>z&&(V="",q=0),z=E-q,F.ellipsis=V,F.ellipsisWidth=q,F.contentWidth=z,F.containerWidth=E,F}function T(E,k){var B=k.containerWidth,F=k.font,V=k.contentWidth;if(!B)return"";var N=p(E,F);if(N<=B)return E;for(var O=0;;O++){if(N<=V||O>=k.maxIterations){E+=k.ellipsis;break}var z=O===0?C(E,V,k.ascCharWidth,k.cnCharWidth):N>0?Math.floor(E.length*V/N):0;E=E.substr(0,z),N=p(E,F)}return E===""&&(E=k.placeholder),E}function C(E,k,B,F){for(var V=0,N=0,O=E.length;NH)E="",O=[];else if(U!=null)for(var W=A(U-(B?B[1]+B[3]:0),k,V.ellipsis,{minChar:V.minChar,placeholder:V.placeholder}),Y=0,X=O.length;YF&&I(B,E.substring(F,N)),I(B,V[2],V[1]),F=h.lastIndex}FY)return{lines:[],width:0,height:0};Z.textWidth=p(Z.text,oe);var se=ee.textWidth,ve=se==null||se==="auto";if(typeof se=="string"&&se.charAt(se.length-1)==="%")Z.percentWidth=se,q.push(Z),se=0;else{if(ve){se=Z.textWidth;var ye=ee.textBackgroundColor,Me=ye&&ye.image;Me&&(Me=t.findExistImage(Me),t.isImageReady(Me)&&(se=Math.max(se,Me.width*fe/Me.height)))}var J=le?le[1]+le[3]:0;se+=J;var ne=W!=null?W-j:null;ne!=null&&nen&&(f=l+u,l*=n/f,u*=n/f),v+h>n&&(f=v+h,v*=n/f,h*=n/f),u+v>o&&(f=u+v,u*=o/f,v*=o/f),l+h>o&&(f=l+h,l*=o/f,h*=o/f),t.moveTo(a+l,i),t.lineTo(a+n-u,i),u!==0&&t.arc(a+n-u,i+u,u,-Math.PI/2,0),t.lineTo(a+n,i+o-v),v!==0&&t.arc(a+n-v,i+o-v,v,0,Math.PI/2),t.lineTo(a+h,i+o),h!==0&&t.arc(a+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(a,i+l),l!==0&&t.arc(a+l,i+l,l,Math.PI,Math.PI*1.5)}return w0.buildPath=r,w0}var hO;function ug(){if(hO)return ln;hO=1;var r=ie(),t=r.retrieve2,e=r.retrieve3,a=r.each,i=r.normalizeCssArray,n=r.isString,o=r.isObject,s=Da(),l=L9(),u=jM(),v=C9(),h=lg(),f=h.ContextCachedBy,c=h.WILL_BE_RESTORED,d=s.DEFAULT_FONT,p={left:1,right:1,center:1},g={top:1,bottom:1,middle:1},m=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],y={},_={};function x(N){return S(N),a(N.rich,S),N}function S(N){if(N){N.font=s.makeFont(N);var O=N.textAlign;O==="middle"&&(O="center"),N.textAlign=O==null||p[O]?O:"left";var z=N.textVerticalAlign||N.textBaseline;z==="center"&&(z="middle"),N.textVerticalAlign=z==null||g[z]?z:"top";var G=N.textPadding;G&&(N.textPadding=i(N.textPadding))}}function b(N,O,z,G,q,H){G.rich?A(N,O,z,G,q,H):w(N,O,z,G,q,H)}function w(N,O,z,G,q,H){var U=L(G),W,Y=!1,X=O.__attrCachedBy===f.PLAIN_TEXT;H!==c?(H&&(W=H.style,Y=!U&&X&&W),O.__attrCachedBy=U?f.NONE:f.PLAIN_TEXT):X&&(O.__attrCachedBy=f.NONE);var K=G.font||d;(!Y||K!==(W.font||d))&&(O.font=K);var Q=N.__computedFont;N.__styleFont!==K&&(N.__styleFont=K,Q=N.__computedFont=O.font);var j=G.textPadding,te=G.textLineHeight,Z=N.__textCotentBlock;(!Z||N.__dirtyText)&&(Z=N.__textCotentBlock=s.parsePlainText(z,Q,j,te,G.truncate));var ee=Z.outerHeight,le=Z.lines,oe=Z.lineHeight,fe=I(_,N,G,q),se=fe.baseX,ve=fe.baseY,ye=fe.textAlign||"left",Me=fe.textVerticalAlign;C(O,G,q,se,ve);var J=s.adjustTextY(ve,ee,Me),ne=se,ue=J;if(U||j){var me=s.getWidth(z,Q),xe=me;j&&(xe+=j[1]+j[3]);var ge=s.adjustTextX(se,xe,ye);U&&D(N,O,G,ge,J,xe,ee),j&&(ne=F(se,ye,j),ue+=j[0])}O.textAlign=ye,O.textBaseline="middle",O.globalAlpha=G.opacity||1;for(var pe=0;pe=0&&(pe=ye[ge],pe.textAlign==="right");)M(N,O,pe,G,J,oe,xe,"right"),ne-=pe.width,xe-=pe.width,ge--;for(me+=(H-(me-le)-(fe-xe)-ne)/2;ue<=ge;)pe=ye[ue],M(N,O,pe,G,J,oe,me+pe.width/2,"center"),me+=pe.width,ue++;oe+=J}}function C(N,O,z,G,q){if(z&&O.textRotation){var H=O.textOrigin;H==="center"?(G=z.width/2+z.x,q=z.height/2+z.y):H&&(G=H[0]+z.x,q=H[1]+z.y),N.translate(G,q),N.rotate(-O.textRotation),N.translate(-G,-q)}}function M(N,O,z,G,q,H,U,W){var Y=G.rich[z.styleName]||{};Y.text=z.text;var X=z.textVerticalAlign,K=H+q/2;X==="top"?K=H+z.height/2:X==="bottom"&&(K=H+q-z.height/2),!z.isLineHolder&&L(Y)&&D(N,O,Y,W==="right"?U-z.width:W==="center"?U-z.width/2:U,K-z.height/2,z.width,z.height);var Q=z.textPadding;Q&&(U=F(U,W,Q),K-=z.height/2-Q[2]-z.textHeight/2),R(O,"shadowBlur",e(Y.textShadowBlur,G.textShadowBlur,0)),R(O,"shadowColor",Y.textShadowColor||G.textShadowColor||"transparent"),R(O,"shadowOffsetX",e(Y.textShadowOffsetX,G.textShadowOffsetX,0)),R(O,"shadowOffsetY",e(Y.textShadowOffsetY,G.textShadowOffsetY,0)),R(O,"textAlign",W),R(O,"textBaseline","middle"),R(O,"font",z.font||d);var j=E(Y.textStroke||G.textStroke,Z),te=k(Y.textFill||G.textFill),Z=t(Y.textStrokeWidth,G.textStrokeWidth);j&&(R(O,"lineWidth",Z),R(O,"strokeStyle",j),O.strokeText(z.text,U,K)),te&&(R(O,"fillStyle",te),O.fillText(z.text,U,K))}function L(N){return!!(N.textBackgroundColor||N.textBorderWidth&&N.textBorderColor)}function D(N,O,z,G,q,H,U){var W=z.textBackgroundColor,Y=z.textBorderWidth,X=z.textBorderColor,K=n(W);if(R(O,"shadowBlur",z.textBoxShadowBlur||0),R(O,"shadowColor",z.textBoxShadowColor||"transparent"),R(O,"shadowOffsetX",z.textBoxShadowOffsetX||0),R(O,"shadowOffsetY",z.textBoxShadowOffsetY||0),K||Y&&X){O.beginPath();var Q=z.textBorderRadius;Q?l.buildPath(O,{x:G,y:q,width:H,height:U,r:Q}):O.rect(G,q,H,U),O.closePath()}if(K)if(R(O,"fillStyle",W),z.fillOpacity!=null){var j=O.globalAlpha;O.globalAlpha=z.fillOpacity*z.opacity,O.fill(),O.globalAlpha=j}else O.fill();else if(o(W)){var te=W.image;te=u.createOrUpdateImage(te,null,N,P,W),te&&u.isImageReady(te)&&O.drawImage(te,G,q,H,U)}if(Y&&X)if(R(O,"lineWidth",Y),R(O,"strokeStyle",X),z.strokeOpacity!=null){var j=O.globalAlpha;O.globalAlpha=z.strokeOpacity*z.opacity,O.stroke(),O.globalAlpha=j}else O.stroke()}function P(N,O){O.image=N}function I(N,O,z,G){var q=z.x||0,H=z.y||0,U=z.textAlign,W=z.textVerticalAlign;if(G){var Y=z.textPosition;if(Y instanceof Array)q=G.x+B(Y[0],G.width),H=G.y+B(Y[1],G.height);else{var X=O&&O.calculateTextPosition?O.calculateTextPosition(y,z,G):s.calculateTextPosition(y,z,G);q=X.x,H=X.y,U=U||X.textAlign,W=W||X.textVerticalAlign}var K=z.textOffset;K&&(q+=K[0],H+=K[1])}return N=N||{},N.baseX=q,N.baseY=H,N.textAlign=U,N.textVerticalAlign=W,N}function R(N,O,z){return N[O]=v(N,O,z),N[O]}function E(N,O){return N==null||O<=0||N==="transparent"||N==="none"?null:N.image||N.colorStops?"#000":N}function k(N){return N==null||N==="none"?null:N.image||N.colorStops?"#000":N}function B(N,O){return typeof N=="string"?N.lastIndexOf("%")>=0?parseFloat(N)/100*O:parseFloat(N):N}function F(N,O,z){return O==="right"?N-z[1]:O==="center"?N+z[3]/2-z[1]/2:N+z[3]}function V(N,O){return N!=null&&(N||O.textBackgroundColor||O.textBorderWidth&&O.textBorderColor||O.textPadding)}return ln.normalizeTextStyle=x,ln.renderText=b,ln.getBoxPosition=I,ln.getStroke=E,ln.getFill=k,ln.parsePercent=B,ln.needDrawText=V,ln}var T0,fO;function I9(){if(fO)return T0;fO=1;var r=ug(),t=rr(),e=lg(),a=e.WILL_BE_RESTORED,i=new t,n=function(){};n.prototype={constructor:n,drawRectText:function(s,l){var u=this.style;l=u.textRect||l,this.__dirty&&r.normalizeTextStyle(u,!0);var v=u.text;if(v!=null&&(v+=""),!!r.needDrawText(v,u)){s.save();var h=this.transform;u.transformText?this.setTransform(s):h&&(i.copy(l),i.applyTransform(h),l=i),r.renderText(this,s,v,u,l,a),s.restore()}}};var o=n;return T0=o,T0}var A0,cO;function lf(){if(cO)return A0;cO=1;var r=ie(),t=QM(),e=A9(),a=I9();function i(o){o=o||{},e.call(this,o);for(var s in o)o.hasOwnProperty(s)&&s!=="style"&&(this[s]=o[s]);this.style=new t(o.style,this),this._rect=null,this.__clipPaths=null}i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,s){},getBoundingRect:function(){},contain:function(o,s){return this.rectContain(o,s)},traverse:function(o,s){o.call(s,this)},rectContain:function(o,s){var l=this.transformCoordToLocal(o,s),u=this.getBoundingRect();return u.contain(l[0],l[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,s){o!=="style"?e.prototype.attrKV.call(this,o,s):this.style.set(s)},setStyle:function(o,s){return this.style.set(o,s),this.dirty(!1),this},useStyle:function(o){return this.style=new t(o,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(i,e),r.mixin(i,a);var n=i;return A0=n,A0}var C0,dO;function wu(){if(dO)return C0;dO=1;var r=lf(),t=rr(),e=ie(),a=jM();function i(o){r.call(this,o)}i.prototype={constructor:i,type:"image",brush:function(o,s){var l=this.style,u=l.image;l.bind(o,this,s);var v=this._image=a.createOrUpdateImage(u,this._image,this,this.onload);if(!(!v||!a.isImageReady(v))){var h=l.x||0,f=l.y||0,c=l.width,d=l.height,p=v.width/v.height;if(c==null&&d!=null?c=d*p:d==null&&c!=null?d=c/p:c==null&&d==null&&(c=v.width,d=v.height),this.setTransform(o),l.sWidth&&l.sHeight){var g=l.sx||0,m=l.sy||0;o.drawImage(v,g,m,l.sWidth,l.sHeight,h,f,c,d)}else if(l.sx&&l.sy){var g=l.sx,m=l.sy,y=c-g,_=d-m;o.drawImage(v,g,m,y,_,h,f,c,d)}else o.drawImage(v,h,f,c,d);l.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))}},getBoundingRect:function(){var o=this.style;return this._rect||(this._rect=new t(o.x||0,o.y||0,o.width||0,o.height||0)),this._rect}},e.inherits(i,r);var n=i;return C0=n,C0}var M0,pO;function Rpe(){if(pO)return M0;pO=1;var r=sg(),t=r.devicePixelRatio,e=ie(),a=sf(),i=rr(),n=KM(),o=Ppe(),s=D9(),l=wu(),u=pr(),v=1e5,h=314159,f=.01,c=.001;function d(A){return parseInt(A,10)}function p(A){return A?A.__builtin__?!0:!(typeof A.resize!="function"||typeof A.refresh!="function"):!1}var g=new i(0,0,0,0),m=new i(0,0,0,0);function y(A,T,C){return g.copy(A.getBoundingRect()),A.transform&&g.applyTransform(A.transform),m.width=T,m.height=C,!g.intersect(m)}function _(A,T){if(A===T)return!1;if(!A||!T||A.length!==T.length)return!0;for(var C=0;C=0&&C.splice(M,1),A.__hoverMir=null},clearHover:function(A){for(var T=this._hoverElements,C=0;C15)break}}D.__drawIndex=O,D.__drawIndex0&&A>M[0]){for(P=0;PA);P++);D=C[M[P]]}if(M.splice(P+1,0,A),C[A]=T,!T.virtual)if(D){var R=D.dom;R.nextSibling?I.insertBefore(T.dom,R.nextSibling):I.appendChild(T.dom)}else I.firstChild?I.insertBefore(T.dom,I.firstChild):I.appendChild(T.dom)},eachLayer:function(A,T){var C=this._zlevelList,M,L;for(L=0;L0?f:0),this._needsManuallyCompositing),R.__builtin__||a("ZLevel "+I+" has been used by unkown layer "+R.id),R!==L&&(R.__used=!0,R.__startIndex!==C&&(R.__dirty=!0),R.__startIndex=C,R.incremental?R.__drawIndex=-1:R.__drawIndex=C,T(C),L=R),M.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=C))}T(C),this.eachBuiltinLayer(function(E,k){!E.__used&&E.getElementCount()>0&&(E.__dirty=!0,E.__startIndex=E.__endIndex=E.__drawIndex=0),E.__dirty&&E.__drawIndex<0&&(E.__drawIndex=E.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(A){A.clear()},setBackgroundColor:function(A){this._backgroundColor=A},configLayer:function(A,T){if(T){var C=this._layerConfig;C[A]?e.merge(C[A],T,!0):C[A]=T;for(var M=0;M=0&&this._clips.splice(l,1)},removeAnimator:function(s){for(var l=s.getClips(),u=0;u=M.length&&M.push({option:L})}}),M}function f(T){var C=r.createHashMap();e(T,function(M,L){var D=M.exist;D&&C.set(D.id,M)}),e(T,function(M,L){var D=M.option;r.assert(!D||D.id==null||!C.get(D.id)||C.get(D.id)===M,"id duplicates: "+(D&&D.id)),D&&D.id!=null&&C.set(D.id,M),!M.keyInfo&&(M.keyInfo={})}),e(T,function(M,L){var D=M.exist,P=M.option,I=M.keyInfo;if(a(P)){if(I.name=P.name!=null?P.name+"":D?D.name:n+L,D)I.id=D.id;else if(P.id!=null)I.id=P.id+"";else{var R=0;do I.id="\0"+I.name+"\0"+R++;while(C.get(I.id))}C.set(I.id,M)}})}function c(T){var C=T.name;return!!(C&&C.indexOf(n))}function d(T){return a(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function p(T,C){var M={},L={};return D(T||[],M),D(C||[],L,M),[P(M),P(L)];function D(I,R,E){for(var k=0,B=I.length;k=0||o&&r.indexOf(o,u)<0)){var v=i.getShallow(u);v!=null&&(s[e[l][0]]=v)}}return s}}return I0=t,I0}var P0,bO;function Ope(){if(bO)return P0;bO=1;var r=Tu(),t=r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),e={getLineStyle:function(a){var i=t(this,a);return i.lineDash=this.getLineDash(i.lineWidth),i},getLineDash:function(a){a==null&&(a=1);var i=this.get("type"),n=Math.max(a,2),o=a*4;return i==="solid"||i==null?!1:i==="dashed"?[o,o]:[n,n]}};return P0=e,P0}var R0,wO;function Npe(){if(wO)return R0;wO=1;var r=Tu(),t=r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),e={getAreaStyle:function(a,i){return t(this,a,i)}};return R0=e,R0}var it={},hv={},pa={},TO;function yo(){if(TO)return pa;TO=1;var r=Jt(),t=r.create,e=r.distSquare,a=Math.pow,i=Math.sqrt,n=1e-8,o=1e-4,s=i(3),l=1/3,u=t(),v=t(),h=t();function f(C){return C>-n&&Cn||C<-n}function d(C,M,L,D,P){var I=1-P;return I*I*(I*C+3*P*M)+P*P*(P*D+3*I*L)}function p(C,M,L,D,P){var I=1-P;return 3*(((M-C)*I+2*(L-M)*P)*I+(D-L)*P*P)}function g(C,M,L,D,P,I){var R=D+3*(M-L)-C,E=3*(L-M*2+C),k=3*(M-C),B=C-P,F=E*E-3*R*k,V=E*k-9*R*B,N=k*k-3*E*B,O=0;if(f(F)&&f(V))if(f(E))I[0]=0;else{var z=-k/E;z>=0&&z<=1&&(I[O++]=z)}else{var G=V*V-4*F*N;if(f(G)){var q=V/F,z=-E/R+q,H=-q/2;z>=0&&z<=1&&(I[O++]=z),H>=0&&H<=1&&(I[O++]=H)}else if(G>0){var U=i(G),W=F*E+1.5*R*(-V+U),Y=F*E+1.5*R*(-V-U);W<0?W=-a(-W,l):W=a(W,l),Y<0?Y=-a(-Y,l):Y=a(Y,l);var z=(-E-(W+Y))/(3*R);z>=0&&z<=1&&(I[O++]=z)}else{var X=(2*F*E-3*R*V)/(2*i(F*F*F)),K=Math.acos(X)/3,Q=i(F),j=Math.cos(K),z=(-E-2*Q*j)/(3*R),H=(-E+Q*(j+s*Math.sin(K)))/(3*R),te=(-E+Q*(j-s*Math.sin(K)))/(3*R);z>=0&&z<=1&&(I[O++]=z),H>=0&&H<=1&&(I[O++]=H),te>=0&&te<=1&&(I[O++]=te)}}return O}function m(C,M,L,D,P){var I=6*L-12*M+6*C,R=9*M+3*D-3*C-9*L,E=3*M-3*C,k=0;if(f(R)){if(c(I)){var B=-E/I;B>=0&&B<=1&&(P[k++]=B)}}else{var F=I*I-4*R*E;if(f(F))P[0]=-I/(2*R);else if(F>0){var V=i(F),B=(-I+V)/(2*R),N=(-I-V)/(2*R);B>=0&&B<=1&&(P[k++]=B),N>=0&&N<=1&&(P[k++]=N)}}return k}function y(C,M,L,D,P,I){var R=(M-C)*P+C,E=(L-M)*P+M,k=(D-L)*P+L,B=(E-R)*P+R,F=(k-E)*P+E,V=(F-B)*P+B;I[0]=C,I[1]=R,I[2]=B,I[3]=V,I[4]=V,I[5]=F,I[6]=k,I[7]=D}function _(C,M,L,D,P,I,R,E,k,B,F){var V,N=.005,O=1/0,z,G,q,H;u[0]=k,u[1]=B;for(var U=0;U<1;U+=.05)v[0]=d(C,L,P,R,U),v[1]=d(M,D,I,E,U),q=e(u,v),q=0&&q=0&&B<=1&&(P[k++]=B)}}else{var F=R*R-4*I*E;if(f(F)){var B=-R/(2*I);B>=0&&B<=1&&(P[k++]=B)}else if(F>0){var V=i(F),B=(-R+V)/(2*I),N=(-R-V)/(2*I);B>=0&&B<=1&&(P[k++]=B),N>=0&&N<=1&&(P[k++]=N)}}return k}function w(C,M,L){var D=C+L-2*M;return D===0?.5:(C-M)/D}function A(C,M,L,D,P){var I=(M-C)*D+C,R=(L-M)*D+M,E=(R-I)*D+I;P[0]=C,P[1]=I,P[2]=E,P[3]=E,P[4]=R,P[5]=L}function T(C,M,L,D,P,I,R,E,k){var B,F=.005,V=1/0;u[0]=R,u[1]=E;for(var N=0;N<1;N+=.05){v[0]=x(C,L,P,N),v[1]=x(M,D,I,N);var O=e(u,v);O=0&&O1e-4){A[0]=m-_,A[1]=y-x,T[0]=m+_,T[1]=y+x;return}if(s[0]=n(S)*_+m,s[1]=i(S)*x+y,l[0]=n(b)*_+m,l[1]=i(b)*x+y,C(A,s,l),M(T,s,l),S=S%o,S<0&&(S=S+o),b=b%o,b<0&&(b=b+o),S>b&&!w?b+=o:SS&&(u[0]=n(P)*_+m,u[1]=i(P)*x+y,C(A,u,A),M(T,u,T))}return jo.fromPoints=v,jo.fromLine=h,jo.fromCubic=d,jo.fromQuadratic=p,jo.fromArc=g,jo}var E0,CO;function Au(){if(CO)return E0;CO=1;var r=yo(),t=Jt(),e=uf(),a=rr(),i=sg(),n=i.devicePixelRatio,o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},s=[],l=[],u=[],v=[],h=Math.min,f=Math.max,c=Math.cos,d=Math.sin,p=Math.sqrt,g=Math.abs,m=typeof Float32Array<"u",y=function(x){this._saveData=!x,this._saveData&&(this.data=[]),this._ctx=null};y.prototype={constructor:y,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(x,S,b){b=b||0,this._ux=g(b/n/x)||0,this._uy=g(b/n/S)||0},getContext:function(){return this._ctx},beginPath:function(x){return this._ctx=x,x&&x.beginPath(),x&&(this.dpr=x.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(x,S){return this.addData(o.M,x,S),this._ctx&&this._ctx.moveTo(x,S),this._x0=x,this._y0=S,this._xi=x,this._yi=S,this},lineTo:function(x,S){var b=g(x-this._xi)>this._ux||g(S-this._yi)>this._uy||this._len<5;return this.addData(o.L,x,S),this._ctx&&b&&(this._needsDash()?this._dashedLineTo(x,S):this._ctx.lineTo(x,S)),b&&(this._xi=x,this._yi=S),this},bezierCurveTo:function(x,S,b,w,A,T){return this.addData(o.C,x,S,b,w,A,T),this._ctx&&(this._needsDash()?this._dashedBezierTo(x,S,b,w,A,T):this._ctx.bezierCurveTo(x,S,b,w,A,T)),this._xi=A,this._yi=T,this},quadraticCurveTo:function(x,S,b,w){return this.addData(o.Q,x,S,b,w),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(x,S,b,w):this._ctx.quadraticCurveTo(x,S,b,w)),this._xi=b,this._yi=w,this},arc:function(x,S,b,w,A,T){return this.addData(o.A,x,S,b,b,w,A-w,0,T?0:1),this._ctx&&this._ctx.arc(x,S,b,w,A,T),this._xi=c(A)*b+x,this._yi=d(A)*b+S,this},arcTo:function(x,S,b,w,A){return this._ctx&&this._ctx.arcTo(x,S,b,w,A),this},rect:function(x,S,b,w){return this._ctx&&this._ctx.rect(x,S,b,w),this.addData(o.R,x,S,b,w),this},closePath:function(){this.addData(o.Z);var x=this._ctx,S=this._x0,b=this._y0;return x&&(this._needsDash()&&this._dashedLineTo(S,b),x.closePath()),this._xi=S,this._yi=b,this},fill:function(x){x&&x.fill(),this.toStatic()},stroke:function(x){x&&x.stroke(),this.toStatic()},setLineDash:function(x){if(x instanceof Array){this._lineDash=x,this._dashIdx=0;for(var S=0,b=0;bS.length&&(this._expandData(),S=this.data);for(var b=0;b0&&I<=x||L<0&&I>=x||L===0&&(D>0&&R<=S||D<0&&R>=S);)B=this._dashIdx,E=A[B],I+=L*E,R+=D*E,this._dashIdx=(B+1)%k,!(L>0&&IC||D>0&&RM)&&T[B%2?"moveTo":"lineTo"](L>=0?h(I,x):f(I,x),D>=0?h(R,S):f(R,S));L=I-x,D=R-S,this._dashOffset=-p(L*L+D*D)},_dashedBezierTo:function(x,S,b,w,A,T){var C=this._dashSum,M=this._dashOffset,L=this._lineDash,D=this._ctx,P=this._xi,I=this._yi,R,E,k,B=r.cubicAt,F=0,V=this._dashIdx,N=L.length,O,z,G=0;for(M<0&&(M=C+M),M%=C,R=0;R<1;R+=.1)E=B(P,x,b,A,R+.1)-B(P,x,b,A,R),k=B(I,S,w,T,R+.1)-B(I,S,w,T,R),F+=p(E*E+k*k);for(;VM));V++);for(R=(G-M)/F;R<=1;)O=B(P,x,b,A,R),z=B(I,S,w,T,R),V%2?D.moveTo(O,z):D.lineTo(O,z),R+=L[V]/F,V=(V+1)%N;V%2!==0&&D.lineTo(A,T),E=A-O,k=T-z,this._dashOffset=-p(E*E+k*k)},_dashedQuadraticTo:function(x,S,b,w){var A=b,T=w;b=(b+2*x)/3,w=(w+2*S)/3,x=(this._xi+2*x)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(x,S,b,w,A,T)},toStatic:function(){var x=this.data;x instanceof Array&&(x.length=this._len,m&&(this.data=new Float32Array(x)))},getBoundingRect:function(){s[0]=s[1]=u[0]=u[1]=Number.MAX_VALUE,l[0]=l[1]=v[0]=v[1]=-Number.MAX_VALUE;for(var x=this.data,S=0,b=0,w=0,A=0,T=0;TL||g(M-T)>D||I===P-1)&&(x.lineTo(C,M),A=C,T=M);break;case o.C:x.bezierCurveTo(S[I++],S[I++],S[I++],S[I++],S[I++],S[I++]),A=S[I-2],T=S[I-1];break;case o.Q:x.quadraticCurveTo(S[I++],S[I++],S[I++],S[I++]),A=S[I-2],T=S[I-1];break;case o.A:var E=S[I++],k=S[I++],B=S[I++],F=S[I++],V=S[I++],N=S[I++],O=S[I++],z=S[I++],G=B>F?B:F,q=B>F?1:B/F,H=B>F?F/B:1,U=Math.abs(B-F)>.001,W=V+N;U?(x.translate(E,k),x.rotate(O),x.scale(q,H),x.arc(0,0,G,V,W,1-z),x.scale(1/q,1/H),x.rotate(-O),x.translate(-E,-k)):x.arc(E,k,G,V,W,1-z),I===1&&(b=c(V)*B+E,w=d(V)*F+k),A=c(W)*B+E,T=d(W)*F+k;break;case o.R:b=A=S[I],w=T=S[I+1],x.rect(S[I++],S[I++],S[I++],S[I++]);break;case o.Z:x.closePath(),A=b,T=w}}}},y.CMD=o;var _=y;return E0=_,E0}var Dc={},k0={},MO;function P9(){if(MO)return k0;MO=1;function r(t,e,a,i,n,o,s){if(n===0)return!1;var l=n,u=0,v=t;if(s>e+l&&s>i+l||st+l&&o>a+l||oa+c&&f>n+c&&f>s+c&&f>u+c||fe+c&&h>i+c&&h>o+c&&h>l+c||hi+f&&h>o+f&&h>l+f||ha+f&&v>n+f&&v>s+f||vo||d+cl&&(l+=e);var g=Math.atan2(f,h);return g<0&&(g+=e),g>=s&&g<=l||g+e>=s&&g+e<=l}return z0.containStroke=a,z0}var V0,RO;function k9(){if(RO)return V0;RO=1;function r(t,e,a,i,n,o){if(o>e&&o>i||on?s:0}return V0=r,V0}var EO;function Vpe(){if(EO)return Dc;EO=1;var r=Au(),t=P9(),e=zpe(),a=R9(),i=Bpe(),n=E9(),o=n.normalizeRadian,s=yo(),l=k9(),u=r.CMD,v=Math.PI*2,h=1e-4;function f(b,w){return Math.abs(b-w)w&&I>T&&I>M&&I>D||I1&&p(),B=s.cubicAt(w,T,M,D,d[0]),k>1&&(F=s.cubicAt(w,T,M,D,d[1]))),k===2?Nw&&D>T&&D>M||D=0&&I<=1){for(var R=0,E=s.quadraticAt(w,T,M,I),k=0;kA||D<-A)return 0;var P=Math.sqrt(A*A-D*D);c[0]=-P,c[1]=P;var I=Math.abs(T-C);if(I<1e-4)return 0;if(I%v<1e-4){T=0,C=v;var R=M?1:-1;return L>=c[0]+b&&L<=c[1]+b?R:0}if(M){var P=T;T=o(C),C=o(P)}else T=o(T),C=o(C);T>C&&(C+=v);for(var E=0,k=0;k<2;k++){var B=c[k];if(B+b>L){var F=Math.atan2(D,B),R=M?1:-1;F<0&&(F=v+F),(F>=T&&F<=C||F+v>=T&&F+v<=C)&&(F>Math.PI/2&&F1&&(A||(M+=l(L,D,P,I,T,C))),R===1&&(L=b[R],D=b[R+1],P=L,I=D),E){case u.M:P=b[R++],I=b[R++],L=P,D=I;break;case u.L:if(A){if(t.containStroke(L,D,b[R],b[R+1],w,T,C))return!0}else M+=l(L,D,b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.C:if(A){if(e.containStroke(L,D,b[R++],b[R++],b[R++],b[R++],b[R],b[R+1],w,T,C))return!0}else M+=g(L,D,b[R++],b[R++],b[R++],b[R++],b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.Q:if(A){if(a.containStroke(L,D,b[R++],b[R++],b[R],b[R+1],w,T,C))return!0}else M+=m(L,D,b[R++],b[R++],b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.A:var k=b[R++],B=b[R++],F=b[R++],V=b[R++],N=b[R++],O=b[R++];R+=1;var z=1-b[R++],U=Math.cos(N)*F+k,W=Math.sin(N)*V+B;R>1?M+=l(L,D,U,W,T,C):(P=U,I=W);var G=(T-k)*V/F+k;if(A){if(i.containStroke(k,B,V,N,N+O,z,w,G,C))return!0}else M+=y(k,B,V,N,N+O,z,G,C);L=Math.cos(N+O)*F+k,D=Math.sin(N+O)*V+B;break;case u.R:P=L=b[R++],I=D=b[R++];var q=b[R++],H=b[R++],U=P+q,W=I+H;if(A){if(t.containStroke(P,I,U,I,w,T,C)||t.containStroke(U,I,U,W,w,T,C)||t.containStroke(U,W,P,W,w,T,C)||t.containStroke(P,W,P,I,w,T,C))return!0}else M+=l(U,I,U,W,T,C),M+=l(P,W,P,I,T,C);break;case u.Z:if(A){if(t.containStroke(L,D,P,I,w,T,C))return!0}else M+=l(L,D,P,I,T,C);L=P,D=I;break}}return!A&&!f(D,I)&&(M+=l(L,D,P,I,T,C)||0),M!==0}function x(b,w,A){return _(b,0,!1,w,A)}function S(b,w,A,T){return _(b,w,!0,A,T)}return Dc.contain=x,Dc.containStroke=S,Dc}var G0,kO;function ur(){if(kO)return G0;kO=1;var r=lf(),t=ie(),e=Au(),a=Vpe(),i=M9(),n=i.prototype.getCanvasPattern,o=Math.abs,s=new e(!0);function l(v){r.call(this,v),this.path=null}l.prototype={constructor:l,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(v,h){var f=this.style,c=this.path||s,d=f.hasStroke(),p=f.hasFill(),g=f.fill,m=f.stroke,y=p&&!!g.colorStops,_=d&&!!m.colorStops,x=p&&!!g.image,S=d&&!!m.image;if(f.bind(v,this,h),this.setTransform(v),this.__dirty){var b;y&&(b=b||this.getBoundingRect(),this._fillGradient=f.getGradient(v,g,b)),_&&(b=b||this.getBoundingRect(),this._strokeGradient=f.getGradient(v,m,b))}y?v.fillStyle=this._fillGradient:x&&(v.fillStyle=n.call(g,v)),_?v.strokeStyle=this._strokeGradient:S&&(v.strokeStyle=n.call(m,v));var w=f.lineDash,A=f.lineDashOffset,T=!!v.setLineDash,C=this.getGlobalScale();if(c.setScale(C[0],C[1],this.segmentIgnoreThreshold),this.__dirtyPath||w&&!T&&d?(c.beginPath(v),w&&!T&&(c.setLineDash(w),c.setLineDashOffset(A)),this.buildPath(c,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(v.beginPath(),this.path.rebuildPath(v)),p)if(f.fillOpacity!=null){var M=v.globalAlpha;v.globalAlpha=f.fillOpacity*f.opacity,c.fill(v),v.globalAlpha=M}else c.fill(v);if(w&&T&&(v.setLineDash(w),v.lineDashOffset=A),d)if(f.strokeOpacity!=null){var M=v.globalAlpha;v.globalAlpha=f.strokeOpacity*f.opacity,c.stroke(v),v.globalAlpha=M}else c.stroke(v);w&&T&&v.setLineDash([]),f.text!=null&&(this.restoreTransform(v),this.drawRectText(v,this.getBoundingRect()))},buildPath:function(v,h,f){},createPathProxy:function(){this.path=new e},getBoundingRect:function(){var v=this._rect,h=this.style,f=!v;if(f){var c=this.path;c||(c=this.path=new e),this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape,!1)),v=c.getBoundingRect()}if(this._rect=v,h.hasStroke()){var d=this._rectWithStroke||(this._rectWithStroke=v.clone());if(this.__dirty||f){d.copy(v);var p=h.lineWidth,g=h.strokeNoScale?this.getLineScale():1;h.hasFill()||(p=Math.max(p,this.strokeContainThreshold||4)),g>1e-10&&(d.width+=p/g,d.height+=p/g,d.x-=p/g/2,d.y-=p/g/2)}return d}return v},contain:function(v,h){var f=this.transformCoordToLocal(v,h),c=this.getBoundingRect(),d=this.style;if(v=f[0],h=f[1],c.contain(v,h)){var p=this.path.data;if(d.hasStroke()){var g=d.lineWidth,m=d.strokeNoScale?this.getLineScale():1;if(m>1e-10&&(d.hasFill()||(g=Math.max(g,this.strokeContainThreshold)),a.containStroke(p,g/m,v,h)))return!0}if(d.hasFill())return a.contain(p,v,h)}return!1},dirty:function(v){v==null&&(v=!0),v&&(this.__dirtyPath=v,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(v){return this.animate("shape",v)},attrKV:function(v,h){v==="shape"?(this.setShape(h),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,v,h)},setShape:function(v,h){var f=this.shape;if(f){if(t.isObject(v))for(var c in v)v.hasOwnProperty(c)&&(f[c]=v[c]);else f[v]=h;this.dirty(!0)}return this},getLineScale:function(){var v=this.transform;return v&&o(v[0]-1)>1e-10&&o(v[3]-1)>1e-10?Math.sqrt(o(v[0]*v[3]-v[2]*v[1])):1}},l.extend=function(v){var h=function(c){l.call(this,c),v.style&&this.style.extendFrom(v.style,!1);var d=v.shape;if(d){this.shape=this.shape||{};var p=this.shape;for(var g in d)!p.hasOwnProperty(g)&&d.hasOwnProperty(g)&&(p[g]=d[g])}v.init&&v.init.call(this,c)};t.inherits(h,l);for(var f in v)f!=="style"&&f!=="shape"&&(h.prototype[f]=v[f]);return h},t.inherits(l,r);var u=l;return G0=u,G0}var F0,OO;function Gpe(){if(OO)return F0;OO=1;var r=Au(),t=Jt(),e=t.applyTransform,a=r.CMD,i=[[],[],[]],n=Math.sqrt,o=Math.atan2;function s(l,u){var v=l.data,h,f,c,d,p,g,m=a.M,y=a.C,_=a.L,x=a.R,S=a.A,b=a.Q;for(c=0,d=0;c1&&(A*=a(R),T*=a(R));var E=(b===w?-1:1)*a((A*A*(T*T)-A*A*(I*I)-T*T*(P*P))/(A*A*(I*I)+T*T*(P*P)))||0,k=E*A*I/T,B=E*-T*P/A,F=(y+x)/2+n(D)*k-i(D)*B,V=(_+S)/2+i(D)*k+n(D)*B,N=u([1,0],[(P-k)/A,(I-B)/T]),O=[(P-k)/A,(I-B)/T],z=[(-1*P-k)/A,(-1*I-B)/T],G=u(O,z);l(O,z)<=-1&&(G=o),l(O,z)>=1&&(G=0),w===0&&G>0&&(G=G-2*o),w===1&&G<0&&(G=G+2*o),L.addData(M,F,V,A,T,N,G,D,w)}var h=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function c(y){if(!y)return new t;for(var _=0,x=0,S=_,b=x,w,A=new t,T=t.CMD,C=y.match(h),M=0;M=11?function(){var i=this.__clipPaths,n=this.style,o;if(i)for(var s=0;so-2?o-1:f+1],m=i[f>o-3?o-1:f+2]);var y=c*c,_=c*y;s.push([e(d[0],p[0],g[0],m[0],c,y,_),e(d[1],p[1],g[1],m[1],c,y,_)])}return s}return Z0=a,Z0}var X0,qO;function Wpe(){if(qO)return X0;qO=1;var r=Jt(),t=r.min,e=r.max,a=r.scale,i=r.distance,n=r.add,o=r.clone,s=r.sub;function l(u,v,h,f){var c=[],d=[],p=[],g=[],m,y,_,x;if(f){_=[1/0,1/0],x=[-1/0,-1/0];for(var S=0,b=u.length;S=2){if(s&&s!=="spline"){var l=t(o,s,n,i.smoothConstraint);a.moveTo(o[0][0],o[0][1]);for(var u=o.length,v=0;v<(n?u:u-1);v++){var h=l[v*2],f=l[v*2+1],c=o[(v+1)%u];a.bezierCurveTo(h[0],h[1],f[0],f[1],c[0],c[1])}}else{s==="spline"&&(o=r(o,n)),a.moveTo(o[0][0],o[0][1]);for(var v=1,d=o.length;v=0),Ot=!At&&De!=null;(At||Ot)&&(Ae={textFill:re.textFill,textStroke:re.textStroke,textStrokeWidth:re.textStrokeWidth}),At&&(re.textFill="#fff",re.textStroke==null&&(re.textStroke=De,re.textStrokeWidth==null&&(re.textStrokeWidth=2))),Ot&&(re.textFill=De)}re.insideRollback=Ae}function Tt(re){var ce=re.insideRollback;ce&&(re.textFill=ce.textFill,re.textStroke=ce.textStroke,re.textStrokeWidth=ce.textStrokeWidth,re.insideRollback=null)}function Bt(re,ce){var be=ce&&ce.getModel("textStyle");return r.trim([re.fontStyle||be&&be.getShallow("fontStyle")||"",re.fontWeight||be&&be.getShallow("fontWeight")||"",(re.fontSize||be&&be.getShallow("fontSize")||12)+"px",re.fontFamily||be&&be.getShallow("fontFamily")||"sans-serif"].join(" "))}function Vt(re,ce,be,Ae,De,je){typeof De=="function"&&(je=De,De=null);var Gt=Ae&&Ae.isAnimationEnabled();if(Gt){var At=re?"Update":"",Ot=Ae.getShallow("animationDuration"+At),hr=Ae.getShallow("animationEasing"+At),Nr=Ae.getShallow("animationDelay"+At);typeof Nr=="function"&&(Nr=Nr(De,Ae.getAnimationDelayParams?Ae.getAnimationDelayParams(ce,De):null)),typeof Ot=="function"&&(Ot=Ot(De)),Ot>0?ce.animateTo(be,Ot,Nr||0,hr,je,!!je):(ce.stopAnimation(),ce.attr(be),je&&je())}else ce.stopAnimation(),ce.attr(be),je&&je()}function Ke(re,ce,be,Ae,De){Vt(!0,re,ce,be,Ae,De)}function Et(re,ce,be,Ae,De){Vt(!1,re,ce,be,Ae,De)}function Lt(re,ce){for(var be=a.identity([]);re&&re!==ce;)a.mul(be,re.getLocalTransform(),be),re=re.parent;return be}function Zt(re,ce,be){return ce&&!r.isArrayLike(ce)&&(ce=o.getLocalTransform(ce)),be&&(ce=a.invert([],ce)),i.applyTransform([],re,ce)}function Xt(re,ce,be){var Ae=ce[4]===0||ce[5]===0||ce[0]===0?1:Math.abs(2*ce[4]/ce[0]),De=ce[4]===0||ce[5]===0||ce[2]===0?1:Math.abs(2*ce[4]/ce[2]),je=[re==="left"?-Ae:re==="right"?Ae:0,re==="top"?-De:re==="bottom"?De:0];return je=Zt(je,ce,be),Math.abs(je[0])>Math.abs(je[1])?je[0]>0?"right":"left":je[1]>0?"bottom":"top"}function Kt(re,ce,be,Ae){if(!re||!ce)return;function De(At){var Ot={};return At.traverse(function(hr){!hr.isGroup&&hr.anid&&(Ot[hr.anid]=hr)}),Ot}function je(At){var Ot={position:i.clone(At.position),rotation:At.rotation};return At.shape&&(Ot.shape=r.extend({},At.shape)),Ot}var Gt=De(re);ce.traverse(function(At){if(!At.isGroup&&At.anid){var Ot=Gt[At.anid];if(Ot){var hr=je(At);At.attr(je(Ot)),Ke(At,hr,be,At.dataIndex)}}})}function Pr(re,ce){return r.map(re,function(be){var Ae=be[0];Ae=T(Ae,ce.x),Ae=C(Ae,ce.x+ce.width);var De=be[1];return De=T(De,ce.y),De=C(De,ce.y+ce.height),[Ae,De]})}function fa(re,ce){var be=T(re.x,ce.x),Ae=C(re.x+re.width,ce.x+ce.width),De=T(re.y,ce.y),je=C(re.y+re.height,ce.y+ce.height);if(Ae>=be&&je>=De)return{x:be,y:De,width:Ae-be,height:je-De}}function Rr(re,ce,be){ce=r.extend({rectHover:!0},ce);var Ae=ce.style={strokeNoScale:!0};if(be=be||{x:-1,y:-1,width:2,height:2},re)return re.indexOf("image://")===0?(Ae.image=re.slice(8),r.defaults(Ae,be),new s(ce)):O(re.replace("path://",""),ce,be,"center")}function ta(re,ce,be,Ae,De){for(var je=0,Gt=De[De.length-1];je1)return!1;var Eu=jt(Ai,To,Nr,an)/Ti;return!(Eu<0||Eu>1)}function jt(re,ce,be,Ae){return re*Ae-be*ce}function mr(re){return re<=1e-6&&re>=-1e-6}return V("circle",v),V("sector",h),V("ring",f),V("polygon",c),V("polyline",d),V("rect",p),V("line",g),V("bezierCurve",m),V("arc",y),it.Z2_EMPHASIS_LIFT=L,it.CACHED_LABEL_STYLE_PROPERTIES=D,it.extendShape=B,it.extendPath=F,it.registerShape=V,it.getShapeClass=N,it.makePath=O,it.makeImage=z,it.mergePath=q,it.resizePath=H,it.subPixelOptimizeLine=U,it.subPixelOptimizeRect=W,it.subPixelOptimize=Y,it.setElementHoverStyle=fe,it.setHoverStyle=ne,it.setAsHighDownDispatcher=ue,it.isHighDownDispatcher=me,it.getHighlightDigit=xe,it.setLabelStyle=ge,it.modifyLabelStyle=pe,it.setTextStyle=Ce,it.setText=ze,it.getFont=Bt,it.updateProps=Ke,it.initProps=Et,it.getTransform=Lt,it.applyTransform=Zt,it.transformDirection=Xt,it.groupTransition=Kt,it.clipPointsByRect=Pr,it.clipRectByRect=fa,it.createIcon=Rr,it.linePolygonIntersect=ta,it.lineLineIntersect=vr,it}var s_,iN;function Xpe(){if(iN)return s_;iN=1;var r=Da(),t=qe(),e=["textStyle","color"],a={getTextColor:function(i){var n=this.ecModel;return this.getShallow("color")||(!i&&n?n.get(e):null)},getFont:function(){return t.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(i){return r.getBoundingRect(i,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};return s_=a,s_}var l_,nN;function Kpe(){if(nN)return l_;nN=1;var r=Tu(),t=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),e={getItemStyle:function(a,i){var n=t(this,a,i),o=this.getBorderLineDash();return o&&(n.lineDash=o),n},getBorderLineDash:function(){var a=this.get("borderType");return a==="solid"||a==null?null:a==="dashed"?[5,5]:[1,1]}};return l_=e,l_}var u_,oN;function gr(){if(oN)return u_;oN=1;var r=ie(),t=pr(),e=_t(),a=e.makeInner,i=Dn(),n=i.enableClassExtend,o=i.enableClassCheck,s=Ope(),l=Npe(),u=Xpe(),v=Kpe(),h=r.mixin,f=a();function c(m,y,_){this.parentModel=y,this.ecModel=_,this.option=m}c.prototype={constructor:c,init:null,mergeOption:function(m){r.merge(this.option,m,!0)},get:function(m,y){return m==null?this.option:d(this.option,this.parsePath(m),!y&&p(this,m))},getShallow:function(m,y){var _=this.option,x=_==null?_:_[m],S=!y&&p(this,m);return x==null&&S&&(x=S.getShallow(m)),x},getModel:function(m,y){var _=m==null?this.option:d(this.option,m=this.parsePath(m)),x;return y=y||(x=p(this,m))&&x.getModel(m),new c(_,y,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var m=this.constructor;return new m(r.clone(this.option))},setReadOnly:function(m){},parsePath:function(m){return typeof m=="string"&&(m=m.split(".")),m},customizeGetParent:function(m){f(this).getParent=m},isAnimationEnabled:function(){if(!t.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function d(m,y,_){for(var x=0;x=0&&d.push(p)}),d}}return cv.getUID=i,cv.enableSubTypeDefaulter=n,cv.enableTopologicalTravel=o,cv}var ga={},yr={},lN;function st(){if(lN)return yr;lN=1;var r=ie(),t=1e-4;function e(b){return b.replace(/^\s+|\s+$/g,"")}function a(b,w,A,T){var C=w[1]-w[0],M=A[1]-A[0];if(C===0)return M===0?A[0]:(A[0]+A[1])/2;if(T)if(C>0){if(b<=w[0])return A[0];if(b>=w[1])return A[1]}else{if(b>=w[0])return A[0];if(b<=w[1])return A[1]}else{if(b===w[0])return A[0];if(b===w[1])return A[1]}return(b-w[0])/C*M+A[0]}function i(b,w){switch(b){case"center":case"middle":b="50%";break;case"left":case"top":b="0%";break;case"right":case"bottom":b="100%";break}return typeof b=="string"?e(b).match(/%$/)?parseFloat(b)/100*w:parseFloat(b):b==null?NaN:+b}function n(b,w,A){return w==null&&(w=10),w=Math.min(Math.max(0,w),20),b=(+b).toFixed(w),A?b:+b}function o(b){return b.sort(function(w,A){return w-A}),b}function s(b){if(b=+b,isNaN(b))return 0;for(var w=1,A=0;Math.round(b*w)/w!==b;)w*=10,A++;return A}function l(b){var w=b.toString(),A=w.indexOf("e");if(A>0){var T=+w.slice(A+1);return T<0?-T:0}else{var C=w.indexOf(".");return C<0?0:w.length-1-C}}function u(b,w){var A=Math.log,T=Math.LN10,C=Math.floor(A(b[1]-b[0])/T),M=Math.round(A(Math.abs(w[1]-w[0]))/T),L=Math.min(Math.max(-C+M,0),20);return isFinite(L)?L:20}function v(b,w,A){if(!b[w])return 0;var T=r.reduce(b,function(F,V){return F+(isNaN(V)?0:V)},0);if(T===0)return 0;for(var C=Math.pow(10,A),M=r.map(b,function(F){return(isNaN(F)?0:F)/T*C*100}),L=C*100,D=r.map(M,function(F){return Math.floor(F)}),P=r.reduce(D,function(F,V){return F+V},0),I=r.map(M,function(F,V){return F-D[V]});PR&&(R=I[k],E=k);++D[E],I[E]=0,++P}return D[w]/C}var h=9007199254740991;function f(b){var w=Math.PI*2;return(b%w+w)%w}function c(b){return b>-t&&b=10&&w++,w}function y(b,w){var A=m(b),T=Math.pow(10,A),C=b/T,M;return w?C<1.5?M=1:C<2.5?M=2:C<4?M=3:C<7?M=5:M=10:C<1?M=1:C<2?M=2:C<3?M=3:C<5?M=5:M=10,b=M*T,A>=-20?+b.toFixed(A<0?-A:0):b}function _(b,w){var A=(b.length-1)*w+1,T=Math.floor(A),C=+b[T-1],M=A-T;return M?C+M*(b[T]-C):C}function x(b){b.sort(function(P,I){return D(P,I,0)?-1:1});for(var w=-1/0,A=1,T=0;T=0}return yr.linearMap=a,yr.parsePercent=i,yr.round=n,yr.asc=o,yr.getPrecision=s,yr.getPrecisionSafe=l,yr.getPixelPrecision=u,yr.getPercentWithPrecision=v,yr.MAX_SAFE_INTEGER=h,yr.remRadian=f,yr.isRadianAroundZero=c,yr.parseDate=p,yr.quantity=g,yr.quantityExponent=m,yr.nice=y,yr.quantile=_,yr.reformIntervals=x,yr.isNumeric=S,yr}var aa={},uN;function Yt(){if(uN)return aa;uN=1;var r=ie(),t=Da(),e=st();function a(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function i(S,b){return S=(S||"").toLowerCase().replace(/-(.)/g,function(w,A){return A.toUpperCase()}),b&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var n=r.normalizeCssArray,o=/([&<>"'])/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"};function l(S){return S==null?"":(S+"").replace(o,function(b,w){return s[w]})}var u=["a","b","c","d","e","f","g"],v=function(S,b){return"{"+S+(b==null?"":b)+"}"};function h(S,b,w){r.isArray(b)||(b=[b]);var A=b.length;if(!A)return"";for(var T=b[0].$vars||[],C=0;C':'':{renderMode:C,content:"{marker"+M+"|} ",style:{color:w}}:""}function d(S,b){return S+="","0000".substr(0,b-S.length)+S}function p(S,b,w){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S="MM-dd\nyyyy");var A=e.parseDate(b),T=w?"UTC":"",C=A["get"+T+"FullYear"](),M=A["get"+T+"Month"]()+1,L=A["get"+T+"Date"](),D=A["get"+T+"Hours"](),P=A["get"+T+"Minutes"](),I=A["get"+T+"Seconds"](),R=A["get"+T+"Milliseconds"]();return S=S.replace("MM",d(M,2)).replace("M",M).replace("yyyy",C).replace("yy",C%100).replace("dd",d(L,2)).replace("d",L).replace("hh",d(D,2)).replace("h",D).replace("mm",d(P,2)).replace("m",P).replace("ss",d(I,2)).replace("s",I).replace("SSS",d(R,3)),S}function g(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var m=t.truncateText;function y(S){return t.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function _(S,b,w,A,T,C,M,L){return t.getBoundingRect(S,b,w,A,T,L,C,M)}function x(S,b){if(b==="_blank"||b==="blank"){var w=window.open();w.opener=null,w.location=S}else window.open(S,b)}return aa.addCommas=a,aa.toCamelCase=i,aa.normalizeCssArray=n,aa.encodeHTML=l,aa.formatTpl=h,aa.formatTplSimple=f,aa.getTooltipMarker=c,aa.formatTime=p,aa.capitalFirst=g,aa.truncateText=m,aa.getTextBoundingRect=y,aa.getTextRect=_,aa.windowOpen=x,aa}var vN;function Ut(){if(vN)return ga;vN=1;var r=ie(),t=rr(),e=st(),a=e.parsePercent,i=Yt(),n=r.each,o=["left","right","top","bottom","width","height"],s=[["width","left","right"],["height","top","bottom"]];function l(_,x,S,b,w){var A=0,T=0;b==null&&(b=1/0),w==null&&(w=1/0);var C=0;x.eachChild(function(M,L){var D=M.position,P=M.getBoundingRect(),I=x.childAt(L+1),R=I&&I.getBoundingRect(),E,k;if(_==="horizontal"){var B=P.width+(R?-R.x+P.x:0);E=A+B,E>b||M.newline?(A=0,E=B,T+=C+S,C=P.height):C=Math.max(C,P.height)}else{var F=P.height+(R?-R.y+P.y:0);k=T+F,k>w||M.newline?(A+=C+S,T=0,k=F,C=P.width):C=Math.max(C,P.width)}M.newline||(D[0]=A,D[1]=T,_==="horizontal"?A=E+S:T=k+S)})}var u=l,v=r.curry(l,"vertical"),h=r.curry(l,"horizontal");function f(_,x,S){var b=x.width,w=x.height,A=a(_.x,b),T=a(_.y,w),C=a(_.x2,b),M=a(_.y2,w);return(isNaN(A)||isNaN(parseFloat(_.x)))&&(A=0),(isNaN(C)||isNaN(parseFloat(_.x2)))&&(C=b),(isNaN(T)||isNaN(parseFloat(_.y)))&&(T=0),(isNaN(M)||isNaN(parseFloat(_.y2)))&&(M=w),S=i.normalizeCssArray(S||0),{width:Math.max(C-A-S[1]-S[3],0),height:Math.max(M-T-S[0]-S[2],0)}}function c(_,x,S){S=i.normalizeCssArray(S||0);var b=x.width,w=x.height,A=a(_.left,b),T=a(_.top,w),C=a(_.right,b),M=a(_.bottom,w),L=a(_.width,b),D=a(_.height,w),P=S[2]+S[0],I=S[1]+S[3],R=_.aspect;switch(isNaN(L)&&(L=b-C-I-A),isNaN(D)&&(D=w-M-P-T),R!=null&&(isNaN(L)&&isNaN(D)&&(R>b/w?L=b*.8:D=w*.8),isNaN(L)&&(L=R*D),isNaN(D)&&(D=L/R)),isNaN(A)&&(A=b-C-L-I),isNaN(T)&&(T=w-M-D-P),_.left||_.right){case"center":A=b/2-L/2-S[3];break;case"right":A=b-L-I;break}switch(_.top||_.bottom){case"middle":case"center":T=w/2-D/2-S[0];break;case"bottom":T=w-D-P;break}A=A||0,T=T||0,isNaN(L)&&(L=b-I-A-(C||0)),isNaN(D)&&(D=w-P-T-(M||0));var E=new t(A+S[3],T+S[0],L,D);return E.margin=S,E}function d(_,x,S,b,w){var A=!w||!w.hv||w.hv[0],T=!w||!w.hv||w.hv[1],C=w&&w.boundingMode||"all";if(!(!A&&!T)){var M;if(C==="raw")M=_.type==="group"?new t(0,0,+x.width||0,+x.height||0):_.getBoundingRect();else if(M=_.getBoundingRect(),_.needLocalTransform()){var L=_.getLocalTransform();M=M.clone(),M.applyTransform(L)}x=c(r.defaults({width:M.width,height:M.height},x),S,b);var D=_.position,P=A?x.x-M.x:0,I=T?x.y-M.y:0;_.attr("position",C==="raw"?[P,I]:[D[0]+P,D[1]+I])}}function p(_,x){return _[s[x][0]]!=null||_[s[x][1]]!=null&&_[s[x][2]]!=null}function g(_,x,S){!r.isObject(S)&&(S={});var b=S.ignoreSize;!r.isArray(b)&&(b=[b,b]);var w=T(s[0],0),A=T(s[1],1);L(s[0],_,w),L(s[1],_,A);function T(D,P){var I={},R=0,E={},k=0,B=2;if(n(D,function(N){E[N]=_[N]}),n(D,function(N){C(x,N)&&(I[N]=E[N]=x[N]),M(I,N)&&R++,M(E,N)&&k++}),b[P])return M(x,D[1])?E[D[2]]=null:M(x,D[2])&&(E[D[1]]=null),E;if(k===B||!R)return E;if(R>=B)return I;for(var F=0;F=0;_--)y=r.merge(y,p[_],!0);d.defaultOption=y}return d.defaultOption},getReferringComponents:function(d){return this.ecModel.queryComponents({mainType:d,index:this.get(d+"Index",!0),id:this.get(d+"Id",!0)})}});i(h,{registerWhenExtend:!0}),e.enableSubTypeDefaulter(h),e.enableTopologicalTravel(h,f);function f(d){var p=[];return r.each(h.getClassesByMainType(d),function(g){p=p.concat(g.prototype.dependencies||[])}),p=r.map(p,function(g){return n(g).main}),d!=="dataset"&&r.indexOf(p,"dataset")<=0&&p.unshift("dataset"),p}r.mixin(h,u);var c=h;return h_=c,h_}var f_,cN;function jpe(){if(cN)return f_;cN=1;var r="";typeof navigator<"u"&&(r=navigator.platform||"");var t={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:r.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};return f_=t,f_}var c_,dN;function H9(){if(dN)return c_;dN=1;var r=_t(),t=r.makeInner,e=r.normalizeToArray,a=t();function i(o,s){for(var l=o.length,u=0;us)return o[u];return o[l-1]}var n={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(o,s,l){s=s||this;var u=a(s),v=u.colorIdx||0,h=u.colorNameMap=u.colorNameMap||{};if(h.hasOwnProperty(o))return h[o];var f=e(this.get("color",!0)),c=this.get("colorLayer",!0),d=l==null||!c?f:i(c,l);if(d=d||f,!(!d||!d.length)){var p=d[v];return o&&(h[o]=p),u.colorIdx=(v+1)%d.length,p}}};return c_=n,c_}var Pi={},Ri={},pN;function hf(){if(pN)return Ri;pN=1;var r="original",t="arrayRows",e="objectRows",a="keyedColumns",i="unknown",n="typedArray",o="column",s="row";return Ri.SOURCE_FORMAT_ORIGINAL=r,Ri.SOURCE_FORMAT_ARRAY_ROWS=t,Ri.SOURCE_FORMAT_OBJECT_ROWS=e,Ri.SOURCE_FORMAT_KEYED_COLUMNS=a,Ri.SOURCE_FORMAT_UNKNOWN=i,Ri.SOURCE_FORMAT_TYPED_ARRAY=n,Ri.SERIES_LAYOUT_BY_COLUMN=o,Ri.SERIES_LAYOUT_BY_ROW=s,Ri}var d_,gN;function ff(){if(gN)return d_;gN=1;var r=ie(),t=r.createHashMap,e=r.isTypedArray,a=Dn(),i=a.enableClassCheck,n=hf(),o=n.SOURCE_FORMAT_ORIGINAL,s=n.SERIES_LAYOUT_BY_COLUMN,l=n.SOURCE_FORMAT_UNKNOWN,u=n.SOURCE_FORMAT_TYPED_ARRAY,v=n.SOURCE_FORMAT_KEYED_COLUMNS;function h(c){this.fromDataset=c.fromDataset,this.data=c.data||(c.sourceFormat===v?{}:[]),this.sourceFormat=c.sourceFormat||l,this.seriesLayoutBy=c.seriesLayoutBy||s,this.dimensionsDefine=c.dimensionsDefine,this.encodeDefine=c.encodeDefine&&t(c.encodeDefine),this.startIndex=c.startIndex||0,this.dimensionsDetectCount=c.dimensionsDetectCount}h.seriesDataToSource=function(c){return new h({data:c,sourceFormat:e(c)?u:o,fromDataset:!1})},i(h);var f=h;return d_=f,d_}var mN;function Ln(){if(mN)return Pi;mN=1;var r=It();r.__DEV__;var t=_t(),e=t.makeInner,a=t.getDataItemValue,i=ie(),n=i.createHashMap,o=i.each,s=i.map,l=i.isArray,u=i.isString,v=i.isObject,h=i.isTypedArray,f=i.isArrayLike,c=i.extend;i.assert;var d=ff(),p=hf(),g=p.SOURCE_FORMAT_ORIGINAL,m=p.SOURCE_FORMAT_ARRAY_ROWS,y=p.SOURCE_FORMAT_OBJECT_ROWS,_=p.SOURCE_FORMAT_KEYED_COLUMNS,x=p.SOURCE_FORMAT_UNKNOWN,S=p.SOURCE_FORMAT_TYPED_ARRAY,b=p.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},A=e();function T(N){var O=N.option.source,z=x;if(h(O))z=S;else if(l(O)){O.length===0&&(z=m);for(var G=0,q=O.length;G=0;B--)p.isIdInner(E[B])&&E.splice(B,1);R[k]=E}}),delete R[b],R},getTheme:function(){return this._theme},getComponent:function(R,E){var k=this._componentsMap.get(R);if(k)return k[E||0]},queryComponents:function(R){var E=R.mainType;if(!E)return[];var k=R.index,B=R.id,F=R.name,V=this._componentsMap.get(E);if(!V||!V.length)return[];var N;if(k!=null)n(k)||(k=[k]),N=a(i(k,function(G){return V[G]}),function(G){return!!G});else if(B!=null){var O=n(B);N=a(V,function(G){return O&&o(B,G.id)>=0||!O&&G.id===B})}else if(F!=null){var z=n(F);N=a(V,function(G){return z&&o(F,G.name)>=0||!z&&G.name===F})}else N=V.slice();return P(N,R)},findComponents:function(R){var E=R.query,k=R.mainType,B=V(E),F=B?this.queryComponents(B):this._componentsMap.get(k);return N(P(F,R));function V(O){var z=k+"Index",G=k+"Id",q=k+"Name";return O&&(O[z]!=null||O[G]!=null||O[q]!=null)?{mainType:k,index:O[z],id:O[G],name:O[q]}:null}function N(O){return R.filter?a(O,R.filter):O}},eachComponent:function(R,E,k){var B=this._componentsMap;if(typeof R=="function")k=E,E=R,B.each(function(V,N){e(V,function(O,z){E.call(k,N,O,z)})});else if(l(R))e(B.get(R),E,k);else if(s(R)){var F=this.findComponents(R);e(F,E,k)}},getSeriesByName:function(R){var E=this._componentsMap.get("series");return a(E,function(k){return k.name===R})},getSeriesByIndex:function(R){return this._componentsMap.get("series")[R]},getSeriesByType:function(R){var E=this._componentsMap.get("series");return a(E,function(k){return k.subType===R})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(R,E){e(this._seriesIndices,function(k){var B=this._componentsMap.get("series")[k];R.call(E,B,k)},this)},eachRawSeries:function(R,E){e(this._componentsMap.get("series"),R,E)},eachSeriesByType:function(R,E,k){e(this._seriesIndices,function(B){var F=this._componentsMap.get("series")[B];F.subType===R&&E.call(k,F,B)},this)},eachRawSeriesByType:function(R,E,k){return e(this.getSeriesByType(R),E,k)},isSeriesFiltered:function(R){return this._seriesIndicesMap.get(R.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(R,E){var k=a(this._componentsMap.get("series"),R,E);D(this,k)},restoreData:function(R){var E=this._componentsMap;D(this,E.get("series"));var k=[];E.each(function(B,F){k.push(F)}),m.topologicalTravel(k,m.getAllClassMainTypes(),function(B,F){e(E.get(B),function(V){(B!=="series"||!A(V,R))&&V.restoreData()})})}});function A(R,E){if(E){var k=E.seiresIndex,B=E.seriesId,F=E.seriesName;return k!=null&&R.componentIndex!==k||B!=null&&R.id!==B||F!=null&&R.name!==F}}function T(R,E){var k=R.color&&!R.colorLayer;e(E,function(B,F){F==="colorLayer"&&k||m.hasClass(F)||(typeof B=="object"?R[F]=R[F]?f(R[F],B,!1):h(B):R[F]==null&&(R[F]=B))})}function C(R){R=R,this.option={},this.option[b]=1,this._componentsMap=u({series:[]}),this._seriesIndices,this._seriesIndicesMap,T(R,this._theme.option),f(R,y,!1),this.mergeOption(R)}function M(R,E){n(E)||(E=E?[E]:[]);var k={};return e(E,function(B){k[B]=(R.get(B)||[]).slice()}),k}function L(R,E,k){var B=E.type?E.type:k?k.subType:m.determineSubType(R,E);return B}function D(R,E){R._seriesIndicesMap=u(R._seriesIndices=i(E,function(k){return k.componentIndex})||[])}function P(R,E){return E.hasOwnProperty("subType")?a(R,function(k){return k.subType===E.subType}):R}d(w,_);var I=w;return p_=I,p_}var g_,_N;function W9(){if(_N)return g_;_N=1;var r=ie(),t=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function e(i){r.each(t,function(n){this[n]=r.bind(i[n],i)},this)}var a=e;return g_=a,g_}var m_,xN;function bi(){if(xN)return m_;xN=1;var r=ie(),t={};function e(){this._coordinateSystems=[]}e.prototype={constructor:e,create:function(i,n){var o=[];r.each(t,function(s,l){var u=s.create(i,n);o=o.concat(u||[])}),this._coordinateSystems=o},update:function(i,n){r.each(this._coordinateSystems,function(o){o.update&&o.update(i,n)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(i,n){t[i]=n},e.get=function(i){return t[i]};var a=e;return m_=a,m_}var y_,SN;function Jpe(){if(SN)return y_;SN=1;var r=ie(),t=_t(),e=Lr(),a=r.each,i=r.clone,n=r.map,o=r.merge,s=/^(min|max)?(.+)$/;function l(p){this._api=p,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}l.prototype={constructor:l,setOption:function(p,g){p&&r.each(t.normalizeToArray(p.series),function(_){_&&_.data&&r.isTypedArray(_.data)&&r.setAsPrimitive(_.data)}),p=i(p);var m=this._optionBackup,y=u.call(this,p,g,!m);this._newBaseOption=y.baseOption,m?(c(m.baseOption,y.baseOption),y.timelineOptions.length&&(m.timelineOptions=y.timelineOptions),y.mediaList.length&&(m.mediaList=y.mediaList),y.mediaDefault&&(m.mediaDefault=y.mediaDefault)):this._optionBackup=y},mountOption:function(p){var g=this._optionBackup;return this._timelineOptions=n(g.timelineOptions,i),this._mediaList=n(g.mediaList,i),this._mediaDefault=i(g.mediaDefault),this._currentMediaIndices=[],i(p?g.baseOption:this._newBaseOption)},getTimelineOption:function(p){var g,m=this._timelineOptions;if(m.length){var y=p.getComponent("timeline");y&&(g=i(m[y.getCurrentIndex()],!0))}return g},getMediaOption:function(p){var g=this._api.getWidth(),m=this._api.getHeight(),y=this._mediaList,_=this._mediaDefault,x=[],S=[];if(!y.length&&!_)return S;for(var b=0,w=y.length;b=g:m==="max"?p<=g:p===g}function f(p,g){return p.join(",")===g.join(",")}function c(p,g){g=g||{},a(g,function(m,y){if(m!=null){var _=p[y];if(!e.hasClass(y))p[y]=o(_,m,!0);else{m=t.normalizeToArray(m),_=t.normalizeToArray(_);var x=t.mappingToExists(_,m);p[y]=n(x,function(S){return S.option&&S.exist?o(S.exist,S.option,!0):S.exist||S.option})}}})}var d=l;return y_=d,y_}var __,bN;function ege(){if(bN)return __;bN=1;var r=ie(),t=_t(),e=r.each,a=r.isObject,i=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function n(d){var p=d&&d.itemStyle;if(p)for(var g=0,m=i.length;g=0;S--){var b=n[S];if(f||(_=b.data.rawIndexOf(b.stackedByDimension,y)),_>=0){var w=b.data.getByRawIndex(b.stackResultDimension,_);if(m>=0&&w>0||m<=0&&w<0){m+=w,x=w;break}}}return l[0]=m,l[1]=x,l});h.hostModel.setData(c),o.data=c})}return S_=a,S_}var bl={},AN;function Ys(){if(AN)return bl;AN=1;var r=It();r.__DEV__;var t=ie();t.isTypedArray;var e=t.extend;t.assert;var a=t.each,i=t.isObject,n=_t(),o=n.getDataItemValue,s=n.isDataItemOption,l=st(),u=l.parseDate,v=ff(),h=hf(),f=h.SOURCE_FORMAT_TYPED_ARRAY,c=h.SOURCE_FORMAT_ARRAY_ROWS,d=h.SOURCE_FORMAT_ORIGINAL,p=h.SOURCE_FORMAT_OBJECT_ROWS;function g(D,P){v.isInstance(D)||(D=v.seriesDataToSource(D)),this._source=D;var I=this._data=D.data,R=D.sourceFormat;R===f&&(this._offset=0,this._dimSize=P,this._data=I);var E=y[R===c?R+"_"+D.seriesLayoutBy:R];e(this,E)}var m=g.prototype;m.pure=!1,m.persistent=!0,m.getSource=function(){return this._source};var y={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(D){return this._data[D+this._source.startIndex]},appendData:S},arrayRows_row:{pure:!0,count:function(){var D=this._data[0];return D?Math.max(0,D.length-this._source.startIndex):0},getItem:function(D){D+=this._source.startIndex;for(var P=[],I=this._data,R=0;R=1)&&(C=1),C}var _;(this._dirty||c==="reset")&&(this._dirty=!1,_=l(this,h)),this._modBy=g,this._modDataCount=m;var x=u&&u.step;if(v?this._dueEnd=v._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var S=this._dueIndex,b=Math.min(x!=null?this._dueIndex+x:1/0,this._dueEnd);if(!h&&(_||S1&&f>0?g:p}};return d;function p(){return v=u?null:m":"\n",O=F==="richText",z={},G=0;function q(ve){var ye=t.reduce(ve,function(me,xe,ge){var pe=U.getDimensionInfo(ge);return me|=pe&&pe.tooltip!==!1&&pe.displayName!=null},0),Me=[];W.length?t.each(W,function(me){J(S(U,E,me),me)}):t.each(ve,J);function J(me,xe){var ge=U.getDimensionInfo(xe);if(!(!ge||ge.otherDims.tooltip===!1)){var pe=ge.type,Ce="sub"+V.seriesIndex+"at"+G,ze=s({color:Q,type:"subItem",renderMode:F,markerId:Ce}),Ve=typeof ze=="string"?ze:ze.content,ke=(ye?Ve+n(ge.displayName||"-")+": ":"")+n(pe==="ordinal"?me+"":pe==="time"?k?"":i("yyyy/MM/dd hh:mm:ss",me):o(me));ke&&Me.push(ke),O&&(z[Ce]=Q,++G)}}var ne=ye?O?"\n":"
":"",ue=ne+Me.join(ne||", ");return{renderMode:F,content:ue,style:z}}function H(ve){return{renderMode:F,content:n(o(ve)),style:z}}var U=this.getData(),W=U.mapDimension("defaultedTooltip",!0),Y=W.length,X=this.getRawValue(E),K=t.isArray(X),Q=U.getItemVisual(E,"color");t.isObject(Q)&&Q.colorStops&&(Q=(Q.colorStops[0]||{}).color),Q=Q||"transparent";var j=Y>1||K&&!Y?q(X):H(Y?S(U,E,W[0]):K?X[0]:X),te=j.content,Z=V.seriesIndex+"at"+G,ee=s({color:Q,type:"item",renderMode:F,markerId:Z});z[Z]=Q,++G;var le=U.getName(E),oe=this.name;l.isNameSpecified(this)||(oe=""),oe=oe?n(oe)+(k?": ":N):"";var fe=typeof ee=="string"?ee:ee.content,se=k?fe+oe+te:oe+fe+(le?n(le)+": "+te:te);return{html:se,markers:z}},isAnimationEnabled:function(){if(e.node)return!1;var E=this.getShallow("animation");return E&&this.getData().count()>this.getShallow("animationThreshold")&&(E=!1),E},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(E,k,B){var F=this.ecModel,V=v.getColorFromPalette.call(this,E,k,B);return V||(V=F.getColorFromPalette(E,k,B)),V},coordDimToDataDim:function(E){return this.getRawData().mapDimension(E,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});t.mixin(w,h),t.mixin(w,v);function A(E){var k=E.name;l.isNameSpecified(E)||(E.name=T(E)||k)}function T(E){var k=E.getRawData(),B=k.mapDimension("seriesName",!0),F=[];return t.each(B,function(V){var N=k.getDimensionInfo(V);N.displayName&&F.push(N.displayName)}),F.join(" ")}function C(E){return E.model.getRawData().count()}function M(E){var k=E.model;return k.setData(k.getRawData().cloneShallow()),L}function L(E,k){k.outputData&&E.end>k.outputData.count()&&k.model.getRawData().cloneShallow(k.outputData)}function D(E,k){t.each(E.CHANGABLE_METHODS,function(B){E.wrapMethod(B,t.curry(P,k))})}function P(E){var k=I(E);k&&k.setOutputEnd(this.count())}function I(E){var k=(E.ecModel||{}).scheduler,B=k&&k.getPipeline(E.uid);if(B){var F=B.currentTask;if(F){var V=F.agentStubMap;V&&(F=V.get(E.uid))}return F}}var R=w;return T_=R,T_}var A_,LN;function fg(){if(LN)return A_;LN=1;var r=Us(),t=vf(),e=Dn(),a=function(){this.group=new r,this.uid=t.getUID("viewComponent")};a.prototype={constructor:a,init:function(o,s){},render:function(o,s,l,u){},dispose:function(){},filterForExposedEvent:null};var i=a.prototype;i.updateView=i.updateLayout=i.updateVisual=function(o,s,l,u){},e.enableClassExtend(a),e.enableClassManagement(a,{registerWhenExtend:!0});var n=a;return A_=n,A_}var C_,IN;function Cu(){if(IN)return C_;IN=1;var r=_t(),t=r.makeInner;function e(){var a=t();return function(i){var n=a(i),o=i.pipelineContext,s=n.large,l=n.progressiveRender,u=n.large=o&&o.large,v=n.progressiveRender=o&&o.progressiveRender;return!!(s^u||l^v)&&"reset"}}return C_=e,C_}var M_,PN;function tn(){if(PN)return M_;PN=1;var r=ie(),t=r.each,e=Us(),a=vf(),i=Dn(),n=_t(),o=qe(),s=iD(),l=s.createTask,u=Cu(),v=n.makeInner(),h=u();function f(){this.group=new e,this.uid=a.getUID("viewChart"),this.renderTask=l({plan:g,reset:m}),this.renderTask.context={view:this}}f.prototype={type:"chart",init:function(x,S){},render:function(x,S,b,w){},highlight:function(x,S,b,w){p(x.getData(),w,"emphasis")},downplay:function(x,S,b,w){p(x.getData(),w,"normal")},remove:function(x,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var c=f.prototype;c.updateView=c.updateLayout=c.updateVisual=function(x,S,b,w){this.render(x,S,b,w)};function d(x,S,b){if(x&&(x.trigger(S,b),x.isGroup&&!o.isHighDownDispatcher(x)))for(var w=0,A=x.childCount();w=0?m():f=setTimeout(m,-c),v=u};return y.clear=function(){f&&(clearTimeout(f),f=null)},y.debounceNextCall=function(_){g=_},y}function i(o,s,l,u){var v=o[s];if(v){var h=v[r]||v,f=v[e],c=v[t];if(c!==l||f!==u){if(l==null||!u)return o[s]=h;v=o[s]=a(h,l,u==="debounce"),v[r]=h,v[e]=u,v[t]=l}return v}}function n(o,s){var l=o[s];l&&l[r]&&(o[s]=l[r])}return dv.throttle=a,dv.createOrUpdate=i,dv.clear=n,dv}var D_,EN;function age(){if(EN)return D_;EN=1;var r=hg(),t=ie(),e=t.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,n){var o=i.getData(),s=(i.visualColorAccessPath||"itemStyle.color").split("."),l=i.get(s),u=e(l)&&!(l instanceof r)?l:null;(!l||u)&&(l=i.getColorFromPalette(i.name,null,n.getSeriesCount())),o.setVisual("color",l);var v=(i.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),h=i.get(v);if(o.setVisual("borderColor",h),!n.isSeriesFiltered(i)){u&&o.each(function(c){o.setItemVisual(c,"color",u(i.getDataParams(c)))});var f=function(c,d){var p=c.getItemModel(d),g=p.get(s,!0),m=p.get(v,!0);g!=null&&c.setItemVisual(d,"color",g),m!=null&&c.setItemVisual(d,"borderColor",m)};return{dataEach:o.hasItemOption?f:null}}}};return D_=a,D_}var L_,kN;function xo(){if(kN)return L_;kN=1;var r={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};return L_=r,L_}var I_,ON;function ige(){if(ON)return I_;ON=1;var r=ie(),t=xo(),e=Ys(),a=e.retrieveRawValue;function i(n,o){var s=o.getModel("aria");if(s.get("show")){if(s.get("description")){n.setAttribute("aria-label",s.get("description"));return}}else return;var l=0;o.eachSeries(function(x,S){++l},this);var u=s.get("data.maxCount")||10,v=s.get("series.maxCount")||10,h=Math.min(l,v),f;if(l<1)return;var c=y();c?f=g(m("general.withTitle"),{title:c}):f=m("general.withoutTitle");var d=[],p=l>1?"series.multiple.prefix":"series.single.prefix";f+=g(m(p),{seriesCount:l}),o.eachSeries(function(x,S){if(S1?"multiple":"single")+".";b=m(w?A+"withName":A+"withoutName"),b=g(b,{seriesId:x.seriesIndex,seriesName:x.get("name"),seriesType:_(x.subType)});var T=x.getData();window.data=T,T.count()>u?b+=g(m("data.partialData"),{displayCnt:u}):b+=m("data.allData");for(var C=[],M=0;MN.blockIndex,G=z?N.step:null,q=O&&O.modDataCount,H=q!=null?Math.ceil(q/G):null;return{step:G,modBy:H,modDataCount:q}}},p.getPipeline=function(F){return this._pipelineMap.get(F)},p.updateStreamModes=function(F,V){var N=this._pipelineMap.get(F.uid),O=F.getData(),z=O.count(),G=N.progressiveEnabled&&V.incrementalPrepareRender&&z>=N.threshold,q=F.get("large")&&z>=F.get("largeThreshold"),H=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=N.context={progressiveRender:G,modDataCount:H,large:q}},p.restorePipelines=function(F){var V=this,N=V._pipelineMap=i();F.eachSeries(function(O){var z=O.getProgressive(),G=O.uid;N.set(G,{id:G,head:null,tail:null,threshold:O.getProgressiveThreshold(),progressiveEnabled:z&&!(O.preventIncremental&&O.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),D(V,O,O.dataTask)})},p.prepareStageTasks=function(){var F=this._stageTaskMap,V=this.ecInstance.getModel(),N=this.api;t(this._allHandlers,function(O){var z=F.get(O.uid)||F.set(O.uid,[]);O.reset&&y(this,O,z,V,N),O.overallReset&&_(this,O,z,V,N)},this)},p.prepareView=function(F,V,N,O){var z=F.renderTask,G=z.context;G.model=V,G.ecModel=N,G.api=O,z.__block=!F.incrementalPrepareRender,D(this,V,z)},p.performDataProcessorTasks=function(F,V){g(this,this._dataProcessorHandlers,F,V,{block:!0})},p.performVisualTasks=function(F,V,N){g(this,this._visualHandlers,F,V,N)};function g(F,V,N,O,z){z=z||{};var G;t(V,function(H,U){if(!(z.visualType&&z.visualType!==H.visualType)){var W=F._stageTaskMap.get(H.uid),Y=W.seriesTaskMap,X=W.overallTask;if(X){var K,Q=X.agentStubMap;Q.each(function(te){q(z,te)&&(te.dirty(),K=!0)}),K&&X.dirty(),m(X,O);var j=F.getPerformArgs(X,z.block);Q.each(function(te){te.perform(j)}),G|=X.perform(j)}else Y&&Y.each(function(te,Z){q(z,te)&&te.dirty();var ee=F.getPerformArgs(te,z.block);ee.skip=!H.performRawSeries&&N.isSeriesFiltered(te.context.model),m(te,O),G|=te.perform(ee)})}});function q(H,U){return H.setDirty&&(!H.dirtyMap||H.dirtyMap.get(U.__pipeline.id))}F.unfinished|=G}p.performSeriesTasks=function(F){var V;F.eachSeries(function(N){V|=N.dataTask.perform()}),this.unfinished|=V},p.plan=function(){this._pipelineMap.each(function(F){var V=F.tail;do{if(V.__block){F.blockIndex=V.__idxInPipeline;break}V=V.getUpstream()}while(V)})};var m=p.updatePayload=function(F,V){V!=="remain"&&(F.context.payload=V)};function y(F,V,N,O,z){var G=N.seriesTaskMap||(N.seriesTaskMap=i()),q=V.seriesType,H=V.getTargetSeries;V.createOnAllSeries?O.eachRawSeries(U):q?O.eachRawSeriesByType(q,U):H&&H(O,z).each(U);function U(Y){var X=Y.uid,K=G.get(X)||G.set(X,s({plan:A,reset:T,count:L}));K.context={model:Y,ecModel:O,api:z,useClearVisual:V.isVisual&&!V.isLayout,plan:V.plan,reset:V.reset,scheduler:F},D(F,Y,K)}var W=F._pipelineMap;G.each(function(Y,X){W.get(X)||(Y.dispose(),G.removeKey(X))})}function _(F,V,N,O,z){var G=N.overallTask=N.overallTask||s({reset:x});G.context={ecModel:O,api:z,overallReset:V.overallReset,scheduler:F};var q=G.agentStubMap=G.agentStubMap||i(),H=V.seriesType,U=V.getTargetSeries,W=!0,Y=V.modifyOutputEnd;H?O.eachRawSeriesByType(H,X):U?U(O,z).each(X):(W=!1,t(O.getSeries(),X));function X(Q){var j=Q.uid,te=q.get(j);te||(te=q.set(j,s({reset:S,onDirty:w})),G.dirty()),te.context={model:Q,overallProgress:W,modifyOutputEnd:Y},te.agent=G,te.__block=W,D(F,Q,te)}var K=F._pipelineMap;q.each(function(Q,j){K.get(j)||(Q.dispose(),G.dirty(),q.removeKey(j))})}function x(F){F.overallReset(F.ecModel,F.api,F.payload)}function S(F,V){return F.overallProgress&&b}function b(){this.agent.dirty(),this.getDownstream().dirty()}function w(){this.agent&&this.agent.dirty()}function A(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function T(F){F.useClearVisual&&F.data.clearAllVisual();var V=F.resetDefines=c(F.reset(F.model,F.ecModel,F.api,F.payload));return V.length>1?e(V,function(N,O){return M(O)}):C}var C=M(0);function M(F){return function(V,N){var O=N.data,z=N.resetDefines[F];if(z&&z.dataEach)for(var G=V.start;G=4&&(X={x:parseFloat(Q[0]||0),y:parseFloat(Q[1]||0),width:parseFloat(Q[2]),height:parseFloat(Q[3])})}if(X&&U!=null&&W!=null&&(K=V(X,U,W),!z.ignoreViewBox)){var j=q;q=new r,q.add(j),j.scale=K.scale.slice(),j.position=K.position.slice()}return!z.ignoreRootClip&&U!=null&&W!=null&&q.setClipPath(new i({shape:{x:0,y:0,width:U,height:W}})),{root:q,width:U,height:W,viewBoxRect:X,viewBoxTransform:K}},w.prototype._parseNode=function(O,z){var G=O.nodeName.toLowerCase();G==="defs"?this._isDefine=!0:G==="text"&&(this._isText=!0);var q;if(this._isDefine){var H=T[G];if(H){var U=H.call(this,O),W=O.getAttribute("id");W&&(this._defs[W]=U)}}else{var H=A[G];H&&(q=H.call(this,O,z),z.add(q))}for(var Y=O.firstChild;Y;)Y.nodeType===1&&this._parseNode(Y,q),Y.nodeType===3&&this._isText&&this._parseText(Y,q),Y=Y.nextSibling;G==="defs"?this._isDefine=!1:G==="text"&&(this._isText=!1)},w.prototype._parseText=function(O,z){if(O.nodeType===1){var G=O.getAttribute("dx")||0,q=O.getAttribute("dy")||0;this._textX+=parseFloat(G),this._textY+=parseFloat(q)}var H=new e({style:{text:O.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});M(z,H),P(O,H,this._defs);var U=H.style.fontSize;U&&U<9&&(H.style.fontSize=9,H.scale=H.scale||[1,1],H.scale[0]*=U/9,H.scale[1]*=U/9);var W=H.getBoundingRect();return this._textX+=W.width,z.add(H),H};var A={g:function(O,z){var G=new r;return M(z,G),P(O,G,this._defs),G},rect:function(O,z){var G=new i;return M(z,G),P(O,G,this._defs),G.setShape({x:parseFloat(O.getAttribute("x")||0),y:parseFloat(O.getAttribute("y")||0),width:parseFloat(O.getAttribute("width")||0),height:parseFloat(O.getAttribute("height")||0)}),G},circle:function(O,z){var G=new a;return M(z,G),P(O,G,this._defs),G.setShape({cx:parseFloat(O.getAttribute("cx")||0),cy:parseFloat(O.getAttribute("cy")||0),r:parseFloat(O.getAttribute("r")||0)}),G},line:function(O,z){var G=new o;return M(z,G),P(O,G,this._defs),G.setShape({x1:parseFloat(O.getAttribute("x1")||0),y1:parseFloat(O.getAttribute("y1")||0),x2:parseFloat(O.getAttribute("x2")||0),y2:parseFloat(O.getAttribute("y2")||0)}),G},ellipse:function(O,z){var G=new n;return M(z,G),P(O,G,this._defs),G.setShape({cx:parseFloat(O.getAttribute("cx")||0),cy:parseFloat(O.getAttribute("cy")||0),rx:parseFloat(O.getAttribute("rx")||0),ry:parseFloat(O.getAttribute("ry")||0)}),G},polygon:function(O,z){var G=O.getAttribute("points");G&&(G=L(G));var q=new l({shape:{points:G||[]}});return M(z,q),P(O,q,this._defs),q},polyline:function(O,z){var G=new s;M(z,G),P(O,G,this._defs);var q=O.getAttribute("points");q&&(q=L(q));var H=new u({shape:{points:q||[]}});return H},image:function(O,z){var G=new t;return M(z,G),P(O,G,this._defs),G.setStyle({image:O.getAttribute("xlink:href"),x:O.getAttribute("x"),y:O.getAttribute("y"),width:O.getAttribute("width"),height:O.getAttribute("height")}),G},text:function(O,z){var G=O.getAttribute("x")||0,q=O.getAttribute("y")||0,H=O.getAttribute("dx")||0,U=O.getAttribute("dy")||0;this._textX=parseFloat(G)+parseFloat(H),this._textY=parseFloat(q)+parseFloat(U);var W=new r;return M(z,W),P(O,W,this._defs),W},tspan:function(O,z){var G=O.getAttribute("x"),q=O.getAttribute("y");G!=null&&(this._textX=parseFloat(G)),q!=null&&(this._textY=parseFloat(q));var H=O.getAttribute("dx")||0,U=O.getAttribute("dy")||0,W=new r;return M(z,W),P(O,W,this._defs),this._textX+=H,this._textY+=U,W},path:function(O,z){var G=O.getAttribute("d")||"",q=d(G);return M(z,q),P(O,q,this._defs),q}},T={lineargradient:function(O){var z=parseInt(O.getAttribute("x1")||0,10),G=parseInt(O.getAttribute("y1")||0,10),q=parseInt(O.getAttribute("x2")||10,10),H=parseInt(O.getAttribute("y2")||0,10),U=new v(z,G,q,H);return C(O,U),U},radialgradient:function(O){}};function C(O,z){for(var G=O.firstChild;G;){if(G.nodeType===1){var q=G.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var H=G.getAttribute("stop-color")||"#000000";z.addColorStop(q,H)}G=G.nextSibling}}function M(O,z){O&&O.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),y(z.__inheritedStyle,O.__inheritedStyle))}function L(O){for(var z=_(O).split(S),G=[],q=0;q0;U-=2){var W=H[U],Y=H[U-1];switch(q=q||f.create(),Y){case"translate":W=_(W).split(S),f.translate(q,q,[parseFloat(W[0]),parseFloat(W[1]||0)]);break;case"scale":W=_(W).split(S),f.scale(q,q,[parseFloat(W[0]),parseFloat(W[1]||W[0])]);break;case"rotate":W=_(W).split(S),f.rotate(q,q,parseFloat(W[0]));break;case"skew":W=_(W).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var W=_(W).split(S);q[0]=parseFloat(W[0]),q[1]=parseFloat(W[1]),q[2]=parseFloat(W[2]),q[3]=parseFloat(W[3]),q[4]=parseFloat(W[4]),q[5]=parseFloat(W[5]);break}}z.setLocalTransform(q)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(O){var z=O.getAttribute("style"),G={};if(!z)return G;var q={};B.lastIndex=0;for(var H;(H=B.exec(z))!=null;)q[H[1]]=H[2];for(var U in D)D.hasOwnProperty(U)&&q[U]!=null&&(G[D[U]]=q[U]);return G}function V(O,z,G){var q=z/O.width,H=G/O.height,U=Math.min(q,H),W=[U,U],Y=[-(O.x+O.width/2)*U+z/2,-(O.y+O.height/2)*U+G/2];return{scale:W,position:Y}}function N(O,z){var G=new w;return G.parse(O,z)}return pv.parseXML=b,pv.makeViewBoxTransform=V,pv.parseSVG=N,pv}var N_,WN;function nD(){if(WN)return N_;WN=1;var r=It();r.__DEV__;var t=ie(),e=t.createHashMap,a=t.isString,i=t.isArray,n=t.each;t.assert;var o=$9(),s=o.parseXML,l=e(),u={registerMap:function(h,f,c){var d;return i(f)?d=f:f.svg?d=[{type:"svg",source:f.svg,specialAreas:f.specialAreas}]:(f.geoJson&&!f.features&&(c=f.specialAreas,f=f.geoJson),d=[{type:"geoJSON",source:f,specialAreas:c}]),n(d,function(p){var g=p.type;g==="geoJson"&&(g=p.type="geoJSON");var m=v[g];m(p)}),l.set(h,d)},retrieveMap:function(h){return l.get(h)}},v={geoJSON:function(h){var f=h.source;h.geoJSON=a(f)?typeof JSON<"u"&&JSON.parse?JSON.parse(f):new Function("return ("+f+");")():f},svg:function(h){h.svgXML=s(h.source)}};return N_=u,N_}var Er={},Ei={},z_,UN;function Zs(){if(UN)return z_;UN=1;function r(i){return i}function t(i,n,o,s,l){this._old=i,this._new=n,this._oldKeyGetter=o||r,this._newKeyGetter=s||r,this.context=l}t.prototype={constructor:t,add:function(i){return this._add=i,this},update:function(i){return this._update=i,this},remove:function(i){return this._remove=i,this},execute:function(){var i=this._old,n=this._new,o={},s={},l=[],u=[],v;for(e(i,o,l,"_oldKeyGetter",this),e(n,s,u,"_newKeyGetter",this),v=0;v65535?g:y}function x(N){var O=N.constructor;return O===Array?N.slice():new O(N)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],b=["_extent","_approximateExtent","_rawExtent"];function w(N,O){t.each(S.concat(O.__wrappedMethods||[]),function(z){O.hasOwnProperty(z)&&(N[z]=O[z])}),N.__wrappedMethods=O.__wrappedMethods,t.each(b,function(z){N[z]=t.clone(O[z])}),N._calculationInfo=t.extend(O._calculationInfo)}var A=function(N,O){N=N||["x","y"];for(var z={},G=[],q={},H=0;Hse[1]&&(se[1]=fe)}O&&(this._nameList[te]=O[Z])}this._rawCount=this._count=Y,this._extent={},M(this)},T._initDataFromProvider=function(N,O){if(!(N>=O)){for(var z=this._chunkSize,G=this._rawData,q=this._storage,H=this.dimensions,U=H.length,W=this._dimensionInfos,Y=this._nameList,X=this._idList,K=this._rawExtent,Q=this._nameRepeatCount={},j,te=this._chunkCount,Z=0;Zne[1]&&(ne[1]=J)}if(!G.pure){var ue=Y[fe];if(oe&&ue==null){if(oe.name!=null)Y[fe]=ue=oe.name;else if(j!=null){var me=H[j],xe=q[me][se];if(xe){ue=xe[ve];var ge=W[me].ordinalMeta;ge&&ge.categories.length&&(ue=ge.categories[ue])}}}var pe=oe==null?null:oe.id;pe==null&&ue!=null&&(Q[ue]=Q[ue]||0,pe=ue,Q[ue]>0&&(pe+="__ec__"+Q[ue]),Q[ue]++),pe!=null&&(X[fe]=pe)}}!G.persistent&&G.clean&&G.clean(),this._rawCount=this._count=O,this._extent={},M(this)}};function C(N,O,z,G,q){var H=p[O.type],U=G-1,W=O.name,Y=N[W][U];if(Y&&Y.length=0&&O=0&&OW&&(W=X)}return H=[U,W],this._extent[N]=H,H},T.getApproximateExtent=function(N){return N=this.getDimension(N),this._approximateExtent[N]||this.getDataExtent(N)},T.setApproximateExtent=function(N,O){O=this.getDimension(O),this._approximateExtent[O]=N.slice()},T.getCalculationInfo=function(N){return this._calculationInfo[N]},T.setCalculationInfo=function(N,O){h(N)?t.extend(this._calculationInfo,N):this._calculationInfo[N]=O},T.getSum=function(N){var O=this._storage[N],z=0;if(O)for(var G=0,q=this.count();G=this._rawCount||N<0)return-1;if(!this._indices)return N;var O=this._indices,z=O[N];if(z!=null&&zN)q=H-1;else return H}return-1},T.indicesOfNearest=function(N,O,z){var G=this._storage,q=G[N],H=[];if(!q)return H;z==null&&(z=1/0);for(var U=1/0,W=-1,Y=0,X=0,K=this.count();X=0&&W<0)&&(U=j,W=Q,Y=0),Q===W&&(H[Y++]=X))}return H.length=Y,H},T.getRawIndex=D;function D(N){return N}function P(N){return N=0?this._indices[N]:-1}T.getRawDataItem=function(N){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(N));for(var O=[],z=0;z=X&&fe<=K||isNaN(fe))&&(U[W++]=j),j++}Q=!0}else if(G===2){for(var te=this._storage[Y],se=this._storage[O[1]],ve=N[O[1]][0],ye=N[O[1]][1],Z=0;Z=X&&fe<=K||isNaN(fe))&&(J>=ve&&J<=ye||isNaN(J))&&(U[W++]=j),j++}Q=!0}}if(!Q)if(G===1)for(var oe=0;oe=X&&fe<=K||isNaN(fe))&&(U[W++]=ne)}else for(var oe=0;oeN[me][1])&&(ue=!1)}ue&&(U[W++]=this.getRawIndex(oe))}return W=0?(q[W]=k(H[W]),G._rawExtent[W]=B(),G._extent[W]=null):q[W]=H[W])}return G}function k(N){for(var O=new Array(N.length),z=0;zye[1]&&(ye[1]=ve)}}}return q},T.downSample=function(N,O,z,G){for(var q=E(this,[N]),H=q._storage,U=[],W=Math.floor(1/O),Y=H[N],X=this.count(),K=this._chunkSize,Q=q._rawExtent[N],j=new(_(this))(X),te=0,Z=0;ZX-Z&&(W=X-Z,U.length=W);for(var ee=0;eeQ[1]&&(Q[1]=se),j[te++]=ve}return q._count=te,q._indices=j,q.getRawIndex=P,q},T.getItemModel=function(N){var O=this.hostModel;return new e(this.getRawDataItem(N),O,O&&O.ecModel)},T.diff=function(N){var O=this;return new a(N?N.getIndices():[],this.getIndices(),function(z){return I(N,z)},function(z){return I(O,z)})},T.getVisual=function(N){var O=this._visual;return O&&O[N]},T.setVisual=function(N,O){if(h(N)){for(var z in N)N.hasOwnProperty(z)&&this.setVisual(z,N[z]);return}this._visual=this._visual||{},this._visual[N]=O},T.setLayout=function(N,O){if(h(N)){for(var z in N)N.hasOwnProperty(z)&&this.setLayout(z,N[z]);return}this._layout[N]=O},T.getLayout=function(N){return this._layout[N]},T.getItemLayout=function(N){return this._itemLayouts[N]},T.setItemLayout=function(N,O,z){this._itemLayouts[N]=z?t.extend(this._itemLayouts[N]||{},O):O},T.clearItemLayouts=function(){this._itemLayouts.length=0},T.getItemVisual=function(N,O,z){var G=this._itemVisuals[N],q=G&&G[O];return q==null&&!z?this.getVisual(O):q},T.setItemVisual=function(N,O,z){var G=this._itemVisuals[N]||{},q=this.hasItemVisual;if(this._itemVisuals[N]=G,h(O)){for(var H in O)O.hasOwnProperty(H)&&(G[H]=O[H],q[H]=!0);return}G[O]=z,q[O]=!0},T.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var F=function(N){N.seriesIndex=this.seriesIndex,N.dataIndex=this.dataIndex,N.dataType=this.dataType};T.setItemGraphicEl=function(N,O){var z=this.hostModel;O&&(O.dataIndex=N,O.dataType=this.dataType,O.seriesIndex=z&&z.seriesIndex,O.type==="group"&&O.traverse(F,O)),this._graphicEls[N]=O},T.getItemGraphicEl=function(N){return this._graphicEls[N]},T.eachItemGraphicEl=function(N,O){t.each(this._graphicEls,function(z,G){z&&N&&N.call(O,z,G)})},T.cloneShallow=function(N){if(!N){var O=t.map(this.dimensions,this.getDimensionInfo,this);N=new A(O,this.hostModel)}if(N._storage=this._storage,w(N,this),this._indices){var z=this._indices.constructor;N._indices=new z(this._indices)}else N._indices=null;return N.getRawIndex=N._indices?P:D,N},T.wrapMethod=function(N,O){var z=this[N];typeof z=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(N),this[N]=function(){var G=z.apply(this,arguments);return O.apply(this,[G].concat(t.slice(arguments)))})},T.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],T.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=A;return V_=V,V_}var G_,XN;function Z9(){if(XN)return G_;XN=1;var r=ie(),t=r.createHashMap,e=r.each,a=r.isString,i=r.defaults,n=r.extend,o=r.isObject,s=r.clone,l=_t(),u=l.normalizeToArray,v=Ln(),h=v.guessOrdinal,f=v.BE_ORDINAL,c=ff(),d=cf(),p=d.OTHER_DIMENSIONS,g=Y9();function m(S,b,w){c.isInstance(b)||(b=c.seriesDataToSource(b)),w=w||{},S=(S||[]).slice();for(var A=(w.dimsDef||[]).slice(),T=t(),C=t(),M=[],L=y(b,S,A,w.dimCount),D=0;D=i[0]&&a<=i[1]},t.prototype.normalize=function(a){var i=this._extent;return i[1]===i[0]?.5:(a-i[0])/(i[1]-i[0])},t.prototype.scale=function(a){var i=this._extent;return a*(i[1]-i[0])+i[0]},t.prototype.unionExtent=function(a){var i=this._extent;a[0]i[1]&&(i[1]=a[1])},t.prototype.unionExtentFromData=function(a,i){this.unionExtent(a.getApproximateExtent(i))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(a,i){var n=this._extent;isNaN(a)||(n[0]=a),isNaN(i)||(n[1]=i)},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(a){this._isBlank=a},t.prototype.getLabel=null,r.enableClassExtend(t),r.enableClassManagement(t,{registerWhenExtend:!0});var e=t;return W_=e,W_}var U_,tz;function X9(){if(tz)return U_;tz=1;var r=ie(),t=r.createHashMap,e=r.isObject,a=r.map;function i(u){this.categories=u.categories||[],this._needCollect=u.needCollect,this._deduplication=u.deduplication,this._map}i.createByAxisModel=function(u){var v=u.option,h=v.data,f=h&&a(h,s);return new i({categories:f,needCollect:!f,deduplication:v.dedplication!==!1})};var n=i.prototype;n.getOrdinal=function(u){return o(this).get(u)},n.parseAndCollect=function(u){var v,h=this._needCollect;if(typeof u!="string"&&!h)return u;if(h&&!this._deduplication)return v=this.categories.length,this.categories[v]=u,v;var f=o(this);return v=f.get(u),v==null&&(h?(v=this.categories.length,this.categories[v]=u,f.set(u,v)):v=NaN),v};function o(u){return u._map||(u._map=t(u.categories))}function s(u){return e(u)&&u.value!=null?u.value:u+""}var l=i;return U_=l,U_}var $_,rz;function hge(){if(rz)return $_;rz=1;var r=ie(),t=cg(),e=X9(),a=t.prototype,i=t.extend({type:"ordinal",init:function(o,s){(!o||r.isArray(o))&&(o=new e({categories:o})),this._ordinalMeta=o,this._extent=s||[0,o.categories.length-1]},parse:function(o){return typeof o=="string"?this._ordinalMeta.getOrdinal(o):Math.round(o)},contain:function(o){return o=this.parse(o),a.contain.call(this,o)&&this._ordinalMeta.categories[o]!=null},normalize:function(o){return a.normalize.call(this,this.parse(o))},scale:function(o){return Math.round(a.scale.call(this,o))},getTicks:function(){for(var o=[],s=this._extent,l=s[0];l<=s[1];)o.push(l),l++;return o},getLabel:function(o){if(!this.isBlank())return this._ordinalMeta.categories[o]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(o,s){this.unionExtent(o.getApproximateExtent(s))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:r.noop,niceExtent:r.noop});i.create=function(){return new i};var n=i;return $_=n,$_}var yv={},az;function K9(){if(az)return yv;az=1;var r=st(),t=r.round;function e(o,s,l,u){var v={},h=o[1]-o[0],f=v.interval=r.nice(h/s,!0);l!=null&&fu&&(f=v.interval=u);var c=v.intervalPrecision=a(f),d=v.niceTickExtent=[t(Math.ceil(o[0]/f)*f,c),t(Math.floor(o[1]/f)*f,c)];return n(d,o),v}function a(o){return r.getPrecisionSafe(o)+2}function i(o,s,l){o[s]=Math.max(Math.min(o[s],l[1]),l[0])}function n(o,s){!isFinite(o[0])&&(o[0]=s[0]),!isFinite(o[1])&&(o[1]=s[1]),i(o,0,s),i(o,1,s),o[0]>o[1]&&(o[0]=o[1])}return yv.intervalScaleNiceTicks=e,yv.getIntervalPrecision=a,yv.fixExtent=n,yv}var Y_,iz;function dg(){if(iz)return Y_;iz=1;var r=st(),t=Yt(),e=cg(),a=K9(),i=r.round,n=e.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(s,l){var u=this._extent;isNaN(s)||(u[0]=parseFloat(s)),isNaN(l)||(u[1]=parseFloat(l))},unionExtent:function(s){var l=this._extent;s[0]l[1]&&(l[1]=s[1]),n.prototype.setExtent.call(this,l[0],l[1])},getInterval:function(){return this._interval},setInterval:function(s){this._interval=s,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(s)},getTicks:function(s){var l=this._interval,u=this._extent,v=this._niceExtent,h=this._intervalPrecision,f=[];if(!l)return f;var c=1e4;u[0]c)return[];var p=f.length?f[f.length-1]:v[1];return u[1]>p&&(s?f.push(i(p+l,h)):f.push(u[1])),f},getMinorTicks:function(s){for(var l=this.getTicks(!0),u=[],v=this.getExtent(),h=1;hv[0]&&y0&&(M=M===null?D:Math.min(M,D))}A[T]=M}}return A}function d(b){var w=c(b),A=[];return r.each(b,function(T){var C=T.coordinateSystem,M=C.getBaseAxis(),L=M.getExtent(),D;if(M.type==="category")D=M.getBandWidth();else if(M.type==="value"||M.type==="time"){var P=M.dim+"_"+M.index,I=w[P],R=Math.abs(L[1]-L[0]),E=M.scale.getExtent(),k=Math.abs(E[1]-E[0]);D=I?R/k*I:R}else{var B=T.getData();D=Math.abs(L[1]-L[0])/B.count()}var F=e(T.get("barWidth"),D),V=e(T.get("barMaxWidth"),D),N=e(T.get("barMinWidth")||1,D),O=T.get("barGap"),z=T.get("barCategoryGap");A.push({bandWidth:D,barWidth:F,barMaxWidth:V,barMinWidth:N,barGap:O,barCategoryGap:z,axisKey:v(M),stackId:u(T)})}),p(A)}function p(b){var w={};r.each(b,function(T,C){var M=T.axisKey,L=T.bandWidth,D=w[M]||{bandWidth:L,remainedWidth:L,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},P=D.stacks;w[M]=D;var I=T.stackId;P[I]||D.autoWidthCount++,P[I]=P[I]||{width:0,maxWidth:0};var R=T.barWidth;R&&!P[I].width&&(P[I].width=R,R=Math.min(D.remainedWidth,R),D.remainedWidth-=R);var E=T.barMaxWidth;E&&(P[I].maxWidth=E);var k=T.barMinWidth;k&&(P[I].minWidth=k);var B=T.barGap;B!=null&&(D.gap=B);var F=T.barCategoryGap;F!=null&&(D.categoryGap=F)});var A={};return r.each(w,function(T,C){A[C]={};var M=T.stacks,L=T.bandWidth,D=e(T.categoryGap,L),P=e(T.gap,1),I=T.remainedWidth,R=T.autoWidthCount,E=(I-D)/(R+(R-1)*P);E=Math.max(E,0),r.each(M,function(V){var N=V.maxWidth,O=V.minWidth;if(V.width){var z=V.width;N&&(z=Math.min(z,N)),O&&(z=Math.max(z,O)),V.width=z,I-=z+P*z,R--}else{var z=E;N&&Nz&&(z=O),z!==E&&(V.width=z,I-=z+P*z,R--)}}),E=(I-D)/(R+(R-1)*P),E=Math.max(E,0);var k=0,B;r.each(M,function(V,N){V.width||(V.width=E),B=V,k+=V.width*(1+P)}),B&&(k-=B.width*P);var F=-k/2;r.each(M,function(V,N){A[C][N]=A[C][N]||{bandWidth:L,offset:F,width:V.width},F+=V.width*(1+P)})}),A}function g(b,w,A){if(b&&w){var T=b[v(w)];return T!=null&&A!=null&&(T=T[u(A)]),T}}function m(b,w){var A=f(b,w),T=d(A),C={};r.each(A,function(M){var L=M.getData(),D=M.coordinateSystem,P=D.getBaseAxis(),I=u(M),R=T[v(P)][I],E=R.offset,k=R.width,B=D.getOtherAxis(P),F=M.get("barMinHeight")||0;C[I]=C[I]||[],L.setLayout({bandWidth:R.bandWidth,offset:E,size:k});for(var V=L.mapDimension(B.dim),N=L.mapDimension(P.dim),O=i(L,V),z=B.isHorizontal(),G=S(P,B),q=0,H=L.count();q=0?"p":"n",X=G;O&&(C[I][W]||(C[I][W]={p:G,n:G}),X=C[I][W][Y]);var K,Q,j,te;if(z){var Z=D.dataToPoint([U,W]);K=X,Q=Z[1]+E,j=Z[0]-G,te=k,Math.abs(j)s||(R=s),{progress:E};function E(k,B){for(var F=k.count,V=new l(F*2),N=new l(F*2),O=new l(F),z,G=[],q=[],H=0,U=0;(z=k.next())!=null;)q[I]=B.get(L,z),q[1-I]=B.get(D,z),G=A.dataToPoint(q,null,G),N[H]=P?T.x+T.width:G[0],V[H++]=G[0],N[H]=P?G[1]:T.y+T.height,V[H++]=G[1],O[U++]=z;B.setLayout({largePoints:V,largeDataIndices:O,largeBackgroundPoints:N,barWidth:R,valueAxisStart:S(C,M),backgroundStart:P?T.x:T.y,valueAxisHorizontal:P})}}};function _(b){return b.coordinateSystem&&b.coordinateSystem.type==="cartesian2d"}function x(b){return b.pipelineContext&&b.pipelineContext.large}function S(b,w,A){return w.toGlobalCoord(w.dataToCoord(w.type==="log"?1:0))}return Vn.getLayoutOnAxis=h,Vn.prepareLayoutBarSeries=f,Vn.makeColumnLayout=d,Vn.retrieveColumnLayout=g,Vn.layout=m,Vn.largeLayout=y,Vn}var Z_,oz;function fge(){if(oz)return Z_;oz=1;var r=ie(),t=st(),e=Yt(),a=K9(),i=dg(),n=i.prototype,o=Math.ceil,s=Math.floor,l=1e3,u=l*60,v=u*60,h=v*24,f=function(g,m,y,_){for(;y<_;){var x=y+_>>>1;g[x][1]y&&(S=y);var b=d.length,w=f(d,S,0,b),A=d[Math.min(w,b-1)],T=A[1];if(A[0]==="year"){var C=x/T,M=t.nice(C/g,!0);T*=M}var L=this.getSetting("useUTC")?0:new Date(+_[0]||+_[1]).getTimezoneOffset()*60*1e3,D=[Math.round(o((_[0]-L)/T)*T+L),Math.round(s((_[1]-L)/T)*T+L)];a.fixExtent(D,_),this._stepLvl=A,this._interval=T,this._niceExtent=D},parse:function(g){return+t.parseDate(g)}});r.each(["contain","normalize"],function(g){c.prototype[g]=function(m){return n[g].call(this,this.parse(m))}});var d=[["hh:mm:ss",l],["hh:mm:ss",l*5],["hh:mm:ss",l*10],["hh:mm:ss",l*15],["hh:mm:ss",l*30],["hh:mm\nMM-dd",u],["hh:mm\nMM-dd",u*5],["hh:mm\nMM-dd",u*10],["hh:mm\nMM-dd",u*15],["hh:mm\nMM-dd",u*30],["hh:mm\nMM-dd",v],["hh:mm\nMM-dd",v*2],["hh:mm\nMM-dd",v*6],["hh:mm\nMM-dd",v*12],["MM-dd\nyyyy",h],["MM-dd\nyyyy",h*2],["MM-dd\nyyyy",h*3],["MM-dd\nyyyy",h*4],["MM-dd\nyyyy",h*5],["MM-dd\nyyyy",h*6],["week",h*7],["MM-dd\nyyyy",h*10],["week",h*14],["week",h*21],["month",h*31],["week",h*42],["month",h*62],["week",h*70],["quarter",h*95],["month",h*31*4],["month",h*31*5],["half-year",h*380/2],["month",h*31*8],["month",h*31*10],["year",h*380]];c.create=function(g){return new c({useUTC:g.ecModel.get("useUTC")})};var p=c;return Z_=p,Z_}var X_,sz;function Q9(){if(sz)return X_;sz=1;var r=ie(),t=cg(),e=st(),a=dg(),i=t.prototype,n=a.prototype,o=e.getPrecisionSafe,s=e.round,l=Math.floor,u=Math.ceil,v=Math.pow,h=Math.log,f=t.extend({type:"log",base:10,$constructor:function(){t.apply(this,arguments),this._originalScale=new a},getTicks:function(p){var g=this._originalScale,m=this._extent,y=g.getExtent();return r.map(n.getTicks.call(this,p),function(_){var x=e.round(v(this.base,_));return x=_===m[0]&&g.__fixMin?c(x,y[0]):x,x=_===m[1]&&g.__fixMax?c(x,y[1]):x,x},this)},getMinorTicks:n.getMinorTicks,getLabel:n.getLabel,scale:function(p){return p=i.scale.call(this,p),v(this.base,p)},setExtent:function(p,g){var m=this.base;p=h(p)/h(m),g=h(g)/h(m),n.setExtent.call(this,p,g)},getExtent:function(){var p=this.base,g=i.getExtent.call(this);g[0]=v(p,g[0]),g[1]=v(p,g[1]);var m=this._originalScale,y=m.getExtent();return m.__fixMin&&(g[0]=c(g[0],y[0])),m.__fixMax&&(g[1]=c(g[1],y[1])),g},unionExtent:function(p){this._originalScale.unionExtent(p);var g=this.base;p[0]=h(p[0])/h(g),p[1]=h(p[1])/h(g),i.unionExtent.call(this,p)},unionExtentFromData:function(p,g){this.unionExtent(p.getApproximateExtent(g))},niceTicks:function(p){p=p||10;var g=this._extent,m=g[1]-g[0];if(!(m===1/0||m<=0)){var y=e.quantity(m),_=p/m*y;for(_<=.5&&(y*=10);!isNaN(y)&&Math.abs(y)<1&&Math.abs(y)>0;)y*=10;var x=[e.round(u(g[0]/y)*y),e.round(l(g[1]/y)*y)];this._interval=y,this._niceExtent=x}},niceExtent:function(p){n.niceExtent.call(this,p);var g=this._originalScale;g.__fixMin=p.fixMin,g.__fixMax=p.fixMax}});r.each(["contain","normalize"],function(p){f.prototype[p]=function(g){return g=h(g)/h(this.base),i[p].call(this,g)}}),f.create=function(){return new f};function c(p,g){return s(p,o(g))}var d=f;return X_=d,X_}var lz;function wi(){if(lz)return oi;lz=1;var r=It();r.__DEV__;var t=ie(),e=hge(),a=dg(),i=cg(),n=st(),o=pg(),s=o.prepareLayoutBarSeries,l=o.makeColumnLayout,u=o.retrieveColumnLayout,v=rr();fge(),Q9();function h(b,w){var A=b.type,T=w.getMin(),C=w.getMax(),M=b.getExtent(),L,D,P;A==="ordinal"?L=w.getCategories().length:(D=w.get("boundaryGap"),t.isArray(D)||(D=[D||0,D||0]),typeof D[0]=="boolean"&&(D=[0,0]),D[0]=n.parsePercent(D[0],1),D[1]=n.parsePercent(D[1],1),P=M[1]-M[0]||Math.abs(M[0])),T==="dataMin"?T=M[0]:typeof T=="function"&&(T=T({min:M[0],max:M[1]})),C==="dataMax"?C=M[1]:typeof C=="function"&&(C=C({min:M[0],max:M[1]}));var I=T!=null,R=C!=null;T==null&&(T=A==="ordinal"?L?0:NaN:M[0]-D[0]*P),C==null&&(C=A==="ordinal"?L?L-1:NaN:M[1]+D[1]*P),(T==null||!isFinite(T))&&(T=NaN),(C==null||!isFinite(C))&&(C=NaN),b.setBlank(t.eqNaN(T)||t.eqNaN(C)||A==="ordinal"&&!b.getOrdinalMeta().categories.length),w.getNeedCrossZero()&&(T>0&&C>0&&!I&&(T=0),T<0&&C<0&&!R&&(C=0));var E=w.ecModel;if(E&&A==="time"){var k=s("bar",E),B;if(t.each(k,function(N){B|=N.getBaseAxis()===w.axis}),B){var F=l(k),V=f(T,C,w,F);T=V.min,C=V.max}}return{extent:[T,C],fixMin:I,fixMax:R}}function f(b,w,A,T){var C=A.axis.getExtent(),M=C[1]-C[0],L=u(T,A.axis);if(L===void 0)return{min:b,max:w};var D=1/0;t.each(L,function(B){D=Math.min(B.offset,D)});var P=-1/0;t.each(L,function(B){P=Math.max(B.offset+B.width,P)}),D=Math.abs(D),P=Math.abs(P);var I=D+P,R=w-b,E=1-(D+P)/M,k=R/E-R;return w+=k*(P/I),b-=k*(D/I),{min:b,max:w}}function c(b,w){var A=h(b,w),T=A.extent,C=w.get("splitNumber");b.type==="log"&&(b.base=w.get("logBase"));var M=b.type;b.setExtent(T[0],T[1]),b.niceExtent({splitNumber:C,fixMin:A.fixMin,fixMax:A.fixMax,minInterval:M==="interval"||M==="time"?w.get("minInterval"):null,maxInterval:M==="interval"||M==="time"?w.get("maxInterval"):null});var L=w.get("interval");L!=null&&b.setInterval&&b.setInterval(L)}function d(b,w){if(w=w||b.get("type"),w)switch(w){case"category":return new e(b.getOrdinalMeta?b.getOrdinalMeta():b.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(i.getClass(w)||a).create(b)}}function p(b){var w=b.scale.getExtent(),A=w[0],T=w[1];return!(A>0&&T>0||A<0&&T<0)}function g(b){var w=b.getLabelModel().get("formatter"),A=b.type==="category"?b.scale.getExtent()[0]:null;return typeof w=="string"?(w=(function(T){return function(C){return C=b.scale.getLabel(C),T.replace("{value}",C!=null?C:"")}})(w),w):typeof w=="function"?function(T,C){return A!=null&&(C=T-A),w(m(b,T),C)}:function(T){return b.scale.getLabel(T)}}function m(b,w){return b.type==="category"?b.scale.getLabel(w):w}function y(b){var w=b.model,A=b.scale;if(!(!w.get("axisLabel.show")||A.isBlank())){var T=b.type==="category",C,M,L=A.getExtent();T?M=A.count():(C=A.getTicks(),M=C.length);var D=b.getLabelModel(),P=g(b),I,R=1;M>40&&(R=Math.ceil(M/40));for(var E=0;E>1^-(f&1),c=c>>1^-(c&1),f+=u,c+=v,u=f,v=c,l.push([f/s,c/s])}return l}function i(n,o){return e(n),r.map(r.filter(n.features,function(s){return s.geometry&&s.properties&&s.geometry.coordinates.length>0}),function(s){var l=s.properties,u=s.geometry,v=u.coordinates,h=[];u.type==="Polygon"&&h.push({type:"polygon",exterior:v[0],interiors:v.slice(1)}),u.type==="MultiPolygon"&&r.each(v,function(c){c[0]&&h.push({type:"polygon",exterior:c[0],interiors:c.slice(1)})});var f=new t(l[o||"name"],h,l.cp);return f.properties=l,f})}return e1=i,e1}var _v={},pz;function dge(){if(pz)return _v;pz=1;var r=ie(),t=Da(),e=_t(),a=e.makeInner,i=wi(),n=i.makeLabelFormatter,o=i.getOptionCategoryInterval,s=i.shouldShowAllLabels,l=a();function u(w){return w.type==="category"?h(w):d(w)}function v(w,A){return w.type==="category"?c(w,A):{ticks:w.scale.getTicks()}}function h(w){var A=w.getLabelModel(),T=f(w,A);return!A.get("show")||w.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function f(w,A){var T=p(w,"labels"),C=o(A),M=g(T,C);if(M)return M;var L,D;return r.isFunction(C)?L=b(w,C):(D=C==="auto"?y(w):C,L=S(w,D)),m(T,C,{labels:L,labelCategoryInterval:D})}function c(w,A){var T=p(w,"ticks"),C=o(A),M=g(T,C);if(M)return M;var L,D;if((!A.get("show")||w.scale.isBlank())&&(L=[]),r.isFunction(C))L=b(w,C,!0);else if(C==="auto"){var P=f(w,w.getLabelModel());D=P.labelCategoryInterval,L=r.map(P.labels,function(I){return I.tickValue})}else D=C,L=S(w,D,!0);return m(T,C,{ticks:L,tickCategoryInterval:D})}function d(w){var A=w.scale.getTicks(),T=n(w);return{labels:r.map(A,function(C,M){return{formattedLabel:T(C,M),rawLabel:w.scale.getLabel(C),tickValue:C}})}}function p(w,A){return l(w)[A]||(l(w)[A]=[])}function g(w,A){for(var T=0;T40&&(P=Math.max(1,Math.floor(D/40)));for(var I=L[0],R=w.dataToCoord(I+1)-w.dataToCoord(I),E=Math.abs(R*Math.cos(C)),k=Math.abs(R*Math.sin(C)),B=0,F=0;I<=L[1];I+=P){var V=0,N=0,O=t.getBoundingRect(T(I),A.font,"center","top");V=O.width*1.3,N=O.height*1.3,B=Math.max(B,V,7),F=Math.max(F,N,7)}var z=B/E,G=F/k;isNaN(z)&&(z=1/0),isNaN(G)&&(G=1/0);var q=Math.max(0,Math.floor(Math.min(z,G))),H=l(w.model),U=w.getExtent(),W=H.lastAutoInterval,Y=H.lastTickCount;return W!=null&&Y!=null&&Math.abs(W-q)<=1&&Math.abs(Y-D)<=1&&W>q&&H.axisExtend0===U[0]&&H.axisExtend1===U[1]?q=W:(H.lastTickCount=D,H.lastAutoInterval=q,H.axisExtend0=U[0],H.axisExtend1=U[1]),q}function x(w){var A=w.getLabelModel();return{axisRotate:w.getRotate?w.getRotate():w.isHorizontal&&!w.isHorizontal()?90:0,labelRotate:A.get("rotate")||0,font:A.getFont()}}function S(w,A,T){var C=n(w),M=w.scale,L=M.getExtent(),D=w.getLabelModel(),P=[],I=Math.max((A||0)+1,1),R=L[0],E=M.count();R!==0&&I>1&&E/I>2&&(R=Math.round(Math.ceil(R/I)*I));var k=s(w),B=D.get("showMinLabel")||k,F=D.get("showMaxLabel")||k;B&&R!==L[0]&&N(L[0]);for(var V=R;V<=L[1];V+=I)N(V);F&&V-I!==L[1]&&N(L[1]);function N(O){P.push(T?O:{formattedLabel:C(O),rawLabel:M.getLabel(O),tickValue:O})}return P}function b(w,A,T){var C=w.scale,M=n(w),L=[];return r.each(C.getTicks(),function(D){var P=C.getLabel(D);A(D,P)&&L.push(T?D:{formattedLabel:M(D),rawLabel:P,tickValue:D})}),L}return _v.createAxisLabels=u,_v.createAxisTicks=v,_v.calculateCategoryInterval=_,_v}var t1,gz;function So(){if(gz)return t1;gz=1;var r=ie(),t=r.each,e=r.map,a=st(),i=a.linearMap,n=a.getPixelPrecision,o=a.round,s=dge(),l=s.createAxisTicks,u=s.createAxisLabels,v=s.calculateCategoryInterval,h=[0,1],f=function(g,m,y){this.dim=g,this.scale=m,this._extent=y||[0,0],this.inverse=!1,this.onBand=!1};f.prototype={constructor:f,contain:function(g){var m=this._extent,y=Math.min(m[0],m[1]),_=Math.max(m[0],m[1]);return g>=y&&g<=_},containData:function(g){return this.scale.contain(g)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(g){return n(g||this.scale.getExtent(),this._extent)},setExtent:function(g,m){var y=this._extent;y[0]=g,y[1]=m},dataToCoord:function(g,m){var y=this._extent,_=this.scale;return g=_.normalize(g),this.onBand&&_.type==="ordinal"&&(y=y.slice(),c(y,_.count())),i(g,h,y,m)},coordToData:function(g,m){var y=this._extent,_=this.scale;this.onBand&&_.type==="ordinal"&&(y=y.slice(),c(y,_.count()));var x=i(g,y,h,m);return this.scale.scale(x)},pointToData:function(g,m){},getTicksCoords:function(g){g=g||{};var m=g.tickModel||this.getTickModel(),y=l(this,m),_=y.ticks,x=e(_,function(b){return{coord:this.dataToCoord(b),tickValue:b}},this),S=m.get("alignWithLabel");return d(this,x,S,g.clamp),x},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var g=this.model.getModel("minorTick"),m=g.get("splitNumber");m>0&&m<100||(m=5);var y=this.scale.getMinorTicks(m),_=e(y,function(x){return e(x,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return _},getViewLabels:function(){return u(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var g=this._extent,m=this.scale.getExtent(),y=m[1]-m[0]+(this.onBand?1:0);y===0&&(y=1);var _=Math.abs(g[1]-g[0]);return Math.abs(_)/y},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return v(this)}};function c(g,m){var y=g[1]-g[0],_=m,x=y/_/2;g[0]+=x,g[1]-=x}function d(g,m,y,_){var x=m.length;if(!g.onBand||y||!x)return;var S=g.getExtent(),b,w;if(x===1)m[0].coord=S[0],b=m[1]={coord:S[0]};else{var A=m[x-1].tickValue-m[0].tickValue,T=(m[x-1].coord-m[0].coord)/A;t(m,function(D){D.coord-=T/2});var C=g.scale.getExtent();w=1+C[1]-m[x-1].tickValue,b={coord:m[x-1].coord+T*w},m.push(b)}var M=S[0]>S[1];L(m[0].coord,S[0])&&(_?m[0].coord=S[0]:m.shift()),_&&L(S[0],m[0].coord)&&m.unshift({coord:S[0]}),L(S[1],b.coord)&&(_?b.coord=S[1]:m.pop()),_&&L(b.coord,S[1])&&m.push({coord:S[1]});function L(D,P){return D=o(D),P=o(P),M?D>P:D0&&ae.unfinished);ae.unfinished||this._zr.flush()}}},oe.getDom=function(){return this._dom},oe.getZr=function(){return this._zr},oe.setOption=function(ae,de,Te){if(this._disposed){this.id;return}var Le;if(R(de)&&(Te=de.lazyUpdate,Le=de.silent,de=de.notMerge),this[Q]=!0,!this._model||de){var Ee=new h(this._api),Oe=this._theme,Fe=this._model=new l;Fe.scheduler=this._scheduler,Fe.init(null,null,Oe,Ee)}this._model.setOption(ae,Zt),Te?(this[j]={silent:Le},this[Q]=!1):(ve(this),se.update.call(this),this._zr.flush(),this[j]=!1,this[Q]=!1,ne.call(this,Le),ue.call(this,Le))},oe.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},oe.getModel=function(){return this._model},oe.getOption=function(){return this._model&&this._model.getOption()},oe.getWidth=function(){return this._zr.getWidth()},oe.getHeight=function(){return this._zr.getHeight()},oe.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},oe.getRenderedCanvas=function(ae){if(n.canvasSupported){ae=ae||{},ae.pixelRatio=ae.pixelRatio||1,ae.backgroundColor=ae.backgroundColor||this._model.get("backgroundColor");var de=this._zr;return de.painter.getRenderedCanvas(ae)}},oe.getSvgDataURL=function(){if(n.svgSupported){var ae=this._zr,de=ae.storage.getDisplayList();return a.each(de,function(Te){Te.stopAnimation(!0)}),ae.painter.toDataURL()}},oe.getDataURL=function(ae){if(this._disposed){this.id;return}ae=ae||{};var de=ae.excludeComponents,Te=this._model,Le=[],Ee=this;P(de,function(Fe){Te.eachComponent({mainType:Fe},function(Qe){var We=Ee._componentsMap[Qe.__viewId];We.group.ignore||(Le.push(We),We.group.ignore=!0)})});var Oe=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(ae).toDataURL("image/"+(ae&&ae.type||"png"));return P(Le,function(Fe){Fe.group.ignore=!1}),Oe},oe.getConnectedDataURL=function(ae){if(this._disposed){this.id;return}if(n.canvasSupported){var de=ae.type==="svg",Te=this.group,Le=Math.min,Ee=Math.max,Oe=1/0;if(ta[Te]){var Fe=Oe,Qe=Oe,We=-Oe,ct=-Oe,mt=[],xt=ae&&ae.pixelRatio||1;a.each(Rr,function(Ia,wf){if(Ia.group===Te){var Dg=de?Ia.getZr().painter.getSvgDom().innerHTML:Ia.getRenderedCanvas(a.clone(ae)),Js=Ia.getDom().getBoundingClientRect();Fe=Le(Js.left,Fe),Qe=Le(Js.top,Qe),We=Ee(Js.right,We),ct=Ee(Js.bottom,ct),mt.push({dom:Dg,left:Js.left,top:Js.top})}}),Fe*=xt,Qe*=xt,We*=xt,ct*=xt;var or=We-Fe,er=ct-Qe,Fr=a.createCanvas(),La=e.init(Fr,{renderer:de?"svg":"canvas"});if(La.resize({width:or,height:er}),de){var bf="";return P(mt,function(Ia){var wf=Ia.left-Fe,Dg=Ia.top-Qe;bf+=''+Ia.dom+""}),La.painter.getSvgRoot().innerHTML=bf,ae.connectedBackgroundColor&&La.painter.setBackgroundColor(ae.connectedBackgroundColor),La.refreshImmediately(),La.painter.toDataURL()}else return ae.connectedBackgroundColor&&La.add(new y.Rect({shape:{x:0,y:0,width:or,height:er},style:{fill:ae.connectedBackgroundColor}})),P(mt,function(Ia){var wf=new y.Image({style:{x:Ia.left*xt-Fe,y:Ia.top*xt-Qe,image:Ia.dom}});La.add(wf)}),La.refreshImmediately(),Fr.toDataURL("image/"+(ae&&ae.type||"png"))}else return this.getDataURL(ae)}},oe.convertToPixel=a.curry(fe,"convertToPixel"),oe.convertFromPixel=a.curry(fe,"convertFromPixel");function fe(ae,de,Te){if(this._disposed){this.id;return}var Le=this._model,Ee=this._coordSysMgr.getCoordinateSystems(),Oe;de=_.parseFinder(Le,de);for(var Fe=0;Fe=0&&a.each(Ee,function(Fe){var Qe=Fe.coordinateSystem;if(Qe&&Qe.containPoint)Le|=!!Qe.containPoint(de);else if(Oe==="seriesModels"){var We=this._chartsMap[Fe.__viewId];We&&We.containPoint&&(Le|=We.containPoint(de,Fe))}},this)},this),!!Le},oe.getVisual=function(ae,de){var Te=this._model;ae=_.parseFinder(Te,ae,{defaultMainType:"series"});var Le=ae.seriesModel,Ee=Le.getData(),Oe=ae.hasOwnProperty("dataIndexInside")?ae.dataIndexInside:ae.hasOwnProperty("dataIndex")?Ee.indexOfRawIndex(ae.dataIndex):null;return Oe!=null?Ee.getItemVisual(Oe,de):Ee.getVisual(de)},oe.getViewOfComponentModel=function(ae){return this._componentsMap[ae.__viewId]},oe.getViewOfSeriesModel=function(ae){return this._chartsMap[ae.__viewId]};var se={prepareAndUpdate:function(ae){ve(this),se.update.call(this,ae)},update:function(ae){var de=this._model,Te=this._api,Le=this._zr,Ee=this._coordSysMgr,Oe=this._scheduler;if(de){Oe.restoreData(de,ae),Oe.performSeriesTasks(de),Ee.create(de,Te),Oe.performDataProcessorTasks(de,ae),Me(this,de),Ee.update(de,Te),ge(de),Oe.performVisualTasks(de,ae),pe(this,de,Te,ae);var Fe=de.get("backgroundColor")||"transparent";if(n.canvasSupported)Le.setBackgroundColor(Fe);else{var Qe=i.parse(Fe);Fe=i.stringify(Qe,"rgb"),Qe[3]===0&&(Fe="transparent")}Ve(de,Te)}},updateTransform:function(ae){var de=this._model,Te=this,Le=this._api;if(de){var Ee=[];de.eachComponent(function(Fe,Qe){var We=Te.getViewOfComponentModel(Qe);if(We&&We.__alive)if(We.updateTransform){var ct=We.updateTransform(Qe,de,Le,ae);ct&&ct.update&&Ee.push(We)}else Ee.push(We)});var Oe=a.createHashMap();de.eachSeries(function(Fe){var Qe=Te._chartsMap[Fe.__viewId];if(Qe.updateTransform){var We=Qe.updateTransform(Fe,de,Le,ae);We&&We.update&&Oe.set(Fe.uid,1)}else Oe.set(Fe.uid,1)}),ge(de),this._scheduler.performVisualTasks(de,ae,{setDirty:!0,dirtyMap:Oe}),ze(Te,de,Le,ae,Oe),Ve(de,this._api)}},updateView:function(ae){var de=this._model;de&&(m.markUpdateMethod(ae,"updateView"),ge(de),this._scheduler.performVisualTasks(de,ae,{setDirty:!0}),pe(this,this._model,this._api,ae),Ve(de,this._api))},updateVisual:function(ae){se.update.call(this,ae)},updateLayout:function(ae){se.update.call(this,ae)}};function ve(ae){var de=ae._model,Te=ae._scheduler;Te.restorePipelines(de),Te.prepareStageTasks(),xe(ae,"component",de,Te),xe(ae,"chart",de,Te),Te.plan()}function ye(ae,de,Te,Le,Ee){var Oe=ae._model;if(!Le){P(ae._componentsViews.concat(ae._chartsViews),ct);return}var Fe={};Fe[Le+"Id"]=Te[Le+"Id"],Fe[Le+"Index"]=Te[Le+"Index"],Fe[Le+"Name"]=Te[Le+"Name"];var Qe={mainType:Le,query:Fe};Ee&&(Qe.subType=Ee);var We=Te.excludeSeriesId;We!=null&&(We=a.createHashMap(_.normalizeToArray(We))),Oe&&Oe.eachComponent(Qe,function(mt){(!We||We.get(mt.id)==null)&&ct(ae[Le==="series"?"_chartsMap":"_componentsMap"][mt.__viewId])},ae);function ct(mt){mt&&mt.__alive&&mt[de]&&mt[de](mt.__model,Oe,ae._api,Te)}}oe.resize=function(ae){if(this._disposed){this.id;return}this._zr.resize(ae);var de=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!de){var Te=de.resetOption("media"),Le=ae&&ae.silent;this[Q]=!0,Te&&ve(this),se.update.call(this),this[Q]=!1,ne.call(this,Le),ue.call(this,Le)}};function Me(ae,de){var Te=ae._chartsMap,Le=ae._scheduler;de.eachSeries(function(Ee){Le.updateStreamModes(Ee,Te[Ee.__viewId])})}oe.showLoading=function(ae,de){if(this._disposed){this.id;return}if(R(ae)&&(de=ae,ae=""),ae=ae||"default",this.hideLoading(),!!fa[ae]){var Te=fa[ae](this._api,de),Le=this._zr;this._loadingFX=Te,Le.add(Te)}},oe.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},oe.makeActionFromEvent=function(ae){var de=a.extend({},ae);return de.type=Et[ae.type],de},oe.dispatchAction=function(ae,de){if(this._disposed){this.id;return}if(R(de)||(de={silent:!!de}),!!Ke[ae.type]&&this._model){if(this[Q]){this._pendingActions.push(ae);return}J.call(this,ae,de.silent),de.flush?this._zr.flush(!0):de.flush!==!1&&n.browser.weChat&&this._throttledZrFlush(),ne.call(this,de.silent),ue.call(this,de.silent)}};function J(ae,de){var Te=ae.type,Le=ae.escapeConnect,Ee=Ke[Te],Oe=Ee.actionInfo,Fe=(Oe.update||"update").split(":"),Qe=Fe.pop();Fe=Fe[0]!=null&&E(Fe[0]),this[Q]=!0;var We=[ae],ct=!1;ae.batch&&(ct=!0,We=a.map(ae.batch,function(er){return er=a.defaults(a.extend({},er),ae),er.batch=null,er}));var mt=[],xt,or=Te==="highlight"||Te==="downplay";P(We,function(er){xt=Ee.action(er,this._model,this._api),xt=xt||a.extend({},er),xt.type=Oe.event||xt.type,mt.push(xt),or?ye(this,Qe,er,"series"):Fe&&ye(this,Qe,er,Fe.main,Fe.sub)},this),Qe!=="none"&&!or&&!Fe&&(this[j]?(ve(this),se.update.call(this,ae),this[j]=!1):se[Qe].call(this,ae)),ct?xt={type:Oe.event||Te,escapeConnect:Le,batch:mt}:xt=mt[0],this[Q]=!1,!de&&this._messageCenter.trigger(xt.type,xt)}function ne(ae){for(var de=this._pendingActions;de.length;){var Te=de.shift();J.call(this,Te,ae)}}function ue(ae){!ae&&this.trigger("updated")}function me(ae,de){ae.on("rendered",function(){de.trigger("rendered"),ae.animation.isFinished()&&!de[j]&&!de._scheduler.unfinished&&!de._pendingActions.length&&de.trigger("finished")})}oe.appendData=function(ae){if(this._disposed){this.id;return}var de=ae.seriesIndex,Te=this.getModel(),Le=Te.getSeriesByIndex(de);Le.appendData(ae),this._scheduler.unfinished=!0},oe.on=Z("on",!1),oe.off=Z("off",!1),oe.one=Z("one",!1);function xe(ae,de,Te,Le){for(var Ee=de==="component",Oe=Ee?ae._componentsViews:ae._chartsViews,Fe=Ee?ae._componentsMap:ae._chartsMap,Qe=ae._zr,We=ae._api,ct=0;ctde.get("hoverLayerThreshold")&&!n.node&&de.eachSeries(function(Oe){if(!Oe.preventUsingHoverLayer){var Fe=ae._chartsMap[Oe.__viewId];Fe.__alive&&Fe.group.traverse(function(Qe){Qe.useHoverLayer=!0})}})}function Dt(ae,de){var Te=ae.get("blendMode")||null;de.group.traverse(function(Le){Le.isGroup||Le.style.blend!==Te&&Le.setStyle("blend",Te),Le.eachPendingDisplayable&&Le.eachPendingDisplayable(function(Ee){Ee.setStyle("blend",Te)})})}function Tt(ae,de){var Te=ae.get("z"),Le=ae.get("zlevel");de.group.traverse(function(Ee){Ee.type!=="group"&&(Te!=null&&(Ee.z=Te),Le!=null&&(Ee.zlevel=Le))})}function Bt(ae){var de=ae._coordSysMgr;return a.extend(new u(ae),{getCoordinateSystems:a.bind(de.getCoordinateSystems,de),getComponentByElement:function(Te){for(;Te;){var Le=Te.__ecComponentInfo;if(Le!=null)return ae._model.getComponent(Le.mainType,Le.index);Te=Te.parent}}})}function Vt(){this.eventInfo}Vt.prototype={constructor:Vt,normalizeQuery:function(ae){var de={},Te={},Le={};if(a.isString(ae)){var Ee=E(ae);de.mainType=Ee.main||null,de.subType=Ee.sub||null}else{var Oe=["Index","Name","Id"],Fe={name:1,dataIndex:1,dataType:1};a.each(ae,function(Qe,We){for(var ct=!1,mt=0;mt0&&or===We.length-xt.length){var er=We.slice(0,or);er!=="data"&&(de.mainType=er,de[xt.toLowerCase()]=Qe,ct=!0)}}Fe.hasOwnProperty(We)&&(Te[We]=Qe,ct=!0),ct||(Le[We]=Qe)})}return{cptQuery:de,dataQuery:Te,otherQuery:Le}},filter:function(ae,de,Te){var Le=this.eventInfo;if(!Le)return!0;var Ee=Le.targetEl,Oe=Le.packedEvent,Fe=Le.model,Qe=Le.view;if(!Fe||!Qe)return!0;var We=de.cptQuery,ct=de.dataQuery;return mt(We,Fe,"mainType")&&mt(We,Fe,"subType")&&mt(We,Fe,"index","componentIndex")&&mt(We,Fe,"name")&&mt(We,Fe,"id")&&mt(ct,Oe,"name")&&mt(ct,Oe,"dataIndex")&&mt(ct,Oe,"dataType")&&(!Qe.filterForExposedEvent||Qe.filterForExposedEvent(ae,de.otherQuery,Ee,Oe));function mt(xt,or,er,Fr){return xt[er]==null||or[Fr||er]===xt[er]}},afterTrigger:function(){this.eventInfo=null}};var Ke={},Et={},Lt=[],Zt=[],Xt=[],Kt=[],Pr={},fa={},Rr={},ta={},vr=new Date-0,jt=new Date-0,mr="_echarts_instance_";function re(ae){var de=0,Te=1,Le=2,Ee="__connectUpdateStatus";function Oe(Fe,Qe){for(var We=0;We0?u=v[0]:v[1]<0&&(u=v[1]),u}function o(s,l,u,v){var h=NaN;s.stacked&&(h=u.get(u.getCalculationInfo("stackedOverDimension"),v)),isNaN(h)&&(h=s.valueStart);var f=s.baseDataOffset,c=[];return c[f]=u.get(s.baseDim,v),c[1-f]=h,l.dataToPoint(c)}return Lc.prepareDataCoordInfo=i,Lc.getStackedOnPoint=o,Lc}var o1,Az;function gge(){if(Az)return o1;Az=1;var r=r$(),t=r.prepareDataCoordInfo,e=r.getStackedOnPoint;function a(n,o){var s=[];return o.diff(n).add(function(l){s.push({cmd:"+",idx:l})}).update(function(l,u){s.push({cmd:"=",idx:u,idx1:l})}).remove(function(l){s.push({cmd:"-",idx:l})}).execute(),s}function i(n,o,s,l,u,v,h,f){for(var c=a(n,o),d=[],p=[],g=[],m=[],y=[],_=[],x=[],S=t(u,o,h),b=t(v,n,f),w=0;w=S||D<0)break;if(v(I)){if(M){D+=b;continue}break}if(D===_)m[b>0?"moveTo":"lineTo"](I[0],I[1]);else if(T>0){var R=y[L],E=C==="y"?1:0,k=(I[E]-R[E])*T;o(l,R),l[E]=R[E]+k,o(u,I),u[E]=I[E]-k,m.bezierCurveTo(l[0],l[1],u[0],u[1],I[0],I[1])}else m.lineTo(I[0],I[1]);L=D,D+=b}return P}function c(m,y,_,x,S,b,w,A,T,C,M){for(var L=0,D=_,P=0;P=S||D<0)break;if(v(I)){if(M){D+=b;continue}break}if(D===_)m[b>0?"moveTo":"lineTo"](I[0],I[1]),o(l,I);else if(T>0){var R=D+b,B=y[R];if(M)for(;B&&v(y[R]);)R+=b,B=y[R];var E=.5,k=y[L],B=y[R];if(!B||v(B))o(u,I);else{v(B)&&!M&&(B=I),t.sub(s,B,k);var F,V;if(C==="x"||C==="y"){var N=C==="x"?0:1;F=Math.abs(I[N]-k[N]),V=Math.abs(I[N]-B[N])}else F=t.dist(I,k),V=t.dist(I,B);E=V/(V+F),n(u,I,s,-T*(1-E))}a(l,l,A),i(l,l,w),a(u,u,A),i(u,u,w),m.bezierCurveTo(l[0],l[1],u[0],u[1],I[0],I[1]),n(l,I,s,T*E)}else m.lineTo(I[0],I[1]);L=D,D+=b}return P}function d(m,y){var _=[1/0,1/0],x=[-1/0,-1/0];if(y)for(var S=0;Sx[0]&&(x[0]=b[0]),b[1]>x[1]&&(x[1]=b[1])}return{min:y?_:x,max:y?x:_}}var p=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:e(r.prototype.brush),buildPath:function(m,y){var _=y.points,x=0,S=_.length,b=d(_,y.smoothConstraint);if(y.connectNulls){for(;S>0&&v(_[S-1]);S--);for(;x0&&v(_[b-1]);b--);for(;S=0;k--){var B=I[k].dimension,F=D.dimensions[B],V=D.getDimensionInfo(F);if(R=V&&V.coordDim,R==="x"||R==="y"){E=I[k];break}}if(E){var N=P.getAxis(R),O=t.map(E.stops,function(X){return{coord:N.toGlobalCoord(N.dataToCoord(X.value)),color:X.color}}),z=O.length,G=E.outerColors.slice();z&&O[0].coord>O[z-1].coord&&(O.reverse(),G.reverse());var q=10,H=O[0].coord-q,U=O[z-1].coord+q,W=U-H;if(W<.001)return"transparent";t.each(O,function(X){X.offset=(X.coord-H)/W}),O.push({offset:z?O[z-1].offset:.5,color:G[1]||"transparent"}),O.unshift({offset:z?O[0].offset:.5,color:G[0]||"transparent"});var Y=new s.LinearGradient(0,0,0,0,O,!0);return Y[R]=H,Y[R+"2"]=U,Y}}}function T(D,P,I){var R=D.get("showAllSymbol"),E=R==="auto";if(!(R&&!E)){var k=I.getAxesByScale("ordinal")[0];if(k&&!(E&&C(k,P))){var B=P.mapDimension(k.dim),F={};return t.each(k.getViewLabels(),function(V){F[V.tickValue]=1}),function(V){return!F.hasOwnProperty(P.get(B,V))}}}}function C(D,P){var I=D.getExtent(),R=Math.abs(I[1]-I[0])/D.scale.count();isNaN(R)&&(R=0);for(var E=P.count(),k=Math.max(1,Math.round(E/5)),B=0;BR)return!1;return!0}function M(D,P,I){if(D.type==="cartesian2d"){var R=D.getBaseAxis().isHorizontal(),E=m(D,P,I);if(!I.get("clip",!0)){var k=E.shape,B=Math.max(k.width,k.height);R?(k.y-=B,k.height+=B*2):(k.x-=B,k.width+=B*2)}return E}else return y(D,P,I)}var L=f.extend({type:"line",init:function(){var D=new s.Group,P=new i;this.group.add(P.group),this._symbolDraw=P,this._lineGroup=D},render:function(D,P,I){var R=D.coordinateSystem,E=this.group,k=D.getData(),B=D.getModel("lineStyle"),F=D.getModel("areaStyle"),V=k.mapArray(k.getItemLayout),N=R.type==="polar",O=this._coordSys,z=this._symbolDraw,G=this._polyline,q=this._polygon,H=this._lineGroup,U=D.get("animation"),W=!F.isEmpty(),Y=F.get("origin"),X=d(R,k,Y),K=b(R,k,X),Q=D.get("showSymbol"),j=Q&&!N&&T(D,k,R),te=this._data;te&&te.eachItemGraphicEl(function(ve,ye){ve.__temp&&(E.remove(ve),te.setItemGraphicEl(ye,null))}),Q||z.remove(),E.add(H);var Z=!N&&D.get("step"),ee;R&&R.getArea&&D.get("clip",!0)&&(ee=R.getArea(),ee.width!=null?(ee.x-=.1,ee.y-=.1,ee.width+=.2,ee.height+=.2):ee.r0&&(ee.r0-=.5,ee.r1+=.5)),this._clipShapeForSymbol=ee,G&&O.type===R.type&&Z===this._step?(W&&!q?q=this._newPolygon(V,K,R,U):q&&!W&&(H.remove(q),q=this._polygon=null),H.setClipPath(M(R,!1,D)),Q&&z.updateData(k,{isIgnore:j,clipShape:ee}),k.eachItemGraphicEl(function(ve){ve.stopAnimation(!0)}),(!_(this._stackedOnPoints,K)||!_(this._points,V))&&(U?this._updateAnimation(k,K,R,I,Z,Y):(Z&&(V=w(V,R,Z),K=w(K,R,Z)),G.setShape({points:V}),q&&q.setShape({points:V,stackedOnPoints:K})))):(Q&&z.updateData(k,{isIgnore:j,clipShape:ee}),Z&&(V=w(V,R,Z),K=w(K,R,Z)),G=this._newPolyline(V,R,U),W&&(q=this._newPolygon(V,K,R,U)),H.setClipPath(M(R,!0,D)));var le=A(k,R)||k.getVisual("color");G.useStyle(t.defaults(B.getLineStyle(),{fill:"none",stroke:le,lineJoin:"bevel"}));var oe=D.get("smooth");if(oe=S(D.get("smooth")),G.setShape({smooth:oe,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")}),q){var fe=k.getCalculationInfo("stackedOnSeries"),se=0;q.useStyle(t.defaults(F.getAreaStyle(),{fill:le,opacity:.7,lineJoin:"bevel"})),fe&&(se=S(fe.get("smooth"))),q.setShape({smooth:oe,stackedOnSmooth:se,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")})}this._data=k,this._coordSys=R,this._stackedOnPoints=K,this._points=V,this._step=Z,this._valueOrigin=Y},dispose:function(){},highlight:function(D,P,I,R){var E=D.getData(),k=l.queryDataIndex(E,R);if(!(k instanceof Array)&&k!=null&&k>=0){var B=E.getItemGraphicEl(k);if(!B){var F=E.getItemLayout(k);if(!F||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(F[0],F[1]))return;B=new n(E,k),B.position=F,B.setZ(D.get("zlevel"),D.get("z")),B.ignore=isNaN(F[0])||isNaN(F[1]),B.__temp=!0,E.setItemGraphicEl(k,B),B.stopSymbolAnimation(!0),this.group.add(B)}B.highlight()}else f.prototype.highlight.call(this,D,P,I,R)},downplay:function(D,P,I,R){var E=D.getData(),k=l.queryDataIndex(E,R);if(k!=null&&k>=0){var B=E.getItemGraphicEl(k);B&&(B.__temp?(E.setItemGraphicEl(k,null),this.group.remove(B)):B.downplay())}else f.prototype.downplay.call(this,D,P,I,R)},_newPolyline:function(D){var P=this._polyline;return P&&this._lineGroup.remove(P),P=new v({shape:{points:D},silent:!0,z2:10}),this._lineGroup.add(P),this._polyline=P,P},_newPolygon:function(D,P){var I=this._polygon;return I&&this._lineGroup.remove(I),I=new h({shape:{points:D,stackedOnPoints:P},silent:!0}),this._lineGroup.add(I),this._polygon=I,I},_updateAnimation:function(D,P,I,R,E,k){var B=this._polyline,F=this._polygon,V=D.hostModel,N=o(this._data,D,this._stackedOnPoints,P,this._coordSys,I,this._valueOrigin,k),O=N.current,z=N.stackedOnCurrent,G=N.next,q=N.stackedOnNext;if(E&&(O=w(N.current,I,E),z=w(N.stackedOnCurrent,I,E),G=w(N.next,I,E),q=w(N.stackedOnNext,I,E)),x(O,G)>3e3||F&&x(z,q)>3e3){B.setShape({points:G}),F&&F.setShape({points:G,stackedOnPoints:q});return}B.shape.__points=N.current,B.shape.points=O,s.updateProps(B,{shape:{points:G}},V),F&&(F.setShape({points:O,stackedOnPoints:z}),s.updateProps(F,{shape:{points:G,stackedOnPoints:q}},V));for(var H=[],U=N.status,W=0;Wi&&(i=a[n]);return isFinite(i)?i:NaN},min:function(a){for(var i=1/0,n=0;n1){var p;typeof l=="string"?p=r[l]:typeof l=="function"&&(p=l),p&&i.setData(s.downSample(s.mapDimension(h.dim),1/d,p,t))}}}}}return v1=e,v1}var Rz={},h1,Ez;function _ge(){if(Ez)return h1;Ez=1;var r=ie();function t(i){return this._axes[i]}var e=function(i){this._axes={},this._dimList=[],this.name=i||""};e.prototype={constructor:e,type:"cartesian",getAxis:function(i){return this._axes[i]},getAxes:function(){return r.map(this._dimList,t,this)},getAxesByScale:function(i){return i=i.toLowerCase(),r.filter(this.getAxes(),function(n){return n.scale.type===i})},addAxis:function(i){var n=i.dim;this._axes[n]=i,this._dimList.push(n)},dataToCoord:function(i){return this._dataCoordConvert(i,"dataToCoord")},coordToData:function(i){return this._dataCoordConvert(i,"coordToData")},_dataCoordConvert:function(i,n){for(var o=this._dimList,s=i instanceof Array?[]:{},l=0;ln[1]&&n.reverse(),n},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(i,n){return this.coordToData(this.toLocalCoord(i[this.dim==="x"?0:1]),n)},toLocalCoord:null,toGlobalCoord:null},r.inherits(e,t);var a=e;return c1=a,c1}var d1,Nz;function i$(){if(Nz)return d1;Nz=1;var r=ie(),t={show:!0,zlevel: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:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},e={};e.categoryAxis=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},t),e.valueAxis=r.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},t),e.timeAxis=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},e.valueAxis),e.logAxis=r.defaults({scale:!0,logBase:10},e.valueAxis);var a=e;return d1=a,d1}var p1,zz;function mg(){if(zz)return p1;zz=1;var r=ie(),t=i$(),e=Lr(),a=Ut(),i=a.getLayoutParams,n=a.mergeLayoutParam,o=X9(),s=["value","category","time","log"];function l(u,v,h,f){r.each(s,function(c){v.extend({type:u+"Axis."+c,mergeDefaultAndTheme:function(d,p){var g=this.layoutMode,m=g?i(d):{},y=p.getTheme();r.merge(d,y.get(c+"Axis")),r.merge(d,this.getDefaultOption()),d.type=h(u,d),g&&n(d,m,g)},optionUpdated:function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=o.createByAxisModel(this))},getCategories:function(d){var p=this.option;if(p.type==="category")return d?p.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},t[c+"Axis"],f],!0)})}),e.registerSubTypeDefaulter(u+"Axis",r.curry(h,u))}return p1=l,p1}var g1,Bz;function n$(){if(Bz)return g1;Bz=1;var r=ie(),t=Lr(),e=mg(),a=Du(),i=t.extend({type:"cartesian2dAxis",axis:null,init:function(){i.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){i.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){i.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function n(l,u){return u.type||(u.data?"category":"value")}r.merge(i.prototype,a);var o={offset:0};e("x",i,n,o),e("y",i,n,o);var s=i;return g1=s,g1}var m1,Vz;function bge(){if(Vz)return m1;Vz=1,n$();var r=Lr(),t=r.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});return m1=t,m1}var y1,Gz;function sD(){if(Gz)return y1;Gz=1;var r=It();r.__DEV__;var t=ie(),e=t.isObject,a=t.each,i=t.map,n=t.indexOf;t.retrieve;var o=Ut(),s=o.getLayoutRect,l=wi(),u=l.createScaleByModel,v=l.ifAxisCrossZero,h=l.niceScaleExtent,f=l.estimateLabelUnionRect,c=xge(),d=Sge(),p=bi(),g=rn(),m=g.getStackedDimension;bge();function y(L,D,P){return L.getCoordSysModel()===D}function _(L,D,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(L,D,P),this.model=L}var x=_.prototype;x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(L,D){var P=this._axesMap;this._updateScale(L,this.model),a(P.x,function(R){h(R.scale,R.model)}),a(P.y,function(R){h(R.scale,R.model)});var I={};a(P.x,function(R){S(P,"y",R,I)}),a(P.y,function(R){S(P,"x",R,I)}),this.resize(this.model,D)};function S(L,D,P,I){P.getAxesOnZeroOf=function(){return E?[E]:[]};var R=L[D],E,k=P.model,B=k.get("axisLine.onZero"),F=k.get("axisLine.onZeroAxisIndex");if(!B)return;if(F!=null)b(R[F])&&(E=R[F]);else for(var V in R)if(R.hasOwnProperty(V)&&b(R[V])&&!I[N(R[V])]){E=R[V];break}E&&(I[N(E)]=!0);function N(O){return O.dim+"_"+O.index}}function b(L){return L&&L.type!=="category"&&L.type!=="time"&&v(L)}x.resize=function(L,D,P){var I=s(L.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()});this._rect=I;var R=this._axesList;E(),!P&&L.get("containLabel")&&(a(R,function(k){if(!k.model.get("axisLabel.inside")){var B=f(k);if(B){var F=k.isHorizontal()?"height":"width",V=k.model.get("axisLabel.margin");I[F]-=B[F]+V,k.position==="top"?I.y+=B.height+V:k.position==="left"&&(I.x+=B.width+V)}}}),E());function E(){a(R,function(k){var B=k.isHorizontal(),F=B?[0,I.width]:[0,I.height],V=k.inverse?1:0;k.setExtent(F[V],F[1-V]),w(k,B?I.x:I.y)})}},x.getAxis=function(L,D){var P=this._axesMap[L];if(P!=null){if(D==null){for(var I in P)if(P.hasOwnProperty(I))return P[I]}return P[D]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(L,D){if(L!=null&&D!=null){var P="x"+L+"y"+D;return this._coordsMap[P]}e(L)&&(D=L.yAxisIndex,L=L.xAxisIndex);for(var I=0,R=this._coordsList;IG[1]?-1:1,H=[V==="start"?G[0]-q*z:V==="end"?G[1]+q*z:(G[0]+G[1])/2,L(V)?k.labelOffset+N*z:0],U,W=B.get("nameRotate");W!=null&&(W=W*y/180);var Y;L(V)?U=b(k.rotation,W!=null?W:k.rotation,N):(U=w(k,V,W||0,G),Y=k.axisNameAvailableWidth,Y!=null&&(Y=Math.abs(Y/Math.sin(U.rotation)),!isFinite(Y)&&(Y=null)));var X=O.getFont(),K=B.get("nameTruncate",!0)||{},Q=K.ellipsis,j=t(k.nameTruncateMaxWidth,K.maxWidth,Y),te=Q!=null&&j!=null?n.truncateText(F,j,X,Q,{minChar:2,placeholder:K.placeholder}):F,Z=B.get("tooltip",!0),ee=B.mainType,le={componentType:ee,name:F,$vars:["name"]};le[ee+"Index"]=B.componentIndex;var oe=new o.Text({anid:"name",__fullText:F,__truncatedText:te,position:H,rotation:U.rotation,silent:A(B),z2:1,tooltip:Z&&Z.show?a({content:F,formatter:function(){return F},formatterParams:le},Z):null});o.setTextStyle(oe.style,O,{text:te,textFont:X,textFill:O.getTextColor()||B.get("axisLine.lineStyle.color"),textAlign:O.get("align")||U.textAlign,textVerticalAlign:O.get("verticalAlign")||U.textVerticalAlign}),B.get("triggerEvent")&&(oe.eventData=S(B),oe.eventData.targetType="axisName",oe.eventData.name=F),this._dumbGroup.add(oe),oe.updateTransform(),this.group.add(oe),oe.decomposeTransform()}}},S=_.makeAxisEventDataBase=function(k){var B={componentType:k.mainType,componentIndex:k.componentIndex};return B[k.mainType+"Index"]=k.componentIndex,B},b=_.innerTextLayout=function(k,B,F){var V=v(B-k),N,O;return u(V)?(O=F>0?"top":"bottom",N="center"):u(V-y)?(O=F>0?"bottom":"top",N="center"):(O="middle",V>0&&V0?"right":"left":N=F>0?"left":"right"),{rotation:V,textAlign:N,textVerticalAlign:O}};function w(k,B,F,V){var N=v(F-k.rotation),O,z,G=V[0]>V[1],q=B==="start"&&!G||B!=="start"&&G;return u(N-y/2)?(z=q?"bottom":"top",O="center"):u(N-y*1.5)?(z=q?"top":"bottom",O="center"):(z="middle",Ny/2?O=q?"left":"right":O=q?"right":"left"),{rotation:N,textAlign:O,textVerticalAlign:z}}var A=_.isLabelSilent=function(k){var B=k.get("tooltip");return k.get("silent")||!(k.get("triggerEvent")||B&&B.show)};function T(k,B,F){if(!m(k.axis)){var V=k.get("axisLabel.showMinLabel"),N=k.get("axisLabel.showMaxLabel");B=B||[],F=F||[];var O=B[0],z=B[1],G=B[B.length-1],q=B[B.length-2],H=F[0],U=F[1],W=F[F.length-1],Y=F[F.length-2];V===!1?(C(O),C(H)):M(O,z)&&(V?(C(z),C(U)):(C(O),C(H))),N===!1?(C(G),C(W)):M(q,G)&&(N?(C(q),C(Y)):(C(G),C(W)))}}function C(k){k&&(k.ignore=!0)}function M(k,B,F){var V=k&&k.getBoundingRect().clone(),N=B&&B.getBoundingRect().clone();if(!(!V||!N)){var O=c.identity([]);return c.rotate(O,O,-k.rotation),V.applyTransform(c.mul([],O,k.getLocalTransform())),N.applyTransform(c.mul([],O,B.getLocalTransform())),V.intersect(N)}}function L(k){return k==="middle"||k==="center"}function D(k,B,F,V,N){for(var O=[],z=[],G=[],q=0;q=0||p===g}function v(p){var g=h(p);if(g){var m=g.axisPointerModel,y=g.axis.scale,_=m.option,x=m.get("status"),S=m.get("value");S!=null&&(S=y.parse(S));var b=c(m);x==null&&(_.status=b?"show":"hide");var w=y.getExtent().slice();w[0]>w[1]&&w.reverse(),(S==null||S>w[1])&&(S=w[1]),Se&&(e=a),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});return w1=t,w1}var T1={},tB;function u$(){if(tB)return T1;tB=1;var r=qe(),t=oD(),e=t.getDefaultLabel;function a(n,o,s,l,u,v,h){var f=s.getModel("label"),c=s.getModel("emphasis.label");r.setLabelStyle(n,o,f,c,{labelFetcher:u,labelDataIndex:v,defaultText:e(u.getData(),v),isRectText:!0,autoColor:l}),i(n),i(o)}function i(n,o){n.textPosition==="outside"&&(n.textPosition=o)}return T1.setLabel=a,T1}var A1,rB;function Mge(){if(rB)return A1;rB=1;var r=Tu(),t=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),e={getBarItemStyle:function(a){var i=t(this,a);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}};return A1=e,A1}var C1,aB;function Dge(){if(aB)return C1;aB=1;var r=qe(),t=r.extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(a,i){var n=i.cx,o=i.cy,s=Math.max(i.r0||0,0),l=Math.max(i.r,0),u=(l-s)*.5,v=s+u,h=i.startAngle,f=i.endAngle,c=i.clockwise,d=Math.cos(h),p=Math.sin(h),g=Math.cos(f),m=Math.sin(f),y=c?f-h0?1:-1,H=z.height>0?1:-1;return{x:z.x+q*G/2,y:z.y+H*G/2,width:z.width-q*G,height:z.height-H*G}},polar:function(V,N,O){var z=V.getItemLayout(N);return{cx:z.cx,cy:z.cy,r0:z.r0,r:z.r,startAngle:z.startAngle,endAngle:z.endAngle}}};function C(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function M(V,N,O,z,G,q,H,U){var W=N.getItemVisual(O,"color"),Y=N.getItemVisual(O,"opacity"),X=N.getVisual("borderColor"),K=z.getModel("itemStyle"),Q=z.getModel("emphasis.itemStyle").getBarItemStyle();U||V.setShape("r",K.get("barBorderRadius")||0),V.useStyle(e.defaults({stroke:C(G)?"none":X,fill:C(G)?"none":W,opacity:Y},K.getBarItemStyle()));var j=z.getShallow("cursor");j&&V.attr("cursor",j);var te=H?G.height>0?"bottom":"top":G.width>0?"left":"right";U||n(V.style,Q,z,W,q,O,te),C(G)&&(Q.fill=Q.stroke="none"),a.setHoverStyle(V,Q)}function L(V,N){var O=V.get(p)||0,z=isNaN(N.width)?Number.MAX_VALUE:Math.abs(N.width),G=isNaN(N.height)?Number.MAX_VALUE:Math.abs(N.height);return Math.min(O,z,G)}var D=l.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,N){for(var O=N.points,z=this.__startPoint,G=this.__baseDimIdx,q=0;q=0?O:null},30,!1);function R(V,N,O){var z=V.__baseDimIdx,G=1-z,q=V.shape.points,H=V.__largeDataIndices,U=Math.abs(V.__barWidth/2),W=V.__startPoint[G];g[0]=N,g[1]=O;for(var Y=g[z],X=g[1-z],K=Y-U,Q=Y+U,j=0,te=q.length/2;j=K&&ee<=Q&&(W<=le?X>=W&&X<=le:X>=le&&X<=W))return H[j]}return-1}function E(V,N,O){var z=O.getVisual("borderColor")||O.getVisual("color"),G=N.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(G),V.style.fill=null,V.style.stroke=z,V.style.lineWidth=O.getLayout("barWidth")}function k(V,N,O){var z=N.get("borderColor")||N.get("color"),G=N.getItemStyle(["color","borderColor"]);V.useStyle(G),V.style.fill=null,V.style.stroke=z,V.style.lineWidth=O.getLayout("barWidth")}function B(V,N,O){var z,G=O.type==="polar";return G?z=O.getArea():z=O.grid.getRect(),G?{cx:z.cx,cy:z.cy,r0:V?z.r0:N.r0,r:V?z.r:N.r,startAngle:V?N.startAngle:0,endAngle:V?N.endAngle:Math.PI*2}:{x:V?N.x:z.x,y:V?z.y:N.y,width:V?N.width:z.width,height:V?z.height:N.height}}function F(V,N,O){var z=V.type==="polar"?a.Sector:a.Rect;return new z({shape:B(N,O,V),silent:!0,z2:0})}return M1=y,M1}var nB;function Ige(){if(nB)return jz;nB=1;var r=Pe(),t=ie(),e=pg(),a=e.layout,i=e.largeLayout;return sD(),Cge(),Lge(),mf(),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,t.curry(a,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,i),r.registerVisual({seriesType:"bar",reset:function(n){n.getData().setVisual("legendSymbol","roundRect")}}),jz}var oB={},D1,sB;function Lu(){if(sB)return D1;sB=1;var r=Mu(),t=ei(),e=ie(),a=e.extend,i=e.isArray;function n(o,s,l){s=i(s)&&{coordDimensions:s}||a({},s);var u=o.getSource(),v=r(u,s),h=new t(v,o);return h.initData(u,l),h}return D1=n,D1}var L1,lB;function lD(){if(lB)return L1;lB=1;var r=ie(),t={updateSelectedMap:function(e){this._targetList=r.isArray(e)?e.slice():[],this._selectTargetMap=r.reduce(e||[],function(a,i){return a.set(i.name,i),a},r.createHashMap())},select:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e),n=this.get("selectedMode");n==="single"&&this._selectTargetMap.each(function(o){o.selected=!1}),i&&(i.selected=!0)},unSelect:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);if(i!=null)return this[i.selected?"unSelect":"select"](e,a),i.selected},isSelected:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);return i&&i.selected}};return L1=t,L1}var I1,uB;function yf(){if(uB)return I1;uB=1;function r(e,a){this.getAllNames=function(){var i=a();return i.mapArray(i.getName)},this.containName=function(i){var n=a();return n.indexOfName(i)>=0},this.indexOfName=function(i){var n=e();return n.indexOfName(i)},this.getItemVisual=function(i,n){var o=e();return o.getItemVisual(i,n)}}var t=r;return I1=t,I1}var P1,vB;function Pge(){if(vB)return P1;vB=1;var r=Pe(),t=Lu(),e=ie(),a=_t(),i=st(),n=i.getPercentWithPrecision,o=lD(),s=Ys(),l=s.retrieveRawAttr,u=Ln(),v=u.makeSeriesEncodeForNameBased,h=yf(),f=r.extendSeriesModel({type:"series.pie",init:function(d){f.superApply(this,"init",arguments),this.legendVisualProvider=new h(e.bind(this.getData,this),e.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(d)},mergeOption:function(d){f.superCall(this,"mergeOption",d),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(d,p){return t(this,{coordDimensions:["value"],encodeDefaulter:e.curry(v,this)})},_createSelectableList:function(){for(var d=this.getRawData(),p=d.mapDimension("value"),g=[],m=0,y=d.count();m0&&(m?y!=="scale":_!=="transition")){for(var b=c.getItemLayout(0),w=1;isNaN(b.startAngle)&&w=f.r0}}}),l=s;return R1=l,R1}var E1,fB;function v$(){if(fB)return E1;fB=1;var r=Pe(),t=ie();function e(a,i){t.each(i,function(n){n.update="updateView",r.registerAction(n,function(o,s){var l={};return s.eachComponent({mainType:"series",subType:a,query:o},function(u){u[n.method]&&u[n.method](o.name,o.dataIndex);var v=u.getData();v.each(function(h){var f=v.getName(h);l[f]=u.isSelected(f)||!1})}),{name:o.name,selected:l,seriesId:o.seriesId}})})}return E1=e,E1}var k1,cB;function _g(){if(cB)return k1;cB=1;var r=ie(),t=r.createHashMap;function e(a){return{getTargetSeries:function(i){var n={},o=t();return i.eachSeriesByType(a,function(s){s.__paletteScope=n,o.set(s.uid,s)}),o},reset:function(i,n){var o=i.getRawData(),s={},l=i.getData();l.each(function(u){var v=l.getRawIndex(u);s[v]=u}),o.each(function(u){var v=s[u],h=v!=null&&l.getItemVisual(v,"color",!0),f=v!=null&&l.getItemVisual(v,"borderColor",!0),c;if((!h||!f)&&(c=o.getItemModel(u)),!h){var d=c.get("itemStyle.color")||i.getColorFromPalette(o.getName(u)||u+"",i.__paletteScope,o.count());v!=null&&l.setItemVisual(v,"color",d)}if(!f){var p=c.get("itemStyle.borderColor");v!=null&&l.setItemVisual(v,"borderColor",p)}})}}}return k1=e,k1}var O1,dB;function Ege(){if(dB)return O1;dB=1;var r=Da(),t=st(),e=t.parsePercent,a=Math.PI/180;function i(l,u,v,h,f,c,d,p,g,m){l.sort(function(L,D){return L.y-D.y});function y(L,D,P,I){for(var R=L;Rg+d);R++)if(l[R].y+=P,R>L&&R+1l[R].y+l[R].height){_(R,P/2);return}_(D-1,P/2)}function _(L,D){for(var P=L;P>=0&&!(l[P].y-D0&&l[P].y>l[P-1].y+l[P-1].height));P--);}function x(L,D,P,I,R,E){for(var k=(E>0,D?Number.MAX_VALUE:0),B=0,F=L.length;B=k&&(z=k-10),!D&&z<=k&&(z=k+10),L[B].x=P+z*E,k=z}}for(var S=0,b,w=l.length,A=[],T=[],C=0;C=v?T.push(l[C]):A.push(l[C]);x(A,!1,u,v,h,f),x(T,!0,u,v,h,f)}function n(l,u,v,h,f,c,d,p){for(var g=[],m=[],y=Number.MAX_VALUE,_=-Number.MAX_VALUE,x=0;x0?"right":"left":k>0?"left":"right"}var Q,j=w.get("rotate");typeof j=="number"?Q=j*(Math.PI/180):Q=j?k<0?-E+Math.PI:-E:0,y=!!Q,S.label={x:F,y:V,position:A,height:G.height,len:I,len2:R,linePoints:N,textAlign:O,verticalAlign:"middle",rotation:Q,inside:q,labelDistance:T,labelAlignTo:C,labelMargin:M,bleedMargin:L,textRect:G,text:z,font:D},q||p.push(S.label)}}),!y&&l.get("avoidLabelOverlap")&&n(p,g,m,u,v,h,f,c)}return O1=s,O1}var N1,pB;function kge(){if(pB)return N1;pB=1;var r=st(),t=r.parsePercent,e=r.linearMap,a=Ut(),i=Ege(),n=ie(),o=Math.PI*2,s=Math.PI/180;function l(v,h){return a.getLayoutRect(v.getBoxLayoutParams(),{width:h.getWidth(),height:h.getHeight()})}function u(v,h,f,c){h.eachSeriesByType(v,function(d){var p=d.getData(),g=p.mapDimension("value"),m=l(d,f),y=d.get("center"),_=d.get("radius");n.isArray(_)||(_=[0,_]),n.isArray(y)||(y=[y,y]);var x=t(m.width,f.getWidth()),S=t(m.height,f.getHeight()),b=Math.min(x,S),w=t(y[0],x)+m.x,A=t(y[1],S)+m.y,T=t(_[0],b/2),C=t(_[1],b/2),M=-d.get("startAngle")*s,L=d.get("minAngle")*s,D=0;p.each(g,function(G){!isNaN(G)&&D++});var P=p.getSum(g),I=Math.PI/(P||D)*2,R=d.get("clockwise"),E=d.get("roseType"),k=d.get("stillShowZeroSum"),B=p.getDataExtent(g);B[0]=0;var F=o,V=0,N=M,O=R?1:-1;if(p.each(g,function(G,q){var H;if(isNaN(G)){p.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:w,cy:A,r0:T,r:E?NaN:C,viewRect:m});return}E!=="area"?H=P===0&&k?I:G*I:H=o/D,H=0;g--){var m=g*2,y=f[m]-d/2,_=f[m+1]-p/2;if(u>=y&&v>=_&&u<=y+d&&v<=_+p)return g}return-1}});function o(){this.group=new r.Group}var s=o.prototype;s.isPersistent=function(){return!this._incremental},s.updateData=function(u,v){this.group.removeAll();var h=new n({rectHover:!0,cursor:"default"});h.setShape({points:u.getLayout("symbolPoints")}),this._setCommon(h,u,!1,v),this.group.add(h),this._incremental=null},s.updateLayout=function(u){if(!this._incremental){var v=u.getLayout("symbolPoints");this.group.eachChild(function(h){if(h.startIndex!=null){var f=(h.endIndex-h.startIndex)*2,c=h.startIndex*4*2;v=new Float32Array(v.buffer,c,f)}h.setShape("points",v)})}},s.incrementalPrepareUpdate=function(u){this.group.removeAll(),this._clearIncremental(),u.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},s.incrementalUpdate=function(u,v,h){var f;this._incremental?(f=new n,this._incremental.addDisplayable(f,!0)):(f=new n({rectHover:!0,cursor:"default",startIndex:u.start,endIndex:u.end}),f.incremental=!0,this.group.add(f)),f.setShape({points:v.getLayout("symbolPoints")}),this._setCommon(f,v,!!this._incremental,h)},s._setCommon=function(u,v,h,f){var c=v.hostModel;f=f||{};var d=v.getVisual("symbolSize");u.setShape("size",d instanceof Array?d:[d,d]),u.softClipShape=f.clipShape||null,u.symbolProxy=e(v.getVisual("symbol"),0,0,0,0),u.setColor=u.symbolProxy.setColor;var p=u.shape.size[0]=0&&(u.dataIndex=y+(u.startIndex||0))}))},s.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},s._clearIncremental=function(){var u=this._incremental;u&&u.clearDisplaybles()};var l=o;return V1=l,V1}var bB;function Bge(){if(bB)return xB;bB=1;var r=Pe(),t=df(),e=zge(),a=gf();return r.extendChartView({type:"scatter",render:function(i,n,o){var s=i.getData(),l=this._updateSymbolDraw(s,i);l.updateData(s,{clipShape:this._getClipShape(i)}),this._finished=!0},incrementalPrepareRender:function(i,n,o){var s=i.getData(),l=this._updateSymbolDraw(s,i);l.incrementalPrepareUpdate(s),this._finished=!1},incrementalRender:function(i,n,o){this._symbolDraw.incrementalUpdate(i,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=i.end===n.getData().count()},updateTransform:function(i,n,o){var s=i.getData();if(this.group.dirty(),!this._finished||s.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var l=a().reset(i);l.progress&&l.progress({start:0,end:s.count()},s),this._symbolDraw.updateLayout(s)},_getClipShape:function(i){var n=i.coordinateSystem,o=n&&n.getArea&&n.getArea();return i.get("clip",!0)?o:null},_updateSymbolDraw:function(i,n){var o=this._symbolDraw,s=n.pipelineContext,l=s.large;return(!o||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=l?new e:new t,this._isLargeDraw=l,this.group.removeAll()),this.group.add(o.group),o},remove:function(i,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),xB}var wB;function Vge(){if(wB)return yB;wB=1;var r=Pe();Nge(),Bge();var t=Xs(),e=gf();return mf(),r.registerVisual(t("scatter","circle")),r.registerLayout(e("scatter")),yB}var TB={},AB={},G1,CB;function Gge(){if(CB)return G1;CB=1;var r=ie(),t=So();function e(i,n,o){t.call(this,i,n,o),this.type="value",this.angle=0,this.name="",this.model}r.inherits(e,t);var a=e;return G1=a,G1}var F1,MB;function Fge(){if(MB)return F1;MB=1;var r=ie(),t=Gge(),e=dg(),a=st(),i=wi(),n=i.getScaleExtent,o=i.niceScaleExtent,s=bi(),l=Q9();function u(h,f,c){this._model=h,this.dimensions=[],this._indicatorAxes=r.map(h.getIndicatorModels(),function(d,p){var g="indicator_"+p,m=new t(g,d.get("axisType")==="log"?new l:new e);return m.name=d.get("name"),m.model=d,d.axis=m,this.dimensions.push(g),m},this),this.resize(h,c),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(h,f){var c=this._indicatorAxes[f];return this.coordToPoint(c.dataToCoord(h),f)},u.prototype.coordToPoint=function(h,f){var c=this._indicatorAxes[f],d=c.angle,p=this.cx+h*Math.cos(d),g=this.cy-h*Math.sin(d);return[p,g]},u.prototype.pointToData=function(h){var f=h[0]-this.cx,c=h[1]-this.cy,d=Math.sqrt(f*f+c*c);f/=d,c/=d;for(var p=Math.atan2(-c,f),g=1/0,m,y=-1,_=0;__[0]&&isFinite(C)&&isFinite(_[0]))}else{var M=S.getTicks().length-1;M>p&&(A=g(A));var T=Math.ceil(_[1]/A)*A,C=a.round(T-A*p);S.setExtent(C,T),S.setInterval(A)}})},u.dimensions=[],u.create=function(h,f){var c=[];return h.eachComponent("radar",function(d){var p=new u(d,h,f);c.push(p),d.coordinateSystem=p}),h.eachSeriesByType("radar",function(d){d.get("coordinateSystem")==="radar"&&(d.coordinateSystem=c[d.get("radarIndex")||0])}),c},s.register("radar",u);var v=u;return F1=v,F1}var H1,DB;function Hge(){if(DB)return H1;DB=1;var r=Pe(),t=ie(),e=i$(),a=gr(),i=Du(),n=e.valueAxis;function o(u,v){return t.defaults({show:v},u)}var s=r.extendComponentModel({type:"radar",optionUpdated:function(){var u=this.get("boundaryGap"),v=this.get("splitNumber"),h=this.get("scale"),f=this.get("axisLine"),c=this.get("axisTick"),d=this.get("axisType"),p=this.get("axisLabel"),g=this.get("name"),m=this.get("name.show"),y=this.get("name.formatter"),_=this.get("nameGap"),x=this.get("triggerEvent"),S=t.map(this.get("indicator")||[],function(b){b.max!=null&&b.max>0&&!b.min?b.min=0:b.min!=null&&b.min<0&&!b.max&&(b.max=0);var w=g;if(b.color!=null&&(w=t.defaults({color:b.color},g)),b=t.merge(t.clone(b),{boundaryGap:u,splitNumber:v,scale:h,axisLine:f,axisTick:c,axisType:d,axisLabel:p,name:b.text,nameLocation:"end",nameGap:_,nameTextStyle:w,triggerEvent:x},!1),m||(b.name=""),typeof y=="string"){var A=b.name;b.name=y.replace("{value}",A!=null?A:"")}else typeof y=="function"&&(b.name=y(b.name,b));var T=t.extend(new a(b,null,this.ecModel),i);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:t.merge({lineStyle:{color:"#bbb"}},n.axisLine),axisLabel:o(n.axisLabel,!1),axisTick:o(n.axisTick,!1),axisType:"interval",splitLine:o(n.splitLine,!0),splitArea:o(n.splitArea,!0),indicator:[]}}),l=s;return H1=l,H1}var q1,LB;function qge(){if(LB)return q1;LB=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=bo(),i=qe(),n=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(s,l,u){var v=this.group;v.removeAll(),this._buildAxes(s),this._buildSplitLineAndArea(s)},_buildAxes:function(s){var l=s.coordinateSystem,u=l.getIndicatorAxes(),v=e.map(u,function(h){var f=new a(h.model,{position:[l.cx,l.cy],rotation:h.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return f});e.each(v,function(h){e.each(n,h.add,h),this.group.add(h.getGroup())},this)},_buildSplitLineAndArea:function(s){var l=s.coordinateSystem,u=l.getIndicatorAxes();if(!u.length)return;var v=s.get("shape"),h=s.getModel("splitLine"),f=s.getModel("splitArea"),c=h.getModel("lineStyle"),d=f.getModel("areaStyle"),p=h.get("show"),g=f.get("show"),m=c.get("color"),y=d.get("color");m=e.isArray(m)?m:[m],y=e.isArray(y)?y:[y];var _=[],x=[];function S(k,B,F){var V=F%B.length;return k[V]=k[V]||[],V}if(v==="circle")for(var b=u[0].getTicksCoords(),w=l.cx,A=l.cy,T=0;T":"\n";return i(p===""?this.name:p)+g+e.map(d,function(m,y){var _=f.get(f.mapDimension(m.dim),l);return i(m.name+" : "+_)}).join(g)},getTooltipPosition:function(l){if(l!=null){for(var u=this.getData(),v=this.coordinateSystem,h=u.getValues(e.map(v.dimensions,function(p){return u.mapDimension(p)}),l,!0),f=0,c=h.length;f":"\n";return b.join(", ")+C+i(x+" : "+_)},getTooltipPosition:function(d){if(d!=null){var p=this.getData().getName(d),g=this.coordinateSystem,m=g.getRegion(p);return m&&g.dataToPoint(m.center)}},setZoom:function(d){this.option.zoom=d},setCenter:function(d){this.option.center=d},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});r.mixin(f,o);var c=f;return tx=c,tx}var Sv={},UB;function h$(){if(UB)return Sv;UB=1;var r=Pe(),t="\0_ec_interaction_mutex";function e(o,s,l){var u=n(o);u[s]=l}function a(o,s,l){var u=n(o),v=u[s];v===l&&(u[s]=null)}function i(o,s){return!!n(o)[s]}function n(o){return o[t]||(o[t]={})}return r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),Sv.take=e,Sv.release=a,Sv.isTaken=i,Sv}var rx,$B;function xf(){if($B)return rx;$B=1;var r=ie(),t=Ws(),e=Ji(),a=h$();function i(d){this.pointerChecker,this._zr=d,this._opt={};var p=r.bind,g=p(n,this),m=p(o,this),y=p(s,this),_=p(l,this),x=p(u,this);t.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,b){this.disable(),this._opt=r.defaults(r.clone(b)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(d.on("mousedown",g),d.on("mousemove",m),d.on("mouseup",y)),(S===!0||S==="scale"||S==="zoom")&&(d.on("mousewheel",_),d.on("pinch",x))},this.disable=function(){d.off("mousedown",g),d.off("mousemove",m),d.off("mouseup",y),d.off("mousewheel",_),d.off("pinch",x)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}r.mixin(i,t);function n(d){if(!(e.isMiddleOrRightButtonOnMouseUpDown(d)||d.target&&d.target.draggable)){var p=d.offsetX,g=d.offsetY;this.pointerChecker&&this.pointerChecker(d,p,g)&&(this._x=p,this._y=g,this._dragging=!0)}}function o(d){if(!(!this._dragging||!f("moveOnMouseMove",d,this._opt)||d.gestureEvent==="pinch"||a.isTaken(this._zr,"globalPan"))){var p=d.offsetX,g=d.offsetY,m=this._x,y=this._y,_=p-m,x=g-y;this._x=p,this._y=g,this._opt.preventDefaultMouseMove&&e.stop(d.event),h(this,"pan","moveOnMouseMove",d,{dx:_,dy:x,oldX:m,oldY:y,newX:p,newY:g})}}function s(d){e.isMiddleOrRightButtonOnMouseUpDown(d)||(this._dragging=!1)}function l(d){var p=f("zoomOnMouseWheel",d,this._opt),g=f("moveOnMouseWheel",d,this._opt),m=d.wheelDelta,y=Math.abs(m),_=d.offsetX,x=d.offsetY;if(!(m===0||!p&&!g)){if(p){var S=y>3?1.4:y>1?1.2:1.1,b=m>0?S:1/S;v(this,"zoom","zoomOnMouseWheel",d,{scale:b,originX:_,originY:x})}if(g){var w=Math.abs(m),A=(m>0?1:-1)*(w>3?.4:w>1?.15:.05);v(this,"scrollMove","moveOnMouseWheel",d,{scrollDelta:A,originX:_,originY:x})}}}function u(d){if(!a.isTaken(this._zr,"globalPan")){var p=d.pinchScale>1?1.1:1/1.1;v(this,"zoom",null,d,{scale:p,originX:d.pinchX,originY:d.pinchY})}}function v(d,p,g,m,y){d.pointerChecker&&d.pointerChecker(m,y.originX,y.originY)&&(e.stop(m.event),h(d,p,g,m,y))}function h(d,p,g,m,y){y.isAvailableBehavior=r.bind(f,null,g,m),d.trigger(p,y)}function f(d,p,g){var m=g[d];return!d||m&&(!r.isString(m)||p.event[m+"Key"])}var c=i;return rx=c,rx}var Rc={},YB;function uD(){if(YB)return Rc;YB=1;function r(e,a,i){var n=e.target,o=n.position;o[0]+=a,o[1]+=i,n.dirty()}function t(e,a,i,n){var o=e.target,s=e.zoomLimit,l=o.position,u=o.scale,v=e.zoom=e.zoom||1;if(v*=a,s){var h=s.min||0,f=s.max||1/0;v=Math.max(Math.min(f,v),h)}var c=v/e.zoom;e.zoom=v,l[0]-=(i-l[0])*(c-1),l[1]-=(n-l[1])*(c-1),u[0]*=c,u[1]*=c,o.dirty()}return Rc.updateViewOnPan=r,Rc.updateViewOnZoom=t,Rc}var ax={},ZB;function Sg(){if(ZB)return ax;ZB=1;var r={axisPointer:1,tooltip:1,brush:1};function t(e,a,i){var n=a.getComponentByElement(e.topTarget),o=n&&n.coordinateSystem;return n&&n!==i&&!r[n.mainType]&&o&&o.model!==i}return ax.onIrrelevantElement=t,ax}var ix,XB;function f$(){if(XB)return ix;XB=1;var r=ie(),t=xf(),e=uD(),a=Sg(),i=a.onIrrelevantElement,n=qe(),o=xg(),s=vf(),l=s.getUID,u=og();function v(p){var g=p.getItemStyle(),m=p.get("areaColor");return m!=null&&(g.fill=m),g}function h(p,g,m,y,_){m.off("click"),m.off("mousedown"),g.get("selectedMode")&&(m.on("mousedown",function(){p._mouseDownFlag=!0}),m.on("click",function(x){if(p._mouseDownFlag){p._mouseDownFlag=!1;for(var S=x.target;!S.__regions;)S=S.parent;if(S){var b={type:(g.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:r.map(S.__regions,function(w){return{name:w.name,from:_.uid}})};b[g.mainType+"Id"]=g.id,y.dispatchAction(b),f(g,m)}}}))}function f(p,g){g.eachChild(function(m){r.each(m.__regions,function(y){m.trigger(p.isSelected(y.name)?"emphasis":"normal")})})}function c(p,g){var m=new n.Group;this.uid=l("ec_map_draw"),this._controller=new t(p.getZr()),this._controllerHost={target:g?m:null},this.group=m,this._updateGroup=g,this._mouseDownFlag,this._mapName,this._initialized,m.add(this._regionsGroup=new n.Group),m.add(this._backgroundGroup=new n.Group)}c.prototype={constructor:c,draw:function(p,g,m,y,_){var x=p.mainType==="geo",S=p.getData&&p.getData();x&&g.eachComponent({mainType:"series",subType:"map"},function(V){!S&&V.getHostGeoModel()===p&&(S=V.getData())});var b=p.coordinateSystem;this._updateBackground(b);var w=this._regionsGroup,A=this.group,T=b.getTransformInfo(),C=!w.childAt(0)||_,M;if(C)A.transform=T.roamTransform,A.decomposeTransform(),A.dirty();else{var L=new u;L.transform=T.roamTransform,L.decomposeTransform();var D={scale:L.scale,position:L.position};M=L.scale,n.updateProps(A,D,p)}var P=T.rawScale,I=T.rawPosition;w.removeAll();var R=["itemStyle"],E=["emphasis","itemStyle"],k=["label"],B=["emphasis","label"],F=r.createHashMap();r.each(b.regions,function(V){var N=F.get(V.name)||F.set(V.name,new n.Group),O=new n.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});N.add(O);var z=p.getRegionModel(V.name)||p,G=z.getModel(R),q=z.getModel(E),H=v(G),U=v(q),W=z.getModel(k),Y=z.getModel(B),X;if(S){X=S.indexOfName(V.name);var K=S.getItemVisual(X,"color",!0);K&&(H.fill=K)}var Q=function(ye){return[ye[0]*P[0]+I[0],ye[1]*P[1]+I[1]]};r.each(V.geometries,function(ye){if(ye.type==="polygon"){for(var Me=[],J=0;J=0)&&(oe=p);var fe=new n.Text({position:Q(V.center.slice()),scale:[1/A.scale[0],1/A.scale[1]],z2:10,silent:!0});if(n.setLabelStyle(fe.style,fe.hoverStyle={},W,Y,{labelFetcher:oe,labelDataIndex:le,defaultText:V.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!C){var se=[1/M[0],1/M[1]];n.updateProps(fe,{scale:se},p)}N.add(fe)}if(S)S.setItemGraphicEl(X,N);else{var z=p.getRegionModel(V.name);O.eventData={componentType:"geo",componentIndex:p.componentIndex,geoIndex:p.componentIndex,name:V.name,region:z&&z.option||{}}}var ve=N.__regions||(N.__regions=[]);ve.push(V),N.highDownSilentOnTouch=!!p.get("selectedMode"),n.setHoverStyle(N,U),w.add(N)}),this._updateController(p,g,m),h(this,p,w,m,y),f(p,w)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&o.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(p){var g=p.map;this._mapName!==g&&r.each(o.makeGraphic(g,this.uid),function(m){this._backgroundGroup.add(m)},this),this._mapName=g},_updateController:function(p,g,m){var y=p.coordinateSystem,_=this._controller,x=this._controllerHost;x.zoomLimit=p.get("scaleLimit"),x.zoom=y.getZoom(),_.enable(p.get("roam")||!1);var S=p.mainType;function b(){var w={type:"geoRoam",componentType:S};return w[S+"Id"]=p.id,w}_.off("pan").on("pan",function(w){this._mouseDownFlag=!1,e.updateViewOnPan(x,w.dx,w.dy),m.dispatchAction(r.extend(b(),{dx:w.dx,dy:w.dy}))},this),_.off("zoom").on("zoom",function(w){if(this._mouseDownFlag=!1,e.updateViewOnZoom(x,w.scale,w.originX,w.originY),m.dispatchAction(r.extend(b(),{zoom:w.scale,originX:w.originX,originY:w.originY})),this._updateGroup){var A=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/A[0],1/A[1]])})}},this),_.setPointerChecker(function(w,A,T){return y.getViewRectAfterRoam().contain(A,T)&&!i(w,m,p)})}};var d=c;return ix=d,ix}var nx,KB;function ame(){if(KB)return nx;KB=1;var r=Pe(),t=ie(),e=qe(),a=f$(),i="__seriesMapHighDown",n="__seriesMapCallKey",o=r.extendChartView({type:"map",render:function(u,v,h,f){if(!(f&&f.type==="mapToggleSelect"&&f.from===this.uid)){var c=this.group;if(c.removeAll(),!u.getHostGeoModel()){if(f&&f.type==="geoRoam"&&f.componentType==="series"&&f.seriesId===u.id){var d=this._mapDraw;d&&c.add(d.group)}else if(u.needsDrawMap){var d=this._mapDraw||new a(h,!0);c.add(d.group),d.draw(u,v,h,this,f),this._mapDraw=d}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;u.get("showLegendSymbol")&&v.getComponent("legend")&&this._renderSymbols(u,v,h)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(u,v,h){var f=u.originalData,c=this.group;f.each(f.mapDimension("value"),function(d,p){if(!isNaN(d)){var g=f.getItemLayout(p);if(!(!g||!g.point)){var m=g.point,y=g.offset,_=new e.Circle({style:{fill:u.getData().getVisual("color")},shape:{cx:m[0]+y*9,cy:m[1],r:3},silent:!0,z2:8+(y?0:e.Z2_EMPHASIS_LIFT+1)});if(!y){var x=u.mainSeries.getData(),S=f.getName(p),b=x.indexOfName(S),w=f.getItemModel(p),A=w.getModel("label"),T=w.getModel("emphasis.label"),C=x.getItemGraphicEl(b),M=t.retrieve2(u.getFormattedLabel(b,"normal"),S),L=t.retrieve2(u.getFormattedLabel(b,"emphasis"),M),D=C[i],P=Math.random();if(!D){D=C[i]={};var I=t.curry(s,!0),R=t.curry(s,!1);C.on("mouseover",I).on("mouseout",R).on("emphasis",I).on("normal",R)}C[n]=P,t.extend(D,{recordVersion:P,circle:_,labelModel:A,hoverLabelModel:T,emphasisText:L,normalText:M}),l(D,!1)}c.add(_)}}})}});function s(u){var v=this[i];v&&v.recordVersion===this[n]&&l(v,u)}function l(u,v){var h=u.circle,f=u.labelModel,c=u.hoverLabelModel,d=u.emphasisText,p=u.normalText;v?(h.style.extendFrom(e.setTextStyle({},c,{text:c.get("show")?d:null},{isRectText:!0,useInsideStyle:!1},!0)),h.__mapOriginalZ2=h.z2,h.z2+=e.Z2_EMPHASIS_LIFT):(e.setTextStyle(h.style,f,{text:f.get("show")?p:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),h.dirty(!1),h.__mapOriginalZ2!=null&&(h.z2=h.__mapOriginalZ2,h.__mapOriginalZ2=null))}return nx=o,nx}var QB={},ox={},jB;function vD(){if(jB)return ox;jB=1;function r(t,e,a){var i=t.getZoom(),n=t.getCenter(),o=e.zoom,s=t.dataToPoint(n);if(e.dx!=null&&e.dy!=null){s[0]-=e.dx,s[1]-=e.dy;var n=t.pointToData(s);t.setCenter(n)}if(o!=null){if(a){var l=a.min||0,u=a.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}t.scale[0]*=o,t.scale[1]*=o;var v=t.position,h=(e.originX-v[0])*(o-1),f=(e.originY-v[1])*(o-1);v[0]-=h,v[1]-=f,t.updateTransform();var n=t.pointToData(s);t.setCenter(n),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}return ox.updateCenterAndZoom=r,ox}var JB;function c$(){if(JB)return QB;JB=1;var r=Pe(),t=ie(),e=vD(),a=e.updateCenterAndZoom;return r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,n){var o=i.componentType||"series";n.eachComponent({mainType:o,query:i},function(s){var l=s.coordinateSystem;if(l.type==="geo"){var u=a(l,i,s.get("scaleLimit"));s.setCenter&&s.setCenter(u.center),s.setZoom&&s.setZoom(u.zoom),o==="series"&&t.each(s.seriesGroup,function(v){v.setCenter(u.center),v.setZoom(u.zoom)})}})}),QB}var sx,eV;function hD(){if(eV)return sx;eV=1;var r=ie(),t=Jt(),e=ha(),a=rr(),i=og(),n=t.applyTransform;function o(){i.call(this)}r.mixin(o,i);function s(v){this.name=v,this.zoomLimit,i.call(this),this._roamTransformable=new o,this._rawTransformable=new o,this._center,this._zoom}s.prototype={constructor:s,type:"view",dimensions:["x","y"],setBoundingRect:function(v,h,f,c){return this._rect=new a(v,h,f,c),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(v,h,f,c){this.transformTo(v,h,f,c),this._viewRect=new a(v,h,f,c)},transformTo:function(v,h,f,c){var d=this.getBoundingRect(),p=this._rawTransformable;p.transform=d.calculateTransform(new a(v,h,f,c)),p.decomposeTransform(),this._updateTransform()},setCenter:function(v){v&&(this._center=v,this._updateCenterAndZoom())},setZoom:function(v){v=v||1;var h=this.zoomLimit;h&&(h.max!=null&&(v=Math.min(h.max,v)),h.min!=null&&(v=Math.max(h.min,v))),this._zoom=v,this._updateCenterAndZoom()},getDefaultCenter:function(){var v=this.getBoundingRect(),h=v.x+v.width/2,f=v.y+v.height/2;return[h,f]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var v=this._rawTransformable.getLocalTransform(),h=this._roamTransformable,f=this.getDefaultCenter(),c=this.getCenter(),d=this.getZoom();c=t.applyTransform([],c,v),f=t.applyTransform([],f,v),h.origin=c,h.position=[f[0]-c[0],f[1]-c[1]],h.scale=[d,d],this._updateTransform()},_updateTransform:function(){var v=this._roamTransformable,h=this._rawTransformable;h.parent=v,v.updateTransform(),h.updateTransform(),e.copy(this.transform||(this.transform=[]),h.transform||e.create()),this._rawTransform=h.getLocalTransform(),this.invTransform=this.invTransform||[],e.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var v=this._roamTransformable.transform,h=this._rawTransformable;return{roamTransform:v?r.slice(v):e.create(),rawScale:r.slice(h.scale),rawPosition:r.slice(h.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var v=this.getBoundingRect().clone();return v.applyTransform(this.transform),v},dataToPoint:function(v,h,f){var c=h?this._rawTransform:this.transform;return f=f||[],c?n(f,v,c):t.copy(f,v)},pointToData:function(v){var h=this.invTransform;return h?n([],v,h):[v[0],v[1]]},convertToPixel:r.curry(l,"dataToPoint"),convertFromPixel:r.curry(l,"pointToData"),containPoint:function(v){return this.getViewRectAfterRoam().contain(v[0],v[1])}},r.mixin(s,i);function l(v,h,f,c){var d=f.seriesModel,p=d?d.coordinateSystem:null;return p===this?p[v](c):null}var u=s;return sx=u,sx}var lx,tV;function ime(){if(tV)return lx;tV=1;var r=ie(),t=rr(),e=hD(),a=xg();function i(s,l,u,v){e.call(this,s),this.map=l;var h=a.load(l,u);this._nameCoordMap=h.nameCoordMap,this._regionsMap=h.regionsMap,this._invertLongitute=v==null?!0:v,this.regions=h.regions,this._rect=h.boundingRect}i.prototype={constructor:i,type:"geo",dimensions:["lng","lat"],containCoord:function(s){for(var l=this.regions,u=0;u1?(T.width=x,T.height=x/w):(T.height=x,T.width=x*w),T.y=_[1]-T.height/2,T.x=_[0]-T.width/2}else y=f.getBoxLayoutParams(),y.aspect=w,T=i.getLayoutRect(y,{width:S,height:b});this.setViewRect(T.x,T.y,T.width,T.height),this.setCenter(f.get("center")),this.setZoom(f.get("zoom"))}function u(f,c){e.each(c.get("geoCoord"),function(d,p){f.addGeoCoord(p,d)})}var v={dimensions:a.prototype.dimensions,create:function(f,c){var d=[];f.eachComponent("geo",function(g,m){var y=g.get("map"),_=g.get("aspectScale"),x=!0,S=s.retrieveMap(y);S&&S[0]&&S[0].type==="svg"?(_==null&&(_=1),x=!1):_==null&&(_=.75);var b=new a(y+m,y,g.get("nameMap"),x);b.aspectScale=_,b.zoomLimit=g.get("scaleLimit"),d.push(b),u(b,g),g.coordinateSystem=b,b.model=g,b.resize=l,b.resize(g,c)}),f.eachSeries(function(g){var m=g.get("coordinateSystem");if(m==="geo"){var y=g.get("geoIndex")||0;g.coordinateSystem=d[y]}});var p={};return f.eachSeriesByType("map",function(g){if(!g.getHostGeoModel()){var m=g.getMapType();p[m]=p[m]||[],p[m].push(g)}}),e.each(p,function(g,m){var y=e.map(g,function(x){return x.get("nameMap")}),_=new a(m,m,e.mergeAll(y));_.zoomLimit=e.retrieve.apply(null,e.map(g,function(x){return x.get("scaleLimit")})),d.push(_),_.resize=l,_.aspectScale=g[0].get("aspectScale"),_.resize(g[0],c),e.each(g,function(x){x.coordinateSystem=_,u(_,x)})}),d},getFilledRegions:function(f,c,d){for(var p=(f||[]).slice(),g=e.createHashMap(),m=0;mu&&(u=h.height)}this.height=u+1},getNodeById:function(l){if(this.getId()===l)return this;for(var u=0,v=this.children,h=v.length;u=0&&this.hostTree.data.setItemLayout(this.dataIndex,l,u)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(l){if(!(this.dataIndex<0)){var u=this.hostTree,v=u.data.getItemModel(this.dataIndex);return v.getModel(l)}},setVisual:function(l,u){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,l,u)},getVisual:function(l,u){return this.hostTree.data.getItemVisual(this.dataIndex,l,u)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(l){for(var u=l.parentNode;u;){if(u===this)return!0;u=u.parentNode}return!1},isDescendantOf:function(l){return l!==this&&l.isAncestorOf(this)}};function n(l){this.root,this.data,this._nodes=[],this.hostModel=l}n.prototype={constructor:n,type:"tree",eachNode:function(l,u,v){this.root.eachNode(l,u,v)},getNodeByDataIndex:function(l){var u=this.data.getRawIndex(l);return this._nodes[u]},getNodeByName:function(l){return this.root.getNodeByName(l)},update:function(){for(var l=this.data,u=this._nodes,v=0,h=u.length;vf&&(f=p.depth)});var c=o.expandAndCollapse,d=c&&o.initialTreeDepth>=0?o.initialTreeDepth:f;return v.root.eachNode("preorder",function(p){var g=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=g&&g.collapsed!=null?!g.collapsed:p.depth<=d}),v.data},getOrient:function(){var o=this.get("orient");return o==="horizontal"?o="LR":o==="vertical"&&(o="TB"),o},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o},formatTooltip:function(o){for(var s=this.getData().tree,l=s.root.children[0],u=s.getNodeByDataIndex(o),v=u.getValue(),h=u.name;u&&u!==l;)h=u.parentNode.name+"."+h,u=u.parentNode;return a(h+(isNaN(v)||v==null?"":" : "+v))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});return gx=n,gx}var Gn={},fV;function p$(){if(fV)return Gn;fV=1;var r=Ut();function t(d){d.hierNode={defaultAncestor:null,ancestor:d,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var p=[d],g,m;g=p.pop();)if(m=g.children,g.isExpand&&m.length)for(var y=m.length,_=y-1;_>=0;_--){var x=m[_];x.hierNode={defaultAncestor:null,ancestor:x,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},p.push(x)}}function e(d,p){var g=d.isExpand?d.children:[],m=d.parentNode.children,y=d.hierNode.i?m[d.hierNode.i-1]:null;if(g.length){s(d);var _=(g[0].hierNode.prelim+g[g.length-1].hierNode.prelim)/2;y?(d.hierNode.prelim=y.hierNode.prelim+p(d,y),d.hierNode.modifier=d.hierNode.prelim-_):d.hierNode.prelim=_}else y&&(d.hierNode.prelim=y.hierNode.prelim+p(d,y));d.parentNode.hierNode.defaultAncestor=l(d,y,d.parentNode.hierNode.defaultAncestor||m[0],p)}function a(d){var p=d.hierNode.prelim+d.parentNode.hierNode.modifier;d.setLayout({x:p},!0),d.hierNode.modifier+=d.parentNode.hierNode.modifier}function i(d){return arguments.length?d:c}function n(d,p){var g={};return d-=Math.PI/2,g.x=p*Math.cos(d),g.y=p*Math.sin(d),g}function o(d,p){return r.getLayoutRect(d.getBoxLayoutParams(),{width:p.getWidth(),height:p.getHeight()})}function s(d){for(var p=d.children,g=p.length,m=0,y=0;--g>=0;){var _=p[g];_.hierNode.prelim+=m,_.hierNode.modifier+=m,y+=_.hierNode.change,m+=_.hierNode.shift+y}}function l(d,p,g,m){if(p){for(var y=d,_=d,x=_.parentNode.children[0],S=p,b=y.hierNode.modifier,w=_.hierNode.modifier,A=x.hierNode.modifier,T=S.hierNode.modifier;S=u(S),_=v(_),S&&_;){y=u(y),x=v(x),y.hierNode.ancestor=d;var C=S.hierNode.prelim+T-_.hierNode.prelim-w+m(S,_);C>0&&(f(h(S,d,g),d,C),w+=C,b+=C),T+=S.hierNode.modifier,w+=_.hierNode.modifier,b+=y.hierNode.modifier,A+=x.hierNode.modifier}S&&!u(y)&&(y.hierNode.thread=S,y.hierNode.modifier+=T-b),_&&!v(x)&&(x.hierNode.thread=_,x.hierNode.modifier+=w-A,g=d)}return g}function u(d){var p=d.children;return p.length&&d.isExpand?p[p.length-1]:d.hierNode.thread}function v(d){var p=d.children;return p.length&&d.isExpand?p[0]:d.hierNode.thread}function h(d,p,g){return d.hierNode.ancestor.parentNode===p.parentNode?d.hierNode.ancestor:g}function f(d,p,g){var m=g/(p.hierNode.i-d.hierNode.i);p.hierNode.change-=m,p.hierNode.shift+=g,p.hierNode.modifier+=g,p.hierNode.prelim+=g,d.hierNode.change+=m}function c(d,p){return d.parentNode===p.parentNode?1:2}return Gn.init=t,Gn.firstWalk=e,Gn.secondWalk=a,Gn.separation=i,Gn.radialCoordinate=n,Gn.getViewRect=o,Gn}var mx,cV;function hme(){if(cV)return mx;cV=1;var r=ie(),t=qe(),e=gg(),a=p$(),i=a.radialCoordinate,n=Pe(),o=uf(),s=hD(),l=uD(),u=xf(),v=Sg(),h=v.onIrrelevantElement,f=It();f.__DEV__;var c=st(),d=c.parsePercent,p=t.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(w,A){var T=A.childPoints,C=T.length,M=A.parentPoint,L=T[0],D=T[C-1];if(C===1){w.moveTo(M[0],M[1]),w.lineTo(L[0],L[1]);return}var P=A.orient,I=P==="TB"||P==="BT"?0:1,R=1-I,E=d(A.forkPosition,1),k=[];k[I]=M[I],k[R]=M[R]+(D[R]-M[R])*E,w.moveTo(M[0],M[1]),w.lineTo(k[0],k[1]),w.moveTo(L[0],L[1]),k[I]=L[I],w.lineTo(k[0],k[1]),k[I]=D[I],w.lineTo(k[0],k[1]),w.lineTo(D[0],D[1]);for(var B=1;BG.x,U||(H=H-Math.PI));var Y=U?"left":"right",X=R.labelModel.get("rotate"),K=X*(Math.PI/180);O.setStyle({textPosition:R.labelModel.get("position")||Y,textRotation:X==null?-H:K,textOrigin:"center",verticalAlign:"middle"})}x(M,P,E,T,V,F,N,C,R)}function x(w,A,T,C,M,L,D,P,I){var R=I.edgeShape,E=C.__edge;if(R==="curve")A.parentNode&&A.parentNode!==T&&(E||(E=C.__edge=new t.BezierCurve({shape:b(I,M,M),style:r.defaults({opacity:0,strokeNoScale:!0},I.lineStyle)})),t.updateProps(E,{shape:b(I,L,D),style:r.defaults({opacity:1},I.lineStyle)},w));else if(R==="polyline"&&I.layout==="orthogonal"&&A!==T&&A.children&&A.children.length!==0&&A.isExpand===!0){for(var k=A.children,B=[],F=0;F=0;s--)i.push(o[s])}}return Ec.eachAfter=r,Ec.eachBefore=t,Ec}var yx,mV;function dme(){if(mV)return yx;mV=1;var r=cme(),t=r.eachAfter,e=r.eachBefore,a=p$(),i=a.init,n=a.firstWalk,o=a.secondWalk,s=a.separation,l=a.radialCoordinate,u=a.getViewRect;function v(f,c){f.eachSeriesByType("tree",function(d){h(d,c)})}function h(f,c){var d=u(f,c);f.layoutInfo=d;var p=f.get("layout"),g=0,m=0,y=null;p==="radial"?(g=2*Math.PI,m=Math.min(d.height,d.width)/2,y=s(function(I,R){return(I.parentNode===R.parentNode?1:2)/I.depth})):(g=d.width,m=d.height,y=s());var _=f.getData().tree.root,x=_.children[0];if(x){i(_),t(x,n,y),_.hierNode.modifier=-x.hierNode.prelim,e(x,o);var S=x,b=x,w=x;e(x,function(I){var R=I.getLayout().x;Rb.getLayout().x&&(b=I),I.depth>w.depth&&(w=I)});var A=S===b?1:y(S,b)/2,T=A-S.getLayout().x,C=0,M=0,L=0,D=0;if(p==="radial")C=g/(b.getLayout().x+A+T),M=m/(w.depth-1||1),e(x,function(I){L=(I.getLayout().x+T)*C,D=(I.depth-1)*M;var R=l(L,D);I.setLayout({x:R.x,y:R.y,rawX:L,rawY:D},!0)});else{var P=f.getOrient();P==="RL"||P==="LR"?(M=m/(b.getLayout().x+A+T),C=g/(w.depth-1||1),e(x,function(I){D=(I.getLayout().x+T)*M,L=P==="LR"?(I.depth-1)*C:g-(I.depth-1)*C,I.setLayout({x:L,y:D},!0)})):(P==="TB"||P==="BT")&&(C=g/(b.getLayout().x+A+T),M=m/(w.depth-1||1),e(x,function(I){L=(I.getLayout().x+T)*C,D=P==="TB"?(I.depth-1)*M:m-(I.depth-1)*M,I.setLayout({x:L,y:D},!0)}))}}}return yx=v,yx}var yV;function pme(){if(yV)return lV;yV=1;var r=Pe();vme(),hme(),fme();var t=Xs(),e=dme();return r.registerVisual(t("tree","circle")),r.registerLayout(e),lV}var _V={},wl={},xV;function Qs(){if(xV)return wl;xV=1;var r=ie();function t(n,o,s){if(n&&r.indexOf(o,n.type)>=0){var l=s.getData().tree.root,u=n.targetNode;if(typeof u=="string"&&(u=l.getNodeById(u)),u&&l.contains(u))return{node:u};var v=n.targetNodeId;if(v!=null&&(u=l.getNodeById(v)))return{node:u}}}function e(n){for(var o=[];n;)n=n.parentNode,n&&o.push(n);return o.reverse()}function a(n,o){var s=e(n);return r.indexOf(s,o)>=0}function i(n,o){for(var s=[];n;){var l=n.dataIndex;s.push({name:n.name,dataIndex:l,value:o.getRawValue(l)}),n=n.parentNode}return s.reverse(),s}return wl.retrieveTargetInfo=t,wl.getPathToRoot=e,wl.aboveViewRoot=a,wl.wrapTreePathInfo=i,wl}var _x,SV;function gme(){if(SV)return _x;SV=1;var r=ie(),t=Ir(),e=cD(),a=gr(),i=Yt(),n=i.encodeHTML,o=i.addCommas,s=Qs(),l=s.wrapTreePathInfo,u=t.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(f,c){var d={name:f.name,children:f.data};v(d);var p=f.levels||[],g=this.designatedVisualItemStyle={},m=new a({itemStyle:g},this,c);p=f.levels=h(p,c);var y=r.map(p||[],function(S){return new a(S,m,c)},this),_=e.createTree(d,this,x);function x(S){S.wrapMethod("getItemModel",function(b,w){var A=_.getNodeByDataIndex(w),T=y[A.depth];return b.parentModel=T||m,b})}return _.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(f){var c=this.getData(),d=this.getRawValue(f),p=r.isArray(d)?o(d[0]):o(d),g=c.getName(f);return n(g+": "+p)},getDataParams:function(f){var c=t.prototype.getDataParams.apply(this,arguments),d=this.getData().tree.getNodeByDataIndex(f);return c.treePathInfo=l(d,this),c},setLayoutInfo:function(f){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,f)},mapIdToIndex:function(f){var c=this._idIndexMap;c||(c=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var d=c.get(f);return d==null&&c.set(f,d=this._idIndexMapCount++),d},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(f){f?this._viewRoot=f:f=this._viewRoot;var c=this.getRawData().tree.root;(!f||f!==c&&!c.contains(f))&&(this._viewRoot=c)}});function v(f){var c=0;r.each(f.children,function(p){v(p);var g=p.value;r.isArray(g)&&(g=g[0]),c+=g});var d=f.value;r.isArray(d)&&(d=d[0]),(d==null||isNaN(d))&&(d=c),d<0&&(d=0),r.isArray(f.value)?f.value[0]=d:f.value=d}function h(f,c){var d=c.get("color");if(d){f=f||[];var p;if(r.each(f,function(m){var y=new a(m),_=y.get("color");(y.get("itemStyle.color")||_&&_!=="none")&&(p=!0)}),!p){var g=f[0]||(f[0]={});g.color=d.slice()}return f}}return _x=u,_x}var xx,bV;function mme(){if(bV)return xx;bV=1;var r=qe(),t=Ut(),e=ie(),a=Qs(),i=a.wrapTreePathInfo,n=8,o=8,s=5;function l(f){this.group=new r.Group,f.add(this.group)}l.prototype={constructor:l,render:function(f,c,d,p){var g=f.getModel("breadcrumb"),m=this.group;if(m.removeAll(),!(!g.get("show")||!d)){var y=g.getModel("itemStyle"),_=y.getModel("textStyle"),x={pos:{left:g.get("left"),right:g.get("right"),top:g.get("top"),bottom:g.get("bottom")},box:{width:c.getWidth(),height:c.getHeight()},emptyItemWidth:g.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(d,x,_),this._renderContent(f,x,y,_,p),t.positionElement(m,x.pos,x.box)}},_prepare:function(f,c,d){for(var p=f;p;p=p.parentNode){var g=p.getModel().get("name"),m=d.getTextRect(g),y=Math.max(m.width+n*2,c.emptyItemWidth);c.totalWidth+=y+o,c.renderList.push({node:p,text:g,width:y})}},_renderContent:function(f,c,d,p,g){for(var m=0,y=c.emptyItemWidth,_=f.get("breadcrumb.height"),x=t.getAvailableSize(c.pos,c.box),S=c.totalWidth,b=c.renderList,w=b.length-1;w>=0;w--){var A=b[w],T=A.node,C=A.width,M=A.text;S>x.width&&(S-=C-y,C=y,M=null);var L=new r.Polygon({shape:{points:u(m,0,C,_,w===b.length-1,w===0)},style:e.defaults(d.getItemStyle(),{lineJoin:"bevel",text:M,textFill:p.getTextColor(),textFont:p.getFont()}),z:10,onclick:e.curry(g,T)});this.group.add(L),v(L,f,T),m+=C+o}},remove:function(){this.group.removeAll()}};function u(f,c,d,p,g,m){var y=[[g?f:f-s,c],[f+d,c],[f+d,c+p],[g?f:f-s,c+p]];return!m&&y.splice(2,0,[f+d+s,c+p/2]),!g&&y.push([f,c+p/2]),y}function v(f,c,d){f.eventData={componentType:"series",componentSubType:"treemap",componentIndex:c.componentIndex,seriesIndex:c.componentIndex,seriesName:c.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:d&&d.dataIndex,name:d&&d.name},treePathInfo:d&&i(d,c)}}var h=l;return xx=h,xx}var Sx={},wV;function yme(){if(wV)return Sx;wV=1;var r=ie();function t(){var e=[],a={},i;return{add:function(n,o,s,l,u){return r.isString(l)&&(u=l,l=0),a[n.id]?!1:(a[n.id]=1,e.push({el:n,target:o,time:s,delay:l,easing:u}),!0)},done:function(n){return i=n,this},start:function(){for(var n=e.length,o=0,s=e.length;om||Math.abs(I.dy)>m)){var R=this.seriesModel.getData().tree.root;if(!R)return;var E=R.getLayout();if(!E)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:E.x+I.dx,y:E.y+I.dy,width:E.width,height:E.height}})}},_onZoom:function(I){var R=I.originX,E=I.originY;if(this._state!=="animating"){var k=this.seriesModel.getData().tree.root;if(!k)return;var B=k.getLayout();if(!B)return;var F=new s(B.x,B.y,B.width,B.height),V=this.seriesModel.layoutInfo;R-=V.x,E-=V.y;var N=l.create();l.translate(N,N,[-R,-E]),l.scale(N,N,[I.scale,I.scale]),l.translate(N,N,[R,E]),F.applyTransform(N),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(I){I.on("click",function(R){if(this._state==="ready"){var E=this.seriesModel.get("nodeClick",!0);if(E){var k=this.findTarget(R.offsetX,R.offsetY);if(k){var B=k.node;if(B.getLayout().isLeafRoot)this._rootToNode(k);else if(E==="zoomToNode")this._zoomToNode(k);else if(E==="link"){var F=B.hostTree.data.getItemModel(B.dataIndex),V=F.get("link",!0),N=F.get("target",!0)||"blank";V&&f(V,N)}}}}},this)},_renderBreadcrumb:function(I,R,E){E||(E=I.get("leafDepth",!0)!=null?{node:I.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),E||(E={node:I.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new n(this.group))).render(I,R,E.node,c(k,this));function k(B){this._state!=="animating"&&(i.aboveViewRoot(I.getViewRoot(),B)?this._rootToNode({node:B}):this._zoomToNode({node:B}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=L(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(I){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:I.node})},_rootToNode:function(I){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:I.node})},findTarget:function(I,R){var E,k=this.seriesModel.getViewRoot();return k.eachNode({attr:"viewChildren",order:"preorder"},function(B){var F=this._storage.background[B.getRawIndex()];if(F){var V=F.transformCoordToLocal(I,R),N=F.shape;if(N.x<=V[0]&&V[0]<=N.x+N.width&&N.y<=V[1]&&V[1]<=N.y+N.height)E={node:B,offsetX:V[0],offsetY:V[1]};else return!1}},this),E}});function L(){return{nodeGroup:[],background:[],content:[]}}function D(I,R,E,k,B,F,V,N,O,z){if(!V)return;var G=V.getLayout(),q=I.getData();if(q.setItemGraphicEl(V.dataIndex,null),!G||!G.isInView)return;var H=G.width,U=G.height,W=G.borderWidth,Y=G.invisible,X=V.getRawIndex(),K=N&&N.getRawIndex(),Q=V.viewChildren,j=G.upperHeight,te=Q&&Q.length,Z=V.getModel("itemStyle"),ee=V.getModel("emphasis.itemStyle"),le=ue("nodeGroup",d);if(!le)return;if(O.add(le),le.attr("position",[G.x||0,G.y||0]),le.__tmNodeWidth=H,le.__tmNodeHeight=U,G.isAboveViewRoot)return le;var oe=V.getModel(),fe=ue("background",p,z,w);if(fe&&ve(le,fe,te&&G.upperLabelHeight),te)e.isHighDownDispatcher(le)&&e.setAsHighDownDispatcher(le,!1),fe&&(e.setAsHighDownDispatcher(fe,!0),q.setItemGraphicEl(V.dataIndex,fe));else{var se=ue("content",p,z,A);se&&ye(le,se),fe&&e.isHighDownDispatcher(fe)&&e.setAsHighDownDispatcher(fe,!1),e.setAsHighDownDispatcher(le,!0),q.setItemGraphicEl(V.dataIndex,le)}return le;function ve(ge,pe,Ce){if(pe.dataIndex=V.dataIndex,pe.seriesIndex=I.seriesIndex,pe.setShape({x:0,y:0,width:H,height:U}),Y)Me(pe);else{pe.invisible=!1;var ze=V.getVisual("borderColor",!0),Ve=ee.get("borderColor"),ke=C(Z);ke.fill=ze;var lt=T(ee);if(lt.fill=Ve,Ce){var dt=H-2*W;J(ke,lt,ze,dt,j,{x:W,y:0,width:dt,height:j})}else ke.text=lt.text=null;pe.setStyle(ke),e.setElementHoverStyle(pe,lt)}ge.add(pe)}function ye(ge,pe){pe.dataIndex=V.dataIndex,pe.seriesIndex=I.seriesIndex;var Ce=Math.max(H-2*W,0),ze=Math.max(U-2*W,0);if(pe.culling=!0,pe.setShape({x:W,y:W,width:Ce,height:ze}),Y)Me(pe);else{pe.invisible=!1;var Ve=V.getVisual("color",!0),ke=C(Z);ke.fill=Ve;var lt=T(ee);J(ke,lt,Ve,Ce,ze),pe.setStyle(ke),e.setElementHoverStyle(pe,lt)}ge.add(pe)}function Me(ge){!ge.invisible&&F.push(ge)}function J(ge,pe,Ce,ze,Ve,ke){var lt=oe.get("name"),dt=oe.getModel(ke?x:y),Dt=oe.getModel(ke?S:_),Tt=dt.getShallow("show");e.setLabelStyle(ge,pe,dt,Dt,{defaultText:Tt?lt:null,autoColor:Ce,isRectText:!0,labelFetcher:I,labelDataIndex:V.dataIndex,labelProp:ke?"upperLabel":"label"}),ne(ge,ke,G),ne(pe,ke,G),ke&&(ge.textRect=t.clone(ke)),ge.truncate=Tt&&dt.get("ellipsis")?{outerWidth:ze,outerHeight:Ve,minChar:2}:null}function ne(ge,pe,Ce){var ze=ge.text;if(!pe&&Ce.isLeafRoot&&ze!=null){var Ve=I.get("drillDownIcon",!0);ge.text=Ve?Ve+" "+ze:ze}}function ue(ge,pe,Ce,ze){var Ve=K!=null&&E[ge][K],ke=B[ge];return Ve?(E[ge][K]=null,me(ke,Ve,ge)):Y||(Ve=new pe({z:P(Ce,ze)}),Ve.__tmDepth=Ce,Ve.__tmStorageName=ge,xe(ke,Ve,ge)),R[ge][X]=Ve}function me(ge,pe,Ce){var ze=ge[X]={};ze.old=Ce==="nodeGroup"?pe.position.slice():t.extend({},pe.shape)}function xe(ge,pe,Ce){var ze=ge[X]={},Ve=V.parentNode;if(Ve&&(!k||k.direction==="drillDown")){var ke=0,lt=0,dt=B.background[Ve.getRawIndex()];!k&&dt&&dt.old&&(ke=dt.old.width,lt=dt.old.height),ze.old=Ce==="nodeGroup"?[0,lt]:{x:ke,y:lt,width:0,height:0}}ze.fadein=Ce!=="nodeGroup"}}function P(I,R){var E=I*b+R;return(E-1)/E}return bx=M,bx}var AV={},CV;function xme(){if(CV)return AV;CV=1;for(var r=Pe(),t=Qs(),e=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],i=0;i=0;L--)T[L]==null&&(delete C[A[L]],A.pop())}function h(w,A){var T=w.visual,C=[];r.isObject(T)?i(T,function(L){C.push(L)}):T!=null&&C.push(T);var M={color:1,symbol:1};!A&&C.length===1&&!M.hasOwnProperty(w.type)&&(C[1]=C[0]),_(w,C)}function f(w){return{applyVisual:function(A,T,C){A=this.mapValueToVisual(A),C("color",w(T("color"),A))},_doMap:m([0,1])}}function c(w){var A=this.option.visual;return A[Math.round(a(w,[0,1],[0,A.length-1],!0))]||{}}function d(w){return function(A,T,C){C(w,this.mapValueToVisual(A))}}function p(w){var A=this.option.visual;return A[this.option.loop&&w!==o?w%A.length:w]}function g(){return this.option.visual[0]}function m(w){return{linear:function(A){return a(A,w,this.option.visual,!0)},category:p,piecewise:function(A,T){var C=y.call(this,T);return C==null&&(C=a(A,w,this.option.visual,!0)),C},fixed:g}}function y(w){var A=this.option,T=A.pieceList;if(A.hasSpecialVisual){var C=s.findPieceIndex(w,T),M=T[C];if(M&&M.visual)return M.visual[this.type]}}function _(w,A){return w.visual=A,w.type==="color"&&(w.parsedVisual=r.map(A,function(T){return t.parse(T)})),A}var x={linear:function(w){return a(w,this.option.dataExtent,[0,1],!0)},piecewise:function(w){var A=this.option.pieceList,T=s.findPieceIndex(w,A,!0);if(T!=null)return a(T,[0,A.length-1],[0,1],!0)},category:function(w){var A=this.option.categories?this.option.categoryMap[w]:w;return A==null?o:A},fixed:r.noop};s.listVisualTypes=function(){var w=[];return r.each(l,function(A,T){w.push(T)}),w},s.addVisualHandler=function(w,A){l[w]=A},s.isValidType=function(w){return l.hasOwnProperty(w)},s.eachVisual=function(w,A,T){r.isObject(w)?r.each(w,A,T):A.call(T,w)},s.mapVisual=function(w,A,T){var C,M=r.isArray(w)?[]:r.isObject(w)?{}:(C=!0,null);return s.eachVisual(w,function(L,D){var P=A.call(T,L,D);C?M=P:M[D]=P}),M},s.retrieveVisuals=function(w){var A={},T;return w&&i(l,function(C,M){w.hasOwnProperty(M)&&(A[M]=w[M],T=!0)}),T?A:null},s.prepareVisualTypes=function(w){if(n(w)){var A=[];i(w,function(T,C){A.push(C)}),w=A}else if(r.isArray(w))w=w.slice();else return[];return w.sort(function(T,C){return C==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),w},s.dependsOn=function(w,A){return A==="color"?!!(w&&w.indexOf(A)===0):w===A},s.findPieceIndex=function(w,A,T){for(var C,M=1/0,L=0,D=A.length;L=g.length||M===g[M.depth]){var D=c(y,S,M,L,C,m);o(M,D,g,m)}})}}}function s(d,p,g){var m=e.extend({},p),y=g.designatedVisualItemStyle;return e.each(["color","colorAlpha","colorSaturation"],function(_){y[_]=p[_];var x=d.get(_);y[_]=null,x!=null&&(m[_]=x)}),m}function l(d){var p=v(d,"color");if(p){var g=v(d,"colorAlpha"),m=v(d,"colorSaturation");return m&&(p=t.modifyHSL(p,null,null,m)),g&&(p=t.modifyAlpha(p,g)),p}}function u(d,p){return p!=null?t.modifyHSL(p,null,null,d):null}function v(d,p){var g=d[p];if(g!=null&&g!=="none")return g}function h(d,p,g,m,y,_){if(!(!_||!_.length)){var x=f(p,"color")||y.color!=null&&y.color!=="none"&&(f(p,"colorAlpha")||f(p,"colorSaturation"));if(x){var S=p.get("visualMin"),b=p.get("visualMax"),w=g.dataExtent.slice();S!=null&&Sw[1]&&(w[1]=b);var A=p.get("colorMappingBy"),T={type:x.name,dataExtent:w,visual:x.range};T.type==="color"&&(A==="index"||A==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var C=new r(T);return C.__drColorMappingBy=A,C}}}function f(d,p){var g=d.get(p);return a(g)&&g.length?{name:p,range:g}:null}function c(d,p,g,m,y,_){var x=e.extend({},p);if(y){var S=y.type,b=S==="color"&&y.__drColorMappingBy,w=b==="index"?m:b==="id"?_.mapIdToIndex(g.getId()):g.getValue(d.get("visualDimension"));x[S]=y.mapValueToVisual(w)}return x}return Ax=n,Ax}var Cx,LV;function bme(){if(LV)return Cx;LV=1;var r=ie(),t=rr(),e=st(),a=e.parsePercent,i=e.MAX_SAFE_INTEGER,n=Ut(),o=Qs(),s=Math.max,l=Math.min,u=r.retrieve,v=r.each,h=["itemStyle","borderWidth"],f=["itemStyle","gapWidth"],c=["upperLabel","show"],d=["upperLabel","height"],p={seriesType:"treemap",reset:function(M,L,D,P){var I=D.getWidth(),R=D.getHeight(),E=M.option,k=n.getLayoutRect(M.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()}),B=E.size||[],F=a(u(k.width,B[0]),I),V=a(u(k.height,B[1]),R),N=P&&P.type,O=["treemapZoomToNode","treemapRootToNode"],z=o.retrieveTargetInfo(P,O,M),G=N==="treemapRender"||N==="treemapMove"?P.rootRect:null,q=M.getViewRoot(),H=o.getPathToRoot(q);if(N!=="treemapMove"){var U=N==="treemapZoomToNode"?w(M,z,q,F,V):G?[G.width,G.height]:[F,V],W=E.sort;W&&W!=="asc"&&W!=="desc"&&(W="desc");var Y={squareRatio:E.squareRatio,sort:W,leafDepth:E.leafDepth};q.hostTree.clearLayouts();var X={x:0,y:0,width:U[0],height:U[1],area:U[0]*U[1]};q.setLayout(X),g(q,Y,!1,0);var X=q.getLayout();v(H,function(Q,j){var te=(H[j+1]||q).getValue();Q.setLayout(r.extend({dataExtent:[te,te],borderWidth:0,upperHeight:0},X))})}var K=M.getData().tree.root;K.setLayout(A(k,G,z),!0),M.setLayoutInfo(k),T(K,new t(-k.x,-k.y,I,R),H,q,0)}};function g(M,L,D,P){var I,R;if(!M.isRemoved()){var E=M.getLayout();I=E.width,R=E.height;var z=M.getModel(),k=z.get(h),B=z.get(f)/2,F=C(z),V=Math.max(k,F),N=k-B,O=V-B,z=M.getModel();M.setLayout({borderWidth:k,upperHeight:V,upperLabelHeight:F},!0),I=s(I-2*N,0),R=s(R-N-O,0);var G=I*R,q=m(M,z,G,L,D,P);if(q.length){var H={x:N,y:O,width:I,height:R},U=l(I,R),W=1/0,Y=[];Y.area=0;for(var X=0,K=q.length;X=0;B--){var F=I[P==="asc"?E-B-1:B].getValue();F/D*Lk[1]&&(k[1]=V)})}return{sum:P,dataExtent:k}}function S(M,L,D){for(var P=0,I=1/0,R=0,E,k=M.length;RP&&(P=E));var B=M.area*M.area,F=L*L*D;return B?s(F*P/B,B/(F*I)):1/0}function b(M,L,D,P,I){var R=L===D.width?0:1,E=1-R,k=["x","y"],B=["width","height"],F=D[k[R]],V=L?M.area/L:0;(I||V>D[B[E]])&&(V=D[B[E]]);for(var N=0,O=M.length;Ni&&(F=i),R=k}F=0&&h.call(f,c[p],p)},o.eachEdge=function(h,f){for(var c=this.edges,d=c.length,p=0;p=0&&c[p].node1.dataIndex>=0&&c[p].node2.dataIndex>=0&&h.call(f,c[p],p)},o.breadthFirstTraverse=function(h,f,c,d){if(s.isInstance(f)||(f=this._nodesMap[i(f)]),!!f){for(var p=c==="out"?"outEdges":c==="in"?"inEdges":"edges",g=0;g=0&&y.node2.dataIndex>=0});for(var p=0,g=d.length;p=0&&this[h][f].setItemVisual(this.dataIndex,c,d)},getVisual:function(c,d){return this[h][f].getItemVisual(this.dataIndex,c,d)},setLayout:function(c,d){this.dataIndex>=0&&this[h][f].setItemLayout(this.dataIndex,c,d)},getLayout:function(){return this[h][f].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[h][f].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[h][f].getRawIndex(this.dataIndex)}}};t.mixin(s,u("hostGraph","data")),t.mixin(l,u("hostGraph","edgeData")),n.Node=s,n.Edge=l,a(s),a(l);var v=n;return Mx=v,Mx}var Dx,EV;function g$(){if(EV)return Dx;EV=1;var r=ie(),t=ei(),e=Tme(),a=d$(),i=Mu(),n=bi(),o=In();function s(l,u,v,h,f){for(var c=new e(h),d=0;d "+x)),m++)}var S=v.get("coordinateSystem"),b;if(S==="cartesian2d"||S==="polar")b=o(l,v);else{var w=n.get(S),A=w&&w.type!=="view"?w.dimensions||[]:[];r.indexOf(A,"value")<0&&A.concat(["value"]);var T=i(l,{coordDimensions:A});b=new t(T,v),b.initData(l)}var C=new t(["value"],v);return C.initData(g,p),f&&f(b,C),a({mainData:b,struct:c,structAttr:"graph",datas:{node:b,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),c.update(),c}return Dx=s,Dx}var bv={},kV;function bg(){if(kV)return bv;kV=1;var r=ie(),t="-->",e=function(f){return f.get("autoCurveness")||null},a=function(f,c){var d=e(f),p=20,g=[];if(typeof d=="number")p=d;else if(r.isArray(d)){f.__curvenessList=d;return}c>p&&(p=c);var m=p%2?p+2:p+3;g=[];for(var y=0;y ")),_.value&&(w+=" : "+s(_.value)),w}else return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var p=e.map(this.option.categories||[],function(m){return m.value!=null?m:e.extend({value:0},m)}),g=new t(["value"],this);g.initData(p),this._categoriesData=g,this._categoriesModels=g.mapArray(function(m){return g.getItemModel(m,!0)})},setZoom:function(p){this.option.zoom=p},setCenter:function(p){this.option.center=p},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),d=c;return Lx=d,Lx}var Ix,NV;function Cme(){if(NV)return Ix;NV=1;var r=qe(),t=Jt(),e=r.Line.prototype,a=r.BezierCurve.prototype;function i(o){return isNaN(+o.cpx1)||isNaN(+o.cpy1)}var n=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(o,s){this[i(s)?"_buildPathLine":"_buildPathCurve"](o,s)},_buildPathLine:e.buildPath,_buildPathCurve:a.buildPath,pointAt:function(o){return this[i(this.shape)?"_pointAtLine":"_pointAtCurve"](o)},_pointAtLine:e.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(o){var s=this.shape,l=i(s)?[s.x2-s.x1,s.y2-s.y1]:this._tangentAtCurve(o);return t.normalize(l,l)},_tangentAtCurve:a.tangentAt});return Ix=n,Ix}var Px,zV;function dD(){if(zV)return Px;zV=1;var r=ie(),t=Jt(),e=ti(),a=Cme(),i=qe(),n=st(),o=n.round,s=["fromSymbol","toSymbol"];function l(g){return"_"+g+"Type"}function u(g,m,y){var _=m.getItemVisual(y,g);if(!(!_||_==="none")){var x=m.getItemVisual(y,"color"),S=m.getItemVisual(y,g+"Size"),b=m.getItemVisual(y,g+"Rotate");r.isArray(S)||(S=[S,S]);var w=e.createSymbol(_,-S[0]/2,-S[1]/2,S[0],S[1],x);return w.__specifiedRotation=b==null||isNaN(b)?void 0:+b*Math.PI/180||0,w.name=g,w}}function v(g){var m=new a({name:"line",subPixelOptimize:!0});return h(m.shape,g),m}function h(g,m){g.x1=m[0][0],g.y1=m[0][1],g.x2=m[1][0],g.y2=m[1][1],g.percent=1;var y=m[2];y?(g.cpx1=y[0],g.cpy1=y[1]):(g.cpx1=NaN,g.cpy1=NaN)}function f(){var g=this,m=g.childOfName("fromSymbol"),y=g.childOfName("toSymbol"),_=g.childOfName("label");if(!(!m&&!y&&_.ignore)){for(var x=1,S=this.parent;S;)S.scale&&(x/=S.scale[0]),S=S.parent;var b=g.childOfName("line");if(!(!this.__dirty&&!b.__dirty)){var w=b.shape.percent,A=b.pointAt(0),T=b.pointAt(w),C=t.sub([],T,A);if(t.normalize(C,C),m){m.attr("position",A);var M=m.__specifiedRotation;if(M==null){var L=b.tangentAt(0);m.attr("rotation",Math.PI/2-Math.atan2(L[1],L[0]))}else m.attr("rotation",M);m.attr("scale",[x*w,x*w])}if(y){y.attr("position",T);var M=y.__specifiedRotation;if(M==null){var L=b.tangentAt(1);y.attr("rotation",-Math.PI/2-Math.atan2(L[1],L[0]))}else y.attr("rotation",M);y.attr("scale",[x*w,x*w])}if(!_.ignore){_.attr("position",T);var D,P,I,R,E=_.__labelDistance,k=E[0]*x,B=E[1]*x,F=w/2,L=b.tangentAt(F),V=[L[1],-L[0]],N=b.pointAt(F);V[1]>0&&(V[0]=-V[0],V[1]=-V[1]);var O=L[0]<0?-1:1;if(_.__position!=="start"&&_.__position!=="end"){var z=-Math.atan2(L[1],L[0]);T[0].8?"left":C[0]<-.8?"right":"center",I=C[1]>.8?"top":C[1]<-.8?"bottom":"middle";break;case"start":D=[-C[0]*k+A[0],-C[1]*B+A[1]],P=C[0]>.8?"right":C[0]<-.8?"left":"center",I=C[1]>.8?"bottom":C[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":D=[k*O+A[0],A[1]+G],P=L[0]<0?"right":"left",R=[-k*O,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":D=[N[0],N[1]+G],P="center",R=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":D=[-k*O+T[0],T[1]+G],P=L[0]>=0?"right":"left",R=[k*O,-G];break}_.attr({style:{textVerticalAlign:_.__verticalAlign||I,textAlign:_.__textAlign||P},position:D,scale:[x,x],origin:R})}}}}function c(g,m,y){i.Group.call(this),this._createLine(g,m,y)}var d=c.prototype;d.beforeUpdate=f,d._createLine=function(g,m,y){var _=g.hostModel,x=g.getItemLayout(m),S=v(x);S.shape.percent=0,i.initProps(S,{shape:{percent:1}},_,m),this.add(S);var b=new i.Text({name:"label",lineLabelOriginalOpacity:1});this.add(b),r.each(s,function(w){var A=u(w,g,m);this.add(A),this[l(w)]=g.getItemVisual(m,w)},this),this._updateCommonStl(g,m,y)},d.updateData=function(g,m,y){var _=g.hostModel,x=this.childOfName("line"),S=g.getItemLayout(m),b={shape:{}};h(b.shape,S),i.updateProps(x,b,_,m),r.each(s,function(w){var A=g.getItemVisual(m,w),T=l(w);if(this[T]!==A){this.remove(this.childOfName(w));var C=u(w,g,m);this.add(C)}this[T]=A},this),this._updateCommonStl(g,m,y)},d._updateCommonStl=function(g,m,y){var _=g.hostModel,x=this.childOfName("line"),S=y&&y.lineStyle,b=y&&y.hoverLineStyle,w=y&&y.labelModel,A=y&&y.hoverLabelModel;if(!y||g.hasItemOption){var T=g.getItemModel(m);S=T.getModel("lineStyle").getLineStyle(),b=T.getModel("emphasis.lineStyle").getLineStyle(),w=T.getModel("label"),A=T.getModel("emphasis.label")}var C=g.getItemVisual(m,"color"),M=r.retrieve3(g.getItemVisual(m,"opacity"),S.opacity,1);x.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:C,opacity:M},S)),x.hoverStyle=b,r.each(s,function(N){var O=this.childOfName(N);O&&(O.setColor(C),O.setStyle({opacity:M}))},this);var L=w.getShallow("show"),D=A.getShallow("show"),P=this.childOfName("label"),I,R;if((L||D)&&(I=C||"#000",R=_.getFormattedLabel(m,"normal",g.dataType),R==null)){var E=_.getRawValue(m);R=E==null?g.getName(m):isFinite(E)?o(E):E}var k=L?R:null,B=D?r.retrieve2(_.getFormattedLabel(m,"emphasis",g.dataType),R):null,F=P.style;if(k!=null||B!=null){i.setTextStyle(P.style,w,{text:k},{autoColor:I}),P.__textAlign=F.textAlign,P.__verticalAlign=F.textVerticalAlign,P.__position=w.get("position")||"middle";var V=w.get("distance");r.isArray(V)||(V=[V,V]),P.__labelDistance=V}B!=null?P.hoverStyle={text:B,textFill:A.getTextColor(!0),fontStyle:A.getShallow("fontStyle"),fontWeight:A.getShallow("fontWeight"),fontSize:A.getShallow("fontSize"),fontFamily:A.getShallow("fontFamily")}:P.hoverStyle={text:null},P.ignore=!L&&!D,i.setHoverStyle(this)},d.highlight=function(){this.trigger("emphasis")},d.downplay=function(){this.trigger("normal")},d.updateLayout=function(g,m){this.setLinePoints(g.getItemLayout(m))},d.setLinePoints=function(g){var m=this.childOfName("line");h(m.shape,g),m.dirty()},r.inherits(c,i.Group);var p=c;return Px=p,Px}var Rx,BV;function pD(){if(BV)return Rx;BV=1;var r=qe(),t=dD();function e(h){this._ctor=h||t,this.group=new r.Group}var a=e.prototype;a.isPersistent=function(){return!0},a.updateData=function(h){var f=this,c=f.group,d=f._lineData;f._lineData=h,d||c.removeAll();var p=s(h);h.diff(d).add(function(g){i(f,h,g,p)}).update(function(g,m){n(f,d,h,m,g,p)}).remove(function(g){c.remove(d.getItemGraphicEl(g))}).execute()};function i(h,f,c,d){var p=f.getItemLayout(c);if(u(p)){var g=new h._ctor(f,c,d);f.setItemGraphicEl(c,g),h.group.add(g)}}function n(h,f,c,d,p,g){var m=f.getItemGraphicEl(d);if(!u(c.getItemLayout(p))){h.group.remove(m);return}m?m.updateData(c,p,g):m=new h._ctor(c,p,g),c.setItemGraphicEl(p,m),h.group.add(m)}a.updateLayout=function(){var h=this._lineData;h&&h.eachItemGraphicEl(function(f,c){f.updateLayout(h,c)},this)},a.incrementalPrepareUpdate=function(h){this._seriesScope=s(h),this._lineData=null,this.group.removeAll()};function o(h){return h.animators&&h.animators.length>0}a.incrementalUpdate=function(h,f){function c(m){!m.isGroup&&!o(m)&&(m.incremental=m.useHoverLayer=!0)}for(var d=h.start;d=0?_=_+S:_=_-S:C>=0?_=_-S:_=_+S}return _}function h(f,c){var d=[],p=r.quadraticSubdivide,g=[[],[],[]],m=[[],[]],y=[];c/=2,f.eachEdge(function(_,x){var S=_.getLayout(),b=_.getVisual("fromSymbol"),w=_.getVisual("toSymbol");S.__original||(S.__original=[t.clone(S[0]),t.clone(S[1])],S[2]&&S.__original.push(t.clone(S[2])));var A=S.__original;if(S[2]!=null){if(t.copy(g[0],A[0]),t.copy(g[1],A[2]),t.copy(g[2],A[1]),b&&b!=="none"){var T=a(_.node1),C=v(g,A[0],T*c);p(g[0][0],g[1][0],g[2][0],C,d),g[0][0]=d[3],g[1][0]=d[4],p(g[0][1],g[1][1],g[2][1],C,d),g[0][1]=d[3],g[1][1]=d[4]}if(w&&w!=="none"){var T=a(_.node2),C=v(g,A[1],T*c);p(g[0][0],g[1][0],g[2][0],C,d),g[1][0]=d[1],g[2][0]=d[2],p(g[0][1],g[1][1],g[2][1],C,d),g[1][1]=d[1],g[2][1]=d[2]}t.copy(S[0],g[0]),t.copy(S[1],g[2]),t.copy(S[2],g[1])}else{if(t.copy(m[0],A[0]),t.copy(m[1],A[1]),t.sub(y,m[1],m[0]),t.normalize(y,y),b&&b!=="none"){var T=a(_.node1);t.scaleAndAdd(m[0],m[0],y,T*c)}if(w&&w!=="none"){var T=a(_.node2);t.scaleAndAdd(m[1],m[1],y,-T*c)}t.copy(S[0],m[0]),t.copy(S[1],m[1])}})}return Ex=h,Ex}var kx,FV;function Dme(){if(FV)return kx;FV=1;var r=Pe(),t=ie(),e=df(),a=pD(),i=xf(),n=uD(),o=Sg(),s=o.onIrrelevantElement,l=qe(),u=Mme(),v=gD(),h=v.getNodeGlobalScale,f="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function g(x,S){var b=x.getVisual("opacity");return b!=null?b:x.getModel().get(S)}function m(x,S,b){var w=x.getGraphicEl(),A=g(x,S);b!=null&&(A==null&&(A=1),A*=b),w.downplay&&w.downplay(),w.traverse(function(T){if(!T.isGroup){var C=T.lineLabelOriginalOpacity;(C==null||b!=null)&&(C=A),T.setStyle("opacity",C)}})}function y(x,S){var b=g(x,S),w=x.getGraphicEl();w.traverse(function(A){!A.isGroup&&A.setStyle("opacity",b)}),w.highlight&&w.highlight()}var _=r.extendChartView({type:"graph",init:function(x,S){var b=new e,w=new a,A=this.group;this._controller=new i(S.getZr()),this._controllerHost={target:A},A.add(b.group),A.add(w.group),this._symbolDraw=b,this._lineDraw=w,this._firstRender=!0},render:function(x,S,b){var w=this,A=x.coordinateSystem;this._model=x;var T=this._symbolDraw,C=this._lineDraw,M=this.group;if(A.type==="view"){var L={position:A.position,scale:A.scale};this._firstRender?M.attr(L):l.updateProps(M,L,x)}u(x.getGraph(),h(x));var D=x.getData();T.updateData(D);var P=x.getEdgeData();C.updateData(P),this._updateNodeAndLinkScale(),this._updateController(x,S,b),clearTimeout(this._layoutTimeout);var I=x.forceLayout,R=x.get("force.layoutAnimation");I&&this._startForceLayoutIteration(I,R),D.eachItemGraphicEl(function(F,V){var N=D.getItemModel(V);F.off("drag").off("dragend");var O=N.get("draggable");O&&F.on("drag",function(){I&&(I.warmUp(),!this._layouting&&this._startForceLayoutIteration(I,R),I.setFixed(V),D.setItemLayout(V,F.position))},this).on("dragend",function(){I&&I.setUnfixed(V)},this),F.setDraggable(O&&I),F[f]&&F.off("mouseover",F[f]),F[c]&&F.off("mouseout",F[c]),N.get("focusNodeAdjacency")&&(F.on("mouseover",F[f]=function(){w._clearTimer(),b.dispatchAction({type:"focusNodeAdjacency",seriesId:x.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[c]=function(){w._dispatchUnfocus(b)}))},this),D.graph.eachEdge(function(F){var V=F.getGraphicEl();V[f]&&V.off("mouseover",V[f]),V[c]&&V.off("mouseout",V[c]),F.getModel().get("focusNodeAdjacency")&&(V.on("mouseover",V[f]=function(){w._clearTimer(),b.dispatchAction({type:"focusNodeAdjacency",seriesId:x.id,edgeDataIndex:F.dataIndex})}),V.on("mouseout",V[c]=function(){w._dispatchUnfocus(b)}))});var E=x.get("layout")==="circular"&&x.get("circular.rotateLabel"),k=D.getLayout("cx"),B=D.getLayout("cy");D.eachItemGraphicEl(function(F,V){var N=D.getItemModel(V),O=N.get("label.rotate")||0,z=F.getSymbolPath();if(E){var G=D.getItemLayout(V),q=Math.atan2(G[1]-B,G[0]-k);q<0&&(q=Math.PI*2+q);var H=G[0]=o/3?1:2),v=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,v),e.lineTo(a.x+i(l)*s,a.y+n(l)*s),e.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),e.lineTo(a.x-i(l)*s,a.y-n(l)*s),e.lineTo(u,v)}});return Ux=t,Ux}var $x,o5;function Fme(){if(o5)return $x;o5=1;var r=Gme(),t=qe(),e=tn(),a=st(),i=a.parsePercent,n=a.round,o=a.linearMap;function s(f,c){var d=f.get("center"),p=c.getWidth(),g=c.getHeight(),m=Math.min(p,g),y=i(d[0],c.getWidth()),_=i(d[1],c.getHeight()),x=i(f.get("radius"),m/2);return{cx:y,cy:_,r:x}}function l(f,c){return c&&(typeof c=="string"?f=c.replace("{value}",f!=null?f:""):typeof c=="function"&&(f=c(f))),f}var u=Math.PI*2,v=e.extend({type:"gauge",render:function(f,c,d){this.group.removeAll();var p=f.get("axisLine.lineStyle.color"),g=s(f,d);this._renderMain(f,c,d,p,g)},dispose:function(){},_renderMain:function(f,c,d,p,g){for(var m=this.group,y=f.getModel("axisLine"),_=y.getModel("lineStyle"),x=f.get("clockwise"),S=-f.get("startAngle")/180*Math.PI,b=-f.get("endAngle")/180*Math.PI,w=(b-S)%u,A=S,T=_.get("width"),C=y.get("show"),M=0;C&&M=R&&(E===0?0:p[E-1][0]).4?"bottom":"middle",textAlign:O<-.4?"left":O>.4?"right":"center"},{autoColor:U}),silent:!0}))}if(M.get("show")&&N!==D){for(var W=0;W<=P;W++){var O=Math.cos(E),z=Math.sin(E),Y=new t.Line({shape:{x1:O*w+S,y1:z*w+b,x2:O*(w-R)+S,y2:z*(w-R)+b},silent:!0,style:V});V.stroke==="auto"&&Y.setStyle({stroke:p((N+W/P)/D)}),x.add(Y),E+=B}E-=B}else E+=k}},_renderPointer:function(f,c,d,p,g,m,y,_){var x=this.group,S=this._data;if(!f.get("pointer.show")){S&&S.eachItemGraphicEl(function(C){x.remove(C)});return}var b=[+f.get("min"),+f.get("max")],w=[m,y],A=f.getData(),T=A.mapDimension("value");A.diff(S).add(function(C){var M=new r({shape:{angle:m}});t.initProps(M,{shape:{angle:o(A.get(T,C),b,w,!0)}},f),x.add(M),A.setItemGraphicEl(C,M)}).update(function(C,M){var L=S.getItemGraphicEl(M);t.updateProps(L,{shape:{angle:o(A.get(T,C),b,w,!0)}},f),x.add(L),A.setItemGraphicEl(C,L)}).remove(function(C){var M=S.getItemGraphicEl(C);x.remove(M)}).execute(),A.eachItemGraphicEl(function(C,M){var L=A.getItemModel(M),D=L.getModel("pointer");C.setShape({x:g.cx,y:g.cy,width:i(D.get("width"),g.r),r:i(D.get("length"),g.r)}),C.useStyle(L.getModel("itemStyle").getItemStyle()),C.style.fill==="auto"&&C.setStyle("fill",p(o(A.get(T,M),b,[0,1],!0))),t.setHoverStyle(C,L.getModel("emphasis.itemStyle").getItemStyle())}),this._data=A},_renderTitle:function(f,c,d,p,g){var m=f.getData(),y=m.mapDimension("value"),_=f.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),S=g.cx+i(x[0],g.r),b=g.cy+i(x[1],g.r),w=+f.get("min"),A=+f.get("max"),T=f.getData().get(y,0),C=p(o(T,[w,A],[0,1],!0));this.group.add(new t.Text({silent:!0,style:t.setTextStyle({},_,{x:S,y:b,text:m.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:C,forceRich:!0})}))}},_renderDetail:function(f,c,d,p,g){var m=f.getModel("detail"),y=+f.get("min"),_=+f.get("max");if(m.get("show")){var x=m.get("offsetCenter"),S=g.cx+i(x[0],g.r),b=g.cy+i(x[1],g.r),w=i(m.get("width"),g.r),A=i(m.get("height"),g.r),T=f.getData(),C=T.get(T.mapDimension("value"),0),M=p(o(C,[y,_],[0,1],!0));this.group.add(new t.Text({silent:!0,style:t.setTextStyle({},m,{x:S,y:b,text:l(C,m.get("formatter")),textWidth:isNaN(w)?null:w,textHeight:isNaN(A)?null:A,textAlign:"center",textVerticalAlign:"middle"},{autoColor:M,forceRich:!0})}))}}}),h=v;return $x=h,$x}var s5;function Hme(){return s5||(s5=1,Vme(),Fme()),a5}var l5={},Yx,u5;function qme(){if(u5)return Yx;u5=1;var r=Pe(),t=ie(),e=Lu(),a=_t(),i=a.defaultEmphasis,n=Ln(),o=n.makeSeriesEncodeForNameBased,s=yf(),l=r.extendSeriesModel({type:"series.funnel",init:function(v){l.superApply(this,"init",arguments),this.legendVisualProvider=new s(t.bind(this.getData,this),t.bind(this.getRawData,this)),this._defaultLabelLine(v)},getInitialData:function(v,h){return e(this,{coordDimensions:["value"],encodeDefaulter:t.curry(o,this)})},_defaultLabelLine:function(v){i(v,"labelLine",["show"]);var h=v.labelLine,f=v.emphasis.labelLine;h.show=h.show&&v.label.show,f.show=f.show&&v.emphasis.label.show},getDataParams:function(v){var h=this.getData(),f=l.superCall(this,"getDataParams",v),c=h.mapDimension("value"),d=h.getSum(c);return f.percent=d?+(h.get(c,v)/d*100).toFixed(2):0,f.$vars.push("percent"),f},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),u=l;return Yx=u,Yx}var Zx,v5;function Wme(){if(v5)return Zx;v5=1;var r=qe(),t=ie(),e=tn();function a(l,u){r.Group.call(this);var v=new r.Polygon,h=new r.Polyline,f=new r.Text;this.add(v),this.add(h),this.add(f),this.highDownOnUpdate=function(c,d){d==="emphasis"?(h.ignore=h.hoverIgnore,f.ignore=f.hoverIgnore):(h.ignore=h.normalIgnore,f.ignore=f.normalIgnore)},this.updateData(l,u,!0)}var i=a.prototype,n=["itemStyle","opacity"];i.updateData=function(l,u,v){var h=this.childAt(0),f=l.hostModel,c=l.getItemModel(u),d=l.getItemLayout(u),p=l.getItemModel(u).get(n);p=p==null?1:p,h.useStyle({}),v?(h.setShape({points:d.points}),h.setStyle({opacity:0}),r.initProps(h,{style:{opacity:p}},f,u)):r.updateProps(h,{style:{opacity:p},shape:{points:d.points}},f,u);var g=c.getModel("itemStyle"),m=l.getItemVisual(u,"color");h.setStyle(t.defaults({lineJoin:"round",fill:m},g.getItemStyle(["opacity"]))),h.hoverStyle=g.getModel("emphasis").getItemStyle(),this._updateLabel(l,u),r.setHoverStyle(this)},i._updateLabel=function(l,u){var v=this.childAt(1),h=this.childAt(2),f=l.hostModel,c=l.getItemModel(u),d=l.getItemLayout(u),p=d.label,x=l.getItemVisual(u,"color");r.updateProps(v,{shape:{points:p.linePoints||p.linePoints}},f,u),r.updateProps(h,{style:{x:p.x,y:p.y}},f,u),h.attr({rotation:p.rotation,origin:[p.x,p.y],z2:10});var g=c.getModel("label"),m=c.getModel("emphasis.label"),y=c.getModel("labelLine"),_=c.getModel("emphasis.labelLine"),x=l.getItemVisual(u,"color");r.setLabelStyle(h.style,h.hoverStyle={},g,m,{labelFetcher:l.hostModel,labelDataIndex:u,defaultText:l.getName(u),autoColor:x,useInsideStyle:!!p.inside},{textAlign:p.textAlign,textVerticalAlign:p.verticalAlign}),h.ignore=h.normalIgnore=!g.get("show"),h.hoverIgnore=!m.get("show"),v.ignore=v.normalIgnore=!y.get("show"),v.hoverIgnore=!_.get("show"),v.setStyle({stroke:x}),v.setStyle(y.getModel("lineStyle").getLineStyle()),v.hoverStyle=_.getModel("lineStyle").getLineStyle()},t.inherits(a,r.Group);var o=e.extend({type:"funnel",render:function(l,u,v){var h=l.getData(),f=this._data,c=this.group;h.diff(f).add(function(d){var p=new a(h,d);h.setItemGraphicEl(d,p),c.add(p)}).update(function(d,p){var g=f.getItemGraphicEl(p);g.updateData(h,d),c.add(g),h.setItemGraphicEl(d,g)}).remove(function(d){var p=f.getItemGraphicEl(d);c.remove(p)}).execute(),this._data=h},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=o;return Zx=s,Zx}var Xx,h5;function Ume(){if(h5)return Xx;h5=1;var r=It();r.__DEV__;var t=Ut(),e=st(),a=e.parsePercent,i=e.linearMap;function n(u,v){return t.getLayoutRect(u.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()})}function o(u,v){for(var h=u.mapDimension("value"),f=u.mapArray(h,function(m){return m}),c=[],d=v==="ascending",p=0,g=u.count();pl&&(i[1-o]=i[o]+d.sign*l),i}function t(a,i){var n=a[i]-a[1-i];return{span:Math.abs(n),sign:n>0?-1:n<0?1:i?-1:1}}function e(a,i){return Math.min(i[1]!=null?i[1]:1/0,Math.max(i[0]!=null?i[0]:-1/0,a))}return jx=r,jx}var Jx,_5;function Xme(){if(_5)return Jx;_5=1;var r=ie(),t=ha(),e=Ut(),a=wi(),i=Zme(),n=qe(),o=st(),s=Iu(),l=r.each,u=Math.min,v=Math.max,h=Math.floor,f=Math.ceil,c=o.round,d=Math.PI;function p(x,S,b){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=x.dimensions,this._rect,this._model=x,this._init(x,S,b)}p.prototype={type:"parallel",constructor:p,_init:function(x,S,b){var w=x.dimensions,A=x.parallelAxisIndex;l(w,function(T,C){var M=A[C],L=S.getComponent("parallelAxis",M),D=this._axesMap.set(T,new i(T,a.createScaleByModel(L),[0,0],L.get("type"),M)),P=D.type==="category";D.onBand=P&&L.get("boundaryGap"),D.inverse=L.get("inverse"),L.axis=D,D.model=L,D.coordinateSystem=L.coordinateSystem=this},this)},update:function(x,S){this._updateAxesFromSeries(this._model,x)},containPoint:function(x){var S=this._makeLayoutInfo(),b=S.axisBase,w=S.layoutBase,A=S.pixelDimIndex,T=x[1-A],C=x[A];return T>=b&&T<=b+S.axisLength&&C>=w&&C<=w+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(x,S){S.eachSeries(function(b){if(x.contains(b,S)){var w=b.getData();l(this.dimensions,function(A){var T=this._axesMap.get(A);T.scale.unionExtentFromData(w,w.mapDimension(A)),a.niceScaleExtent(T.scale,T.model)},this)}},this)},resize:function(x,S){this._rect=e.getLayoutRect(x.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var x=this._model,S=this._rect,b=["x","y"],w=["width","height"],A=x.get("layout"),T=A==="horizontal"?0:1,C=S[w[T]],M=[0,C],L=this.dimensions.length,D=g(x.get("axisExpandWidth"),M),P=g(x.get("axisExpandCount")||0,[0,L]),I=x.get("axisExpandable")&&L>3&&L>P&&P>1&&D>0&&C>0,R=x.get("axisExpandWindow"),E;if(R)E=g(R[1]-R[0],M),R[1]=R[0]+E;else{E=g(D*(P-1),M);var k=x.get("axisExpandCenter")||h(L/2);R=[D*k-E/2],R[1]=R[0]+E}var B=(C-E)/(L-P);B<3&&(B=0);var F=[h(c(R[0]/D,1))+1,f(c(R[1]/D,1))-1],V=B/D*R[0];return{layout:A,pixelDimIndex:T,layoutBase:S[b[T]],layoutLength:C,axisBase:S[b[1-T]],axisLength:S[w[1-T]],axisExpandable:I,axisExpandWidth:D,axisCollapseWidth:B,axisExpandWindow:R,axisCount:L,winInnerIndices:F,axisExpandWindow0Pos:V}},_layoutAxes:function(){var x=this._rect,S=this._axesMap,b=this.dimensions,w=this._makeLayoutInfo(),A=w.layout;S.each(function(T){var C=[0,w.axisLength],M=T.inverse?1:0;T.setExtent(C[M],C[1-M])}),l(b,function(T,C){var M=(w.axisExpandable?y:m)(C,w),L={horizontal:{x:M.position,y:w.axisLength},vertical:{x:0,y:M.position}},D={horizontal:d/2,vertical:0},P=[L[A].x+x.x,L[A].y+x.y],I=D[A],R=t.create();t.rotate(R,R,I),t.translate(R,R,P),this._axesLayout[T]={position:P,rotation:I,transform:R,axisNameAvailableWidth:M.axisNameAvailableWidth,axisLabelShow:M.axisLabelShow,nameTruncateMaxWidth:M.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(x){return this._axesMap.get(x)},dataToPoint:function(x,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(x),S)},eachActiveState:function(x,S,b,w){b==null&&(b=0),w==null&&(w=x.count());var A=this._axesMap,T=this.dimensions,C=[],M=[];r.each(T,function(B){C.push(x.mapDimension(B)),M.push(A.get(B).model)});for(var L=this.hasAxisBrushed(),D=b;DA*(1-P[0])?(L="jump",M=C-A*(1-P[2])):(M=C-A*P[1])>=0&&(M=C-A*(1-P[1]))<=0&&(M=0),M*=S.axisExpandWidth/D,M?s(M,w,T,"all"):L="none";else{var A=w[1]-w[0],R=T[1]*C/A;w=[v(0,R-A/2)],w[1]=u(T[1],w[0]+A),w[0]=w[1]-A}return{axisExpandWindow:w,behavior:L}}};function g(x,S){return u(v(x,S[0]),S[1])}function m(x,S){var b=S.layoutLength/(S.axisCount-1);return{position:b*x,axisNameAvailableWidth:b,axisLabelShow:!0}}function y(x,S){var b=S.layoutLength,w=S.axisExpandWidth,A=S.axisCount,T=S.axisCollapseWidth,C=S.winInnerIndices,M,L=T,D=!1,P;return x=0;f--)i.asc(h[f])},getActiveState:function(v){var h=this.activeIntervals;if(!h.length)return"normal";if(v==null||isNaN(v))return"inactive";if(h.length===1){var f=h[0];if(f[0]<=v&&v<=f[1])return"active"}else for(var c=0,d=h.length;cc}function F(J){var ne=J.length-1;return ne<0&&(ne=0),[J[0],J[ne]]}function V(J,ne,ue,me){var xe=new a.Group;return xe.add(new a.Rect({name:"main",style:G(ue),silent:!0,draggable:!0,cursor:"move",drift:o(J,ne,xe,"nswe"),ondragend:o(k,ne,{isEnd:!0})})),s(me,function(ge){xe.add(new a.Rect({name:ge,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(J,ne,xe,ge),ondragend:o(k,ne,{isEnd:!0})}))}),xe}function N(J,ne,ue,me){var xe=me.brushStyle.lineWidth||0,ge=v(xe,d),pe=ue[0][0],Ce=ue[1][0],ze=pe-xe/2,Ve=Ce-xe/2,ke=ue[0][1],lt=ue[1][1],dt=ke-ge+xe/2,Dt=lt-ge+xe/2,Tt=ke-pe,Bt=lt-Ce,Vt=Tt+xe,Ke=Bt+xe;z(J,ne,"main",pe,Ce,Tt,Bt),me.transformable&&(z(J,ne,"w",ze,Ve,ge,Ke),z(J,ne,"e",dt,Ve,ge,Ke),z(J,ne,"n",ze,Ve,Vt,ge),z(J,ne,"s",ze,Dt,Vt,ge),z(J,ne,"nw",ze,Ve,ge,ge),z(J,ne,"ne",dt,Ve,ge,ge),z(J,ne,"sw",ze,Dt,ge,ge),z(J,ne,"se",dt,Dt,ge,ge))}function O(J,ne){var ue=ne.__brushOption,me=ue.transformable,xe=ne.childAt(0);xe.useStyle(G(ue)),xe.attr({silent:!me,cursor:me?"move":"default"}),s(["w","e","n","s","se","sw","ne","nw"],function(ge){var pe=ne.childOfName(ge),Ce=U(J,ge);pe&&pe.attr({silent:!me,invisible:!me,cursor:me?m[Ce]+"-resize":null})})}function z(J,ne,ue,me,xe,ge,pe){var Ce=ne.childOfName(ue);Ce&&Ce.setShape(Q(K(J,ne,[[me,xe],[me+ge,xe+pe]])))}function G(J){return t.defaults({strokeNoScale:!0},J.brushStyle)}function q(J,ne,ue,me){var xe=[u(J,ue),u(ne,me)],ge=[v(J,ue),v(ne,me)];return[[xe[0],ge[0]],[xe[1],ge[1]]]}function H(J){return a.getTransform(J.group)}function U(J,ne){if(ne.length>1){ne=ne.split("");var ue=[U(J,ne[0]),U(J,ne[1])];return(ue[0]==="e"||ue[0]==="w")&&ue.reverse(),ue.join("")}else{var me={w:"left",e:"right",n:"top",s:"bottom"},xe={left:"w",right:"e",top:"n",bottom:"s"},ue=a.transformDirection(me[ne],H(J));return xe[ue]}}function W(J,ne,ue,me,xe,ge,pe,Ce){var ze=me.__brushOption,Ve=J(ze.range),ke=X(ue,ge,pe);s(xe.split(""),function(lt){var dt=g[lt];Ve[dt[0]][dt[1]]+=ke[dt[0]]}),ze.range=ne(q(Ve[0][0],Ve[1][0],Ve[0][1],Ve[1][1])),D(ue,me),k(ue,{isEnd:!1})}function Y(J,ne,ue,me,xe){var ge=ne.__brushOption.range,pe=X(J,ue,me);s(ge,function(Ce){Ce[0]+=pe[0],Ce[1]+=pe[1]}),D(J,ne),k(J,{isEnd:!1})}function X(J,ne,ue){var me=J.group,xe=me.transformCoordToLocal(ne,ue),ge=me.transformCoordToLocal(0,0);return[xe[0]-ge[0],xe[1]-ge[1]]}function K(J,ne,ue){var me=R(J,ne);return me&&me!==!0?me.clipPath(ue,J._transform):t.clone(ue)}function Q(J){var ne=u(J[0][0],J[1][0]),ue=u(J[0][1],J[1][1]),me=v(J[0][0],J[1][0]),xe=v(J[0][1],J[1][1]);return{x:ne,y:ue,width:me-ne,height:xe-ue}}function j(J,ne,ue){if(!(!J._brushType||se(J,ne))){var me=J._zr,xe=J._covers,ge=I(J,ne,ue);if(!J._dragging)for(var pe=0;peme.getWidth()||ue<0||ue>me.getHeight()}var ve={lineX:ye(0),lineY:ye(1),rect:{createCover:function(J,ne){return V(o(W,function(ue){return ue},function(ue){return ue}),J,ne,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(J){var ne=F(J);return q(ne[1][0],ne[1][1],ne[0][0],ne[0][1])},updateCoverShape:function(J,ne,ue,me){N(J,ne,ue,me)},updateCommon:O,contain:Z},polygon:{createCover:function(J,ne){var ue=new a.Group;return ue.add(new a.Polyline({name:"main",style:G(ne),silent:!0})),ue},getCreatingRange:function(J){return J},endCreating:function(J,ne){ne.remove(ne.childAt(0)),ne.add(new a.Polygon({name:"main",draggable:!0,drift:o(Y,J,ne),ondragend:o(k,J,{isEnd:!0})}))},updateCoverShape:function(J,ne,ue,me){ne.childAt(0).setShape({points:K(J,ne,ue)})},updateCommon:O,contain:Z}};function ye(J){return{createCover:function(ne,ue){return V(o(W,function(me){var xe=[me,[0,100]];return J&&xe.reverse(),xe},function(me){return me[J]}),ne,ue,[["w","e"],["n","s"]][J])},getCreatingRange:function(ne){var ue=F(ne),me=u(ue[0][J],ue[1][J]),xe=v(ue[0][J],ue[1][J]);return[me,xe]},updateCoverShape:function(ne,ue,me,xe){var ge,pe=R(ne,ue);if(pe!==!0&&pe.getLinearBrushOtherExtent)ge=pe.getLinearBrushOtherExtent(J,ne._transform);else{var Ce=ne._zr;ge=[0,[Ce.getWidth(),Ce.getHeight()][1-J]]}var ze=[me,ge];J&&ze.reverse(),N(ne,ue,ze,xe)},updateCommon:O,contain:Z}}var Me=x;return rS=Me,rS}var wv={},M5;function S$(){if(M5)return wv;M5=1;var r=rr(),t=Sg(),e=t.onIrrelevantElement,a=qe();function i(l){return l=s(l),function(u,v){return a.clipPointsByRect(u,l)}}function n(l,u){return l=s(l),function(v){var h=u!=null?u:v,f=h?l.width:l.height,c=h?l.x:l.y;return[c,c+(f||0)]}}function o(l,u,v){return l=s(l),function(h,f,c){return l.contain(f[0],f[1])&&!e(h,u,v)}}function s(l){return r.create(l)}return wv.makeRectPanelClipPath=i,wv.makeLinearBrushOtherExtent=n,wv.makeRectIsTargetByCursor=o,wv}var aS,D5;function Jme(){if(D5)return aS;D5=1;var r=Pe(),t=ie(),e=bo(),a=mD(),i=S$(),n=qe(),o=["axisLine","axisTickLabel","axisName"],s=r.extendComponentView({type:"parallelAxis",init:function(f,c){s.superApply(this,"init",arguments),(this._brushController=new a(c.getZr())).on("brush",t.bind(this._onBrush,this))},render:function(f,c,d,p){if(!l(f,c,p)){this.axisModel=f,this.api=d,this.group.removeAll();var g=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),!!f.get("show")){var m=v(f,c),y=m.coordinateSystem,_=f.getAreaSelectStyle(),x=_.width,S=f.axis.dim,b=y.getAxisLayout(S),w=t.extend({strokeContainThreshold:x},b),A=new e(f,w);t.each(o,A.add,A),this._axisGroup.add(A.getGroup()),this._refreshBrushController(w,_,f,m,x,d);var T=p&&p.animation===!1?null:f;n.groupTransition(g,this._axisGroup,T)}}},_refreshBrushController:function(f,c,d,p,g,m){var y=d.axis.getExtent(),_=y[1]-y[0],x=Math.min(30,Math.abs(_)*.1),S=n.BoundingRect.create({x:y[0],y:-g/2,width:_,height:g});S.x-=x,S.width+=2*x,this._brushController.mount({enableGlobalPan:!0,rotation:f.rotation,position:f.position}).setPanels([{panelId:"pl",clipPath:i.makeRectPanelClipPath(S),isTargetByCursor:i.makeRectIsTargetByCursor(S,m,p),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:c,removeOnClick:!0}).updateCovers(u(d))},_onBrush:function(f,c){var d=this.axisModel,p=d.axis,g=t.map(f,function(m){return[p.coordToData(m.range[0],!0),p.coordToData(m.range[1],!0)]});(!d.option.realtime===c.isEnd||c.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:d.id,intervals:g})},dispose:function(){this._brushController.dispose()}});function l(f,c,d){return d&&d.type==="axisAreaSelect"&&c.findComponents({mainType:"parallelAxis",query:d})[0]===f}function u(f){var c=f.axis;return t.map(f.activeIntervals,function(d){return{brushType:"lineX",panelId:"pl",range:[c.dataToCoord(d[0],!0),c.dataToCoord(d[1],!0)]}})}function v(f,c){return c.getComponent("parallel",f.get("parallelIndex"))}var h=s;return aS=h,aS}var L5;function eye(){return L5||(L5=1,x$(),jme(),Jme()),w5}var I5;function b$(){if(I5)return d5;I5=1;var r=Pe(),t=ie(),e=_o(),a=Yme();x$(),Qme(),eye();var i=5;r.extendComponentView({type:"parallel",render:function(s,l,u){this._model=s,this._api=u,this._handlers||(this._handlers={},t.each(n,function(v,h){u.getZr().on(h,this._handlers[h]=t.bind(v,this))},this)),e.createOrUpdate(this,"_throttledDispatchExpand",s.get("axisExpandRate"),"fixRate")},dispose:function(s,l){t.each(this._handlers,function(u,v){l.getZr().off(v,u)}),this._handlers=null},_throttledDispatchExpand:function(s){this._dispatchExpand(s)},_dispatchExpand:function(s){s&&this._api.dispatchAction(t.extend({type:"parallelAxisExpand"},s))}});var n={mousedown:function(s){o(this,"click")&&(this._mouseDownPoint=[s.offsetX,s.offsetY])},mouseup:function(s){var l=this._mouseDownPoint;if(o(this,"click")&&l){var u=[s.offsetX,s.offsetY],v=Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2);if(v>i)return;var h=this._model.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]);h.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:h.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(s){if(!(this._mouseDownPoint||!o(this,"mousemove"))){var l=this._model,u=l.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]),v=u.behavior;v==="jump"&&this._throttledDispatchExpand.debounceNextCall(l.get("axisExpandDebounce")),this._throttledDispatchExpand(v==="none"?null:{axisExpandWindow:u.axisExpandWindow,animation:v==="jump"?null:!1})}}};function o(s,l){var u=s._model;return u.get("axisExpandable")&&u.get("axisExpandTriggerOn")===l}return r.registerPreprocessor(a),d5}var iS,P5;function tye(){if(P5)return iS;P5=1;var r=ie(),t=r.each,e=r.createHashMap,a=Ir(),i=In(),n=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(l,u){var v=this.getSource();return o(v,this),i(v,this)},getRawIndicesByActiveState:function(l){var u=this.coordinateSystem,v=this.getData(),h=[];return u.eachActiveState(v,function(f,c){l===f&&h.push(v.getRawIndex(c))}),h},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function o(l,u){if(!l.encodeDefine){var v=u.ecModel.getComponent("parallel",u.get("parallelIndex"));if(v){var h=l.encodeDefine=e();t(v.dimensions,function(f){var c=s(f);h.set(f,c)})}}}function s(l){return+l.replace("dim","")}return iS=n,iS}var nS,R5;function rye(){if(R5)return nS;R5=1;var r=qe(),t=tn(),e=.3,a=t.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(h,f,c,d){var p=this._dataGroup,g=h.getData(),m=this._data,y=h.coordinateSystem,_=y.dimensions,x=s(h);g.diff(m).add(S).update(b).remove(w).execute();function S(T){var C=o(g,p,T,_,y);l(C,g,T,x)}function b(T,C){var M=m.getItemGraphicEl(C),L=n(g,T,_,y);g.setItemGraphicEl(T,M);var D=d&&d.animation===!1?null:h;r.updateProps(M,{shape:{points:L}},D,T),l(M,g,T,x)}function w(T){var C=m.getItemGraphicEl(T);p.remove(C)}if(!this._initialized){this._initialized=!0;var A=i(y,h,function(){setTimeout(function(){p.removeClipPath()})});p.setClipPath(A)}this._data=g},incrementalPrepareRender:function(h,f,c){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(h,f,c){for(var d=f.getData(),p=f.coordinateSystem,g=p.dimensions,m=s(f),y=h.start;y=0&&(c[f[d].depth]=new i(f[d],this,u));if(h&&v){var p=t(h,v,this,!0,g);return p.data}function g(m,y){m.wrapMethod("getItemModel",function(_,x){return _.customizeGetParent(function(S){var b=this.parentModel,w=b.getData().getItemLayout(x).depth,A=b.levelModels[w];return A||this.parentModel}),_}),y.wrapMethod("getItemModel",function(_,x){return _.customizeGetParent(function(S){var b=this.parentModel,w=b.getGraph().getEdgeByIndex(x),A=w.node1.getLayout().depth,T=b.levelModels[A];return T||this.parentModel}),_})}},setNodePosition:function(l,u){var v=this.option.data[l];v.localX=u[0],v.localY=u[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(l,u,v){if(v==="edge"){var h=this.getDataParams(l,v),f=h.data,c=f.source+" -- "+f.target;return h.value&&(c+=" : "+h.value),a(c)}else if(v==="node"){var d=this.getGraph().getNodeByIndex(l),p=d.getLayout().value,g=this.getDataParams(l,v).data.name;if(p)var c=g+" : "+p;return a(c)}return o.superCall(this,"formatTooltip",l,u)},optionUpdated:function(){var l=this.option;l.focusNodeAdjacency===!0&&(l.focusNodeAdjacency="allEdges")},getDataParams:function(l,u){var v=o.superCall(this,"getDataParams",l,u);if(v.value==null&&u==="node"){var h=this.getGraph().getNodeByIndex(l),f=h.getLayout().value;v.value=f}return v},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),s=o;return sS=s,sS}var lS,z5;function oye(){if(z5)return lS;z5=1;var r=qe(),t=Pe(),e=ie(),a=["itemStyle","opacity"],i=["emphasis","itemStyle","opacity"],n=["lineStyle","opacity"],o=["emphasis","lineStyle","opacity"];function s(c,d){return c.getVisual("opacity")||c.getModel().get(d)}function l(c,d,p){var g=c.getGraphicEl(),m=s(c,d);p!=null&&(m==null&&(m=1),m*=p),g.downplay&&g.downplay(),g.traverse(function(y){y.type!=="group"&&y.setStyle("opacity",m)})}function u(c,d){var p=s(c,d),g=c.getGraphicEl();g.traverse(function(m){m.type!=="group"&&m.setStyle("opacity",p)}),g.highlight&&g.highlight()}var v=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(c,d){var p=d.extent;c.moveTo(d.x1,d.y1),c.bezierCurveTo(d.cpx1,d.cpy1,d.cpx2,d.cpy2,d.x2,d.y2),d.orient==="vertical"?(c.lineTo(d.x2+p,d.y2),c.bezierCurveTo(d.cpx2+p,d.cpy2,d.cpx1+p,d.cpy1,d.x1+p,d.y1)):(c.lineTo(d.x2,d.y2+p),c.bezierCurveTo(d.cpx2,d.cpy2+p,d.cpx1,d.cpy1+p,d.x1,d.y1+p)),c.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),h=t.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(c,d,p){var g=this,m=c.getGraph(),y=this.group,_=c.layoutInfo,x=_.width,S=_.height,b=c.getData(),w=c.getData("edge"),A=c.get("orient");this._model=c,y.removeAll(),y.attr("position",[_.x,_.y]),m.eachEdge(function(T){var C=new v;C.dataIndex=T.dataIndex,C.seriesIndex=c.seriesIndex,C.dataType="edge";var M=T.getModel("lineStyle"),L=M.get("curveness"),D=T.node1.getLayout(),P=T.node1.getModel(),I=P.get("localX"),R=P.get("localY"),E=T.node2.getLayout(),k=T.node2.getModel(),B=k.get("localX"),F=k.get("localY"),V=T.getLayout(),N,O,z,G,q,H,U,W;switch(C.shape.extent=Math.max(1,V.dy),C.shape.orient=A,A==="vertical"?(N=(I!=null?I*x:D.x)+V.sy,O=(R!=null?R*S:D.y)+D.dy,z=(B!=null?B*x:E.x)+V.ty,G=F!=null?F*S:E.y,q=N,H=O*(1-L)+G*L,U=z,W=O*L+G*(1-L)):(N=(I!=null?I*x:D.x)+D.dx,O=(R!=null?R*S:D.y)+V.sy,z=B!=null?B*x:E.x,G=(F!=null?F*S:E.y)+V.ty,q=N*(1-L)+z*L,H=O,U=N*L+z*(1-L),W=G),C.setShape({x1:N,y1:O,x2:z,y2:G,cpx1:q,cpy1:H,cpx2:U,cpy2:W}),C.setStyle(M.getItemStyle()),C.style.fill){case"source":C.style.fill=T.node1.getVisual("color");break;case"target":C.style.fill=T.node2.getVisual("color");break}r.setHoverStyle(C,T.getModel("emphasis.lineStyle").getItemStyle()),y.add(C),w.setItemGraphicEl(T.dataIndex,C)}),m.eachNode(function(T){var C=T.getLayout(),M=T.getModel(),L=M.get("localX"),D=M.get("localY"),P=M.getModel("label"),I=M.getModel("emphasis.label"),R=new r.Rect({shape:{x:L!=null?L*x:C.x,y:D!=null?D*S:C.y,width:C.dx,height:C.dy},style:M.getModel("itemStyle").getItemStyle()}),E=T.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(R.style,E,P,I,{labelFetcher:c,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),R.setStyle("fill",T.getVisual("color")),r.setHoverStyle(R,E),y.add(R),b.setItemGraphicEl(T.dataIndex,R),R.dataType="node"}),b.eachItemGraphicEl(function(T,C){var M=b.getItemModel(C);M.get("draggable")&&(T.drift=function(L,D){g._focusAdjacencyDisabled=!0,this.shape.x+=L,this.shape.y+=D,this.dirty(),p.dispatchAction({type:"dragNode",seriesId:c.id,dataIndex:b.getRawIndex(C),localX:this.shape.x/x,localY:this.shape.y/S})},T.ondragend=function(){g._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),M.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){g._focusAdjacencyDisabled||(g._clearTimer(),p.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){g._focusAdjacencyDisabled||g._dispatchUnfocus(p)}))}),w.eachItemGraphicEl(function(T,C){var M=w.getItemModel(C);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),M.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){g._focusAdjacencyDisabled||(g._clearTimer(),p.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){g._focusAdjacencyDisabled||g._dispatchUnfocus(p)}))}),!this._data&&c.get("animation")&&y.setClipPath(f(y.getBoundingRect(),c,function(){y.removeClipPath()})),this._data=c.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(c){var d=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){d._unfocusDelayTimer=null,c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:d._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(c,d,p,g){var m=c.getData(),y=m.graph,_=g.dataIndex,x=m.getItemModel(_),S=g.edgeDataIndex;if(!(_==null&&S==null)){var b=y.getNodeByIndex(_),w=y.getEdgeByIndex(S);if(y.eachNode(function(T){l(T,a,.1)}),y.eachEdge(function(T){l(T,n,.1)}),b){u(b,i);var A=x.get("focusNodeAdjacency");A==="outEdges"?e.each(b.outEdges,function(T){T.dataIndex<0||(u(T,o),u(T.node2,i))}):A==="inEdges"?e.each(b.inEdges,function(T){T.dataIndex<0||(u(T,o),u(T.node1,i))}):A==="allEdges"&&e.each(b.edges,function(T){T.dataIndex<0||(u(T,o),T.node1!==b&&u(T.node1,i),T.node2!==b&&u(T.node2,i))})}w&&(u(w,o),u(w.node1,i),u(w.node2,i))}},unfocusNodeAdjacency:function(c,d,p,g){var m=c.getGraph();m.eachNode(function(y){l(y,a)}),m.eachEdge(function(y){l(y,n)})}});function f(c,d,p){var g=new r.Rect({shape:{x:c.x-10,y:c.y-10,width:0,height:c.height+20}});return r.initProps(g,{shape:{width:c.width+20}},d,p),g}return lS=h,lS}var B5={},V5;function sye(){if(V5)return B5;V5=1;var r=Pe();return m$(),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),B5}var uS,G5;function lye(){if(G5)return uS;G5=1;var r=Ut(),t=ie(),e=_t(),a=e.groupData;function i(M,L,D){M.eachSeriesByType("sankey",function(P){var I=P.get("nodeWidth"),R=P.get("nodeGap"),E=n(P,L);P.layoutInfo=E;var k=E.width,B=E.height,F=P.getGraph(),V=F.nodes,N=F.edges;s(V);var O=t.filter(V,function(H){return H.getLayout().value===0}),z=O.length!==0?0:P.get("layoutIterations"),G=P.get("orient"),q=P.get("nodeAlign");o(V,N,I,R,k,B,z,G,q)})}function n(M,L){return r.getLayoutRect(M.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()})}function o(M,L,D,P,I,R,E,k,B){l(M,L,D,I,R,k,B),c(M,L,R,I,P,E,k),C(M,k)}function s(M){t.each(M,function(L){var D=A(L.outEdges,w),P=A(L.inEdges,w),I=L.getValue()||0,R=Math.max(D,P,I);L.setLayout({value:R},!0)})}function l(M,L,D,P,I,R,E){for(var k=[],B=[],F=[],V=[],N=0,te=0,O=0;O=0;U&&H.depth>z&&(z=H.depth),q.setLayout({depth:U?H.depth:N},!0),R==="vertical"?q.setLayout({dy:D},!0):q.setLayout({dx:D},!0);for(var W=0;WN-1?z:N-1;E&&E!=="left"&&v(M,E,R,j);var te=R==="vertical"?(I-D)/j:(P-D)/j;f(M,te,R)}function u(M){var L=M.hostGraph.data.getRawDataItem(M.dataIndex);return L.depth!=null&&L.depth>=0}function v(M,L,D,P){if(L==="right"){for(var I=[],R=M,E=0;R.length;){for(var k=0;k0;R--)B*=.99,m(k,B,E),g(k,I,D,P,E),T(k,B,E),g(k,I,D,P,E)}function d(M,L){var D=[],P=L==="vertical"?"y":"x",I=a(M,function(R){return R.getLayout()[P]});return I.keys.sort(function(R,E){return R-E}),t.each(I.keys,function(R){D.push(I.buckets.get(R))}),D}function p(M,L,D,P,I,R){var E=1/0;t.each(M,function(k){var B=k.length,F=0;t.each(k,function(N){F+=N.getLayout().value});var V=R==="vertical"?(P-(B-1)*I)/F:(D-(B-1)*I)/F;V0&&(k=B.getLayout()[R]+F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0)),V=B.getLayout()[R]+B.getLayout()[O]+L;var G=I==="vertical"?P:D;if(F=V-L-G,F>0)for(k=B.getLayout()[R]-F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0),V=k,z=N-2;z>=0;--z)B=E[z],F=B.getLayout()[R]+B.getLayout()[O]+L-V,F>0&&(k=B.getLayout()[R]-F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0)),V=B.getLayout()[R]})}function m(M,L,D){t.each(M.slice().reverse(),function(P){t.each(P,function(I){if(I.outEdges.length){var R=A(I.outEdges,y,D)/A(I.outEdges,w,D);if(isNaN(R)){var E=I.outEdges.length;R=E?A(I.outEdges,_,D)/E:0}if(D==="vertical"){var k=I.getLayout().x+(R-b(I,D))*L;I.setLayout({x:k},!0)}else{var B=I.getLayout().y+(R-b(I,D))*L;I.setLayout({y:B},!0)}}})})}function y(M,L){return b(M.node2,L)*M.getValue()}function _(M,L){return b(M.node2,L)}function x(M,L){return b(M.node1,L)*M.getValue()}function S(M,L){return b(M.node1,L)}function b(M,L){return L==="vertical"?M.getLayout().x+M.getLayout().dx/2:M.getLayout().y+M.getLayout().dy/2}function w(M){return M.getValue()}function A(M,L,D){for(var P=0,I=M.length,R=-1;++Ru&&(u=h)}),t.each(s,function(v){var h=new r({type:"color",mappingMethod:"linear",dataExtent:[l,u],visual:n.get("color")}),f=h.mapValueToVisual(v.getLayout().value),c=v.getModel().get("itemStyle.color");c!=null?v.setVisual("color",c):v.setVisual("color",f)})}})}return vS=e,vS}var H5;function vye(){if(H5)return O5;H5=1;var r=Pe();nye(),oye(),sye();var t=lye(),e=uye();return r.registerLayout(t),r.registerVisual(e),O5}var q5={},hS={},W5;function w$(){if(W5)return hS;W5=1;var r=Lu(),t=ie(),e=cf(),a=e.getDimensionTypeByAxis,i=Ln(),n=i.makeSeriesEncodeForAxisCoordSys,o={_baseAxisDim:null,getInitialData:function(s,l){var u,v=l.getComponent("xAxis",this.get("xAxisIndex")),h=l.getComponent("yAxis",this.get("yAxisIndex")),f=v.get("type"),c=h.get("type"),d;f==="category"?(s.layout="horizontal",u=v.getOrdinalMeta(),d=!0):c==="category"?(s.layout="vertical",u=h.getOrdinalMeta(),d=!0):s.layout=s.layout||"horizontal";var p=["x","y"],g=s.layout==="horizontal"?0:1,m=this._baseAxisDim=p[g],y=p[1-g],_=[v,h],x=_[g].get("type"),S=_[1-g].get("type"),b=s.data;if(b&&d){var w=[];t.each(b,function(C,M){var L;C.value&&t.isArray(C.value)?(L=C.value.slice(),C.value.unshift(M)):t.isArray(C)?(L=C.slice(),C.unshift(M)):L=C,w.push(L)}),s.data=w}var A=this.defaultValueDimensions,T=[{name:m,type:a(x),ordinalMeta:u,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:y,type:a(S),dimsDef:A.slice()}];return r(this,{coordDimensions:T,dimensionsCount:A.length+1,encodeDefaulter:t.curry(n,T,this)})},getBaseAxis:function(){var s=this._baseAxisDim;return this.ecModel.getComponent(s+"Axis",this.get(s+"AxisIndex")).axis}};return hS.seriesModelMixin=o,hS}var fS,U5;function hye(){if(U5)return fS;U5=1;var r=ie(),t=Ir(),e=w$(),a=e.seriesModelMixin,i=t.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(i,a,!0);var n=i;return fS=n,fS}var cS,$5;function fye(){if($5)return cS;$5=1;var r=ie(),t=tn(),e=qe(),a=ur(),i=["itemStyle"],n=["emphasis","itemStyle"],o=t.extend({type:"boxplot",render:function(f,c,d){var p=f.getData(),g=this.group,m=this._data;this._data||g.removeAll();var y=f.get("layout")==="horizontal"?1:0;p.diff(m).add(function(_){if(p.hasValue(_)){var x=p.getItemLayout(_),S=l(x,p,_,y,!0);p.setItemGraphicEl(_,S),g.add(S)}}).update(function(_,x){var S=m.getItemGraphicEl(x);if(!p.hasValue(_)){g.remove(S);return}var b=p.getItemLayout(_);S?u(b,S,p,_):S=l(b,p,_,y),g.add(S),p.setItemGraphicEl(_,S)}).remove(function(_){var x=m.getItemGraphicEl(_);x&&g.remove(x)}).execute(),this._data=p},remove:function(f){var c=this.group,d=this._data;this._data=null,d&&d.eachItemGraphicEl(function(p){p&&c.remove(p)})},dispose:r.noop}),s=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(f,c){var d=c.points,p=0;for(f.moveTo(d[p][0],d[p][1]),p++;p<4;p++)f.lineTo(d[p][0],d[p][1]);for(f.closePath();p0?"P":"N",A=b.getVisual("borderColor"+w)||b.getVisual("color"+w),T=S.getModel(o).getItemStyle(l);x.useStyle(T),x.style.fill=null,x.style.stroke=A}var y=u;return mS=y,mS}var yS,J5;function yye(){if(J5)return yS;J5=1;var r=ie();function t(e){!e||!r.isArray(e.series)||r.each(e.series,function(a){r.isObject(a)&&a.type==="k"&&(a.type="candlestick")})}return yS=t,yS}var _S,eG;function _ye(){if(eG)return _S;eG=1;var r=Cu(),t=["itemStyle","borderColor"],e=["itemStyle","borderColor0"],a=["itemStyle","color"],i=["itemStyle","color0"],n={seriesType:"candlestick",plan:r(),performRawSeries:!0,reset:function(o,s){var l=o.getData();if(l.setVisual({legendSymbol:"roundRect",colorP:h(1,o),colorN:h(-1,o),borderColorP:f(1,o),borderColorN:f(-1,o)}),s.isSeriesFiltered(o))return;var u=o.pipelineContext.large;return!u&&{progress:v};function v(c,d){for(var p;(p=c.next())!=null;){var g=d.getItemModel(p),m=d.getItemLayout(p).sign;d.setItemVisual(p,{color:h(m,g),borderColor:f(m,g)})}}function h(c,d){return d.get(c>0?a:i)}function f(c,d){return d.get(c>0?t:e)}}};return _S=n,_S}var xS,tG;function xye(){if(tG)return xS;tG=1;var r=qe(),t=r.subPixelOptimize,e=Cu(),a=st(),i=a.parsePercent,n=ie(),o=n.retrieve2,s=typeof Float32Array<"u"?Float32Array:Array,l={seriesType:"candlestick",plan:e(),reset:function(h){var f=h.coordinateSystem,c=h.getData(),d=v(h,c),p=0,g=1,m=["x","y"],y=c.mapDimension(m[p]),_=c.mapDimension(m[g],!0),x=_[0],S=_[1],b=_[2],w=_[3];if(c.setLayout({candleWidth:d,isSimpleBox:d<=1.3}),y==null||_.length<4)return;return{progress:h.pipelineContext.large?T:A};function A(C,M){for(var L;(L=C.next())!=null;){var D=M.get(y,L),P=M.get(x,L),I=M.get(S,L),R=M.get(b,L),E=M.get(w,L),k=Math.min(P,I),B=Math.max(P,I),F=G(k,D),V=G(B,D),N=G(R,D),O=G(E,D),z=[];q(z,V,0),q(z,F,1),z.push(U(O),U(V),U(N),U(F)),M.setItemLayout(L,{sign:u(M,L,P,I,S),initBaseline:P>I?V[g]:F[g],ends:z,brushRect:H(R,E,D)})}function G(W,Y){var X=[];return X[p]=Y,X[g]=W,isNaN(Y)||isNaN(W)?[NaN,NaN]:f.dataToPoint(X)}function q(W,Y,X){var K=Y.slice(),Q=Y.slice();K[p]=t(K[p]+d/2,1,!1),Q[p]=t(Q[p]-d/2,1,!0),X?W.push(K,Q):W.push(Q,K)}function H(W,Y,X){var K=G(W,X),Q=G(Y,X);return K[p]-=d/2,Q[p]-=d/2,{x:K[0],y:K[1],width:d,height:Q[1]-K[1]}}function U(W){return W[p]=t(W[p],1),W}}function T(C,M){for(var L=new s(C.count*4),D=0,P,I=[],R=[],E;(E=C.next())!=null;){var k=M.get(y,E),B=M.get(x,E),F=M.get(S,E),V=M.get(b,E),N=M.get(w,E);if(isNaN(k)||isNaN(V)||isNaN(N)){L[D++]=NaN,D+=3;continue}L[D++]=u(M,E,B,F,S),I[p]=k,I[g]=V,P=f.dataToPoint(I,null,R),L[D++]=P?P[0]:NaN,L[D++]=P?P[1]:NaN,I[g]=N,P=f.dataToPoint(I,null,R),L[D++]=P?P[1]:NaN}M.setLayout("largePoints",L)}}};function u(h,f,c,d,p){var g;return c>d?g=-1:c0?h.get(p,f-1)<=d?1:-1:1,g}function v(h,f){var c=h.getBaseAxis(),d,p=c.type==="category"?c.getBandWidth():(d=c.getExtent(),Math.abs(d[1]-d[0])/f.count()),g=i(o(h.get("barMaxWidth"),p),p),m=i(o(h.get("barMinWidth"),1),p),y=h.get("barWidth");return y!=null?i(y,p):Math.max(Math.min(p/2,g),m)}return xS=l,xS}var rG;function Sye(){if(rG)return K5;rG=1;var r=Pe();gye(),mye();var t=yye(),e=_ye(),a=xye();return r.registerPreprocessor(t),r.registerVisual(e),r.registerLayout(a),K5}var aG={},SS,iG;function bye(){if(iG)return SS;iG=1;var r=In(),t=Ir(),e=t.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(a,i){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});return SS=e,SS}var bS,nG;function wye(){if(nG)return bS;nG=1;var r=ie(),t=ti(),e=t.createSymbol,a=qe(),i=a.Group,n=st(),o=n.parsePercent,s=gg(),l=3;function u(d){return r.isArray(d)||(d=[+d,+d]),d}function v(d,p){var g=p.rippleEffectColor||p.color;d.eachChild(function(m){m.attr({z:p.z,zlevel:p.zlevel,style:{stroke:p.brushType==="stroke"?g:null,fill:p.brushType==="fill"?g:null}})})}function h(d,p){i.call(this);var g=new s(d,p),m=new i;this.add(g),this.add(m),m.beforeUpdate=function(){this.attr(g.getScale())},this.updateData(d,p)}var f=h.prototype;f.stopEffectAnimation=function(){this.childAt(1).removeAll()},f.startEffectAnimation=function(d){for(var p=d.symbolType,g=d.color,m=this.childAt(1),y=0;y"u"?Array:Uint32Array,v=typeof Float64Array>"u"?Array:Float64Array;function h(d){var p=d.data;p&&p[0]&&p[0][0]&&p[0][0].coord&&(d.data=o(p,function(g){var m=[g[0].coord,g[1].coord],y={coords:m};return g[0].name&&(y.fromName=g[0].name),g[1].name&&(y.toName=g[1].name),n([y,g[0],g[1]])}))}var f=t.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(d){d.data=d.data||[],h(d);var p=this._processFlatCoordsArray(d.data);this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset,p.flatCoords&&(d.data=new Float32Array(p.count)),f.superApply(this,"init",arguments)},mergeOption:function(d){if(h(d),d.data){var p=this._processFlatCoordsArray(d.data);this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset,p.flatCoords&&(d.data=new Float32Array(p.count))}f.superApply(this,"mergeOption",arguments)},appendData:function(d){var p=this._processFlatCoordsArray(d.data);p.flatCoords&&(this._flatCoords?(this._flatCoords=i(this._flatCoords,p.flatCoords),this._flatCoordsOffset=i(this._flatCoordsOffset,p.flatCoordsOffset)):(this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset),d.data=new Float32Array(p.count)),this.getRawData().appendData(d.data)},_getCoordsFromItemModel:function(d){var p=this.getData().getItemModel(d),g=p.option instanceof Array?p.option:p.getShallow("coords");return g},getLineCoordsCount:function(d){return this._flatCoordsOffset?this._flatCoordsOffset[d*2+1]:this._getCoordsFromItemModel(d).length},getLineCoords:function(d,p){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[d*2],m=this._flatCoordsOffset[d*2+1],y=0;y "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var d=this.option.progressive;return d==null?this.option.large?1e4:this.get("progressive"):d},getProgressiveThreshold:function(){var d=this.option.progressiveThreshold;return d==null?this.option.large?2e4:this.get("progressiveThreshold"):d},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),c=f;return TS=c,TS}var AS,vG;function T$(){if(vG)return AS;vG=1;var r=qe(),t=dD(),e=ie(),a=ti(),i=a.createSymbol,n=Jt(),o=yo();function s(v,h,f){r.Group.call(this),this.add(this.createLine(v,h,f)),this._updateEffectSymbol(v,h)}var l=s.prototype;l.createLine=function(v,h,f){return new t(v,h,f)},l._updateEffectSymbol=function(v,h){var f=v.getItemModel(h),c=f.getModel("effect"),d=c.get("symbolSize"),p=c.get("symbol");e.isArray(d)||(d=[d,d]);var g=c.get("color")||v.getItemVisual(h,"color"),m=this.childAt(1);this._symbolType!==p&&(this.remove(m),m=i(p,-.5,-.5,1,1,g),m.z2=100,m.culling=!0,this.add(m)),m&&(m.setStyle("shadowColor",g),m.setStyle(c.getItemStyle(["color"])),m.attr("scale",d),m.setColor(g),m.attr("scale",d),this._symbolType=p,this._symbolScale=d,this._updateEffectAnimation(v,c,h))},l._updateEffectAnimation=function(v,h,f){var c=this.childAt(1);if(c){var d=this,p=v.getItemLayout(f),g=h.get("period")*1e3,m=h.get("loop"),y=h.get("constantSpeed"),_=e.retrieve(h.get("delay"),function(w){return w/v.count()*g/3}),x=typeof _=="function";if(c.ignore=!0,this.updateAnimationPoints(c,p),y>0&&(g=this.getLineLength(c)/y*1e3),g!==this._period||m!==this._loop){c.stopAnimation();var S=_;x&&(S=_(f)),c.__t>0&&(S=-g*c.__t),c.__t=0;var b=c.animate("",m).when(g,{__t:1}).delay(S).during(function(){d.updateSymbolPosition(c)});m||b.done(function(){d.remove(c)}),b.start()}this._period=g,this._loop=m}},l.getLineLength=function(v){return n.dist(v.__p1,v.__cp1)+n.dist(v.__cp1,v.__p2)},l.updateAnimationPoints=function(v,h){v.__p1=h[0],v.__p2=h[1],v.__cp1=h[2]||[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]},l.updateData=function(v,h,f){this.childAt(0).updateData(v,h,f),this._updateEffectSymbol(v,h)},l.updateSymbolPosition=function(v){var h=v.__p1,f=v.__p2,c=v.__cp1,d=v.__t,p=v.position,g=[p[0],p[1]],m=o.quadraticAt,y=o.quadraticDerivativeAt;p[0]=m(h[0],c[0],f[0],d),p[1]=m(h[1],c[1],f[1],d);var _=y(h[0],c[0],f[0],d),x=y(h[1],c[1],f[1],d);if(v.rotation=-Math.atan2(x,_)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(v.__lastT!==void 0&&v.__lastT=0&&!(v[c]<=l);c--);c=Math.min(c,h-2)}else{for(var c=f;cl);c++);c=Math.min(c-1,h-2)}a.lerp(s.position,u[c],u[c+1],(l-v[c])/(v[c+1]-v[c]));var p=u[c+1][0]-u[c][0],g=u[c+1][1]-u[c][1];s.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=c,this._lastFramePercent=l,s.ignore=!1}},t.inherits(i,e);var o=i;return MS=o,MS}var DS,cG;function Dye(){if(cG)return DS;cG=1;var r=qe(),t=rD(),e=P9(),a=R9(),i=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(l,u){var v=u.segs,h=u.curveness;if(u.polyline)for(var f=0;f0){l.moveTo(v[f++],v[f++]);for(var d=1;d0){var _=(p+m)/2-(g-y)*h,x=(g+y)/2-(m-p)*h;l.quadraticCurveTo(_,x,m,y)}else l.lineTo(m,y)}},findDataIndex:function(l,u){var v=this.shape,h=v.segs,f=v.curveness;if(v.polyline)for(var c=0,d=0;d0)for(var g=h[d++],m=h[d++],y=1;y0){var S=(g+_)/2-(m-x)*f,b=(m+x)/2-(_-g)*f;if(a.containStroke(g,m,S,b,_,x))return c}else if(e.containStroke(g,m,_,x))return c;c++}return-1}});function n(){this.group=new r.Group}var o=n.prototype;o.isPersistent=function(){return!this._incremental},o.updateData=function(l){this.group.removeAll();var u=new i({rectHover:!0,cursor:"default"});u.setShape({segs:l.getLayout("linesPoints")}),this._setCommon(u,l),this.group.add(u),this._incremental=null},o.incrementalPrepareUpdate=function(l){this.group.removeAll(),this._clearIncremental(),l.count()>5e5?(this._incremental||(this._incremental=new t({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.incrementalUpdate=function(l,u){var v=new i;v.setShape({segs:u.getLayout("linesPoints")}),this._setCommon(v,u,!!this._incremental),this._incremental?this._incremental.addDisplayable(v,!0):(v.rectHover=!0,v.cursor="default",v.__startIndex=l.start,this.group.add(v))},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._setCommon=function(l,u,v){var h=u.hostModel;l.setShape({polyline:h.get("polyline"),curveness:h.get("lineStyle.curveness")}),l.useStyle(h.getModel("lineStyle").getLineStyle()),l.style.strokeNoScale=!0;var f=u.getVisual("color");f&&l.setStyle("stroke",f),l.setStyle("fill"),v||(l.seriesIndex=h.seriesIndex,l.on("mousemove",function(c){l.dataIndex=null;var d=l.findDataIndex(c.offsetX,c.offsetY);d>0&&(l.dataIndex=d+l.__startIndex)}))},o._clearIncremental=function(){var l=this._incremental;l&&l.clearDisplaybles()};var s=n;return DS=s,DS}var LS,dG;function C$(){if(dG)return LS;dG=1;var r=Cu(),t={seriesType:"lines",plan:r(),reset:function(e){var a=e.coordinateSystem,i=e.get("polyline"),n=e.pipelineContext.large;function o(s,l){var u=[];if(n){var v,h=s.end-s.start;if(i){for(var f=0,c=s.start;c0){var I=u(b)?h:f;b>0&&(b=b*D+M),A[T++]=I[P],A[T++]=I[P+1],A[T++]=I[P+2],A[T++]=I[P+3]*b*256}else T+=4}return p.putImageData(w,0,0),d},_getBrush:function(){var i=this._brushCanvas||(this._brushCanvas=r.createCanvas()),n=this.pointSize+this.blurSize,o=n*2;i.width=o,i.height=o;var s=i.getContext("2d");return s.clearRect(0,0,o,o),s.shadowOffsetX=o,s.shadowBlur=this.blurSize,s.shadowColor="#000",s.beginPath(),s.arc(-n,n,this.pointSize,0,Math.PI*2,!0),s.closePath(),s.fill(),i},_getGradient:function(i,n,o){for(var s=this._gradientPixels,l=s[o]||(s[o]=new Uint8ClampedArray(256*4)),u=[0,0,0,0],v=0,h=0;h<256;h++)n[o](h/255,!0,u),l[v++]=u[0],l[v++]=u[1],l[v++]=u[2],l[v++]=u[3];return l}};var a=e;return ES=a,ES}var kS,SG;function kye(){if(SG)return kS;SG=1;var r=It();r.__DEV__;var t=Pe(),e=qe(),a=Eye(),i=ie();function n(u,v,h){var f=u[1]-u[0];v=i.map(v,function(p){return{interval:[(p.interval[0]-u[0])/f,(p.interval[1]-u[0])/f]}});var c=v.length,d=0;return function(p){for(var g=d;g=0;g--){var m=v[g].interval;if(m[0]<=p&&p<=m[1]){d=g;break}}return g>=0&&g=v[0]&&f<=v[1]}}function s(u){var v=u.dimensions;return v[0]==="lng"&&v[1]==="lat"}var l=t.extendChartView({type:"heatmap",render:function(u,v,h){var f;v.eachComponent("visualMap",function(d){d.eachTargetSeries(function(p){p===u&&(f=d)})}),this.group.removeAll(),this._incrementalDisplayable=null;var c=u.coordinateSystem;c.type==="cartesian2d"||c.type==="calendar"?this._renderOnCartesianAndCalendar(u,h,0,u.getData().count()):s(c)&&this._renderOnGeo(c,u,f,h)},incrementalPrepareRender:function(u,v,h){this.group.removeAll()},incrementalRender:function(u,v,h,f){var c=v.coordinateSystem;c&&this._renderOnCartesianAndCalendar(v,f,u.start,u.end,!0)},_renderOnCartesianAndCalendar:function(u,v,h,f,c){var d=u.coordinateSystem,p,g;if(d.type==="cartesian2d"){var m=d.getAxis("x"),y=d.getAxis("y");p=m.getBandWidth(),g=y.getBandWidth()}for(var _=this.group,x=u.getData(),S="itemStyle",b="emphasis.itemStyle",w="label",A="emphasis.label",T=u.getModel(S).getItemStyle(["color"]),C=u.getModel(b).getItemStyle(),M=u.getModel(w),L=u.getModel(A),D=d.type,P=D==="cartesian2d"?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],I=h;I0?1:K<0?-1:0}function g(N,O){return N.toGlobalCoord(N.dataToCoord(N.scale.parse(O)))}function m(N,O,z,G,q,H,U,W,Y,X){var K=Y.valueDim,Q=Y.categoryDim,j=Math.abs(z[Q.wh]),te=N.getItemVisual(O,"symbolSize");t.isArray(te)?te=te.slice():(te==null&&(te="100%"),te=[te,te]),te[Q.index]=o(te[Q.index],j),te[K.index]=o(te[K.index],G?j:Math.abs(H)),X.symbolSize=te;var Z=X.symbolScale=[te[0]/W,te[1]/W];Z[K.index]*=(Y.isHorizontal?-1:1)*U}function y(N,O,z,G,q){var H=N.get(v)||0;H&&(f.attr({scale:O.slice(),rotation:z}),f.updateTransform(),H/=f.getLineScale(),H*=O[G.valueDim.index]),q.valueLineWidth=H}function _(N,O,z,G,q,H,U,W,Y,X,K,Q){var j=K.categoryDim,te=K.valueDim,Z=Q.pxSign,ee=Math.max(O[te.index]+W,0),le=ee;if(G){var oe=Math.abs(Y),fe=t.retrieve(N.get("symbolMargin"),"15%")+"",se=!1;fe.lastIndexOf("!")===fe.length-1&&(se=!0,fe=fe.slice(0,fe.length-1)),fe=o(fe,O[te.index]);var ve=Math.max(ee+fe*2,0),ye=se?0:fe*2,Me=s(G),J=Me?G:F((oe+ye)/ve),ne=oe-J*ee;fe=ne/2/(se?J:J-1),ve=ee+fe*2,ye=se?0:fe*2,!Me&&G!=="fixed"&&(J=X?F((Math.abs(X)+ye)/ve):0),le=J*ve-ye,Q.repeatTimes=J,Q.symbolMargin=fe}var ue=Z*(le/2),me=Q.pathPosition=[];me[j.index]=z[j.wh]/2,me[te.index]=U==="start"?ue:U==="end"?Y-ue:Y/2,H&&(me[0]+=H[0],me[1]+=H[1]);var xe=Q.bundlePosition=[];xe[j.index]=z[j.xy],xe[te.index]=z[te.xy];var ge=Q.barRectShape=t.extend({},z);ge[te.wh]=Z*Math.max(Math.abs(z[te.wh]),Math.abs(me[te.index]+ue)),ge[j.wh]=z[j.wh];var pe=Q.clipShape={};pe[j.xy]=-z[j.xy],pe[j.wh]=K.ecSize[j.wh],pe[te.xy]=0,pe[te.wh]=z[te.wh]}function x(N){var O=N.symbolPatternSize,z=i(N.symbolType,-O/2,-O/2,O,O,N.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function S(N,O,z,G){var q=N.__pictorialBundle,H=z.symbolSize,U=z.valueLineWidth,W=z.pathPosition,Y=O.valueDim,X=z.repeatTimes||0,K=0,Q=H[O.valueDim.index]+U+z.symbolMargin*2;for(E(N,function(oe){oe.__pictorialAnimationIndex=K,oe.__pictorialRepeatTimes=X,K0:se<0)&&(ve=X-1-oe),fe[Y.index]=Q*(ve-X/2+.5)+W[Y.index],{position:fe,scale:z.symbolScale.slice(),rotation:z.rotation}}function ee(){E(N,function(oe){oe.trigger("emphasis")})}function le(){E(N,function(oe){oe.trigger("normal")})}}function b(N,O,z,G){var q=N.__pictorialBundle,H=N.__pictorialMainPath;H?k(H,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,G):(H=N.__pictorialMainPath=x(z),q.add(H),k(H,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,G),H.on("mouseover",U).on("mouseout",W)),L(H,z);function U(){this.trigger("emphasis")}function W(){this.trigger("normal")}}function w(N,O,z){var G=t.extend({},O.barRectShape),q=N.__pictorialBarRect;q?k(q,null,{shape:G},O,z):(q=N.__pictorialBarRect=new e.Rect({z2:2,shape:G,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),N.add(q))}function A(N,O,z,G){if(z.symbolClip){var q=N.__pictorialClipPath,H=t.extend({},z.clipShape),U=O.valueDim,W=z.animationModel,Y=z.dataIndex;if(q)e.updateProps(q,{shape:H},W,Y);else{H[U.wh]=0,q=new e.Rect({shape:H}),N.__pictorialBundle.setClipPath(q),N.__pictorialClipPath=q;var X={};X[U.wh]=z.clipShape[U.wh],e[G?"updateProps":"initProps"](q,{shape:X},W,Y)}}}function T(N,O){var z=N.getItemModel(O);return z.getAnimationDelayParams=C,z.isAnimationEnabled=M,z}function C(N){return{index:N.__pictorialAnimationIndex,count:N.__pictorialRepeatTimes}}function M(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L(N,O){N.off("emphasis").off("normal");var z=O.symbolScale.slice();O.hoverAnimation&&N.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function D(N,O,z,G){var q=new e.Group,H=new e.Group;return q.add(H),q.__pictorialBundle=H,H.attr("position",z.bundlePosition.slice()),z.symbolRepeat?S(q,O,z):b(q,O,z),w(q,z,G),A(q,O,z,G),q.__pictorialShapeStr=R(N,z),q.__pictorialSymbolMeta=z,q}function P(N,O,z){var G=z.animationModel,q=z.dataIndex,H=N.__pictorialBundle;e.updateProps(H,{position:z.bundlePosition.slice()},G,q),z.symbolRepeat?S(N,O,z,!0):b(N,O,z,!0),w(N,z,!0),A(N,O,z,!0)}function I(N,O,z,G){var q=G.__pictorialBarRect;q&&(q.style.text=null);var H=[];E(G,function(U){H.push(U)}),G.__pictorialMainPath&&H.push(G.__pictorialMainPath),G.__pictorialClipPath&&(z=null),t.each(H,function(U){e.updateProps(U,{scale:[0,0]},z,O,function(){G.parent&&G.parent.remove(G)})}),N.setItemGraphicEl(O,null)}function R(N,O){return[N.getItemVisual(O.dataIndex,"symbol")||"none",!!O.symbolRepeat,!!O.symbolClip].join(":")}function E(N,O,z){t.each(N.__pictorialBundle.children(),function(G){G!==N.__pictorialBarRect&&O.call(z,G)})}function k(N,O,z,G,q,H){O&&N.attr(O),G.symbolClip&&!q?z&&N.attr(z):z&&e[q?"updateProps":"initProps"](N,z,G.animationModel,G.dataIndex,H)}function B(N,O,z){var G=z.color,q=z.dataIndex,H=z.itemModel,U=H.getModel("itemStyle").getItemStyle(["color"]),W=H.getModel("emphasis.itemStyle").getItemStyle(),Y=H.getShallow("cursor");E(N,function(j){j.setColor(G),j.setStyle(t.defaults({fill:G,opacity:z.opacity},U)),e.setHoverStyle(j,W),Y&&(j.cursor=Y),j.z2=z.z2});var X={},K=O.valueDim.posDesc[+(z.boundingLength>0)],Q=N.__pictorialBarRect;u(Q.style,X,H,G,O.seriesModel,q,K),e.setHoverStyle(Q,X)}function F(N){var O=Math.round(N);return Math.abs(N-O)<1e-4?O:Math.ceil(N)}var V=c;return NS=V,NS}var CG;function Bye(){if(CG)return wG;CG=1;var r=Pe(),t=ie();sD(),Nye(),zye();var e=pg(),a=e.layout,i=Xs();return mf(),r.registerLayout(t.curry(a,"pictorialBar")),r.registerVisual(i("pictorialBar","roundRect")),wG}var MG={},DG={},LG={},zS,IG;function Vye(){if(IG)return zS;IG=1;var r=ie(),t=So(),e=function(i,n,o,s,l){t.call(this,i,n,o),this.type=s||"value",this.position=l||"bottom",this.orient=null};e.prototype={constructor:e,model:null,isHorizontal:function(){var i=this.position;return i==="top"||i==="bottom"},pointToData:function(i,n){return this.coordinateSystem.pointToData(i,n)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(e,t);var a=e;return zS=a,zS}var BS,PG;function Gye(){if(PG)return BS;PG=1;var r=Vye(),t=wi(),e=Ut(),a=e.getLayoutRect,i=ie(),n=i.each;function o(l,u,v){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(l,u,v),this.model=l}o.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:o,_init:function(l,u,v){var h=this.dimension,f=new r(h,t.createScaleByModel(l),[0,0],l.get("type"),l.get("position")),c=f.type==="category";f.onBand=c&&l.get("boundaryGap"),f.inverse=l.get("inverse"),f.orient=l.get("orient"),l.axis=f,f.model=l,f.coordinateSystem=this,this._axis=f},update:function(l,u){l.eachSeries(function(v){if(v.coordinateSystem===this){var h=v.getData();n(h.mapDimension(this.dimension,!0),function(f){this._axis.scale.unionExtentFromData(h,f)},this),t.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(l,u){this._rect=a({left:l.get("left"),top:l.get("top"),right:l.get("right"),bottom:l.get("bottom"),width:l.get("width"),height:l.get("height")},{width:u.getWidth(),height:u.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var l=this._rect,u=this._axis,v=u.isHorizontal(),h=v?[0,l.width]:[0,l.height],f=u.reverse?1:0;u.setExtent(h[f],h[1-f]),this._updateAxisTransform(u,v?l.x:l.y)},_updateAxisTransform:function(l,u){var v=l.getExtent(),h=v[0]+v[1],f=l.isHorizontal();l.toGlobalCoord=f?function(c){return c+u}:function(c){return h-c+u},l.toLocalCoord=f?function(c){return c-u}:function(c){return h-c+u}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(l){var u=this.getRect(),v=this.getAxis(),h=v.orient;return h==="horizontal"?v.contain(v.toLocalCoord(l[0]))&&l[1]>=u.y&&l[1]<=u.y+u.height:v.contain(v.toLocalCoord(l[1]))&&l[0]>=u.y&&l[0]<=u.y+u.height},pointToData:function(l){var u=this.getAxis();return[u.coordToData(u.toLocalCoord(l[u.orient==="horizontal"?0:1]))]},dataToPoint:function(l){var u=this.getAxis(),v=this.getRect(),h=[],f=u.orient==="horizontal"?0:1;return l instanceof Array&&(l=l[0]),h[f]=u.toGlobalCoord(u.dataToCoord(+l)),h[1-f]=f===0?v.y+v.height/2:v.x+v.width/2,h}};var s=o;return BS=s,BS}var RG;function Fye(){if(RG)return LG;RG=1;var r=Gye(),t=bi();function e(a,i){var n=[];return a.eachComponent("singleAxis",function(o,s){var l=new r(o,a,i);l.name="single_"+s,l.resize(o,i),o.coordinateSystem=l,n.push(l)}),a.eachSeries(function(o){if(o.get("coordinateSystem")==="singleAxis"){var s=a.queryComponents({mainType:"singleAxis",index:o.get("singleAxisIndex"),id:o.get("singleAxisId")})[0];o.coordinateSystem=s&&s.coordinateSystem}}),n}return t.register("single",{create:e,dimensions:r.prototype.dimensions}),LG}var VS={},EG;function M$(){if(EG)return VS;EG=1;var r=ie();function t(e,a){a=a||{};var i=e.coordinateSystem,n=e.axis,o={},s=n.position,l=n.orient,u=i.getRect(),v=[u.x,u.x+u.width,u.y,u.y+u.height],h={horizontal:{top:v[2],bottom:v[3]},vertical:{left:v[0],right:v[1]}};o.position=[l==="vertical"?h.vertical[s]:v[0],l==="horizontal"?h.horizontal[s]:v[3]];var f={horizontal:0,vertical:1};o.rotation=Math.PI/2*f[l];var c={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=c[s],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(a.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var d=a.rotate;return d==null&&(d=e.get("axisLabel.rotate")),o.labelRotation=s==="top"?-d:d,o.z2=1,o}return VS.layout=t,VS}var GS,kG;function Hye(){if(kG)return GS;kG=1;var r=ie(),t=bo(),e=qe(),a=M$(),i=Ks(),n=s$(),o=n.rectCoordAxisBuildSplitArea,s=n.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine"],v=i.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(f,c,d,p){var g=this.group;g.removeAll();var m=this._axisGroup;this._axisGroup=new e.Group;var y=a.layout(f),_=new t(f,y);r.each(l,_.add,_),g.add(this._axisGroup),g.add(_.getGroup()),r.each(u,function(x){f.get(x+".show")&&this["_"+x](f)},this),e.groupTransition(m,this._axisGroup,f),v.superCall(this,"render",f,c,d,p)},remove:function(){s(this)},_splitLine:function(f){var c=f.axis;if(!c.scale.isBlank()){var d=f.getModel("splitLine"),p=d.getModel("lineStyle"),g=p.get("width"),m=p.get("color");m=m instanceof Array?m:[m];for(var y=f.coordinateSystem.getRect(),_=c.isHorizontal(),x=[],S=0,b=c.getTicksCoords({tickModel:d}),w=[],A=[],T=0;T=0&&C<0)&&(T=k,C=E,w=P,A.length=0),n(I,function(B){A.push({seriesIndex:M.seriesIndex,dataIndexInside:B,dataIndex:M.getData().getRawIndex(B)})}))}}),{payloadBatch:A,snapToValue:w}}function h(_,x,S,b){_[x.key]={value:S,payloadBatch:b}}function f(_,x,S,b){var w=S.payloadBatch,A=x.axis,T=A.model,C=x.axisPointerModel;if(!(!x.triggerTooltip||!w.length)){var M=x.coordSys.model,L=a.makeKey(M),D=_.map[L];D||(D=_.map[L]={coordSysId:M.id,coordSysIndex:M.componentIndex,coordSysType:M.type,coordSysMainType:M.mainType,dataByAxis:[]},_.list.push(D)),D.dataByAxis.push({axisDim:A.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:b,valueLabelOpt:{precision:C.get("label.precision"),formatter:C.get("label.formatter")},seriesDataIndices:w.slice()})}}function c(_,x,S){var b=S.axesInfo=[];n(x,function(w,A){var T=w.axisPointerModel.option,C=_[A];C?(!w.useHandle&&(T.status="show"),T.value=C.value,T.seriesDataIndices=(C.payloadBatch||[]).slice()):!w.useHandle&&(T.status="hide"),T.status==="show"&&b.push({axisDim:w.axis.dim,axisIndex:w.axis.model.componentIndex,value:T.value})})}function d(_,x,S,b){if(y(x)||!_.list.length){b({type:"hideTip"});return}var w=((_.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};b({type:"showTip",escapeConnect:!0,x:x[0],y:x[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:w.dataIndexInside,dataIndex:w.dataIndex,seriesIndex:w.seriesIndex,dataByCoordSys:_.list})}function p(_,x,S){var b=S.getZr(),w="axisPointerLastHighlights",A=s(b)[w]||{},T=s(b)[w]={};n(_,function(L,D){var P=L.axisPointerModel.option;P.status==="show"&&n(P.seriesDataIndices,function(I){var R=I.seriesIndex+" | "+I.dataIndex;T[R]=I})});var C=[],M=[];r.each(A,function(L,D){!T[D]&&M.push(L)}),r.each(T,function(L,D){!A[D]&&C.push(L)}),M.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:M}),C.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:C})}function g(_,x){for(var S=0;S<(_||[]).length;S++){var b=_[S];if(x.axis.dim===b.axisDim&&x.axis.model.componentIndex===b.axisIndex)return b}}function m(_){var x=_.axis.model,S={},b=S.axisDim=_.axis.dim;return S.axisIndex=S[b+"AxisIndex"]=x.componentIndex,S.axisName=S[b+"AxisName"]=x.name,S.axisId=S[b+"AxisId"]=x.id,S}function y(_){return!_||_[0]==null||isNaN(_[0])||_[1]==null||isNaN(_[1])}return qS=l,qS}var WS,VG;function Uye(){if(VG)return WS;VG=1;var r=Pe(),t=r.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),e=t;return WS=e,WS}var Nc={},GG;function L$(){if(GG)return Nc;GG=1;var r=ie(),t=pr(),e=_t(),a=e.makeInner,i=a(),n=r.each;function o(c,d,p){if(!t.node){var g=d.getZr();i(g).records||(i(g).records={}),s(g,d);var m=i(g).records[c]||(i(g).records[c]={});m.handler=p}}function s(c,d){if(i(c).initialized)return;i(c).initialized=!0,p("click",r.curry(v,"click")),p("mousemove",r.curry(v,"mousemove")),p("globalout",u);function p(g,m){c.on(g,function(y){var _=h(d);n(i(c).records,function(x){x&&m(x,y,_.dispatchAction)}),l(_.pendings,d)})}}function l(c,d){var p=c.showTip.length,g=c.hideTip.length,m;p?m=c.showTip[p-1]:g&&(m=c.hideTip[g-1]),m&&(m.dispatchAction=null,d.dispatchAction(m))}function u(c,d,p){c.handler("leave",null,p)}function v(c,d,p,g){d.handler(c,p,g)}function h(c){var d={showTip:[],hideTip:[]},p=function(g){var m=d[g.type];m?m.push(g):(g.dispatchAction=p,c.dispatchAction(g))};return{dispatchAction:p,pendings:d}}function f(c,d){if(!t.node){var p=d.getZr(),g=(i(p).records||{})[c];g&&(i(p).records[c]=null)}}return Nc.register=o,Nc.unregister=f,Nc}var US,FG;function $ye(){if(FG)return US;FG=1;var r=Pe(),t=L$(),e=r.extendComponentView({type:"axisPointer",render:function(i,n,o){var s=n.getComponent("tooltip"),l=i.get("triggerOn")||s&&s.get("triggerOn")||"mousemove|click";t.register("axisPointer",o,function(u,v,h){l!=="none"&&(u==="leave"||l.indexOf(u)>=0)&&h({type:"updateAxisPointer",currTrigger:u,x:v&&v.offsetX,y:v&&v.offsetY})})},remove:function(i,n){t.unregister(n.getZr(),"axisPointer"),e.superApply(this._model,"remove",arguments)},dispose:function(i,n){t.unregister("axisPointer",n),e.superApply(this._model,"dispose",arguments)}}),a=e;return US=a,US}var $S,HG;function yD(){if(HG)return $S;HG=1;var r=ie(),t=Dn(),e=qe(),a=yg(),i=Ji(),n=_o(),o=_t(),s=o.makeInner,l=s(),u=r.clone,v=r.bind;function h(){}h.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(y,_,x,S){var b=_.get("value"),w=_.get("status");if(this._axisModel=y,this._axisPointerModel=_,this._api=x,!(!S&&this._lastValue===b&&this._lastStatus===w)){this._lastValue=b,this._lastStatus=w;var A=this._group,T=this._handle;if(!w||w==="hide"){A&&A.hide(),T&&T.hide();return}A&&A.show(),T&&T.show();var C={};this.makeElOption(C,b,y,_,x);var M=C.graphicKey;M!==this._lastGraphicKey&&this.clear(x),this._lastGraphicKey=M;var L=this._moveAnimation=this.determineAnimation(y,_);if(!A)A=this._group=new e.Group,this.createPointerEl(A,C,y,_),this.createLabelEl(A,C,y,_),x.getZr().add(A);else{var D=r.curry(f,_,L);this.updatePointerEl(A,C,D,_),this.updateLabelEl(A,C,D,_)}g(A,_,!0),this._renderHandle(b)}},remove:function(y){this.clear(y)},dispose:function(y){this.clear(y)},determineAnimation:function(y,_){var x=_.get("animation"),S=y.axis,b=S.type==="category",w=_.get("snap");if(!w&&!b)return!1;if(x==="auto"||x==null){var A=this.animationThreshold;if(b&&S.getBandWidth()>A)return!0;if(w){var T=a.getAxisInfo(y).seriesDataCount,C=S.getExtent();return Math.abs(C[0]-C[1])/T>A}return!1}return x===!0},makeElOption:function(y,_,x,S,b){},createPointerEl:function(y,_,x,S){var b=_.pointer;if(b){var w=l(y).pointerEl=new e[b.type](u(_.pointer));y.add(w)}},createLabelEl:function(y,_,x,S){if(_.label){var b=l(y).labelEl=new e.Rect(u(_.label));y.add(b),d(b,S)}},updatePointerEl:function(y,_,x){var S=l(y).pointerEl;S&&_.pointer&&(S.setStyle(_.pointer.style),x(S,{shape:_.pointer.shape}))},updateLabelEl:function(y,_,x,S){var b=l(y).labelEl;b&&(b.setStyle(_.label.style),x(b,{shape:_.label.shape,position:_.label.position}),d(b,S))},_renderHandle:function(y){if(!(this._dragging||!this.updateHandleTransform)){var _=this._axisPointerModel,x=this._api.getZr(),S=this._handle,b=_.getModel("handle"),w=_.get("status");if(!b.get("show")||!w||w==="hide"){S&&x.remove(S),this._handle=null;return}var A;this._handle||(A=!0,S=this._handle=e.createIcon(b.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(M){i.stop(M.event)},onmousedown:v(this._onHandleDragMove,this,0,0),drift:v(this._onHandleDragMove,this),ondragend:v(this._onHandleDragEnd,this)}),x.add(S)),g(S,_,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(b.getItemStyle(null,T));var C=b.get("size");r.isArray(C)||(C=[C,C]),S.attr("scale",[C[0]/2,C[1]/2]),n.createOrUpdate(this,"_doDispatchAxisPointer",b.get("throttle")||0,"fixRate"),this._moveHandleToValue(y,A)}},_moveHandleToValue:function(y,_){f(this._axisPointerModel,!_&&this._moveAnimation,this._handle,p(this.getHandleTransform(y,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(y,_){var x=this._handle;if(x){this._dragging=!0;var S=this.updateHandleTransform(p(x),[y,_],this._axisModel,this._axisPointerModel);this._payloadInfo=S,x.stopAnimation(),x.attr(p(S)),l(x).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var y=this._handle;if(y){var _=this._payloadInfo,x=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:_.cursorPoint[0],y:_.cursorPoint[1],tooltipOption:_.tooltipOption,axesInfo:[{axisDim:x.axis.dim,axisIndex:x.componentIndex}]})}},_onHandleDragEnd:function(y){this._dragging=!1;var _=this._handle;if(_){var x=this._axisPointerModel.get("value");this._moveHandleToValue(x),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(y){this._lastValue=null,this._lastStatus=null;var _=y.getZr(),x=this._group,S=this._handle;_&&x&&(this._lastGraphicKey=null,x&&_.remove(x),S&&_.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(y,_,x){return x=x||0,{x:y[x],y:y[1-x],width:_[x],height:_[1-x]}}},h.prototype.constructor=h;function f(y,_,x,S){c(l(x).lastProp,S)||(l(x).lastProp=S,_?e.updateProps(x,S,y):(x.stopAnimation(),x.attr(S)))}function c(y,_){if(r.isObject(y)&&r.isObject(_)){var x=!0;return r.each(_,function(S,b){x=x&&c(y[b],S)}),!!x}else return y===_}function d(y,_){y[_.get("label.show")?"show":"hide"]()}function p(y){return{position:y.position.slice(),rotation:y.rotation||0}}function g(y,_,x){var S=_.get("z"),b=_.get("zlevel");y&&y.traverse(function(w){w.type!=="group"&&(S!=null&&(w.z=S),b!=null&&(w.zlevel=b),w.silent=x)})}t.enableClassExtend(h);var m=h;return $S=m,$S}var ki={},qG;function wg(){if(qG)return ki;qG=1;var r=ie(),t=qe(),e=Da(),a=Yt(),i=ha(),n=wi(),o=bo();function s(g){var m=g.get("type"),y=g.getModel(m+"Style"),_;return m==="line"?(_=y.getLineStyle(),_.fill=null):m==="shadow"&&(_=y.getAreaStyle(),_.stroke=null),_}function l(g,m,y,_,x){var S=y.get("value"),b=v(S,m.axis,m.ecModel,y.get("seriesDataIndices"),{precision:y.get("label.precision"),formatter:y.get("label.formatter")}),w=y.getModel("label"),A=a.normalizeCssArray(w.get("padding")||0),T=w.getFont(),C=e.getBoundingRect(b,T),M=x.position,L=C.width+A[1]+A[3],D=C.height+A[0]+A[2],P=x.align;P==="right"&&(M[0]-=L),P==="center"&&(M[0]-=L/2);var I=x.verticalAlign;I==="bottom"&&(M[1]-=D),I==="middle"&&(M[1]-=D/2),u(M,L,D,_);var R=w.get("backgroundColor");(!R||R==="auto")&&(R=m.get("axisLine.lineStyle.color")),g.label={shape:{x:0,y:0,width:L,height:D,r:w.get("borderRadius")},position:M.slice(),style:{text:b,textFont:T,textFill:w.getTextColor(),textPosition:"inside",textPadding:A,fill:R,stroke:w.get("borderColor")||"transparent",lineWidth:w.get("borderWidth")||0,shadowBlur:w.get("shadowBlur"),shadowColor:w.get("shadowColor"),shadowOffsetX:w.get("shadowOffsetX"),shadowOffsetY:w.get("shadowOffsetY")},z2:10}}function u(g,m,y,_){var x=_.getWidth(),S=_.getHeight();g[0]=Math.min(g[0]+m,x)-m,g[1]=Math.min(g[1]+y,S)-y,g[0]=Math.max(g[0],0),g[1]=Math.max(g[1],0)}function v(g,m,y,_,x){g=m.scale.parse(g);var S=m.scale.getLabel(g,{precision:x.precision}),b=x.formatter;if(b){var w={value:n.getAxisRawValue(m,g),axisDimension:m.dim,axisIndex:m.index,seriesData:[]};r.each(_,function(A){var T=y.getSeriesByIndex(A.seriesIndex),C=A.dataIndexInside,M=T&&T.getDataParams(C);M&&w.seriesData.push(M)}),r.isString(b)?S=b.replace("{value}",S):r.isFunction(b)&&(S=b(w))}return S}function h(g,m,y){var _=i.create();return i.rotate(_,_,y.rotation),i.translate(_,_,y.position),t.applyTransform([g.dataToCoord(m),(y.labelOffset||0)+(y.labelDirection||1)*(y.labelMargin||0)],_)}function f(g,m,y,_,x,S){var b=o.innerTextLayout(y.rotation,0,y.labelDirection);y.labelMargin=x.get("label.margin"),l(m,_,x,S,{position:h(_.axis,g,y),align:b.textAlign,verticalAlign:b.textVerticalAlign})}function c(g,m,y){return y=y||0,{x1:g[y],y1:g[1-y],x2:m[y],y2:m[1-y]}}function d(g,m,y){return y=y||0,{x:g[y],y:g[1-y],width:m[y],height:m[1-y]}}function p(g,m,y,_,x,S){return{cx:g,cy:m,r0:y,r:_,startAngle:x,endAngle:S,clockwise:!0}}return ki.buildElStyle=s,ki.buildLabelElOption=l,ki.getValueLabel=v,ki.getTransformedPosition=h,ki.buildCartesianSingleLabelElOption=f,ki.makeLineShape=c,ki.makeRectShape=d,ki.makeSectorShape=p,ki}var YS,WG;function I$(){if(WG)return YS;WG=1;var r=yD(),t=wg(),e=o$(),a=Ks(),i=r.extend({makeElOption:function(u,v,h,f,c){var d=h.axis,p=d.grid,g=f.get("type"),m=n(p,d).getOtherAxis(d).getGlobalExtent(),y=d.toGlobalCoord(d.dataToCoord(v,!0));if(g&&g!=="none"){var _=t.buildElStyle(f),x=o[g](d,y,m);x.style=_,u.graphicKey=x.type,u.pointer=x}var S=e.layout(p.model,h);t.buildCartesianSingleLabelElOption(v,u,S,h,f,c)},getHandleTransform:function(u,v,h){var f=e.layout(v.axis.grid.model,v,{labelInside:!1});return f.labelMargin=h.get("handle.margin"),{position:t.getTransformedPosition(v.axis,u,f),rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(u,v,h,f){var c=h.axis,d=c.grid,p=c.getGlobalExtent(!0),g=n(d,c).getOtherAxis(c).getGlobalExtent(),m=c.dim==="x"?0:1,y=u.position;y[m]+=v[m],y[m]=Math.min(p[1],y[m]),y[m]=Math.max(p[0],y[m]);var _=(g[1]+g[0])/2,x=[_,_];x[m]=y[m];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:y,rotation:u.rotation,cursorPoint:x,tooltipOption:S[m]}}});function n(u,v){var h={};return h[v.dim+"AxisIndex"]=v.index,u.getCartesian(h)}var o={line:function(u,v,h){var f=t.makeLineShape([v,h[0]],[v,h[1]],s(u));return{type:"Line",subPixelOptimize:!0,shape:f}},shadow:function(u,v,h){var f=Math.max(1,u.getBandWidth()),c=h[1]-h[0];return{type:"Rect",shape:t.makeRectShape([v-f/2,h[0]],[f,c],s(u))}}};function s(u){return u.dim==="x"?0:1}a.registerAxisPointerClass("CartesianAxisPointer",i);var l=i;return YS=l,YS}var UG;function Sf(){if(UG)return NG;UG=1;var r=Pe(),t=ie(),e=yg(),a=Wye();return Uye(),$ye(),I$(),r.registerPreprocessor(function(i){if(i){(!i.axisPointer||i.axisPointer.length===0)&&(i.axisPointer={});var n=i.axisPointer.link;n&&!t.isArray(n)&&(i.axisPointer.link=[n])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(i,n){i.getComponent("axisPointer").coordSysAxesInfo=e.collect(i,n)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a),NG}var ZS,$G;function Yye(){if($G)return ZS;$G=1;var r=yD(),t=wg(),e=M$(),a=Ks(),i=["x","y"],n=["width","height"],o=r.extend({makeElOption:function(h,f,c,d,p){var g=c.axis,m=g.coordinateSystem,y=u(m,1-l(g)),_=m.dataToPoint(f)[0],x=d.get("type");if(x&&x!=="none"){var S=t.buildElStyle(d),b=s[x](g,_,y);b.style=S,h.graphicKey=b.type,h.pointer=b}var w=e.layout(c);t.buildCartesianSingleLabelElOption(f,h,w,c,d,p)},getHandleTransform:function(h,f,c){var d=e.layout(f,{labelInside:!1});return d.labelMargin=c.get("handle.margin"),{position:t.getTransformedPosition(f.axis,h,d),rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(h,f,c,d){var p=c.axis,g=p.coordinateSystem,m=l(p),y=u(g,m),_=h.position;_[m]+=f[m],_[m]=Math.min(y[1],_[m]),_[m]=Math.max(y[0],_[m]);var x=u(g,1-m),S=(x[1]+x[0])/2,b=[S,S];return b[m]=_[m],{position:_,rotation:h.rotation,cursorPoint:b,tooltipOption:{verticalAlign:"middle"}}}}),s={line:function(h,f,c){var d=t.makeLineShape([f,c[0]],[f,c[1]],l(h));return{type:"Line",subPixelOptimize:!0,shape:d}},shadow:function(h,f,c){var d=h.getBandWidth(),p=c[1]-c[0];return{type:"Rect",shape:t.makeRectShape([f-d/2,c[0]],[d,p],l(h))}}};function l(h){return h.isHorizontal()?0:1}function u(h,f){var c=h.getRect();return[c[i[f]],c[i[f]]+c[n[f]]]}a.registerAxisPointerClass("SingleAxisPointer",o);var v=o;return ZS=v,ZS}var YG;function P$(){if(YG)return DG;YG=1;var r=Pe();return Fye(),Hye(),qye(),Sf(),Yye(),r.extendComponentView({type:"single"}),DG}var XS,ZG;function Zye(){if(ZG)return XS;ZG=1;var r=Ir(),t=Mu(),e=cf(),a=e.getDimensionTypeByAxis,i=ei(),n=ie(),o=_t(),s=o.groupData,l=Yt(),u=l.encodeHTML,v=yf(),h=2,f=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(d){f.superApply(this,"init",arguments),this.legendVisualProvider=new v(n.bind(this.getData,this),n.bind(this.getRawData,this))},fixData:function(d){var p=d.length,g={},m=s(d,function(A){return g.hasOwnProperty(A[0])||(g[A[0]]=-1),A[2]}),y=[];m.buckets.each(function(A,T){y.push({name:T,dataList:A})});for(var _=y.length,x=0;x<_;++x){for(var S=y[x].name,b=0;bv&&(v=h),l.push(h)}for(var p=0;pv&&(v=m)}return f.y0=u,f.max=v,f}return QS=e,QS}var jS,QG;function Qye(){if(QG)return jS;QG=1;var r=ie(),t=r.createHashMap;function e(a){a.eachSeriesByType("themeRiver",function(i){var n=i.getData(),o=i.getRawData(),s=i.get("color"),l=t();n.each(function(u){l.set(n.getRawIndex(u),u)}),o.each(function(u){var v=o.getName(u),h=s[(i.nameMap.get(v)-1)%s.length];o.setItemVisual(u,"color",h);var f=l.get(u);f!=null&&n.setItemVisual(f,"color",h)})})}return jS=e,jS}var jG;function jye(){if(jG)return MG;jG=1;var r=Pe();P$(),Zye(),Xye();var t=Kye(),e=Qye(),a=_f();return r.registerLayout(t),r.registerVisual(e),r.registerProcessor(a("themeRiver")),MG}var JG={},JS,e3;function Jye(){if(e3)return JS;e3=1;var r=ie(),t=Ir(),e=cD(),a=gr(),i=Qs(),n=i.wrapTreePathInfo,o=t.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(l,u){var v={name:l.name,children:l.data};s(v);var h=r.map(l.levels||[],function(d){return new a(d,this,u)},this),f=e.createTree(v,this,c);function c(d){d.wrapMethod("getItemModel",function(p,g){var m=f.getNodeByDataIndex(g),y=h[m.depth];return y&&(p.parentModel=y),p})}return f.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(l){var u=t.prototype.getDataParams.apply(this,arguments),v=this.getData().tree.getNodeByDataIndex(l);return u.treePathInfo=n(v,this),u},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(l){l?this._viewRoot=l:l=this._viewRoot;var u=this.getRawData().tree.root;(!l||l!==u&&!u.contains(l))&&(this._viewRoot=u)}});function s(l){var u=0;r.each(l.children,function(h){s(h);var f=h.value;r.isArray(f)&&(f=f[0]),u+=f});var v=l.value;r.isArray(v)&&(v=v[0]),(v==null||isNaN(v))&&(v=u),v<0&&(v=0),r.isArray(l.value)?l.value[0]=v:l.value=v}return JS=o,JS}var eb,t3;function e0e(){if(t3)return eb;t3=1;var r=ie(),t=qe(),e={NONE:"none",ANCESTOR:"ancestor",SELF:"self"},a=2,i=4;function n(f,c,d){t.Group.call(this);var p=new t.Sector({z2:a});p.seriesIndex=c.seriesIndex;var g=new t.Text({z2:i,silent:f.getModel("label").get("silent")});this.add(p),this.add(g),this.updateData(!0,f,"normal",c,d);function m(){g.ignore=g.hoverIgnore}function y(){g.ignore=g.normalIgnore}this.on("emphasis",m).on("normal",y).on("mouseover",m).on("mouseout",y)}var o=n.prototype;o.updateData=function(f,c,d,p,g){this.node=c,c.piece=this,p=p||this._seriesModel,g=g||this._ecModel;var m=this.childAt(0);m.dataIndex=c.dataIndex;var y=c.getModel(),_=c.getLayout(),x=r.extend({},_);x.label=null;var S=l(c,p,g);h(c,p,S);var b=y.getModel("itemStyle").getItemStyle(),w;if(d==="normal")w=b;else{var A=y.getModel(d+".itemStyle").getItemStyle();w=r.merge(A,b)}w=r.defaults({lineJoin:"bevel",fill:w.fill||S},w),f?(m.setShape(x),m.shape.r=_.r0,t.updateProps(m,{shape:{r:_.r}},p,c.dataIndex),m.useStyle(w)):typeof w.fill=="object"&&w.fill.type||typeof m.style.fill=="object"&&m.style.fill.type?(t.updateProps(m,{shape:x},p),m.useStyle(w)):t.updateProps(m,{shape:x,style:w},p),this._updateLabel(p,S,d);var T=y.getShallow("cursor");if(T&&m.attr("cursor",T),f){var C=p.getShallow("highlightPolicy");this._initEvents(m,c,p,C)}this._seriesModel=p||this._seriesModel,this._ecModel=g||this._ecModel,t.setHoverStyle(this)},o.onEmphasis=function(f){var c=this;this.node.hostTree.root.eachNode(function(d){d.piece&&(c.node===d?d.piece.updateData(!1,d,"emphasis"):v(d,c.node,f)?d.piece.childAt(0).trigger("highlight"):f!==e.NONE&&d.piece.childAt(0).trigger("downplay"))})},o.onNormal=function(){this.node.hostTree.root.eachNode(function(f){f.piece&&f.piece.updateData(!1,f,"normal")})},o.onHighlight=function(){this.updateData(!1,this.node,"highlight")},o.onDownplay=function(){this.updateData(!1,this.node,"downplay")},o._updateLabel=function(f,c,d){var p=this.node.getModel(),g=p.getModel("label"),m=d==="normal"||d==="emphasis"?g:p.getModel(d+".label"),y=p.getModel("emphasis.label"),_=m.get("formatter"),x=_?d:"normal",S=r.retrieve(f.getFormattedLabel(this.node.dataIndex,x,null,null,"label"),this.node.name);V("show")===!1&&(S="");var b=this.node.getLayout(),w=m.get("minAngle");w==null&&(w=g.get("minAngle")),w=w/180*Math.PI;var A=b.endAngle-b.startAngle;w!=null&&Math.abs(A)Math.PI/2?"right":"left"):!R||R==="center"?(D=(b.r+b.r0)/2,R="center"):R==="left"?(D=b.r0+I,C>Math.PI/2&&(R="right")):R==="right"&&(D=b.r-I,C>Math.PI/2&&(R="left")),T.attr("style",{text:S,textAlign:R,textVerticalAlign:V("verticalAlign")||"middle",opacity:V("opacity")});var E=D*M+b.cx,k=D*L+b.cy;T.attr("position",[E,k]);var B=V("rotate"),F=0;B==="radial"?(F=-C,F<-Math.PI/2&&(F+=Math.PI)):B==="tangential"?(F=Math.PI/2-C,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof B=="number"&&(F=B*Math.PI/180),T.attr("rotation",F);function V(N){var O=m.get(N);return O==null?g.get(N):O}},o._initEvents=function(f,c,d,p){f.off("mouseover").off("mouseout").off("emphasis").off("normal");var g=this,m=function(){g.onEmphasis(p)},y=function(){g.onNormal()},_=function(){g.onDownplay()},x=function(){g.onHighlight()};d.isAnimationEnabled()&&f.on("mouseover",m).on("mouseout",y).on("emphasis",m).on("normal",y).on("downplay",_).on("highlight",x)},r.inherits(n,t.Group);var s=n;function l(f,c,d){var p=f.getVisual("color"),g=f.getVisual("visualMeta");(!g||g.length===0)&&(p=null);var m=f.getModel("itemStyle").get("color");if(m)return m;if(p)return p;if(f.depth===0)return d.option.color[0];var y=d.option.color.length;return m=d.option.color[u(f)%y],m}function u(f){for(var c=f;c.depth>1;)c=c.parentNode;var d=f.getAncestors()[0];return r.indexOf(d.children,c)}function v(f,c,d){return d===e.NONE?!1:d===e.SELF?f===c:d===e.ANCESTOR?f===c||f.isAncestorOf(c):f===c||f.isDescendantOf(c)}function h(f,c,d){var p=c.getData();p.setItemVisual(f.dataIndex,"color",d)}return eb=s,eb}var tb,r3;function t0e(){if(r3)return tb;r3=1;var r=ie(),t=tn(),e=e0e(),a=Zs(),i=Yt(),n=i.windowOpen,o="sunburstRootToNode",s=t.extend({type:"sunburst",init:function(){},render:function(u,v,h,f){var c=this;this.seriesModel=u,this.api=h,this.ecModel=v;var d=u.getData(),p=d.tree.root,g=u.getViewRoot(),m=this.group,y=u.get("renderLabelForZeroData"),_=[];g.eachNode(function(M){_.push(M)});var x=this._oldChildren||[];if(w(_,x),C(p,g),f&&f.highlight&&f.highlight.piece){var S=u.getShallow("highlightPolicy");f.highlight.piece.onEmphasis(S)}else if(f&&f.unhighlight){var b=this.virtualPiece;!b&&p.children.length&&(b=p.children[0].piece),b&&b.onNormal()}this._initEvents(),this._oldChildren=_;function w(M,L){if(M.length===0&&L.length===0)return;new a(L,M,D,D).add(P).update(P).remove(r.curry(P,null)).execute();function D(I){return I.getId()}function P(I,R){var E=I==null?null:M[I],k=R==null?null:L[R];A(E,k)}}function A(M,L){if(!y&&M&&!M.getValue()&&(M=null),M!==p&&L!==p){if(L&&L.piece)M?(L.piece.updateData(!1,M,"normal",u,v),d.setItemGraphicEl(M.dataIndex,L.piece)):T(L);else if(M){var D=new e(M,u,v);m.add(D),d.setItemGraphicEl(M.dataIndex,D)}}}function T(M){M&&M.piece&&(m.remove(M.piece),M.piece=null)}function C(M,L){if(L.depth>0){c.virtualPiece?c.virtualPiece.updateData(!1,M,"normal",u,v):(c.virtualPiece=new e(M,u,v),m.add(c.virtualPiece)),L.piece._onclickEvent&&L.piece.off("click",L.piece._onclickEvent);var D=function(P){c._rootToNode(L.parentNode)};L.piece._onclickEvent=D,c.virtualPiece.on("click",D)}else c.virtualPiece&&(m.remove(c.virtualPiece),c.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var u=this,v=function(h){var f=!1,c=u.seriesModel.getViewRoot();c.eachNode(function(d){if(!f&&d.piece&&d.piece.childAt(0)===h.target){var p=d.getModel().get("nodeClick");if(p==="rootToNode")u._rootToNode(d);else if(p==="link"){var g=d.getModel(),m=g.get("link");if(m){var y=g.get("target",!0)||"_blank";n(m,y)}}f=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",v),this.group._onclickEvent=v},_rootToNode:function(u){u!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:u})},containPoint:function(u,v){var h=v.getData(),f=h.getItemLayout(0);if(f){var c=u[0]-f.cx,d=u[1]-f.cy,p=Math.sqrt(c*c+d*d);return p<=f.r&&p>=f.r0}}}),l=s;return tb=l,tb}var a3={},i3;function r0e(){if(i3)return a3;i3=1;var r=Pe(),t=Qs(),e="sunburstRootToNode";r.registerAction({type:e,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){var v=t.retrieveTargetInfo(n,[e],l);if(v){var h=l.getViewRoot();h&&(n.direction=t.aboveViewRoot(h,v.node)?"rollUp":"drillDown"),l.resetViewRoot(v.node)}}});var a="sunburstHighlight";r.registerAction({type:a,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){var v=t.retrieveTargetInfo(n,[a],l);v&&(n.highlight=v.node)}});var i="sunburstUnhighlight";return r.registerAction({type:i,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){n.unhighlight=!0}}),a3}var rb,n3;function a0e(){if(n3)return rb;n3=1;var r=st(),t=r.parsePercent,e=ie(),a=Math.PI/180;function i(s,l,u,v){l.eachSeriesByType(s,function(h){var f=h.get("center"),c=h.get("radius");e.isArray(c)||(c=[0,c]),e.isArray(f)||(f=[f,f]);var d=u.getWidth(),p=u.getHeight(),g=Math.min(d,p),m=t(f[0],d),y=t(f[1],p),_=t(c[0],g/2),x=t(c[1],g/2),S=-h.get("startAngle")*a,b=h.get("minAngle")*a,w=h.getData().tree.root,A=h.getViewRoot(),T=A.depth,C=h.get("sort");C!=null&&n(A,C);var M=0;e.each(A.children,function(z){!isNaN(z.getValue())&&M++});var L=A.getValue(),D=Math.PI/(L||M)*2,P=A.depth>0,I=A.height-(P?-1:1),R=(x-_)/(I||1),E=h.get("clockwise"),k=h.get("stillShowZeroSum"),B=E?1:-1,F=function(z,G){if(z){var q=G;if(z!==w){var H=z.getValue(),U=L===0&&k?D:H*D;Uo[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:r.bind(function(s){var l=i.dataToRadius(s[0]),u=n.dataToAngle(s[1]),v=a.coordToPoint([l,u]);return v.push(l,u*Math.PI/180),v}),size:r.bind(t,a)}}}return ob=e,ob}var sb,f3;function u0e(){if(f3)return sb;f3=1;function r(t){var e=t.getRect(),a=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:a.start,end:a.end,weeks:a.weeks,dayCount:a.allDay}},api:{coord:function(i,n){return t.dataToPoint(i,n)}}}}return sb=r,sb}var c3;function v0e(){if(c3)return s3;c3=1;var r=It();r.__DEV__;var t=ie(),e=qe(),a=oD(),i=a.getDefaultLabel,n=In(),o=pg(),s=o.getLayoutOnAxis,l=Zs(),u=Ir(),v=gr(),h=tn(),f=pf(),c=f.createClipPath,d=n0e(),p=o0e(),g=s0e(),m=l0e(),y=u0e(),_=e.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],S=["emphasis","itemStyle"],b=["label"],w=["emphasis","label"],A="e\0\0",T={cartesian2d:d,geo:p,singleAxis:g,polar:m,calendar:y};u.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(H,U){return n(this.getSource(),this)},getDataParams:function(H,U,W){var Y=u.prototype.getDataParams.apply(this,arguments);return W&&(Y.info=W.info),Y}}),h.extend({type:"custom",_data:null,render:function(H,U,W,Y){var X=this._data,K=H.getData(),Q=this.group,j=D(H,K,U,W);K.diff(X).add(function(Z){I(null,Z,j(Z,Y),H,Q,K)}).update(function(Z,ee){var le=X.getItemGraphicEl(ee);I(le,Z,j(Z,Y),H,Q,K)}).remove(function(Z){var ee=X.getItemGraphicEl(Z);ee&&Q.remove(ee)}).execute();var te=H.get("clip",!0)?c(H.coordinateSystem,!1,H):null;te?Q.setClipPath(te):Q.removeClipPath(),this._data=K},incrementalPrepareRender:function(H,U,W){this.group.removeAll(),this._data=null},incrementalRender:function(H,U,W,Y,X){var K=U.getData(),Q=D(U,K,W,Y);function j(ee){ee.isGroup||(ee.incremental=!0,ee.useHoverLayer=!0)}for(var te=H.start;te=0?"p":"n",O=E;I&&(c[x][V]||(c[x][V]={p:E,n:E}),O=c[x][V][N]);var z,G,q,H;if(A.dim==="radius"){var U=A.dataToRadius(F)-E,W=y.dataToAngle(V);Math.abs(U)_?_=S:(x.lastTickCount=f,x.lastAutoInterval=_),_}},r.inherits(o,e);var s=o;return vb=s,vb}var hb,S3;function p0e(){if(S3)return hb;S3=1;var r=c0e(),t=d0e(),e=function(i){this.name=i||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new t,this._radiusAxis.polar=this._angleAxis.polar=this};e.prototype={type:"polar",axisPointerEnabled:!0,constructor:e,dimensions:["radius","angle"],model:null,containPoint:function(i){var n=this.pointToCoord(i);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},containData:function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},getAxis:function(i){return this["_"+i+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(i){var n=[],o=this._angleAxis,s=this._radiusAxis;return o.scale.type===i&&n.push(o),s.scale.type===i&&n.push(s),n},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(i){var n=this._angleAxis;return i===n?this._radiusAxis:n},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(i){var n=i!=null&&i!=="auto"?this.getAxis(i):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},dataToPoint:function(i,n){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],n),this._angleAxis.dataToAngle(i[1],n)])},pointToData:function(i,n){var o=this.pointToCoord(i);return[this._radiusAxis.radiusToData(o[0],n),this._angleAxis.angleToData(o[1],n)]},pointToCoord:function(i){var n=i[0]-this.cx,o=i[1]-this.cy,s=this.getAngleAxis(),l=s.getExtent(),u=Math.min(l[0],l[1]),v=Math.max(l[0],l[1]);s.inverse?u=v-360:v=u+360;var h=Math.sqrt(n*n+o*o);n/=h,o/=h;for(var f=Math.atan2(-o,n)/Math.PI*180,c=fv;)f+=c*360;return[h,f]},coordToPoint:function(i){var n=i[0],o=i[1]/180*Math.PI,s=Math.cos(o)*n+this.cx,l=-Math.sin(o)*n+this.cy;return[s,l]},getArea:function(){var i=this.getAngleAxis(),n=this.getRadiusAxis(),o=n.getExtent().slice();o[0]>o[1]&&o.reverse();var s=i.getExtent(),l=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:i.inverse,contain:function(u,v){var h=u-this.cx,f=v-this.cy,c=h*h+f*f,d=this.r,p=this.r0;return c<=d*d&&c>=p*p}}}};var a=e;return hb=a,hb}var b3={},w3;function g0e(){if(w3)return b3;w3=1;var r=ie(),t=Lr(),e=mg(),a=Du(),i=t.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(i.prototype,a);var n={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function o(s,l){return l.type||(l.data?"category":"value")}return e("angle",i,o,n.angle),e("radius",i,o,n.radius),b3}var fb,T3;function m0e(){if(T3)return fb;T3=1;var r=Pe();g0e();var t=r.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var a,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});return fb=t,fb}var A3;function _D(){if(A3)return y3;A3=1;var r=It();r.__DEV__;var t=ie(),e=p0e(),a=st(),i=a.parsePercent,n=wi(),o=n.createScaleByModel,s=n.niceScaleExtent,l=bi(),u=rn(),v=u.getStackedDimension;m0e();function h(p,g,m){var y=g.get("center"),_=m.getWidth(),x=m.getHeight();p.cx=i(y[0],_),p.cy=i(y[1],x);var S=p.getRadiusAxis(),b=Math.min(_,x)/2,w=g.get("radius");w==null?w=[0,"100%"]:t.isArray(w)||(w=[0,w]),w=[i(w[0],b),i(w[1],b)],S.inverse?S.setExtent(w[1],w[0]):S.setExtent(w[0],w[1])}function f(p,g){var m=this,y=m.getAngleAxis(),_=m.getRadiusAxis();if(y.scale.setExtent(1/0,-1/0),_.scale.setExtent(1/0,-1/0),p.eachSeries(function(b){if(b.coordinateSystem===m){var w=b.getData();t.each(w.mapDimension("radius",!0),function(A){_.scale.unionExtentFromData(w,v(w,A))}),t.each(w.mapDimension("angle",!0),function(A){y.scale.unionExtentFromData(w,v(w,A))})}}),s(y.scale,y.model),s(_.scale,_.model),y.type==="category"&&!y.onBand){var x=y.getExtent(),S=360/y.scale.count();y.inverse?x[1]+=S:x[1]-=S,y.setExtent(x[0],x[1])}}function c(p,g){if(p.type=g.get("type"),p.scale=o(g),p.onBand=g.get("boundaryGap")&&p.type==="category",p.inverse=g.get("inverse"),g.mainType==="angleAxis"){p.inverse^=g.get("clockwise");var m=g.get("startAngle");p.setExtent(m,m+(p.inverse?-360:360))}g.axis=p,p.model=g}var d={dimensions:e.prototype.dimensions,create:function(p,g){var m=[];return p.eachComponent("polar",function(y,_){var x=new e(_);x.update=f;var S=x.getRadiusAxis(),b=x.getAngleAxis(),w=y.findAxisModel("radiusAxis"),A=y.findAxisModel("angleAxis");c(S,w),c(b,A),h(x,y,g),m.push(x),y.coordinateSystem=x,x.model=y}),p.eachSeries(function(y){if(y.get("coordinateSystem")==="polar"){var _=p.queryComponents({mainType:"polar",index:y.get("polarIndex"),id:y.get("polarId")})[0];y.coordinateSystem=_.coordinateSystem}}),m}};return l.register("polar",d),y3}var C3={},cb,M3;function y0e(){if(M3)return cb;M3=1;var r=ie(),t=qe(),e=gr(),a=Ks(),i=bo(),n=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function o(v,h,f){h[1]>h[0]&&(h=h.slice().reverse());var c=v.coordToPoint([h[0],f]),d=v.coordToPoint([h[1],f]);return{x1:c[0],y1:c[1],x2:d[0],y2:d[1]}}function s(v){var h=v.getRadiusAxis();return h.inverse?0:1}function l(v){var h=v[0],f=v[v.length-1];h&&f&&Math.abs(Math.abs(h.coord-f.coord)-360)<1e-4&&v.pop()}var u=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(v,h){if(this.group.removeAll(),!!v.get("show")){var f=v.axis,c=f.polar,d=c.getRadiusAxis().getExtent(),p=f.getTicksCoords(),g=f.getMinorTicksCoords(),m=r.map(f.getViewLabels(),function(_){var _=r.clone(_);return _.coord=f.dataToCoord(_.tickValue),_});l(m),l(p),r.each(n,function(y){v.get(y+".show")&&(!f.scale.isBlank()||y==="axisLine")&&this["_"+y](v,c,p,g,d,m)},this)}},_axisLine:function(v,h,f,c,d){var p=v.getModel("axisLine.lineStyle"),g=s(h),m=g?0:1,y;d[m]===0?y=new t.Circle({shape:{cx:h.cx,cy:h.cy,r:d[g]},style:p.getLineStyle(),z2:1,silent:!0}):y=new t.Ring({shape:{cx:h.cx,cy:h.cy,r:d[g],r0:d[m]},style:p.getLineStyle(),z2:1,silent:!0}),y.style.fill=null,this.group.add(y)},_axisTick:function(v,h,f,c,d){var p=v.getModel("axisTick"),g=(p.get("inside")?-1:1)*p.get("length"),m=d[s(h)],y=r.map(f,function(_){return new t.Line({shape:o(h,[m,m+g],_.coord)})});this.group.add(t.mergePath(y,{style:r.defaults(p.getModel("lineStyle").getLineStyle(),{stroke:v.get("axisLine.lineStyle.color")})}))},_minorTick:function(v,h,f,c,d){if(c.length){for(var p=v.getModel("axisTick"),g=v.getModel("minorTick"),m=(p.get("inside")?-1:1)*g.get("length"),y=d[s(h)],_=[],x=0;xC?"left":"right",D=Math.abs(T[1]-M)/A<.3?"middle":T[1]>M?"top":"bottom";g&&g[w]&&g[w].textStyle&&(b=new e(g[w].textStyle,m,m.ecModel));var P=new t.Text({silent:i.isLabelSilent(v)});this.group.add(P),t.setTextStyle(P.style,b,{x:T[0],y:T[1],textFill:b.getTextColor()||v.get("axisLine.lineStyle.color"),text:x.formattedLabel,textAlign:L,textVerticalAlign:D}),_&&(P.eventData=i.makeAxisEventDataBase(v),P.eventData.targetType="axisLabel",P.eventData.value=x.rawLabel)},this)},_splitLine:function(v,h,f,c,d){var p=v.getModel("splitLine"),g=p.getModel("lineStyle"),m=g.get("color"),y=0;m=m instanceof Array?m:[m];for(var _=[],x=0;xM?"left":"right",b=Math.abs(x[1]-L)/C<.3?"middle":x[1]>L?"top":"bottom"}return{position:x,align:S,verticalAlign:b}}var u={line:function(h,f,c,d,p){return h.dim==="angle"?{type:"Line",shape:a.makeLineShape(f.coordToPoint([d[0],c]),f.coordToPoint([d[1],c]))}:{type:"Circle",shape:{cx:f.cx,cy:f.cy,r:c}}},shadow:function(h,f,c,d,p){var g=Math.max(1,h.getBandWidth()),m=Math.PI/180;return h.dim==="angle"?{type:"Sector",shape:a.makeSectorShape(f.cx,f.cy,d[0],d[1],(-c-g/2)*m,(-c+g/2)*m)}:{type:"Sector",shape:a.makeSectorShape(f.cx,f.cy,c-g/2,c+g/2,0,Math.PI*2)}}};o.registerAxisPointerClass("PolarAxisPointer",s);var v=s;return pb=v,pb}var E3;function w0e(){if(E3)return g3;E3=1;var r=Pe(),t=ie(),e=f0e();return _D(),_0e(),S0e(),Sf(),b0e(),r.registerLayout(t.curry(e,"bar")),r.extendComponentView({type:"polar"}),g3}var k3={},gb,O3;function T0e(){if(O3)return gb;O3=1;var r=ie(),t=_t(),e=Lr(),a=gr(),i=lD(),n=fD(),o=e.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(l){e.prototype.init.apply(this,arguments),t.defaultEmphasis(l,"label",["show"])},optionUpdated:function(){var l=this.option,u=this;l.regions=n.getFilledRegions(l.regions,l.map,l.nameMap),this._optionModelMap=r.reduce(l.regions||[],function(v,h){return h.name&&v.set(h.name,new a(h,u)),v},r.createHashMap()),this.updateSelectedMap(l.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(l){return this._optionModelMap.get(l)||new a(null,this,this.ecModel)},getFormattedLabel:function(l,u){u=u||"normal";var v=this.getRegionModel(l),h=v.get((u==="normal"?"":u+".")+"label.formatter"),f={name:l};if(typeof h=="function")return f.status=u,h(f);if(typeof h=="string")return h.replace("{a}",l!=null?l:"")},setZoom:function(l){this.option.zoom=l},setCenter:function(l){this.option.center=l}});r.mixin(o,i);var s=o;return gb=s,gb}var mb,N3;function A0e(){if(N3)return mb;N3=1;var r=f$(),t=Pe(),e=t.extendComponentView({type:"geo",init:function(a,i){var n=new r(i,!0);this._mapDraw=n,this.group.add(n.group)},render:function(a,i,n,o){if(!(o&&o.type==="geoToggleSelect"&&o.from===this.uid)){var s=this._mapDraw;a.get("show")?s.draw(a,i,n,this,o):this._mapDraw.group.removeAll(),this.group.silent=a.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});return mb=e,mb}var z3;function C0e(){if(z3)return k3;z3=1;var r=Pe(),t=ie();T0e(),fD(),A0e(),c$();function e(a,i){i.update="updateView",r.registerAction(i,function(n,o){var s={};return o.eachComponent({mainType:"geo",query:n},function(l){l[a](n.name);var u=l.coordinateSystem;t.each(u.regions,function(v){s[v.name]=l.isSelected(v.name)||!1})}),{selected:s,name:n.name}})}return e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),k3}var B3={},yb,V3;function M0e(){if(V3)return yb;V3=1;var r=ie(),t=Ut(),e=st(),a=bi(),i=864e5;function n(l,u,v){this._model=l}n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(l){l=e.parseDate(l);var u=l.getFullYear(),v=l.getMonth()+1;v=v<10?"0"+v:v;var h=l.getDate();h=h<10?"0"+h:h;var f=l.getDay();return f=Math.abs((f+7-this.getFirstDayOfWeek())%7),{y:u,m:v,d:h,day:f,time:l.getTime(),formatedDate:u+"-"+v+"-"+h,date:l}},getNextNDay:function(l,u){return u=u||0,u===0?this.getDateInfo(l):(l=new Date(this.getDateInfo(l).time),l.setDate(l.getDate()+u),this.getDateInfo(l))},update:function(l,u){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var v=this._rangeInfo.weeks||1,h=["width","height"],f=this._model.get("cellSize").slice(),c=this._model.getBoxLayoutParams(),d=this._orient==="horizontal"?[v,7]:[7,v];r.each([0,1],function(y){m(f,y)&&(c[h[y]]=f[y]*d[y])});var p={width:u.getWidth(),height:u.getHeight()},g=this._rect=t.getLayoutRect(c,p);r.each([0,1],function(y){m(f,y)||(f[y]=g[h[y]]/d[y])});function m(y,_){return y[_]!=null&&y[_]!=="auto"}this._sw=f[0],this._sh=f[1]},dataToPoint:function(l,u){r.isArray(l)&&(l=l[0]),u==null&&(u=!0);var v=this.getDateInfo(l),h=this._rangeInfo,f=v.formatedDate;if(u&&!(v.time>=h.start.time&&v.timec.end.time&&l.reverse(),l},_getRangeInfo:function(l){l=[this.getDateInfo(l[0]),this.getDateInfo(l[1])];var u;l[0].time>l[1].time&&(u=!0,l.reverse());var v=Math.floor(l[1].time/i)-Math.floor(l[0].time/i)+1,h=new Date(l[0].time),f=h.getDate(),c=l[1].date.getDate();h.setDate(f+v-1);var d=h.getDate();if(d!==c)for(var p=h.getTime()-l[1].time>0?1:-1;(d=h.getDate())!==c&&(h.getTime()-l[1].time)*p>0;)v-=p,h.setDate(d-p);var g=Math.floor((v+l[0].day+6)/7),m=u?-g+1:g-1;return u&&l.reverse(),{range:[l[0].formatedDate,l[1].formatedDate],start:l[0],end:l[1],allDay:v,weeks:g,nthWeek:m,fweek:l[0].day,lweek:l[1].day}},_getDateByWeeksAndDay:function(l,u,v){var h=this._getRangeInfo(v);if(l>h.weeks||l===0&&uh.lweek)return!1;var f=(l-1)*7-h.fweek+u,c=new Date(h.start.time);return c.setDate(h.start.d+f),this.getDateInfo(c)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(l,u){var v=[];return l.eachComponent("calendar",function(h){var f=new n(h);v.push(f),h.coordinateSystem=f}),l.eachSeries(function(h){h.get("coordinateSystem")==="calendar"&&(h.coordinateSystem=v[h.get("calendarIndex")||0])}),v};function o(l,u,v,h){var f=v.calendarModel,c=v.seriesModel,d=f?f.coordinateSystem:c?c.coordinateSystem:null;return d===this?d[l](h):null}a.register("calendar",n);var s=n;return yb=s,yb}var _b,G3;function D0e(){if(G3)return _b;G3=1;var r=ie(),t=Lr(),e=Ut(),a=e.getLayoutParams,i=e.sizeCalculable,n=e.mergeLayoutParam,o=t.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(u,v,h,f){var c=a(u);o.superApply(this,"init",arguments),s(u,c)},mergeOption:function(u,v){o.superApply(this,"mergeOption",arguments),s(this.option,u)}});function s(u,v){var h=u.cellSize;r.isArray(h)?h.length===1&&(h[1]=h[0]):h=u.cellSize=[h,h];var f=r.map([0,1],function(c){return i(v,c)&&(h[c]="auto"),h[c]!=null&&h[c]!=="auto"});n(u,v,{type:"box",ignoreSize:f})}var l=o;return _b=l,_b}var xb,F3;function L0e(){if(F3)return xb;F3=1;var r=Pe(),t=ie(),e=qe(),a=Yt(),i=st(),n={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},o={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(l,u,v){var h=this.group;h.removeAll();var f=l.coordinateSystem,c=f.getRangeInfo(),d=f.getOrient();this._renderDayRect(l,c,h),this._renderLines(l,c,d,h),this._renderYearText(l,c,d,h),this._renderMonthText(l,d,h),this._renderWeekText(l,c,d,h)},_renderDayRect:function(l,u,v){for(var h=l.coordinateSystem,f=l.getModel("itemStyle").getItemStyle(),c=h.getCellWidth(),d=h.getCellHeight(),p=u.start.time;p<=u.end.time;p=h.getNextNDay(p,1).time){var g=h.dataToRect([p],!1).tl,m=new e.Rect({shape:{x:g[0],y:g[1],width:c,height:d},cursor:"default",style:f});v.add(m)}},_renderLines:function(l,u,v,h){var f=this,c=l.coordinateSystem,d=l.getModel("splitLine.lineStyle").getLineStyle(),p=l.get("splitLine.show"),g=d.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var m=u.start,y=0;m.time<=u.end.time;y++){x(m.formatedDate),y===0&&(m=c.getDateInfo(u.start.y+"-"+u.start.m));var _=m.date;_.setMonth(_.getMonth()+1),m=c.getDateInfo(_)}x(c.getNextNDay(u.end.time,1).formatedDate);function x(S){f._firstDayOfMonth.push(c.getDateInfo(S)),f._firstDayPoints.push(c.dataToRect([S],!1).tl);var b=f._getLinePointsOfOneWeek(l,S,v);f._tlpoints.push(b[0]),f._blpoints.push(b[b.length-1]),p&&f._drawSplitline(b,d,h)}p&&this._drawSplitline(f._getEdgesPoints(f._tlpoints,g,v),d,h),p&&this._drawSplitline(f._getEdgesPoints(f._blpoints,g,v),d,h)},_getEdgesPoints:function(l,u,v){var h=[l[0].slice(),l[l.length-1].slice()],f=v==="horizontal"?0:1;return h[0][f]=h[0][f]-u/2,h[1][f]=h[1][f]+u/2,h},_drawSplitline:function(l,u,v){var h=new e.Polyline({z2:20,shape:{points:l},style:u});v.add(h)},_getLinePointsOfOneWeek:function(l,u,v){var h=l.coordinateSystem;u=h.getDateInfo(u);for(var f=[],c=0;c<7;c++){var d=h.getNextNDay(u.time,c),p=h.dataToRect([d.time],!1);f[2*d.day]=p.tl,f[2*d.day+1]=p[v==="horizontal"?"bl":"tr"]}return f},_formatterLabel:function(l,u){return typeof l=="string"&&l?a.formatTplSimple(l,u):typeof l=="function"?l(u):u.nameMap},_yearTextPositionControl:function(l,u,v,h,f){u=u.slice();var c=["center","bottom"];h==="bottom"?(u[1]+=f,c=["center","top"]):h==="left"?u[0]-=f:h==="right"?(u[0]+=f,c=["center","top"]):u[1]-=f;var d=0;return(h==="left"||h==="right")&&(d=Math.PI/2),{rotation:d,position:u,style:{textAlign:c[0],textVerticalAlign:c[1]}}},_renderYearText:function(l,u,v,h){var f=l.getModel("yearLabel");if(f.get("show")){var c=f.get("margin"),d=f.get("position");d||(d=v!=="horizontal"?"top":"left");var p=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],g=(p[0][0]+p[1][0])/2,m=(p[0][1]+p[1][1])/2,y=v==="horizontal"?0:1,_={top:[g,p[y][1]],bottom:[g,p[1-y][1]],left:[p[1-y][0],m],right:[p[y][0],m]},x=u.start.y;+u.end.y>+u.start.y&&(x=x+"-"+u.end.y);var S=f.get("formatter"),b={start:u.start.y,end:u.end.y,nameMap:x},w=this._formatterLabel(S,b),A=new e.Text({z2:30});e.setTextStyle(A.style,f,{text:w}),A.attr(this._yearTextPositionControl(A,_[d],v,d,c)),h.add(A)}},_monthTextPositionControl:function(l,u,v,h,f){var c="left",d="top",p=l[0],g=l[1];return v==="horizontal"?(g=g+f,u&&(c="center"),h==="start"&&(d="bottom")):(p=p+f,u&&(d="middle"),h==="start"&&(c="right")),{x:p,y:g,textAlign:c,textVerticalAlign:d}},_renderMonthText:function(l,u,v){var h=l.getModel("monthLabel");if(h.get("show")){var f=h.get("nameMap"),c=h.get("margin"),d=h.get("position"),p=h.get("align"),g=[this._tlpoints,this._blpoints];t.isString(f)&&(f=n[f.toUpperCase()]||[]);var m=d==="start"?0:1,y=u==="horizontal"?0:1;c=d==="start"?-c:c;for(var _=p==="center",x=0;x=0;C--)b[C]==null?b.splice(C,1):delete b[C].$action},_flatten:function(y,_,x){e.each(y,function(S){if(S){x&&(S.parentOption=x),_.push(S);var b=S.children;S.type==="group"&&b&&this._flatten(b,_,S),delete S.children}},this)},useElOptionsToUpdate:function(){var y=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,y}});t.extendComponentView({type:"graphic",init:function(y,_){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(y,_,x){y!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=y,this._updateElements(y),this._relocate(y,x)},_updateElements:function(y){var _=y.useElOptionsToUpdate();if(_){var x=this._elMap,S=this.group;e.each(_,function(b){var w=b.$action,A=b.id,T=x.get(A),C=b.parentId,M=C!=null?x.get(C):S,L=b.style;b.type==="text"&&L&&(b.hv&&b.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var D=f(b);!w||w==="merge"?T?T.attr(D):v(A,M,D,x):w==="replace"?(h(T,x),v(A,M,D,x)):w==="remove"&&h(T,x);var P=x.get(A);P&&(P.__ecGraphicWidthOption=b.width,P.__ecGraphicHeightOption=b.height,m(P,y))})}},_relocate:function(y,_){for(var x=y.option.elements,S=this.group,b=this._elMap,w=_.getWidth(),A=_.getHeight(),T=0;T=0;T--){var C=x[T],M=b.get(C.id);if(M){var L=M.parent,P=L===S?{width:w,height:A}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};n.positionElement(M,C,P,null,{hv:C.hv,boundingMode:C.bounding})}}},_clear:function(){var y=this._elMap;y.each(function(_){h(_,y)}),this._elMap=e.createHashMap()},dispose:function(){this._clear()}});function v(y,_,x,S){var b=x.type,w=l.hasOwnProperty(b)?l[b]:i.getShapeClass(b),A=new w(x);_.add(A),S.set(y,A),A.__ecGraphicId=y}function h(y,_){var x=y&&y.parent;x&&(y.type==="group"&&y.traverse(function(S){h(S,_)}),_.removeKey(y.__ecGraphicId),x.remove(y))}function f(y){return y=e.extend({},y),e.each(["id","parentId","$action","hv","bounding"].concat(n.LOCATION_PARAMS),function(_){delete y[_]}),y}function c(y,_){var x;return e.each(_,function(S){y[S]!=null&&y[S]!=="auto"&&(x=!0)}),x}function d(y,_){var x=y.exist;if(_.id=y.keyInfo.id,!_.type&&x&&(_.type=x.type),_.parentId==null){var S=_.parentOption;S?_.parentId=S.id:x&&(_.parentId=x.parentId)}_.parentOption=null}function p(y,_,x){var S=e.extend({},x),b=y[_],w=x.$action||"merge";w==="merge"?b?(e.merge(b,S,!0),n.mergeLayoutParam(b,S,{ignoreSize:!0}),n.copyLayoutParams(x,b)):y[_]=S:w==="replace"?y[_]=S:w==="remove"&&b&&(y[_]=null)}function g(y,_){y&&(y.hv=_.hv=[c(_,["left","right"]),c(_,["top","bottom"])],y.type==="group"&&(y.width==null&&(y.width=_.width=0),y.height==null&&(y.height=_.height=0)))}function m(y,_,x){var S=y.eventData;!y.silent&&!y.ignore&&!S&&(S=y.eventData={componentType:"graphic",componentIndex:_.componentIndex,name:y.name}),S&&(S.info=y.info)}return q3}var U3={},zc={},$3;function wo(){if($3)return zc;$3=1;var r={};function t(a,i){r[a]=i}function e(a){return r[a]}return zc.register=t,zc.get=e,zc}var Sb,Y3;function R0e(){if(Y3)return Sb;Y3=1;var r=Pe(),t=ie(),e=wo(),a=r.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),t.each(this.option.feature,function(n,o){var s=e.get(o);s&&t.merge(n,s.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),i=a;return Sb=i,Sb}var Bc={},Z3;function R$(){if(Z3)return Bc;Z3=1;var r=Ut(),t=r.getLayoutRect,e=r.box,a=r.positionElement,i=Yt(),n=qe();function o(l,u,v){var h=u.getBoxLayoutParams(),f=u.get("padding"),c={width:v.getWidth(),height:v.getHeight()},d=t(h,c,f);e(u.get("orient"),l,u.get("itemGap"),d.width,d.height),a(l,h,c,f)}function s(f,u){var v=i.normalizeCssArray(u.get("padding")),h=u.getItemStyle(["color","opacity"]);h.fill=u.get("backgroundColor");var f=new n.Rect({shape:{x:f.x-v[3],y:f.y-v[0],width:f.width+v[1]+v[3],height:f.height+v[0]+v[2],r:u.get("borderRadius")},style:h,silent:!0,z2:-1});return f}return Bc.layout=o,Bc.makeBackground=s,Bc}var bb,X3;function E0e(){if(X3)return bb;X3=1;var r=Pe(),t=ie(),e=Da(),a=wo(),i=qe(),n=gr(),o=Zs(),s=R$(),l=r.extendComponentView({type:"toolbox",render:function(v,h,f,c){var d=this.group;if(d.removeAll(),!v.get("show"))return;var p=+v.get("itemSize"),g=v.get("feature")||{},m=this._features||(this._features={}),y=[];t.each(g,function(S,b){y.push(b)}),new o(this._featureNames||[],y).add(_).update(_).remove(t.curry(_,null)).execute(),this._featureNames=y;function _(S,b){var w=y[S],A=y[b],T=g[w],C=new n(T,v,v.ecModel),M;if(c&&c.newTitle!=null&&c.featureName===w&&(T.title=c.newTitle),w&&!A){if(u(w))M={model:C,onclick:C.option.onclick,featureName:w};else{var L=a.get(w);if(!L)return;M=new L(C,h,f)}m[w]=M}else{if(M=m[A],!M)return;M.model=C,M.ecModel=h,M.api=f}if(!w&&A){M.dispose&&M.dispose(h,f);return}if(!C.get("show")||M.unusable){M.remove&&M.remove(h,f);return}x(C,M,w),C.setIconStatus=function(D,P){var I=this.option,R=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[D]=P,R[D]&&R[D].trigger(P)},M.render&&M.render(C,h,f,c)}function x(S,b,w){var A=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),C=b.getIcons?b.getIcons():S.get("icon"),M=S.get("title")||{};if(typeof C=="string"){var L=C,D=M;C={},M={},C[w]=L,M[w]=D}var P=S.iconPaths={};t.each(C,function(I,R){var E=i.createIcon(I,{},{x:-p/2,y:-p/2,width:p,height:p});E.setStyle(A.getItemStyle()),E.hoverStyle=T.getItemStyle(),E.setStyle({text:M[R],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var k=v.getModel("tooltip");k&&k.get("show")&&E.attr("tooltip",t.extend({content:M[R],formatter:k.get("formatter",!0)||function(){return M[R]},formatterParams:{componentType:"toolbox",name:R,title:M[R],$vars:["name","title"]},position:k.get("position",!0)||"bottom"},k.option)),i.setHoverStyle(E),v.get("showTitle")&&(E.__title=M[R],E.on("mouseover",function(){var B=T.getItemStyle(),F=v.get("orient")==="vertical"?v.get("right")==null?"right":"left":v.get("bottom")==null?"bottom":"top";E.setStyle({textFill:T.get("textFill")||B.fill||B.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||F})}).on("mouseout",function(){E.setStyle({textFill:null,textBackgroundColor:null})})),E.trigger(S.get("iconStatus."+R)||"normal"),d.add(E),E.on("click",t.bind(b.onclick,b,h,f,R)),P[R]=E})}s.layout(d,v,f),d.add(s.makeBackground(d.getBoundingRect(),v)),d.eachChild(function(S){var b=S.__title,w=S.hoverStyle;if(w&&b){var A=e.getBoundingRect(b,e.makeFont(w)),T=S.position[0]+d.position[0],C=S.position[1]+d.position[1]+p,M=!1;C+A.height>f.getHeight()&&(w.textPosition="top",M=!0);var L=M?-5-A.height:p+8;T+A.width/2>f.getWidth()?(w.textPosition=["100%",L],w.textAlign="right"):T-A.width/2<0&&(w.textPosition=[0,L],w.textAlign="left")}})},updateView:function(v,h,f,c){t.each(this._features,function(d){d.updateView&&d.updateView(d.model,h,f,c)})},remove:function(v,h){t.each(this._features,function(f){f.remove&&f.remove(v,h)}),this.group.removeAll()},dispose:function(v,h){t.each(this._features,function(f){f.dispose&&f.dispose(v,h)})}});function u(v){return v.indexOf("my")===0}return bb=l,bb}var wb,K3;function k0e(){if(K3)return wb;K3=1;var r=pr(),t=xo(),e=wo(),a=t.toolbox.saveAsImage;function i(s){this.model=s}i.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},i.prototype.unusable=!r.canvasSupported;var n=i.prototype;n.onclick=function(s,l){var u=this.model,v=u.get("name")||s.get("title.0.text")||"echarts",h=l.getZr().painter.getType()==="svg",f=h?"svg":u.get("type",!0)||"png",c=l.getConnectedDataURL({type:f,backgroundColor:u.get("backgroundColor",!0)||s.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if(typeof MouseEvent=="function"&&!r.browser.ie&&!r.browser.edge){var d=document.createElement("a");d.download=v+"."+f,d.target="_blank",d.href=c;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob){for(var g=atob(c.split(",")[1]),m=g.length,y=new Uint8Array(m);m--;)y[m]=g.charCodeAt(m);var _=new Blob([y]);window.navigator.msSaveOrOpenBlob(_,v+"."+f)}else{var x=u.get("lang"),S='',b=window.open();b.document.write(S)}},e.register("saveAsImage",i);var o=i;return wb=o,wb}var Tb,Q3;function O0e(){if(Q3)return Tb;Q3=1;var r=Pe(),t=ie(),e=xo(),a=wo(),i=e.toolbox.magicType,n="__ec_magicType_stack__";function o(h){this.model=h}o.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.clone(i.title),option:{},seriesIndex:{}};var s=o.prototype;s.getIcons=function(){var h=this.model,f=h.get("icon"),c={};return t.each(h.get("type"),function(d){f[d]&&(c[d]=f[d])}),c};var l={line:function(h,f,c,d){if(h==="bar")return t.merge({id:f,type:"line",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},d.get("option.line")||{},!0)},bar:function(h,f,c,d){if(h==="line")return t.merge({id:f,type:"bar",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},d.get("option.bar")||{},!0)},stack:function(h,f,c,d){var p=c.get("stack")===n;if(h==="line"||h==="bar")return d.setIconStatus("stack",p?"normal":"emphasis"),t.merge({id:f,stack:p?"":n},d.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(h,f,c){var d=this.model,p=d.get("seriesIndex."+c);if(l[c]){var g={series:[]},m=function(x){var S=x.subType,b=x.id,w=l[c](S,b,x,d);w&&(t.defaults(w,x.option),g.series.push(w));var A=x.coordinateSystem;if(A&&A.type==="cartesian2d"&&(c==="line"||c==="bar")){var T=A.getAxesByScale("ordinal")[0];if(T){var C=T.dim,M=C+"Axis",L=h.queryComponents({mainType:M,index:x.get(name+"Index"),id:x.get(name+"Id")})[0],D=L.componentIndex;g[M]=g[M]||[];for(var P=0;P<=D;P++)g[M][D]=g[M][D]||{};g[M][D].boundaryGap=c==="bar"}}};t.each(u,function(x){t.indexOf(x,c)>=0&&t.each(x,function(S){d.setIconStatus(S,"normal")})}),d.setIconStatus(c,"emphasis"),h.eachComponent({mainType:"series",query:p==null?null:{seriesIndex:p}},m);var y;if(c==="stack"){var _=g.series&&g.series[0]&&g.series[0].stack===n;y=_?t.merge({stack:i.title.tiled},i.title):t.clone(i.title)}f.dispatchAction({type:"changeMagicType",currentType:c,newOption:g,newTitle:y,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(h,f){f.mergeOption(h.newOption)}),a.register("magicType",o);var v=o;return Tb=v,Tb}var Ab,j3;function N0e(){if(j3)return Ab;j3=1;var r=Pe(),t=ie(),e=Ji(),a=xo(),i=wo(),n=a.toolbox.dataView,o=new Array(60).join("-"),s=" ";function l(S){var b={},w=[],A=[];return S.eachRawSeries(function(T){var C=T.coordinateSystem;if(C&&(C.type==="cartesian2d"||C.type==="polar")){var M=C.getBaseAxis();if(M.type==="category"){var L=M.dim+"_"+M.index;b[L]||(b[L]={categoryAxis:M,valueAxis:C.getOtherAxis(M),series:[]},A.push({axisDim:M.dim,axisIndex:M.index})),b[L].series.push(T)}else w.push(T)}else w.push(T)}),{seriesGroupByCategoryAxis:b,other:w,meta:A}}function u(S){var b=[];return t.each(S,function(w,A){var T=w.categoryAxis,C=w.valueAxis,M=C.dim,L=[" "].concat(t.map(w.series,function(k){return k.name})),D=[T.model.getCategories()];t.each(w.series,function(k){var B=k.getRawData();D.push(k.getRawData().mapArray(B.mapDimension(M),function(F){return F}))});for(var P=[L.join(s)],I=0;I=0)return!0}var d=new RegExp("["+s+"]+","g");function p(S){for(var b=S.split(/\n+/g),w=f(b.shift()).split(d),A=[],T=t.map(w,function(D){return{name:D,data:[]}}),C=0;C=0)&&P(D,M,L)})}var h=v.prototype;h.setOutputRanges=function(A,T){this.matchOutputRanges(A,T,function(C,M,L){if((C.coordRanges||(C.coordRanges=[])).push(M),!C.coordRange){C.coordRange=M;var D=m[C.brushType](0,L,M);C.__rangeOffset={offset:_[C.brushType](D.values,C.range,[1,1]),xyMinMax:D.xyMinMax}}})},h.matchOutputRanges=function(A,T,C){n(A,function(M){var L=this.findTargetInfo(M,T);L&&L!==!0&&t.each(L.coordSyses,function(D){var P=m[M.brushType](1,D,M.range);C(M,P.values,D,T)})},this)},h.setInputRanges=function(A,T){n(A,function(C){var M=this.findTargetInfo(C,T);if(C.range=C.range||[],M&&M!==!0){C.panelId=M.panelId;var L=m[C.brushType](0,M.coordSys,C.coordRange),D=C.__rangeOffset;C.range=D?_[C.brushType](L.values,D.offset,S(L.xyMinMax,D.xyMinMax)):L.values}},this)},h.makePanelOpts=function(A,T){return t.map(this._targetInfoList,function(C){var M=C.getPanelRect();return{panelId:C.panelId,defaultBrushType:T&&T(C),clipPath:i.makeRectPanelClipPath(M),isTargetByCursor:i.makeRectIsTargetByCursor(M,A,C.coordSysModel),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(M)}})},h.controlSeries=function(A,T,C){var M=this.findTargetInfo(A,C);return M===!0||M&&o(M.coordSyses,T.coordinateSystem)>=0},h.findTargetInfo=function(A,T){for(var C=this._targetInfoList,M=c(T,A),L=0;LA[1]&&A.reverse(),A}function c(A,T){return a.parseFinder(A,T,{includeMainTypes:u})}var d={grid:function(A,T){var C=A.xAxisModels,M=A.yAxisModels,L=A.gridModels,D=t.createHashMap(),P={},I={};!C&&!M&&!L||(n(C,function(R){var E=R.axis.grid.model;D.set(E.id,E),P[E.id]=!0}),n(M,function(R){var E=R.axis.grid.model;D.set(E.id,E),I[E.id]=!0}),n(L,function(R){D.set(R.id,R),P[R.id]=!0,I[R.id]=!0}),D.each(function(R){var E=R.coordinateSystem,k=[];n(E.getCartesians(),function(B,F){(o(C,B.getAxis("x").model)>=0||o(M,B.getAxis("y").model)>=0)&&k.push(B)}),T.push({panelId:"grid--"+R.id,gridModel:R,coordSysModel:R,coordSys:k[0],coordSyses:k,getPanelRect:g.grid,xAxisDeclared:P[R.id],yAxisDeclared:I[R.id]})}))},geo:function(A,T){n(A.geoModels,function(C){var M=C.coordinateSystem;T.push({panelId:"geo--"+C.id,geoModel:C,coordSysModel:C,coordSys:M,coordSyses:[M],getPanelRect:g.geo})})}},p=[function(A,T){var C=A.xAxisModel,M=A.yAxisModel,L=A.gridModel;return!L&&C&&(L=C.axis.grid.model),!L&&M&&(L=M.axis.grid.model),L&&L===T.gridModel},function(A,T){var C=A.geoModel;return C&&C===T.geoModel}],g={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var A=this.coordSys,T=A.getBoundingRect().clone();return T.applyTransform(e.getTransform(A)),T}},m={lineX:s(y,0),lineY:s(y,1),rect:function(A,T,C){var M=T[l[A]]([C[0][0],C[1][0]]),L=T[l[A]]([C[0][1],C[1][1]]),D=[f([M[0],L[0]]),f([M[1],L[1]])];return{values:D,xyMinMax:D}},polygon:function(A,T,C){var M=[[1/0,-1/0],[1/0,-1/0]],L=t.map(C,function(D){var P=T[l[A]](D);return M[0][0]=Math.min(M[0][0],P[0]),M[1][0]=Math.min(M[1][0],P[1]),M[0][1]=Math.max(M[0][1],P[0]),M[1][1]=Math.max(M[1][1],P[1]),P});return{values:L,xyMinMax:M}}};function y(A,T,C,M){var L=C.getAxis(["x","y"][A]),D=f(t.map([0,1],function(I){return T?L.coordToData(L.toLocalCoord(M[I])):L.toGlobalCoord(L.dataToCoord(M[I]))})),P=[];return P[A]=D,P[1-A]=[NaN,NaN],{values:D,xyMinMax:P}}var _={lineX:s(x,0),lineY:s(x,1),rect:function(A,T,C){return[[A[0][0]-C[0]*T[0][0],A[0][1]-C[0]*T[0][1]],[A[1][0]-C[1]*T[1][0],A[1][1]-C[1]*T[1][1]]]},polygon:function(A,T,C){return t.map(A,function(M,L){return[M[0]-C[0]*T[L][0],M[1]-C[1]*T[L][1]]})}};function x(A,T,C,M){return[T[0]-M[A]*C[0],T[1]-M[A]*C[1]]}function S(A,T){var C=b(A),M=b(T),L=[C[0]/M[0],C[1]/M[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function b(A){return A?[A[0][1]-A[0][0],A[1][1]-A[1][0]]:[NaN,NaN]}var w=v;return Cb=w,Cb}var Tl={},eF;function k$(){if(eF)return Tl;eF=1;var r=ie(),t=r.each,e="\0_ec_hist_store";function a(l,u){var v=s(l);t(u,function(h,f){for(var c=v.length-1;c>=0;c--){var d=v[c];if(d[f])break}if(c<0){var p=l.queryComponents({mainType:"dataZoom",subType:"select",id:f})[0];if(p){var g=p.getPercentRange();v[0][f]={dataZoomId:f,start:g[0],end:g[1]}}}}),v.push(u)}function i(l){var u=s(l),v=u[u.length-1];u.length>1&&u.pop();var h={};return t(v,function(f,c){for(var d=u.length-1;d>=0;d--){var f=u[d][c];if(f){h[c]=f;break}}}),h}function n(l){l[e]=null}function o(l){return s(l).length}function s(l){var u=l[e];return u||(u=l[e]=[{}]),u}return Tl.push=a,Tl.pop=i,Tl.clear=n,Tl.count=o,Tl}var tF={},rF={},aF;function xD(){if(aF)return rF;aF=1;var r=Lr();return r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}),rF}var Al={},iF;function SD(){if(iF)return Al;iF=1;var r=ie(),t=Yt(),e=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function i(l){return r.indexOf(a,l)>=0}function n(l,u){l=l.slice();var v=r.map(l,t.capitalFirst);u=(u||[]).slice();var h=r.map(u,t.capitalFirst);return function(f,c){r.each(l,function(d,p){for(var g={name:d,capital:v[p]},m=0;m=0}function f(d,p){var g=!1;return u(function(m){r.each(v(d,m)||[],function(y){p.records[m.name][y]&&(g=!0)})}),g}function c(d,p){p.nodes.push(d),u(function(g){r.each(v(d,g)||[],function(m){p.records[g.name][m]=!0})})}}return Al.isCoordSupported=i,Al.createNameEach=n,Al.eachAxisDim=o,Al.createLinkedNodesFinder=s,Al}var Mb,nF;function z0e(){if(nF)return Mb;nF=1;var r=ie(),t=st(),e=SD(),a=Iu(),i=r.each,n=t.asc,o=function(f,c,d,p){this._dimName=f,this._axisIndex=c,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=p,this._dataZoomModel=d};o.prototype={constructor:o,hostedBy:function(f){return this._dataZoomModel===f},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var f=[],c=this.ecModel;return c.eachSeries(function(d){if(e.isCoordSupported(d.get("coordinateSystem"))){var p=this._dimName,g=c.queryComponents({mainType:p+"Axis",index:d.get(p+"AxisIndex"),id:d.get(p+"AxisId")})[0];this._axisIndex===(g&&g.componentIndex)&&f.push(d)}},this),f},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var f=this._dimName,c=this.ecModel,d=this.getAxisModel(),p=f==="x"||f==="y",g,m;p?(m="gridIndex",g=f==="x"?"y":"x"):(m="polarIndex",g=f==="angle"?"radius":"angle");var y;return c.eachComponent(g+"Axis",function(_){(_.get(m)||0)===(d.get(m)||0)&&(y=_)}),y},getMinMaxSpan:function(){return r.clone(this._minMaxSpan)},calculateDataWindow:function(f){var c=this._dataExtent,d=this.getAxisModel(),p=d.axis.scale,g=this._dataZoomModel.getRangePropMode(),m=[0,100],y=[],_=[],x;i(["start","end"],function(w,A){var T=f[w],C=f[w+"Value"];g[A]==="percent"?(T==null&&(T=m[A]),C=p.parse(t.linearMap(T,m,c))):(x=!0,C=C==null?c[A]:p.parse(C),T=t.linearMap(C,c,m)),_[A]=C,y[A]=T}),n(_),n(y);var S=this._minMaxSpan;x?b(_,y,c,m,!1):b(y,_,m,c,!0);function b(w,A,T,C,M){var L=M?"Span":"ValueSpan";a(0,w,T,"all",S["min"+L],S["max"+L]);for(var D=0;D<2;D++)A[D]=t.linearMap(w[D],T,C,!0),M&&(A[D]=p.parse(A[D]))}return{valueWindow:_,percentWindow:y}},reset:function(f){if(f===this._dataZoomModel){var c=this.getTargetSeriesModels();this._dataExtent=s(this,this._dimName,c),v(this);var d=this.calculateDataWindow(f.settledOption);this._valueWindow=d.valueWindow,this._percentWindow=d.percentWindow,u(this)}},restore:function(f){f===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,u(this,!0))},filterData:function(f,c){if(f!==this._dataZoomModel)return;var d=this._dimName,p=this.getTargetSeriesModels(),g=f.get("filterMode"),m=this._valueWindow;if(g==="none")return;i(p,function(_){var x=_.getData(),S=x.mapDimension(d,!0);S.length&&(g==="weakFilter"?x.filterSelf(function(b){for(var w,A,T,C=0;Cm[1];if(L&&!D&&!P)return!0;L&&(T=!0),D&&(w=!0),P&&(A=!0)}return T&&w&&A}):i(S,function(b){if(g==="empty")_.setData(x=x.map(b,function(A){return y(A)?A:NaN}));else{var w={};w[b]=m,x.selectRange(w)}}),i(S,function(b){x.setApproximateExtent(m,b)}))});function y(_){return _>=m[0]&&_<=m[1]}}};function s(f,c,d){var p=[1/0,-1/0];return i(d,function(g){var m=g.getData();m&&i(m.mapDimension(c,!0),function(y){var _=m.getApproximateExtent(y);_[0]p[1]&&(p[1]=_[1])})}),p[1]0?0:NaN);var y=d.getMax(!0);return y!=null&&y!=="dataMax"&&typeof y!="function"?c[1]=y:g&&(c[1]=m>0?m-1:NaN),d.get("scale",!0)||(c[0]>0&&(c[0]=0),c[1]<0&&(c[1]=0)),c}function u(f,c){var d=f.getAxisModel(),p=f._percentWindow,g=f._valueWindow;if(p){var m=t.getPixelPrecision(g,[0,500]);m=Math.min(m,20);var y=c||p[0]===0&&p[1]===100;d.setRange(y?null:+g[0].toFixed(m),y?null:+g[1].toFixed(m))}}function v(f){var c=f._minMaxSpan={},d=f._dataZoomModel,p=f._dataExtent;i(["min","max"],function(g){var m=d.get(g+"Span"),y=d.get(g+"ValueSpan");y!=null&&(y=f.getAxisModel().axis.scale.parse(y)),y!=null?m=t.linearMap(p[0]+y,p,[0,100],!0):m!=null&&(y=t.linearMap(m,[0,100],p,!0)-p[0]),c[g+"Span"]=m,c[g+"ValueSpan"]=y})}var h=o;return Mb=h,Mb}var Db,oF;function Pu(){if(oF)return Db;oF=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=pr(),i=_t(),n=SD(),o=z0e(),s=e.each,l=n.eachAxisDim,u=t.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(c,d,p){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var g=v(c);this.settledOption=g,this.mergeDefaultAndTheme(c,p),this.doInit(g)},mergeOption:function(c){var d=v(c);e.merge(this.option,c,!0),e.merge(this.settledOption,d,!0),this.doInit(d)},doInit:function(c){var d=this.option;a.canvasSupported||(d.realtime=!1),this._setDefaultThrottle(c),h(this,c);var p=this.settledOption;s([["start","startValue"],["end","endValue"]],function(g,m){this._rangePropMode[m]==="value"&&(d[g[0]]=p[g[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var c=this._axisProxies;this.eachTargetAxis(function(d,p,g,m){var y=this.dependentModels[d.axis][p],_=y.__dzAxisProxy||(y.__dzAxisProxy=new o(d.name,p,this,m));c[d.name+"_"+p]=_},this)},_resetTarget:function(){var c=this.option,d=this._judgeAutoMode();l(function(p){var g=p.axisIndex;c[g]=i.normalizeToArray(c[g])},this),d==="axisIndex"?this._autoSetAxisIndex():d==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var c=this.option,d=!1;l(function(g){c[g.axisIndex]!=null&&(d=!0)},this);var p=c.orient;if(p==null&&d)return"orient";if(!d)return p==null&&(c.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var c=!0,d=this.get("orient",!0),p=this.option,g=this.dependentModels;if(c){var m=d==="vertical"?"y":"x";g[m+"Axis"].length?(p[m+"AxisIndex"]=[0],c=!1):s(g.singleAxis,function(y){c&&y.get("orient",!0)===d&&(p.singleAxisIndex=[y.componentIndex],c=!1)})}c&&l(function(y){if(c){var _=[],x=this.dependentModels[y.axis];if(x.length&&!_.length)for(var S=0,b=x.length;S0?100:20}},getFirstTargetAxisModel:function(){var c;return l(function(d){if(c==null){var p=this.get(d.axisIndex);p.length&&(c=this.dependentModels[d.axis][p[0]])}},this),c},eachTargetAxis:function(c,d){var p=this.ecModel;l(function(g){s(this.get(g.axisIndex),function(m){c.call(d,g,m,this,p)},this)},this)},getAxisProxy:function(c,d){return this._axisProxies[c+"_"+d]},getAxisModel:function(c,d){var p=this.getAxisProxy(c,d);return p&&p.getAxisModel()},setRawRange:function(c){var d=this.option,p=this.settledOption;s([["start","startValue"],["end","endValue"]],function(g){(c[g[0]]!=null||c[g[1]]!=null)&&(d[g[0]]=p[g[0]]=c[g[0]],d[g[1]]=p[g[1]]=c[g[1]])},this),h(this,c)},setCalculatedRange:function(c){var d=this.option;s(["start","startValue","end","endValue"],function(p){d[p]=c[p]})},getPercentRange:function(){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataPercentWindow()},getValueRange:function(c,d){if(c==null&&d==null){var p=this.findRepresentativeAxisProxy();if(p)return p.getDataValueWindow()}else return this.getAxisProxy(c,d).getDataValueWindow()},findRepresentativeAxisProxy:function(c){if(c)return c.__dzAxisProxy;var d=this._axisProxies;for(var p in d)if(d.hasOwnProperty(p)&&d[p].hostedBy(this))return d[p];for(var p in d)if(d.hasOwnProperty(p)&&!d[p].hostedBy(this))return d[p]},getRangePropMode:function(){return this._rangePropMode.slice()}});function v(c){var d={};return s(["start","end","startValue","endValue","throttle"],function(p){c.hasOwnProperty(p)&&(d[p]=c[p])}),d}function h(c,d){var p=c._rangePropMode,g=c.get("rangeMode");s([["start","startValue"],["end","endValue"]],function(m,y){var _=d[m[0]]!=null,x=d[m[1]]!=null;_&&!x?p[y]="percent":!_&&x?p[y]="value":g?p[y]=g[y]:_&&(p[y]="percent")})}var f=u;return Db=f,Db}var Lb,sF;function Ru(){if(sF)return Lb;sF=1;var r=fg(),t=r.extend({type:"dataZoom",render:function(e,a,i,n){this.dataZoomModel=e,this.ecModel=a,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,a=this.ecModel,i={};e.eachTargetAxis(function(o,s){var l=a.getComponent(o.axis,s);if(l){var u=l.getCoordSysModel();u&&n(u,l,i[u.mainType]||(i[u.mainType]=[]),u.componentIndex)}},this);function n(o,s,l,u){for(var v,h=0;h1?"emphasis":"normal")}function g(y,_,x,S,b){var w=x._isZoomActive;S&&S.type==="takeGlobalCursor"&&(w=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),x._isZoomActive=w,y.setIconStatus("zoom",w?"emphasis":"normal");var A=new a(d(y.option),_,{include:["grid"]});x._brushController.setPanels(A.makePanelOpts(b,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(w?{brushType:"auto",brushStyle:y.getModel("brushStyle").getItemStyle()}:!1)}s.register("dataZoom",h),r.registerPreprocessor(function(y){if(!y)return;var _=y.dataZoom||(y.dataZoom=[]);t.isArray(_)||(y.dataZoom=_=[_]);var x=y.toolbox;if(x&&(t.isArray(x)&&(x=x[0]),x&&x.feature)){var S=x.feature.dataZoom;b("xAxis",S),b("yAxis",S)}function b(A,T){if(T){var C=A+"Index",M=T[C];M!=null&&M!=="all"&&!t.isArray(M)&&(M=M===!1||M==="none"?[]:[M]),w(A,function(L,D){if(!(M!=null&&M!=="all"&&t.indexOf(M,D)===-1)){var P={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:v+A+D};P[C]=D,_.push(P)}})}}function w(A,T){var C=y[A];t.isArray(C)||(C=C?[C]:[]),u(C,T)}});var m=h;return Rb=m,Rb}var Eb,gF;function H0e(){if(gF)return Eb;gF=1;var r=Pe(),t=k$(),e=xo(),a=wo(),i=e.toolbox.restore;function n(l){this.model=l}n.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:i.title};var o=n.prototype;o.onclick=function(l,u,v){t.clear(l),u.dispatchAction({type:"restore",from:this.uid})},a.register("restore",n),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(l,u){u.resetOption("recreate")});var s=n;return Eb=s,Eb}var mF;function q0e(){return mF||(mF=1,R0e(),E0e(),k0e(),O0e(),N0e(),F0e(),H0e()),U3}var yF={},kb,_F;function W0e(){if(_F)return kb;_F=1;var r=Pe(),t=r.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});return kb=t,kb}var Ob,xF;function U0e(){if(xF)return Ob;xF=1;var r=ie(),t=en(),e=Ji(),a=b9(),i=pr(),n=Yt(),o=r.each,s=n.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function v(g){var m="cubic-bezier(0.23, 1, 0.32, 1)",y="left "+g+"s "+m+",top "+g+"s "+m;return r.map(l,function(_){return _+"transition:"+y}).join(";")}function h(g){var m=[],y=g.get("fontSize"),_=g.getTextColor();_&&m.push("color:"+_),m.push("font:"+g.getFont());var x=g.get("lineHeight");x==null&&(x=Math.round(y*3/2)),y&&m.push("line-height:"+x+"px");var S=g.get("textShadowColor"),b=g.get("textShadowBlur")||0,w=g.get("textShadowOffsetX")||0,A=g.get("textShadowOffsetY")||0;return b&&m.push("text-shadow:"+w+"px "+A+"px "+b+"px "+S),o(["decoration","align"],function(T){var C=g.get(T);C&&m.push("text-"+T+":"+C)}),m.join(";")}function f(g){var m=[],y=g.get("transitionDuration"),_=g.get("backgroundColor"),x=g.getModel("textStyle"),S=g.get("padding");return y&&m.push(v(y)),_&&(i.canvasSupported?m.push("background-Color:"+_):(m.push("background-Color:#"+t.toHex(_)),m.push("filter:alpha(opacity=70)"))),o(["width","color","radius"],function(b){var w="border-"+b,A=s(w),T=g.get(A);T!=null&&m.push(w+":"+T+(b==="color"?"":"px"))}),m.push(h(x)),S!=null&&m.push("padding:"+n.normalizeCssArray(S).join("px ")+"px"),m.join(";")+";"}function c(g,m,y,_,x){var S=m&&m.painter;if(y){var b=S&&S.getViewportRoot();b&&a.transformLocalCoord(g,b,document.body,_,x)}else{g[0]=_,g[1]=x;var w=S&&S.getViewportRootOffset();w&&(g[0]+=w.offsetLeft,g[1]+=w.offsetTop)}g[2]=g[0]/m.getWidth(),g[3]=g[1]/m.getHeight()}function d(g,m,y){if(i.wxa)return null;var _=document.createElement("div");_.domBelongToZr=!0,this.el=_;var x=this._zr=m.getZr(),S=this._appendToBody=y&&y.appendToBody;this._styleCoord=[0,0,0,0],c(this._styleCoord,x,S,m.getWidth()/2,m.getHeight()/2),S?document.body.appendChild(_):g.appendChild(_),this._container=g,this._show=!1,this._hideTimeout;var b=this;_.onmouseenter=function(){b._enterable&&(clearTimeout(b._hideTimeout),b._show=!0),b._inContent=!0},_.onmousemove=function(w){if(w=w||window.event,!b._enterable){var A=x.handler,T=x.painter.getViewportRoot();e.normalizeEvent(T,w,!0),A.dispatch("mousemove",w)}},_.onmouseleave=function(){b._enterable&&b._show&&b.hideLater(b._hideDelay),b._inContent=!1}}d.prototype={constructor:d,_enterable:!0,update:function(g){var m=this._container,y=m.currentStyle||document.defaultView.getComputedStyle(m),_=m.style;_.position!=="absolute"&&y.position!=="absolute"&&(_.position="relative");var x=g.get("alwaysShowContent");x&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var g=this._styleCoord[2],m=this._styleCoord[3],y=g*this._zr.getWidth(),_=m*this._zr.getHeight();this.moveTo(y,_)},show:function(g){clearTimeout(this._hideTimeout);var m=this.el,y=this._styleCoord;m.style.cssText=u+f(g)+";left:"+y[0]+"px;top:"+y[1]+"px;"+(g.get("extraCssText")||""),m.style.display=m.innerHTML?"block":"none",m.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(g){this.el.innerHTML=g==null?"":g},setEnterable:function(g){this._enterable=g},getSize:function(){var g=this.el;return[g.clientWidth,g.clientHeight]},moveTo:function(g,m){var y=this._styleCoord;c(y,this._zr,this._appendToBody,g,m);var _=this.el.style;_.left=y[0]+"px",_.top=y[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(g){this._show&&!(this._inContent&&this._enterable)&&(g?(this._hideDelay=g,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),g)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var g=this.el.clientWidth,m=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var y=document.defaultView.getComputedStyle(this.el);y&&(g+=parseInt(y.borderLeftWidth,10)+parseInt(y.borderRightWidth,10),m+=parseInt(y.borderTopWidth,10)+parseInt(y.borderBottomWidth,10))}return{width:g,height:m}}};var p=d;return Ob=p,Ob}var Nb,SF;function $0e(){if(SF)return Nb;SF=1;var r=ie(),t=$s(),e=qe();function a(o,s,l,u){o[0]=l,o[1]=u,o[2]=o[0]/s.getWidth(),o[3]=o[1]/s.getHeight()}function i(o){var s=this._zr=o.getZr();this._styleCoord=[0,0,0,0],a(this._styleCoord,s,o.getWidth()/2,o.getHeight()/2),this._show=!1,this._hideTimeout}i.prototype={constructor:i,_enterable:!0,update:function(o){var s=o.get("alwaysShowContent");s&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var o=this._styleCoord[2],s=this._styleCoord[3],l=o*this._zr.getWidth(),u=s*this._zr.getHeight();this.moveTo(l,u)},show:function(o){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(o,s,l){this.el&&this._zr.remove(this.el);for(var u={},v=o,h="{marker",f="|}",c=v.indexOf(h);c>=0;){var d=v.indexOf(f),p=v.substr(c+h.length,d-c-h.length);p.indexOf("sub")>-1?u["marker"+p]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:s[p],textOffset:[3,0]}:u["marker"+p]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:s[p]},v=v.substr(d+1),c=v.indexOf("{marker")}var g=l.getModel("textStyle"),m=g.get("fontSize"),y=l.get("textLineHeight");y==null&&(y=Math.round(m*3/2)),this.el=new t({style:e.setTextStyle({},g,{rich:u,text:o,textBackgroundColor:l.get("backgroundColor"),textBorderRadius:l.get("borderRadius"),textFill:l.get("textStyle.color"),textPadding:l.get("padding"),textLineHeight:y}),z:l.get("z")}),this._zr.add(this.el);var _=this;this.el.on("mouseover",function(){_._enterable&&(clearTimeout(_._hideTimeout),_._show=!0),_._inContent=!0}),this.el.on("mouseout",function(){_._enterable&&_._show&&_.hideLater(_._hideDelay),_._inContent=!1})},setEnterable:function(o){this._enterable=o},getSize:function(){var o=this.el.getBoundingRect();return[o.width,o.height]},moveTo:function(o,s){if(this.el){var l=this._styleCoord;a(l,this._zr,o,s),this.el.attr("position",[l[0],l[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(o){this._show&&!(this._inContent&&this._enterable)&&(o?(this._hideDelay=o,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),o)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var o=this.getSize();return{width:o[0],height:o[1]}}};var n=i;return Nb=n,Nb}var zb,bF;function Y0e(){if(bF)return zb;bF=1;var r=Pe(),t=ie(),e=pr(),a=U0e(),i=$0e(),n=Yt(),o=st(),s=qe(),l=D$(),u=Ut(),v=gr(),h=L$(),f=wi(),c=wg(),d=_t(),p=d.getTooltipRenderMode,g=t.bind,m=t.each,y=o.parsePercent,_=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=r.extendComponentView({type:"tooltip",init:function(M,L){if(!e.node){var D=M.getComponent("tooltip"),P=D.get("renderMode");this._renderMode=p(P);var I;this._renderMode==="html"?(I=new a(L.getDom(),L,{appendToBody:D.get("appendToBody",!0)}),this._newLine="
"):(I=new i(L),this._newLine="\n"),this._tooltipContent=I}},render:function(M,L,D){if(!e.node){this.group.removeAll(),this._tooltipModel=M,this._ecModel=L,this._api=D,this._lastDataByCoordSys=null,this._alwaysShowContent=M.get("alwaysShowContent");var P=this._tooltipContent;P.update(M),P.setEnterable(M.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var M=this._tooltipModel,L=M.get("triggerOn");h.register("itemTooltip",this._api,g(function(D,P,I){L!=="none"&&(L.indexOf(D)>=0?this._tryShow(P,I):D==="leave"&&this._hide(I))},this))},_keepShow:function(){var M=this._tooltipModel,L=this._ecModel,D=this._api;if(this._lastX!=null&&this._lastY!=null&&M.get("triggerOn")!=="none"){var P=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!D.isDisposed()&&P.manuallyShowTip(M,L,D,{x:P._lastX,y:P._lastY})})}},manuallyShowTip:function(M,L,D,P){if(!(P.from===this.uid||e.node)){var I=b(P,D);this._ticket="";var R=P.dataByCoordSys;if(P.tooltip&&P.x!=null&&P.y!=null){var E=_;E.position=[P.x,P.y],E.update(),E.tooltip=P.tooltip,this._tryShow({offsetX:P.x,offsetY:P.y,target:E},I)}else if(R)this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,dataByCoordSys:P.dataByCoordSys,tooltipOption:P.tooltipOption},I);else if(P.seriesIndex!=null){if(this._manuallyAxisShowTip(M,L,D,P))return;var k=l(P,L),B=k.point[0],F=k.point[1];B!=null&&F!=null&&this._tryShow({offsetX:B,offsetY:F,position:P.position,target:k.el},I)}else P.x!=null&&P.y!=null&&(D.dispatchAction({type:"updateAxisPointer",x:P.x,y:P.y}),this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,target:D.getZr().findHover(P.x,P.y).target},I))}},manuallyHideTip:function(M,L,D,P){var I=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&I.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,P.from!==this.uid&&this._hide(b(P,D))},_manuallyAxisShowTip:function(F,L,D,P){var I=P.seriesIndex,R=P.dataIndex,E=L.getComponent("axisPointer").coordSysAxesInfo;if(!(I==null||R==null||E==null)){var k=L.getSeriesByIndex(I);if(k){var B=k.getData(),F=S([B.getItemModel(R),k,(k.coordinateSystem||{}).model,F]);if(F.get("trigger")==="axis")return D.dispatchAction({type:"updateAxisPointer",seriesIndex:I,dataIndex:R,position:P.position}),!0}}},_tryShow:function(M,L){var D=M.target,P=this._tooltipModel;if(P){this._lastX=M.offsetX,this._lastY=M.offsetY;var I=M.dataByCoordSys;I&&I.length?this._showAxisTooltip(I,M):D&&D.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(M,D,L)):D&&D.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(M,D,L)):(this._lastDataByCoordSys=null,this._hide(L))}},_showOrMove:function(M,L){var D=M.get("showDelay");L=t.bind(L,this),clearTimeout(this._showTimout),D>0?this._showTimout=setTimeout(L,D):L()},_showAxisTooltip:function(M,L){var D=this._ecModel,P=this._tooltipModel,I=[L.offsetX,L.offsetY],R=[],E=[],k=S([L.tooltipOption,P]),B=this._renderMode,F=this._newLine,V={};m(M,function(O){m(O.dataByAxis,function(z){var G=D.getComponent(z.axisDim+"Axis",z.axisIndex),q=z.value,H=[];if(!(!G||q==null)){var U=c.getValueLabel(q,G.axis,D,z.seriesDataIndices,z.valueLabelOpt);t.each(z.seriesDataIndices,function(Y){var X=D.getSeriesByIndex(Y.seriesIndex),K=Y.dataIndexInside,Q=X&&X.getDataParams(K);if(Q.axisDim=z.axisDim,Q.axisIndex=z.axisIndex,Q.axisType=z.axisType,Q.axisId=z.axisId,Q.axisValue=f.getAxisRawValue(G.axis,q),Q.axisValueLabel=U,Q){E.push(Q);var j=X.formatTooltip(K,!0,null,B),te;if(t.isObject(j)){te=j.html;var Z=j.markers;t.merge(V,Z)}else te=j;H.push(te)}});var W=U;B!=="html"?R.push(H.join(F)):R.push((W?n.encodeHTML(W)+F:"")+H.join(F))}})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var N=L.position;this._showOrMove(k,function(){this._updateContentNotChangedOnAxis(M)?this._updatePosition(k,N,I[0],I[1],this._tooltipContent,E):this._showTooltipContent(k,R,E,Math.random(),I[0],I[1],N,void 0,V)})},_showSeriesItemTooltip:function(M,L,D){var P=this._ecModel,I=L.seriesIndex,R=P.getSeriesByIndex(I),E=L.dataModel||R,k=L.dataIndex,B=L.dataType,F=E.getData(B),V=S([F.getItemModel(k),E,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),N=V.get("trigger");if(!(N!=null&&N!=="item")){var O=E.getDataParams(k,B),z=E.formatTooltip(k,!1,B,this._renderMode),G,q;t.isObject(z)?(G=z.html,q=z.markers):(G=z,q=null);var H="item_"+E.name+"_"+k;this._showOrMove(V,function(){this._showTooltipContent(V,G,O,H,M.offsetX,M.offsetY,M.position,M.target,q)}),D({type:"showTip",dataIndexInside:k,dataIndex:F.getRawIndex(k),seriesIndex:I,from:this.uid})}},_showComponentItemTooltip:function(M,L,D){var P=L.tooltip;if(typeof P=="string"){var I=P;P={content:I,formatter:I}}var R=new v(P,this._tooltipModel,this._ecModel),E=R.get("content"),k=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,E,R.get("formatterParams")||{},k,M.offsetX,M.offsetY,M.position,L)}),D({type:"showTip",from:this.uid})},_showTooltipContent:function(M,L,D,P,I,R,E,k,B){if(this._ticket="",!(!M.get("showContent")||!M.get("show"))){var F=this._tooltipContent,V=M.get("formatter");E=E||M.get("position");var N=L;if(V&&typeof V=="string")N=n.formatTpl(V,D,!0);else if(typeof V=="function"){var O=g(function(z,G){z===this._ticket&&(F.setContent(G,B,M),this._updatePosition(M,E,I,R,F,D,k))},this);this._ticket=P,N=V(D,P,O)}F.setContent(N,B,M),F.show(M),this._updatePosition(M,E,I,R,F,D,k)}},_updatePosition:function(M,L,D,P,I,R,E){var k=this._api.getWidth(),B=this._api.getHeight();L=L||M.get("position");var F=I.getSize(),V=M.get("align"),N=M.get("verticalAlign"),O=E&&E.getBoundingRect().clone();if(E&&O.applyTransform(E.transform),typeof L=="function"&&(L=L([D,P],R,I.el,O,{viewSize:[k,B],contentSize:F.slice()})),t.isArray(L))D=y(L[0],k),P=y(L[1],B);else if(t.isObject(L)){L.width=F[0],L.height=F[1];var z=u.getLayoutRect(L,{width:k,height:B});D=z.x,P=z.y,V=null,N=null}else if(typeof L=="string"&&E){var G=T(L,O,F);D=G[0],P=G[1]}else{var G=w(D,P,I,k,B,V?null:20,N?null:20);D=G[0],P=G[1]}if(V&&(D-=C(V)?F[0]/2:V==="right"?F[0]:0),N&&(P-=C(N)?F[1]/2:N==="bottom"?F[1]:0),M.get("confine")){var G=A(D,P,I,k,B);D=G[0],P=G[1]}I.moveTo(D,P)},_updateContentNotChangedOnAxis:function(M){var L=this._lastDataByCoordSys,D=!!L&&L.length===M.length;return D&&m(L,function(P,I){var R=P.dataByAxis||{},E=M[I]||{},k=E.dataByAxis||[];D&=R.length===k.length,D&&m(R,function(B,F){var V=k[F]||{},N=B.seriesDataIndices||[],O=V.seriesDataIndices||[];D&=B.value===V.value&&B.axisType===V.axisType&&B.axisId===V.axisId&&N.length===O.length,D&&m(N,function(z,G){var q=O[G];D&=z.seriesIndex===q.seriesIndex&&z.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=M,!!D},_hide:function(M){this._lastDataByCoordSys=null,M({type:"hideTip",from:this.uid})},dispose:function(M,L){e.node||(this._tooltipContent.dispose(),h.unregister("itemTooltip",L))}});function S(M){for(var L=M.pop();M.length;){var D=M.pop();D&&(v.isInstance(D)&&(D=D.get("tooltip",!0)),typeof D=="string"&&(D={formatter:D}),L=new v(D,L,L.ecModel))}return L}function b(M,L){return M.dispatchAction||t.bind(L.dispatchAction,L)}function w(M,L,D,P,I,R,E){var k=D.getOuterSize(),B=k.width,F=k.height;return R!=null&&(M+B+R>P?M-=B+R:M+=R),E!=null&&(L+F+E>I?L-=F+E:L+=E),[M,L]}function A(M,L,D,P,I){var R=D.getOuterSize(),E=R.width,k=R.height;return M=Math.min(M+E,P)-E,L=Math.min(L+k,I)-k,M=Math.max(M,0),L=Math.max(L,0),[M,L]}function T(M,L,D){var P=D[0],I=D[1],R=5,E=0,k=0,B=L.width,F=L.height;switch(M){case"inside":E=L.x+B/2-P/2,k=L.y+F/2-I/2;break;case"top":E=L.x+B/2-P/2,k=L.y-I-R;break;case"bottom":E=L.x+B/2-P/2,k=L.y+F+R;break;case"left":E=L.x-P-R,k=L.y+F/2-I/2;break;case"right":E=L.x+B+R,k=L.y+F/2-I/2}return[E,k]}function C(M){return M==="center"||M==="middle"}return zb=x,zb}var wF;function Z0e(){if(wF)return yF;wF=1;var r=Pe();return Sf(),W0e(),Y0e(),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){}),yF}var TF={},Bb,AF;function X0e(){if(AF)return Bb;AF=1;var r=ie(),t=["rect","polygon","keep","clear"];function e(i,n){var o=i&&i.brush;if(r.isArray(o)||(o=o?[o]:[]),!!o.length){var s=[];r.each(o,function(f){var c=f.hasOwnProperty("toolbox")?f.toolbox:[];c instanceof Array&&(s=s.concat(c))});var l=i&&i.toolbox;r.isArray(l)&&(l=l[0]),l||(l={feature:{}},i.toolbox=[l]);var u=l.feature||(l.feature={}),v=u.brush||(u.brush={}),h=v.type||(v.type=[]);h.push.apply(h,s),a(h),n&&!h.length&&h.push.apply(h,t)}}function a(i){var n={};r.each(i,function(o){n[o]=1}),i.length=0,r.each(n,function(o,s){i.push(s)})}return Bb=e,Bb}var Vb={},Cl={},CF;function Tg(){if(CF)return Cl;CF=1;var r=ie(),t=js(),e=r.each;function a(l){if(l){for(var u in l)if(l.hasOwnProperty(u))return!0}}function i(l,u,v){var h={};return e(u,function(c){var d=h[c]=f();e(l[c],function(p,g){if(t.isValidType(g)){var m={type:g,visual:p};v&&v(m,c),d[g]=new t(m),g==="opacity"&&(m=r.clone(m),m.type="colorAlpha",d.__hidden.__alphaForOpacity=new t(m))}})}),h;function f(){var c=function(){};c.prototype.__hidden=c.prototype;var d=new c;return d}}function n(l,u,v){var h;r.each(v,function(f){u.hasOwnProperty(f)&&a(u[f])&&(h=!0)}),h&&r.each(v,function(f){u.hasOwnProperty(f)&&a(u[f])?l[f]=r.clone(u[f]):delete l[f]})}function o(l,u,v,h,f,c){var d={};r.each(l,function(_){var x=t.prepareVisualTypes(u[_]);d[_]=x});var p;function g(_){return v.getItemVisual(p,_)}function m(_,x){v.setItemVisual(p,_,x)}c==null?v.each(y):v.each([c],y);function y(_,x){p=c==null?_:x;var S=v.getRawDataItem(p);if(!(S&&S.visualMap===!1))for(var b=h.call(f,_),w=u[b],A=d[b],T=0,C=A.length;TS[0][1]&&(S[0][1]=T[0]),T[1]S[1][1]&&(S[1][1]=T[1])}return S&&_(S)}};function _(x){return new e(x[0][0],x[1][0],x[0][1]-x[0][0],x[1][1]-x[1][0])}return Vb.layoutCovers=h,Vb}var Fb,LF;function Q0e(){if(LF)return Fb;LF=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=Tg(),i=gr(),n=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(u,v){var h=this.option;!v&&a.replaceVisualOption(h,u,["inBrush","outOfBrush"]);var f=h.inBrush=h.inBrush||{};h.outOfBrush=h.outOfBrush||{color:n},f.hasOwnProperty("liftZ")||(f.liftZ=5)},setAreas:function(u){u&&(this.areas=e.map(u,function(v){return s(this.option,v)},this))},setBrushOption:function(u){this.brushOption=s(this.option,u),this.brushType=this.brushOption.brushType}});function s(u,v){return e.merge({brushType:u.brushType,brushMode:u.brushMode,transformable:u.transformable,brushStyle:new i(u.brushStyle).getItemStyle(),removeOnClick:u.removeOnClick,z:u.z},v,!0)}var l=o;return Fb=l,Fb}var Hb,IF;function j0e(){if(IF)return Hb;IF=1;var r=Pe(),t=ie(),e=mD(),a=O$(),i=a.layoutCovers,n=r.extendComponentView({type:"brush",init:function(s,l){this.ecModel=s,this.api=l,this.model,(this._brushController=new e(l.getZr())).on("brush",t.bind(this._onBrush,this)).mount()},render:function(s){return this.model=s,o.apply(this,arguments)},updateTransform:function(s,l){return i(l),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(s,l){var u=this.model.id;this.model.brushTargetManager.setOutputRanges(s,this.ecModel),(!l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:u,areas:t.clone(s),$from:u}),l.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:u,areas:t.clone(s),$from:u})}});function o(s,l,u,v){(!v||v.$from!==s.id)&&this._brushController.setPanels(s.brushTargetManager.makePanelOpts(u)).enableBrush(s.brushOption).updateCovers(s.areas.slice())}return Hb=n,Hb}var PF={},RF;function J0e(){if(RF)return PF;RF=1;var r=Pe();return r.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),PF}var qb,EF;function e_e(){if(EF)return qb;EF=1;var r=ie(),t=wo(),e=xo(),a=e.toolbox.brush;function i(s,l,u){this.model=s,this.ecModel=l,this.api=u,this._brushType,this._brushMode}i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.clone(a.title)};var n=i.prototype;n.render=n.updateView=function(s,l,u){var v,h,f;l.eachComponent({mainType:"brush"},function(c){v=c.brushType,h=c.brushOption.brushMode||"single",f|=c.areas.length}),this._brushType=v,this._brushMode=h,r.each(s.get("type",!0),function(c){s.setIconStatus(c,(c==="keep"?h==="multiple":c==="clear"?f:c===v)?"emphasis":"normal")})},n.getIcons=function(){var s=this.model,l=s.get("icon",!0),u={};return r.each(s.get("type",!0),function(v){l[v]&&(u[v]=l[v])}),u},n.onclick=function(s,l,u){var v=this._brushType,h=this._brushMode;u==="clear"?(l.dispatchAction({type:"axisAreaSelect",intervals:[]}),l.dispatchAction({type:"brush",command:"clear",areas:[]})):l.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:u==="keep"?v:v===u?!1:u,brushMode:u==="keep"?h==="multiple"?"single":"multiple":h}})},t.register("brush",i);var o=i;return qb=o,qb}var kF;function t_e(){if(kF)return TF;kF=1;var r=Pe(),t=X0e();return O$(),Q0e(),j0e(),J0e(),e_e(),r.registerPreprocessor(t),TF}var OF={},NF;function r_e(){if(NF)return OF;NF=1;var r=ie(),t=Pe(),e=qe(),a=Ut(),i=a.getLayoutRect,n=Yt(),o=n.windowOpen;return t.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),t.extendComponentView({type:"title",render:function(s,l,u){if(this.group.removeAll(),!!s.get("show")){var v=this.group,h=s.getModel("textStyle"),f=s.getModel("subtextStyle"),c=s.get("textAlign"),d=r.retrieve2(s.get("textBaseline"),s.get("textVerticalAlign")),p=new e.Text({style:e.setTextStyle({},h,{text:s.get("text"),textFill:h.getTextColor()},{disableBox:!0}),z2:10}),g=p.getBoundingRect(),m=s.get("subtext"),y=new e.Text({style:e.setTextStyle({},f,{text:m,textFill:f.getTextColor(),y:g.height+s.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),_=s.get("link"),x=s.get("sublink"),S=s.get("triggerEvent",!0);p.silent=!_&&!S,y.silent=!x&&!S,_&&p.on("click",function(){o(_,"_"+s.get("target"))}),x&&y.on("click",function(){o(x,"_"+s.get("subtarget"))}),p.eventData=y.eventData=S?{componentType:"title",componentIndex:s.componentIndex}:null,v.add(p),m&&v.add(y);var b=v.getBoundingRect(),w=s.getBoxLayoutParams();w.width=b.width,w.height=b.height;var A=i(w,{width:u.getWidth(),height:u.getHeight()},s.get("padding"));c||(c=s.get("left")||s.get("right"),c==="middle"&&(c="center"),c==="right"?A.x+=A.width:c==="center"&&(A.x+=A.width/2)),d||(d=s.get("top")||s.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?A.y+=A.height:d==="middle"&&(A.y+=A.height/2),d=d||"top"),v.attr("position",[A.x,A.y]);var T={textAlign:c,textVerticalAlign:d};p.setStyle(T),y.setStyle(T),b=v.getBoundingRect();var C=A.margin,M=s.getItemStyle(["color","opacity"]);M.fill=s.get("backgroundColor");var L=new e.Rect({shape:{x:b.x-C[3],y:b.y-C[0],width:b.width+C[1]+C[3],height:b.height+C[0]+C[2],r:s.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});v.add(L)}}}),OF}var zF={},Wb,BF;function a_e(){if(BF)return Wb;BF=1;var r=ie();function t(n){var o=n&&n.timeline;r.isArray(o)||(o=o?[o]:[]),r.each(o,function(s){s&&e(s)})}function e(n){var o=n.type,s={number:"value",time:"time"};if(s[o]&&(n.axisType=s[o],delete n.type),a(n),i(n,"controlPosition")){var l=n.controlStyle||(n.controlStyle={});i(l,"position")||(l.position=n.controlPosition),l.position==="none"&&!i(l,"show")&&(l.show=!1,delete l.position),delete n.controlPosition}r.each(n.data||[],function(u){r.isObject(u)&&!r.isArray(u)&&(!i(u,"value")&&i(u,"name")&&(u.value=u.name),a(u))})}function a(n){var o=n.itemStyle||(n.itemStyle={}),s=o.emphasis||(o.emphasis={}),l=n.label||n.label||{},u=l.normal||(l.normal={}),v={normal:1,emphasis:1};r.each(l,function(h,f){!v[f]&&!i(u,f)&&(u[f]=h)}),s.label&&!i(l,"emphasis")&&(l.emphasis=s.label,delete s.label)}function i(n,o){return n.hasOwnProperty(o)}return Wb=t,Wb}var VF={},GF;function i_e(){if(GF)return VF;GF=1;var r=Lr();return r.registerSubTypeDefaulter("timeline",function(){return"slider"}),VF}var FF={},HF;function n_e(){if(HF)return FF;HF=1;var r=Pe(),t=ie();return r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,a){var i=a.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),a.resetOption("timeline"),t.defaults({currentIndex:i.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,a){var i=a.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)}),FF}var Ub,qF;function o_e(){if(qF)return Ub;qF=1;var r=ie(),t=Lr(),e=ei(),a=_t(),i=t.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(o,s,l){this._data,this._names,this.mergeDefaultAndTheme(o,l),this._initData()},mergeOption:function(o){i.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(o){o==null&&(o=this.option.currentIndex);var s=this._data.count();this.option.loop?o=(o%s+s)%s:(o>=s&&(o=s-1),o<0&&(o=0)),this.option.currentIndex=o},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(o){this.option.autoPlay=!!o},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var o=this.option,s=o.data||[],l=o.axisType,u=this._names=[];if(l==="category"){var v=[];r.each(s,function(c,d){var p=a.getDataItemValue(c),g;r.isObject(c)?(g=r.clone(c),g.value=d):g=d,v.push(g),!r.isString(p)&&(p==null||isNaN(p))&&(p=""),u.push(p+"")}),s=v}var h={category:"ordinal",time:"time"}[l]||"number",f=this._data=new e([{name:"value",type:h}],this);f.initData(s,u)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),n=i;return Ub=n,Ub}var $b,WF;function s_e(){if(WF)return $b;WF=1;var r=ie(),t=o_e(),e=aD(),a=t.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,e);var i=a;return $b=i,$b}var Yb,UF;function l_e(){if(UF)return Yb;UF=1;var r=fg(),t=r.extend({type:"timeline"});return Yb=t,Yb}var Zb,$F;function u_e(){if($F)return Zb;$F=1;var r=ie(),t=So(),e=function(i,n,o,s){t.call(this,i,n,o),this.type=s||"value",this.model=null};e.prototype={constructor:e,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},r.inherits(e,t);var a=e;return Zb=a,Zb}var Xb,YF;function v_e(){if(YF)return Xb;YF=1;var r=ie(),t=rr(),e=ha(),a=qe(),i=Ut(),n=l_e(),o=u_e(),s=ti(),l=s.createSymbol,u=wi(),v=st(),h=Yt(),f=h.encodeHTML,c=r.bind,d=r.each,p=Math.PI,g=n.extend({type:"timeline.slider",init:function(S,b){this.api=b,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,b,w,A){if(this.model=S,this.api=w,this.ecModel=b,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,w),C=this._createGroup("mainGroup"),M=this._createGroup("labelGroup"),L=this._axis=this._createAxis(T,S);S.formatTooltip=function(D){return f(L.scale.getLabel(D))},d(["AxisLine","AxisTick","Control","CurrentPointer"],function(D){this["_render"+D](T,C,L,S)},this),this._renderAxisLabel(T,M,L,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,b){var w=S.get("label.position"),A=S.get("orient"),T=m(S,b);w==null||w==="auto"?w=A==="horizontal"?T.y+T.height/2=0||w==="+"?"left":"right"},M={horizontal:w>=0||w==="+"?"top":"bottom",vertical:"middle"},L={horizontal:0,vertical:p/2},D=A==="vertical"?T.height:T.width,P=S.getModel("controlStyle"),I=P.get("show",!0),R=I?P.get("itemSize"):0,E=I?P.get("itemGap"):0,k=R+E,B=S.get("label.rotate")||0;B=B*p/180;var F,V,N,O,z=P.get("position",!0),G=I&&P.get("showPlayBtn",!0),q=I&&P.get("showPrevBtn",!0),H=I&&P.get("showNextBtn",!0),U=0,W=D;return z==="left"||z==="bottom"?(G&&(F=[0,0],U+=k),q&&(V=[U,0],U+=k),H&&(N=[W-R,0],W-=k)):(G&&(F=[W-R,0],W-=k),q&&(V=[0,0],U+=k),H&&(N=[W-R,0],W-=k)),O=[U,W],S.get("inverse")&&O.reverse(),{viewRect:T,mainLength:D,orient:A,rotation:L[A],labelRotation:B,labelPosOpt:w,labelAlign:S.get("label.align")||C[A],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||M[A],playPosition:F,prevBtnPosition:V,nextBtnPosition:N,axisExtent:O,controlSize:R,controlGap:E}},_position:function(S,b){var w=this._mainGroup,A=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var C=e.create(),M=T.x,L=T.y+T.height;e.translate(C,C,[-M,-L]),e.rotate(C,C,-p/2),e.translate(C,C,[M,L]),T=T.clone(),T.applyTransform(C)}var D=V(T),P=V(w.getBoundingRect()),I=V(A.getBoundingRect()),R=w.position,E=A.position;E[0]=R[0]=D[0][0];var k=S.labelPosOpt;if(isNaN(k)){var B=k==="+"?0:1;N(R,P,D,1,B),N(E,I,D,1,1-B)}else{var B=k>=0?0:1;N(R,P,D,1,B),E[1]=R[1]+k}w.attr("position",R),A.attr("position",E),w.rotation=A.rotation=S.rotation,F(w),F(A);function F(O){var z=O.position;O.origin=[D[0][0]-z[0],D[1][0]-z[1]]}function V(O){return[[O.x,O.x+O.width],[O.y,O.y+O.height]]}function N(O,z,G,q,H){O[q]+=G[q][H]-z[q][H]}},_createAxis:function(S,b){var w=b.getData(),A=b.get("axisType"),T=u.createScaleByModel(b,A);T.getTicks=function(){return w.mapArray(["value"],function(L){return L})};var C=w.getDataExtent("value");T.setExtent(C[0],C[1]),T.niceTicks();var M=new o("value",T,S.axisExtent,A);return M.model=b,M},_createGroup:function(S){var b=this["_"+S]=new a.Group;return this.group.add(b),b},_renderAxisLine:function(S,b,w,A){var T=w.getExtent();A.get("lineStyle.show")&&b.add(new a.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:r.extend({lineCap:"round"},A.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,b,w,A){var T=A.getData(),C=w.scale.getTicks();d(C,function(M){var L=w.dataToCoord(M),D=T.getItemModel(M),P=D.getModel("itemStyle"),I=D.getModel("emphasis.itemStyle"),R={position:[L,0],onclick:c(this._changeTimeline,this,M)},E=_(D,P,b,R);a.setHoverStyle(E,I.getItemStyle()),D.get("tooltip")?(E.dataIndex=M,E.dataModel=A):E.dataIndex=E.dataModel=null},this)},_renderAxisLabel:function(S,b,w,A){var T=w.getLabelModel();if(T.get("show")){var C=A.getData(),M=w.getViewLabels();d(M,function(L){var D=L.tickValue,P=C.getItemModel(D),I=P.getModel("label"),R=P.getModel("emphasis.label"),E=w.dataToCoord(L.tickValue),k=new a.Text({position:[E,0],rotation:S.labelRotation-S.rotation,onclick:c(this._changeTimeline,this,D),silent:!1});a.setTextStyle(k.style,I,{text:L.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),b.add(k),a.setHoverStyle(k,a.setTextStyle({},R))},this)}},_renderControl:function(S,b,w,A){var T=S.controlSize,C=S.rotation,M=A.getModel("controlStyle").getItemStyle(),L=A.getModel("emphasis.controlStyle").getItemStyle(),D=[0,-T/2,T,T],P=A.getPlayState(),I=A.get("inverse",!0);R(S.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,I?"-":"+")),R(S.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,I?"+":"-")),R(S.playPosition,"controlStyle."+(P?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!P),!0);function R(E,k,B,F){if(E){var V={position:E,origin:[T/2,0],rotation:F?-C:0,rectHover:!0,style:M,onclick:B},N=y(A,k,D,V);b.add(N),a.setHoverStyle(N,L)}}},_renderCurrentPointer:function(S,b,w,A){var T=A.getData(),C=A.getCurrentIndex(),M=T.getItemModel(C).getModel("checkpointStyle"),L=this,D={onCreate:function(P){P.draggable=!0,P.drift=c(L._handlePointerDrag,L),P.ondragend=c(L._handlePointerDragend,L),x(P,C,w,A,!0)},onUpdate:function(P){x(P,C,w,A)}};this._currentPointer=_(M,M,this._mainGroup,{},this._currentPointer,D)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,b,w){this._clearTimer(),this._pointerChangeTimeline([w.offsetX,w.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,b){var w=this._toAxisCoord(S)[0],A=this._axis,T=v.asc(A.getExtent().slice());w>T[1]&&(w=T[1]),w":"\n";return(m!=null||_)&&(x+=S),_&&(x+=l(_),m!=null&&(x+=" : ")),m!=null&&(x+=l(y)),x},getData:function(){return this._data},setData:function(f){this._data=f}});e.mixin(v,o);var h=v;return Kb=h,Kb}var Qb,QF;function f_e(){if(QF)return Qb;QF=1;var r=TD(),t=r.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});return Qb=t,Qb}var es={},jF;function AD(){if(jF)return es;jF=1;var r=ie(),t=st(),e=rn(),a=e.isDimensionStacked,i=r.indexOf;function n(g){return!(isNaN(parseFloat(g.x))&&isNaN(parseFloat(g.y)))}function o(g){return!isNaN(parseFloat(g.x))&&!isNaN(parseFloat(g.y))}function s(g,m,y,_,x,S){var b=[],w=a(m,_),A=w?m.getCalculationInfo("stackResultDimension"):_,T=p(m,A,g),C=m.indicesOfNearest(A,T)[0];b[x]=m.get(y,C),b[S]=m.get(A,C);var M=m.get(_,C),L=t.getPrecision(m.get(_,C));return L=Math.min(L,20),L>=0&&(b[S]=+b[S].toFixed(L)),[b,M]}var l=r.curry,u={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function v(g,m){var y=g.getData(),_=g.coordinateSystem;if(m&&!o(m)&&!r.isArray(m.coord)&&_){var x=_.dimensions,S=h(m,y,_,g);if(m=r.clone(m),m.type&&u[m.type]&&S.baseAxis&&S.valueAxis){var b=i(x,S.baseAxis.dim),w=i(x,S.valueAxis.dim),A=u[m.type](y,S.baseDataDim,S.valueDataDim,b,w);m.coord=A[0],m.value=A[1]}else{for(var T=[m.xAxis!=null?m.xAxis:m.radiusAxis,m.yAxis!=null?m.yAxis:m.angleAxis],C=0;C<2;C++)u[T[C]]&&(T[C]=p(y,y.mapDimension(x[C]),T[C]));m.coord=T}}return m}function h(g,m,y,_){var x={};return g.valueIndex!=null||g.valueDim!=null?(x.valueDataDim=g.valueIndex!=null?m.getDimension(g.valueIndex):g.valueDim,x.valueAxis=y.getAxis(f(_,x.valueDataDim)),x.baseAxis=y.getOtherAxis(x.valueAxis),x.baseDataDim=m.mapDimension(x.baseAxis.dim)):(x.baseAxis=_.getBaseAxis(),x.valueAxis=y.getOtherAxis(x.baseAxis),x.baseDataDim=m.mapDimension(x.baseAxis.dim),x.valueDataDim=m.mapDimension(x.valueAxis.dim)),x}function f(g,m){var y=g.getData(),_=y.dimensions;m=y.getDimension(m);for(var x=0;x<_.length;x++){var S=y.getDimensionInfo(_[x]);if(S.name===m)return S.coordDim}}function c(g,m){return g&&g.containData&&m.coord&&!n(m)?g.containData(m.coord):!0}function d(g,m,y,_){return _<2?g.coord&&g.coord[_]:g.value}function p(g,m,y){if(y==="average"){var _=0,x=0;return g.each(m,function(S,b){isNaN(S)||(_+=S,x++)}),_/x}else return y==="median"?g.getMedian(m):g.getDataExtent(m,!0)[y==="max"?1:0]}return es.dataTransform=v,es.getAxisInfo=h,es.dataFilter=c,es.dimValueGetter=d,es.numCalculate=p,es}var jb,JF;function CD(){if(JF)return jb;JF=1;var r=Pe(),t=ie(),e=r.extendComponentView({type:"marker",init:function(){this.markerGroupMap=t.createHashMap()},render:function(a,i,n){var o=this.markerGroupMap;o.each(function(l){l.__keep=!1});var s=this.type+"Model";i.eachSeries(function(l){var u=l[s];u&&this.renderSeries(l,u,i,n)},this),o.each(function(l){!l.__keep&&this.group.remove(l.group)},this)},renderSeries:function(){}});return jb=e,jb}var Jb,eH;function c_e(){if(eH)return Jb;eH=1;var r=ie(),t=df(),e=st(),a=ei(),i=AD(),n=CD();function o(u,v,h){var f=v.coordinateSystem;u.each(function(c){var d=u.getItemModel(c),p,g=e.parsePercent(d.get("x"),h.getWidth()),m=e.parsePercent(d.get("y"),h.getHeight());if(!isNaN(g)&&!isNaN(m))p=[g,m];else if(v.getMarkerPosition)p=v.getMarkerPosition(u.getValues(u.dimensions,c));else if(f){var y=u.get(f.dimensions[0],c),_=u.get(f.dimensions[1],c);p=f.dataToPoint([y,_])}isNaN(g)||(p[0]=g),isNaN(m)||(p[1]=m),u.setItemLayout(c,p)})}var s=n.extend({type:"markPoint",updateTransform:function(u,v,h){v.eachSeries(function(f){var c=f.markPointModel;c&&(o(c.getData(),f,h),this.markerGroupMap.get(f.id).updateLayout(c))},this)},renderSeries:function(u,v,h,f){var c=u.coordinateSystem,d=u.id,p=u.getData(),g=this.markerGroupMap,m=g.get(d)||g.set(d,new t),y=l(c,u,v);v.setData(y),o(v.getData(),u,f),y.each(function(_){var x=y.getItemModel(_),S=x.getShallow("symbol"),b=x.getShallow("symbolSize"),w=x.getShallow("symbolRotate"),A=r.isFunction(S),T=r.isFunction(b),C=r.isFunction(w);if(A||T||C){var M=v.getRawValue(_),L=v.getDataParams(_);A&&(S=S(M,L)),T&&(b=b(M,L)),C&&(w=w(M,L))}y.setItemVisual(_,{symbol:S,symbolSize:b,symbolRotate:w,color:x.get("itemStyle.color")||p.getVisual("color")})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(_){_.traverse(function(x){x.dataModel=v})}),m.__keep=!0,m.group.silent=v.get("silent")||u.get("silent")}});function l(u,v,h){var f;u?f=r.map(u&&u.dimensions,function(p){var g=v.getData().getDimensionInfo(v.getData().mapDimension(p))||{};return r.defaults({name:p},g)}):f=[{name:"value",type:"float"}];var c=new a(f,h),d=r.map(h.get("data"),r.curry(i.dataTransform,v));return u&&(d=r.filter(d,r.curry(i.dataFilter,u))),c.initData(d,null,u?i.dimValueGetter:function(p){return p.value}),c}return Jb=s,Jb}var tH;function d_e(){if(tH)return XF;tH=1;var r=Pe();return f_e(),c_e(),r.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}}),XF}var rH={},ew,aH;function p_e(){if(aH)return ew;aH=1;var r=TD(),t=r.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});return ew=t,ew}var tw,iH;function g_e(){if(iH)return tw;iH=1;var r=ie(),t=ei(),e=st(),a=AD(),i=pD(),n=CD(),o=rn(),s=o.getStackedDimension,l=function(p,g,m,y){var _=p.getData(),x=y.type;if(!r.isArray(y)&&(x==="min"||x==="max"||x==="average"||x==="median"||y.xAxis!=null||y.yAxis!=null)){var S,b;if(y.yAxis!=null||y.xAxis!=null)S=g.getAxis(y.yAxis!=null?"y":"x"),b=r.retrieve(y.yAxis,y.xAxis);else{var w=a.getAxisInfo(y,_,g,p);S=w.valueAxis;var A=s(_,w.valueDataDim);b=a.numCalculate(_,A,x)}var T=S.dim==="x"?0:1,C=1-T,M=r.clone(y),L={};M.type=null,M.coord=[],L.coord=[],M.coord[C]=-1/0,L.coord[C]=1/0;var D=m.get("precision");D>=0&&typeof b=="number"&&(b=+b.toFixed(Math.min(D,20))),M.coord[T]=L.coord[T]=b,y=[M,L,{type:x,valueIndex:y.valueIndex,value:b}]}return y=[a.dataTransform(p,y[0]),a.dataTransform(p,y[1]),r.extend({},y[2])],y[2].type=y[2].type||"",r.merge(y[2],y[0]),r.merge(y[2],y[1]),y};function u(p){return!isNaN(p)&&!isFinite(p)}function v(p,g,m,y){var _=1-p,x=y.dimensions[p];return u(g[_])&&u(m[_])&&g[p]===m[p]&&y.getAxis(x).containData(g[p])}function h(p,g){if(p.type==="cartesian2d"){var m=g[0].coord,y=g[1].coord;if(m&&y&&(v(1,m,y,p)||v(0,m,y,p)))return!0}return a.dataFilter(p,g[0])&&a.dataFilter(p,g[1])}function f(p,g,m,y,_){var x=y.coordinateSystem,S=p.getItemModel(g),b,w=e.parsePercent(S.get("x"),_.getWidth()),A=e.parsePercent(S.get("y"),_.getHeight());if(!isNaN(w)&&!isNaN(A))b=[w,A];else{if(y.getMarkerPosition)b=y.getMarkerPosition(p.getValues(p.dimensions,g));else{var T=x.dimensions,C=p.get(T[0],g),M=p.get(T[1],g);b=x.dataToPoint([C,M])}if(x.type==="cartesian2d"){var L=x.getAxis("x"),D=x.getAxis("y"),T=x.dimensions;u(p.get(T[0],g))?b[0]=L.toGlobalCoord(L.getExtent()[m?0:1]):u(p.get(T[1],g))&&(b[1]=D.toGlobalCoord(D.getExtent()[m?0:1]))}isNaN(w)||(b[0]=w),isNaN(A)||(b[1]=A)}p.setItemLayout(g,b)}var c=n.extend({type:"markLine",updateTransform:function(p,g,m){g.eachSeries(function(y){var _=y.markLineModel;if(_){var x=_.getData(),S=_.__from,b=_.__to;S.each(function(w){f(S,w,!0,y,m),f(b,w,!1,y,m)}),x.each(function(w){x.setItemLayout(w,[S.getItemLayout(w),b.getItemLayout(w)])}),this.markerGroupMap.get(y.id).updateLayout()}},this)},renderSeries:function(p,g,m,y){var _=p.coordinateSystem,x=p.id,S=p.getData(),b=this.markerGroupMap,w=b.get(x)||b.set(x,new i);this.group.add(w.group);var A=d(_,p,g),T=A.from,C=A.to,M=A.line;g.__from=T,g.__to=C,g.setData(M);var L=g.get("symbol"),D=g.get("symbolSize");r.isArray(L)||(L=[L,L]),typeof D=="number"&&(D=[D,D]),A.from.each(function(I){P(T,I,!0),P(C,I,!1)}),M.each(function(I){var R=M.getItemModel(I).get("lineStyle.color");M.setItemVisual(I,{color:R||T.getItemVisual(I,"color")}),M.setItemLayout(I,[T.getItemLayout(I),C.getItemLayout(I)]),M.setItemVisual(I,{fromSymbolRotate:T.getItemVisual(I,"symbolRotate"),fromSymbolSize:T.getItemVisual(I,"symbolSize"),fromSymbol:T.getItemVisual(I,"symbol"),toSymbolRotate:C.getItemVisual(I,"symbolRotate"),toSymbolSize:C.getItemVisual(I,"symbolSize"),toSymbol:C.getItemVisual(I,"symbol")})}),w.updateData(M),A.line.eachItemGraphicEl(function(I,R){I.traverse(function(E){E.dataModel=g})});function P(I,R,E){var k=I.getItemModel(R);f(I,R,E,p,y),I.setItemVisual(R,{symbolRotate:k.get("symbolRotate"),symbolSize:k.get("symbolSize")||D[E?0:1],symbol:k.get("symbol",!0)||L[E?0:1],color:k.get("itemStyle.color")||S.getVisual("color")})}w.__keep=!0,w.group.silent=g.get("silent")||p.get("silent")}});function d(p,g,m){var y;p?y=r.map(p&&p.dimensions,function(A){var T=g.getData().getDimensionInfo(g.getData().mapDimension(A))||{};return r.defaults({name:A},T)}):y=[{name:"value",type:"float"}];var _=new t(y,m),x=new t(y,m),S=new t([],m),b=r.map(m.get("data"),r.curry(l,g,p,m));p&&(b=r.filter(b,r.curry(h,p)));var w=p?a.dimValueGetter:function(A){return A.value};return _.initData(r.map(b,function(A){return A[0]}),null,w),x.initData(r.map(b,function(A){return A[1]}),null,w),S.initData(r.map(b,function(A){return A[2]})),S.hasItemOption=!0,{from:_,to:x,line:S}}return tw=c,tw}var nH;function m_e(){if(nH)return rH;nH=1;var r=Pe();return p_e(),g_e(),r.registerPreprocessor(function(t){t.markLine=t.markLine||{}}),rH}var oH={},rw,sH;function y_e(){if(sH)return rw;sH=1;var r=TD(),t=r.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});return rw=t,rw}var lH={},uH;function __e(){if(uH)return lH;uH=1;var r=ie(),t=en(),e=ei(),a=st(),i=qe(),n=AD(),o=CD(),s=function(d,p,g,m){var y=n.dataTransform(d,m[0]),_=n.dataTransform(d,m[1]),x=r.retrieve,S=y.coord,b=_.coord;S[0]=x(S[0],-1/0),S[1]=x(S[1],-1/0),b[0]=x(b[0],1/0),b[1]=x(b[1],1/0);var w=r.mergeAll([{},y,_]);return w.coord=[y.coord,_.coord],w.x0=y.x,w.y0=y.y,w.x1=_.x,w.y1=_.y,w};function l(d){return!isNaN(d)&&!isFinite(d)}function u(d,p,g,m){var y=1-d;return l(p[y])&&l(g[y])}function v(d,p){var g=p.coord[0],m=p.coord[1];return d.type==="cartesian2d"&&g&&m&&(u(1,g,m)||u(0,g,m))?!0:n.dataFilter(d,{coord:g,x:p.x0,y:p.y0})||n.dataFilter(d,{coord:m,x:p.x1,y:p.y1})}function h(d,p,g,m,y){var _=m.coordinateSystem,x=d.getItemModel(p),S,b=a.parsePercent(x.get(g[0]),y.getWidth()),w=a.parsePercent(x.get(g[1]),y.getHeight());if(!isNaN(b)&&!isNaN(w))S=[b,w];else{if(m.getMarkerPosition)S=m.getMarkerPosition(d.getValues(g,p));else{var A=d.get(g[0],p),T=d.get(g[1],p),C=[A,T];_.clampData&&_.clampData(C,C),S=_.dataToPoint(C,!0)}if(_.type==="cartesian2d"){var M=_.getAxis("x"),L=_.getAxis("y"),A=d.get(g[0],p),T=d.get(g[1],p);l(A)?S[0]=M.toGlobalCoord(M.getExtent()[g[0]==="x0"?0:1]):l(T)&&(S[1]=L.toGlobalCoord(L.getExtent()[g[1]==="y0"?0:1]))}isNaN(b)||(S[0]=b),isNaN(w)||(S[1]=w)}return S}var f=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];o.extend({type:"markArea",updateTransform:function(d,p,g){p.eachSeries(function(m){var y=m.markAreaModel;if(y){var _=y.getData();_.each(function(x){var S=r.map(f,function(w){return h(_,x,w,m,g)});_.setItemLayout(x,S);var b=_.getItemGraphicEl(x);b.setShape("points",S)})}},this)},renderSeries:function(d,p,g,m){var y=d.coordinateSystem,_=d.id,x=d.getData(),S=this.markerGroupMap,b=S.get(_)||S.set(_,{group:new i.Group});this.group.add(b.group),b.__keep=!0;var w=c(y,d,p);p.setData(w),w.each(function(A){var T=r.map(f,function(M){return h(w,A,M,d,m)}),C=!0;r.each(f,function(M){if(C){var L=w.get(M[0],A),D=w.get(M[1],A);(l(L)||y.getAxis("x").containData(L))&&(l(D)||y.getAxis("y").containData(D))&&(C=!1)}}),w.setItemLayout(A,{points:T,allClipped:C}),w.setItemVisual(A,{color:x.getVisual("color")})}),w.diff(b.__data).add(function(A){var T=w.getItemLayout(A);if(!T.allClipped){var C=new i.Polygon({shape:{points:T.points}});w.setItemGraphicEl(A,C),b.group.add(C)}}).update(function(A,T){var C=b.__data.getItemGraphicEl(T),M=w.getItemLayout(A);M.allClipped?C&&b.group.remove(C):(C?i.updateProps(C,{shape:{points:M.points}},p,A):C=new i.Polygon({shape:{points:M.points}}),w.setItemGraphicEl(A,C),b.group.add(C))}).remove(function(A){var T=b.__data.getItemGraphicEl(A);b.group.remove(T)}).execute(),w.eachItemGraphicEl(function(A,T){var C=w.getItemModel(T),M=C.getModel("label"),L=C.getModel("emphasis.label"),D=w.getItemVisual(T,"color");A.useStyle(r.defaults(C.getModel("itemStyle").getItemStyle(),{fill:t.modifyAlpha(D,.4),stroke:D})),A.hoverStyle=C.getModel("emphasis.itemStyle").getItemStyle(),i.setLabelStyle(A.style,A.hoverStyle,M,L,{labelFetcher:p,labelDataIndex:T,defaultText:w.getName(T)||"",isRectText:!0,autoColor:D}),i.setHoverStyle(A,{}),A.dataModel=p}),b.__data=w,b.group.silent=p.get("silent")||d.get("silent")}});function c(d,p,g){var m,y,_=["x0","y0","x1","y1"];d?(m=r.map(d&&d.dimensions,function(b){var w=p.getData(),A=w.getDimensionInfo(w.mapDimension(b))||{};return r.defaults({name:b},A)}),y=new e(r.map(_,function(b,w){return{name:b,type:m[w%2].type}}),g)):(m=[{name:"value",type:"float"}],y=new e(m,g));var x=r.map(g.get("data"),r.curry(s,p,d,g));d&&(x=r.filter(x,r.curry(v,d)));var S=d?function(b,w,A,T){return b.coord[Math.floor(T/2)][T%2]}:function(b){return b.value};return y.initData(x,null,S),y.hasItemOption=!0,y}return lH}var vH;function x_e(){if(vH)return oH;vH=1;var r=Pe();return y_e(),__e(),r.registerPreprocessor(function(t){t.markArea=t.markArea||{}}),oH}var hH={},fH={},aw,cH;function N$(){if(cH)return aw;cH=1;var r=Pe(),t=ie(),e=gr(),a=_t(),i=a.isNameSpecified,n=xo(),o=n.legend.selector,s={all:{type:"all",title:t.clone(o.all)},inverse:{type:"inverse",title:t.clone(o.inverse)}},l=r.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(v,h,f){this.mergeDefaultAndTheme(v,f),v.selected=v.selected||{},this._updateSelector(v)},mergeOption:function(v){l.superCall(this,"mergeOption",v),this._updateSelector(v)},_updateSelector:function(v){var h=v.selector;h===!0&&(h=v.selector=["all","inverse"]),t.isArray(h)&&t.each(h,function(f,c){t.isString(f)&&(f={type:f}),h[c]=t.merge(f,s[f.type])})},optionUpdated:function(){this._updateData(this.ecModel);var v=this._data;if(v[0]&&this.get("selectedMode")==="single"){for(var h=!1,f=0;f=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),u=l;return aw=u,aw}var dH={},pH;function S_e(){if(pH)return dH;pH=1;var r=Pe(),t=ie();function e(a,i,n){var o={},s=a==="toggleSelected",l;return n.eachComponent("legend",function(u){s&&l!=null?u[l?"select":"unSelect"](i.name):a==="allSelect"||a==="inverseSelect"?u[a]():(u[a](i.name),l=u.isSelected(i.name));var v=u.getData();t.each(v,function(h){var f=h.get("name");if(!(f==="\n"||f==="")){var c=u.isSelected(f);o.hasOwnProperty(f)?o[f]=o[f]&&c:o[f]=c}})}),a==="allSelect"||a==="inverseSelect"?{selected:o}:{name:i.name,selected:o}}return r.registerAction("legendToggleSelect","legendselectchanged",t.curry(e,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",t.curry(e,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",t.curry(e,"inverseSelect")),r.registerAction("legendSelect","legendselected",t.curry(e,"select")),r.registerAction("legendUnSelect","legendunselected",t.curry(e,"unSelect")),dH}var iw,gH;function z$(){if(gH)return iw;gH=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=ti(),i=a.createSymbol,n=qe(),o=R$(),s=o.makeBackground,l=Ut(),u=e.curry,v=e.each,h=n.Group,f=t.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new h),this._backgroundEl,this.group.add(this._selectorGroup=new h),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(m,y,_){var x=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!m.get("show",!0)){var S=m.get("align"),b=m.get("orient");(!S||S==="auto")&&(S=m.get("left")==="right"&&b==="vertical"?"right":"left");var w=m.get("selector",!0),A=m.get("selectorPosition",!0);w&&(!A||A==="auto")&&(A=b==="horizontal"?"end":"start"),this.renderInner(S,m,y,_,w,b,A);var T=m.getBoxLayoutParams(),C={width:_.getWidth(),height:_.getHeight()},M=m.get("padding"),L=l.getLayoutRect(T,C,M),D=this.layoutInner(m,S,L,x,w,A),P=l.getLayoutRect(e.defaults({width:D.width,height:D.height},T),C,M);this.group.attr("position",[P.x-D.x,P.y-D.y]),this.group.add(this._backgroundEl=s(D,m))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(m,y,_,x,S,b,w){var A=this.getContentGroup(),T=e.createHashMap(),C=y.get("selectedMode"),M=[];_.eachRawSeries(function(L){!L.get("legendHoverLink")&&M.push(L.id)}),v(y.getData(),function(L,D){var P=L.get("name");if(!this.newlineDisabled&&(P===""||P==="\n")){A.add(new h({newline:!0}));return}var I=_.getSeriesByName(P)[0];if(!T.get(P))if(I){var R=I.getData(),E=R.getVisual("color"),k=R.getVisual("borderColor");typeof E=="function"&&(E=E(I.getDataParams(0))),typeof k=="function"&&(k=k(I.getDataParams(0)));var B=R.getVisual("legendSymbol")||"roundRect",F=R.getVisual("symbol"),V=this._createItem(P,D,L,y,B,F,m,E,k,C);V.on("click",u(d,P,null,x,M)).on("mouseover",u(p,I.name,null,x,M)).on("mouseout",u(g,I.name,null,x,M)),T.set(P,!0)}else _.eachRawSeries(function(N){if(!T.get(P)&&N.legendVisualProvider){var O=N.legendVisualProvider;if(!O.containName(P))return;var z=O.indexOfName(P),G=O.getItemVisual(z,"color"),q=O.getItemVisual(z,"borderColor"),H="roundRect",U=this._createItem(P,D,L,y,H,null,m,G,q,C);U.on("click",u(d,null,P,x,M)).on("mouseover",u(p,null,P,x,M)).on("mouseout",u(g,null,P,x,M)),T.set(P,!0)}},this)},this),S&&this._createSelector(S,y,x,b,w)},_createSelector:function(m,y,_,x,S){var b=this.getSelectorGroup();v(m,function(A){w(A)});function w(A){var T=A.type,C=new n.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){_.dispatchAction({type:T==="all"?"legendAllSelect":"legendInverseSelect"})}});b.add(C);var M=y.getModel("selectorLabel"),L=y.getModel("emphasis.selectorLabel");n.setLabelStyle(C.style,C.hoverStyle={},M,L,{defaultText:A.title,isRectText:!1}),n.setHoverStyle(C)}},_createItem:function(m,y,_,x,S,b,w,A,T,C){var M=x.get("itemWidth"),L=x.get("itemHeight"),D=x.get("inactiveColor"),P=x.get("inactiveBorderColor"),I=x.get("symbolKeepAspect"),R=x.getModel("itemStyle"),E=x.isSelected(m),k=new h,B=_.getModel("textStyle"),F=_.get("icon"),V=_.getModel("tooltip"),N=V.parentModel;S=F||S;var O=i(S,0,0,M,L,E?A:D,I==null?!0:I);if(k.add(c(O,S,R,T,P,E)),!F&&b&&(b!==S||b==="none")){var z=L*.8;b==="none"&&(b="circle");var G=i(b,(M-z)/2,(L-z)/2,z,z,E?A:D,I==null?!0:I);k.add(c(G,b,R,T,P,E))}var q=w==="left"?M+5:-5,H=w,U=x.get("formatter"),W=m;typeof U=="string"&&U?W=U.replace("{name}",m!=null?m:""):typeof U=="function"&&(W=U(m)),k.add(new n.Text({style:n.setTextStyle({},B,{text:W,x:q,y:L/2,textFill:E?B.getTextColor():D,textAlign:H,textVerticalAlign:"middle"})}));var Y=new n.Rect({shape:k.getBoundingRect(),invisible:!0,tooltip:V.get("show")?e.extend({content:m,formatter:N.get("formatter",!0)||function(){return m},formatterParams:{componentType:"legend",legendIndex:x.componentIndex,name:m,$vars:["name"]}},V.option):null});return k.add(Y),k.eachChild(function(X){X.silent=!0}),Y.silent=!C,this.getContentGroup().add(k),n.setHoverStyle(k),k.__legendDataIndex=y,k},layoutInner:function(m,y,_,x,S,b){var w=this.getContentGroup(),A=this.getSelectorGroup();l.box(m.get("orient"),w,m.get("itemGap"),_.width,_.height);var T=w.getBoundingRect(),C=[-T.x,-T.y];if(S){l.box("horizontal",A,m.get("selectorItemGap",!0));var M=A.getBoundingRect(),L=[-M.x,-M.y],D=m.get("selectorButtonGap",!0),P=m.getOrient().index,I=P===0?"width":"height",R=P===0?"height":"width",E=P===0?"y":"x";b==="end"?L[P]+=T[I]+D:C[P]+=M[I]+D,L[1-P]+=T[R]/2-M[R]/2,A.attr("position",L),w.attr("position",C);var k={x:0,y:0};return k[I]=T[I]+D+M[I],k[R]=Math.max(T[R],M[R]),k[E]=Math.min(0,M[E]+L[1-P]),k}else return w.attr("position",C),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function c(m,y,_,x,S,b){var w;return y!=="line"&&y.indexOf("empty")<0?(w=_.getItemStyle(),m.style.stroke=x,b||(w.stroke=S)):w=_.getItemStyle(["borderWidth","borderColor"]),m.setStyle(w)}function d(m,y,_,x){g(m,y,_,x),_.dispatchAction({type:"legendToggleSelect",name:m!=null?m:y}),p(m,y,_,x)}function p(m,y,_,x){var S=_.getZr().storage.getDisplayList()[0];S&&S.useHoverLayer||_.dispatchAction({type:"highlight",seriesName:m,name:y,excludeSeriesId:x})}function g(m,y,_,x){var S=_.getZr().storage.getDisplayList()[0];S&&S.useHoverLayer||_.dispatchAction({type:"downplay",seriesName:m,name:y,excludeSeriesId:x})}return iw=f,iw}var nw,mH;function b_e(){if(mH)return nw;mH=1;function r(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(a){for(var i=0;ih[c],b=[-_.x,-_.y];v||(b[f]=g.position[f]);var w=[0,0],A=[-x.x,-x.y],T=r.retrieve2(u.get("pageButtonGap",!0),u.get("itemGap",!0));if(S){var C=u.get("pageButtonPosition",!0);C==="end"?A[f]+=h[c]-x[c]:w[f]+=x[c]+T}A[1-f]+=_[d]/2-x[d]/2,g.attr("position",b),m.attr("position",w),y.attr("position",A);var M={x:0,y:0};if(M[c]=S?h[c]:_[c],M[d]=Math.max(_[d],x[d]),M[p]=Math.min(0,x[p]+A[1-f]),m.__rectSize=h[c],S){var L={x:0,y:0};L[c]=Math.max(h[c]-x[c]-T,0),L[d]=M[d],m.setClipPath(new t.Rect({shape:L})),m.__rectSize=L[c]}else y.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(u);return D.pageIndex!=null&&t.updateProps(g,{position:D.contentPosition},S?u:!1),this._updatePageInfoView(u,D),M},_pageGo:function(u,v,h){var f=this._getPageInfo(v)[u];f!=null&&h.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:v.id})},_updatePageInfoView:function(u,v){var h=this._controllerGroup;r.each(["pagePrev","pageNext"],function(m){var y=v[m+"DataIndex"]!=null,_=h.childOfName(m);_&&(_.setStyle("fill",y?u.get("pageIconColor",!0):u.get("pageIconInactiveColor",!0)),_.cursor=y?"pointer":"default")});var f=h.childOfName("pageText"),c=u.get("pageFormatter"),d=v.pageIndex,p=d!=null?d+1:0,g=v.pageCount;f&&c&&f.setStyle("text",r.isString(c)?c.replace("{current}",p).replace("{total}",g):c({current:p,total:g}))},_getPageInfo:function(u){var v=u.get("scrollDataIndex",!0),h=this.getContentGroup(),f=this._containerGroup.__rectSize,c=u.getOrient().index,d=n[c],p=o[c],g=this._findTargetItemIndex(v),m=h.children(),y=m[g],_=m.length,x=_?1:0,S={contentPosition:h.position.slice(),pageCount:x,pageIndex:x-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var b=M(y);S.contentPosition[c]=-b.s;for(var w=g+1,A=b,T=b,C=null;w<=_;++w)C=M(m[w]),(!C&&T.e>A.s+f||C&&!L(C,A.s))&&(T.i>A.i?A=T:A=C,A&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=A.i),++S.pageCount)),T=C;for(var w=g-1,A=b,T=b,C=null;w>=-1;--w)C=M(m[w]),(!C||!L(T,C.s))&&A.i=P&&D.s<=P+f}},_findTargetItemIndex:function(u){if(!this._showController)return 0;var v,h=this.getContentGroup(),f;return h.eachChild(function(c,d){var p=c.__legendDataIndex;f==null&&p!=null&&(f=d),p===u&&(v=d)}),v!=null?v:f}}),l=s;return sw=l,sw}var SH={},bH;function A_e(){if(bH)return SH;bH=1;var r=Pe();return r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(a)})}),SH}var wH;function C_e(){return wH||(wH=1,B$(),w_e(),T_e(),A_e()),hH}var TH={},AH={},lw,CH;function M_e(){if(CH)return lw;CH=1;var r=Pu(),t=r.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),e=t;return lw=e,lw}var uw,MH;function D_e(){if(MH)return uw;MH=1;var r=ie(),t=Ji(),e=qe(),a=_o(),i=Ru(),n=st(),o=Ut(),s=Iu(),l=e.Rect,u=n.linearMap,v=n.asc,h=r.bind,f=r.each,c=7,d=1,p=30,g="horizontal",m="vertical",y=5,_=["line","bar","candlestick","scatter"],x=i.extend({type:"dataZoom.slider",init:function(A,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(A,T,C,M){if(x.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=A.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!M||M.type!=="dataZoom"||M.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){x.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var A=this.group;A.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new e.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),A.add(T),this._positionGroup()},_resetLocation:function(){var A=this.dataZoomModel,T=this.api,C=this._findCoordRect(),M={width:T.getWidth(),height:T.getHeight()},L=this._orient===g?{right:M.width-C.x-C.width,top:M.height-p-c,width:C.width,height:p}:{right:c,top:C.y,width:p,height:C.height},D=o.getLayoutParams(A.option);r.each(["right","top","width","height"],function(I){D[I]==="ph"&&(D[I]=L[I])});var P=o.getLayoutRect(D,M,A.padding);this._location={x:P.x,y:P.y},this._size=[P.width,P.height],this._orient===m&&this._size.reverse()},_positionGroup:function(){var A=this.group,T=this._location,C=this._orient,M=this.dataZoomModel.getFirstTargetAxisModel(),L=M&&M.get("inverse"),D=this._displayables.barGroup,P=(this._dataShadowInfo||{}).otherAxisInverse;D.attr(C===g&&!L?{scale:P?[1,1]:[1,-1]}:C===g&&L?{scale:P?[-1,1]:[-1,-1]}:C===m&&!L?{scale:P?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:P?[-1,-1]:[-1,1],rotation:Math.PI/2});var I=A.getBoundingRect([D]);A.attr("position",[T.x-I.x,T.y-I.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var A=this.dataZoomModel,T=this._size,C=this._displayables.barGroup;C.add(new l({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:A.get("backgroundColor")},z2:-40})),C.add(new l({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var A=this._dataShadowInfo=this._prepareDataShadowInfo();if(A){var T=this._size,C=A.series,M=C.getRawData(),L=C.getShadowDim?C.getShadowDim():A.otherDim;if(L!=null){var D=M.getDataExtent(L),P=(D[1]-D[0])*.3;D=[D[0]-P,D[1]+P];var I=[0,T[1]],R=[0,T[0]],E=[[T[0],0],[0,0]],k=[],B=R[1]/(M.count()-1),F=0,V=Math.round(M.count()/T[0]),N;M.each([L],function(z,G){if(V>0&&G%V){F+=B;return}var q=z==null||isNaN(z)||z==="",H=q?0:u(z,D,I,!0);q&&!N&&G?(E.push([E[E.length-1][0],0]),k.push([k[k.length-1][0],0])):!q&&N&&(E.push([F,0]),k.push([F,0])),E.push([F,H]),k.push([F,H]),F+=B,N=q});var O=this.dataZoomModel;this._displayables.barGroup.add(new e.Polygon({shape:{points:E},style:r.defaults({fill:O.get("dataBackgroundColor")},O.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new e.Polyline({shape:{points:k},style:O.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var A=this.dataZoomModel,T=A.get("showDataShadow");if(T!==!1){var C,M=this.ecModel;return A.eachTargetAxis(function(L,D){var P=A.getAxisProxy(L.name,D).getTargetSeriesModels();r.each(P,function(I){if(!C&&!(T!==!0&&r.indexOf(_,I.get("type"))<0)){var R=M.getComponent(L.axis,D).axis,E=S(L.name),k,B=I.coordinateSystem;E!=null&&B.getOtherAxis&&(k=B.getOtherAxis(R).inverse),E=I.getData().mapDimension(E),C={thisAxis:R,series:I,thisDim:L.name,otherDim:E,otherAxisInverse:k}}},this)},this),C}},_renderHandle:function(){var A=this._displayables,T=A.handles=[],C=A.handleLabels=[],M=this._displayables.barGroup,L=this._size,D=this.dataZoomModel;M.add(A.filler=new l({draggable:!0,cursor:b(this._orient),drift:h(this._onDragMove,this,"all"),ondragstart:h(this._showDataInfo,this,!0),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1),style:{fill:D.get("fillerColor"),textPosition:"inside"}})),M.add(new l({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:L[0],height:L[1]},style:{stroke:D.get("dataBackgroundColor")||D.get("borderColor"),lineWidth:d,fill:"rgba(0,0,0,0)"}})),f([0,1],function(P){var I=e.createIcon(D.get("handleIcon"),{cursor:b(this._orient),draggable:!0,drift:h(this._onDragMove,this,P),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),R=I.getBoundingRect();this._handleHeight=n.parsePercent(D.get("handleSize"),this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,I.setStyle(D.getModel("handleStyle").getItemStyle());var E=D.get("handleColor");E!=null&&(I.style.fill=E),M.add(T[P]=I);var k=D.textStyleModel;this.group.add(C[P]=new e.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:k.getTextColor(),textFont:k.getFont()},z2:10}))},this)},_resetInterval:function(){var A=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[u(A[0],[0,100],T,!0),u(A[1],[0,100],T,!0)]},_updateInterval:function(A,T){var C=this.dataZoomModel,M=this._handleEnds,L=this._getViewExtent(),D=C.findRepresentativeAxisProxy().getMinMaxSpan(),P=[0,100];s(T,M,L,C.get("zoomLock")?"all":A,D.minSpan!=null?u(D.minSpan,P,L,!0):null,D.maxSpan!=null?u(D.maxSpan,P,L,!0):null);var I=this._range,R=this._range=v([u(M[0],L,P,!0),u(M[1],L,P,!0)]);return!I||I[0]!==R[0]||I[1]!==R[1]},_updateView:function(A){var T=this._displayables,C=this._handleEnds,M=v(C.slice()),L=this._size;f([0,1],function(D){var P=T.handles[D],I=this._handleHeight;P.attr({scale:[I/2,I/2],position:[C[D],L[1]/2-I/2]})},this),T.filler.setShape({x:M[0],y:0,width:M[1]-M[0],height:L[1]}),this._updateDataInfo(A)},_updateDataInfo:function(A){var T=this.dataZoomModel,C=this._displayables,M=C.handleLabels,L=this._orient,D=["",""];if(T.get("showDetail")){var P=T.findRepresentativeAxisProxy();if(P){var I=P.getAxisModel().axis,R=this._range,E=A?P.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:P.getDataValueWindow();D=[this._formatLabel(E[0],I),this._formatLabel(E[1],I)]}}var k=v(this._handleEnds.slice());B.call(this,0),B.call(this,1);function B(F){var V=e.getTransform(C.handles[F].parent,this.group),N=e.transformDirection(F===0?"right":"left",V),O=this._handleWidth/2+y,z=e.applyTransform([k[F]+(F===0?-O:O),this._size[1]/2],V);M[F].setStyle({x:z[0],y:z[1],textVerticalAlign:L===g?"middle":N,textAlign:L===g?N:"center",text:D[F]})}},_formatLabel:function(A,T){var C=this.dataZoomModel,M=C.get("labelFormatter"),L=C.get("labelPrecision");(L==null||L==="auto")&&(L=T.getPixelPrecision());var D=A==null||isNaN(A)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(A)):A.toFixed(Math.min(L,20));return r.isFunction(M)?M(A,D):r.isString(M)?M.replace("{value}",D):D},_showDataInfo:function(A){A=this._dragging||A;var T=this._displayables.handleLabels;T[0].attr("invisible",!A),T[1].attr("invisible",!A)},_onDragMove:function(A,T,C,M){this._dragging=!0,t.stop(M.event);var L=this._displayables.barGroup.getLocalTransform(),D=e.applyTransform([T,C],L,!0),P=this._updateInterval(A,D[0]),I=this.dataZoomModel.get("realtime");this._updateView(!I),P&&I&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var A=this.dataZoomModel.get("realtime");!A&&this._dispatchZoomAction()},_onClickPanelClick:function(A){var T=this._size,C=this._displayables.barGroup.transformCoordToLocal(A.offsetX,A.offsetY);if(!(C[0]<0||C[0]>T[0]||C[1]<0||C[1]>T[1])){var M=this._handleEnds,L=(M[0]+M[1])/2,D=this._updateInterval("all",C[0]-L);this._updateView(),D&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var A=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:A[0],end:A[1]})},_findCoordRect:function(){var A;if(f(this.getTargetCoordInfo(),function(M){if(!A&&M.length){var L=M[0].model.coordinateSystem;A=L.getRect&&L.getRect()}}),!A){var T=this.api.getWidth(),C=this.api.getHeight();A={x:T*.2,y:C*.2,width:T*.6,height:C*.6}}return A}});function S(A){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[A]}function b(A){return A==="vertical"?"ns-resize":"ew-resize"}var w=x;return uw=w,uw}var DH;function V$(){return DH||(DH=1,xD(),Pu(),Ru(),M_e(),D_e(),bD(),wD()),AH}var LH={},vw,IH;function L_e(){if(IH)return vw;IH=1;var r=Pu(),t=r.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});return vw=t,vw}var Tv={},PH;function I_e(){if(PH)return Tv;PH=1;var r=ie(),t=xf(),e=_o(),a="\0_ec_dataZoom_roams";function i(f,c){var d=s(f),p=c.dataZoomId,g=c.coordId;r.each(d,function(_,x){var S=_.dataZoomInfos;S[p]&&r.indexOf(c.allCoordIds,g)<0&&(delete S[p],_.count--)}),u(d);var m=d[g];m||(m=d[g]={coordId:g,dataZoomInfos:{},count:0},m.controller=l(f,m),m.dispatchAction=r.curry(v,f)),!m.dataZoomInfos[p]&&m.count++,m.dataZoomInfos[p]=c;var y=h(m.dataZoomInfos);m.controller.enable(y.controlType,y.opt),m.controller.setPointerChecker(c.containsPoint),e.createOrUpdate(m,"dispatchAction",c.dataZoomModel.get("throttle",!0),"fixRate")}function n(f,c){var d=s(f);r.each(d,function(p){p.controller.dispose();var g=p.dataZoomInfos;g[c]&&(delete g[c],p.count--)}),u(d)}function o(f){return f.type+"\0_"+f.id}function s(f){var c=f.getZr();return c[a]||(c[a]={})}function l(f,c){var d=new t(f.getZr());return r.each(["pan","zoom","scrollMove"],function(p){d.on(p,function(g){var m=[];r.each(c.dataZoomInfos,function(y){if(g.isAvailableBehavior(y.dataZoomModel.option)){var _=(y.getRange||{})[p],x=_&&_(c.controller,g);!y.dataZoomModel.get("disabled",!0)&&x&&m.push({dataZoomId:y.dataZoomId,start:x[0],end:x[1]})}}),m.length&&c.dispatchAction(m)})}),d}function u(f){r.each(f,function(c,d){c.count||(c.controller.dispose(),delete f[d])})}function v(f,c){f.dispatchAction({type:"dataZoom",batch:c})}function h(f){var c,d="type_",p={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0;return r.each(f,function(m){var y=m.dataZoomModel,_=y.get("disabled",!0)?!1:y.get("zoomLock",!0)?"move":!0;p[d+_]>p[d+c]&&(c=_),g&=y.get("preventDefaultMouseMove",!0)}),{controlType:c,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}}}return Tv.register=i,Tv.unregister=n,Tv.generateCoordId=o,Tv}var hw,RH;function P_e(){if(RH)return hw;RH=1;var r=ie(),t=Ru(),e=Iu(),a=I_e(),i=r.bind,n=t.extend({type:"dataZoom.inside",init:function(v,h){this._range},render:function(v,h,f,c){n.superApply(this,"render",arguments),this._range=v.getPercentRange(),r.each(this.getTargetCoordInfo(),function(d,p){var g=r.map(d,function(m){return a.generateCoordId(m.model)});r.each(d,function(m){var y=m.model,_={};r.each(["pan","zoom","scrollMove"],function(x){_[x]=i(o[x],this,m,p)},this),a.register(f,{coordId:a.generateCoordId(y),allCoordIds:g,containsPoint:function(x,S,b){return y.coordinateSystem.containPoint([S,b])},dataZoomId:v.id,dataZoomModel:v,getRange:_})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),n.superApply(this,"dispose",arguments),this._range=null}}),o={zoom:function(v,h,f,c){var d=this._range,p=d.slice(),g=v.axisModels[0];if(g){var m=l[h](null,[c.originX,c.originY],g,f,v),y=(m.signal>0?m.pixelStart+m.pixelLength-m.pixel:m.pixel-m.pixelStart)/m.pixelLength*(p[1]-p[0])+p[0],_=Math.max(1/c.scale,0);p[0]=(p[0]-y)*_+y,p[1]=(p[1]-y)*_+y;var x=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(e(0,p,[0,100],0,x.minSpan,x.maxSpan),this._range=p,d[0]!==p[0]||d[1]!==p[1])return p}},pan:s(function(v,h,f,c,d,p){var g=l[c]([p.oldX,p.oldY],[p.newX,p.newY],h,d,f);return g.signal*(v[1]-v[0])*g.pixel/g.pixelLength}),scrollMove:s(function(v,h,f,c,d,p){var g=l[c]([0,0],[p.scrollDelta,p.scrollDelta],h,d,f);return g.signal*(v[1]-v[0])*p.scrollDelta})};function s(v){return function(h,f,c,d){var p=this._range,g=p.slice(),m=h.axisModels[0];if(m){var y=v(g,m,h,f,c,d);if(e(y,g,[0,100],"all"),this._range=g,p[0]!==g[0]||p[1]!==g[1])return g}}}var l={grid:function(v,h,f,c,d){var p=f.axis,g={},m=d.model.coordinateSystem.getRect();return v=v||[0,0],p.dim==="x"?(g.pixel=h[0]-v[0],g.pixelLength=m.width,g.pixelStart=m.x,g.signal=p.inverse?1:-1):(g.pixel=h[1]-v[1],g.pixelLength=m.height,g.pixelStart=m.y,g.signal=p.inverse?-1:1),g},polar:function(v,h,f,c,d){var p=f.axis,g={},m=d.model.coordinateSystem,y=m.getRadiusAxis().getExtent(),_=m.getAngleAxis().getExtent();return v=v?m.pointToCoord(v):[0,0],h=m.pointToCoord(h),f.mainType==="radiusAxis"?(g.pixel=h[0]-v[0],g.pixelLength=y[1]-y[0],g.pixelStart=y[0],g.signal=p.inverse?1:-1):(g.pixel=h[1]-v[1],g.pixelLength=_[1]-_[0],g.pixelStart=_[0],g.signal=p.inverse?-1:1),g},singleAxis:function(v,h,f,c,d){var p=f.axis,g=d.model.coordinateSystem.getRect(),m={};return v=v||[0,0],p.orient==="horizontal"?(m.pixel=h[0]-v[0],m.pixelLength=g.width,m.pixelStart=g.x,m.signal=p.inverse?1:-1):(m.pixel=h[1]-v[1],m.pixelLength=g.height,m.pixelStart=g.y,m.signal=p.inverse?-1:1),m}},u=n;return hw=u,hw}var EH;function G$(){return EH||(EH=1,xD(),Pu(),Ru(),L_e(),P_e(),bD(),wD()),LH}var kH;function R_e(){return kH||(kH=1,V$(),G$()),TH}var OH={},NH={},fw,zH;function F$(){if(zH)return fw;zH=1;var r=ie(),t=r.each;function e(i){var n=i&&i.visualMap;r.isArray(n)||(n=n?[n]:[]),t(n,function(o){if(o){a(o,"splitList")&&!a(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var s=o.pieces;s&&r.isArray(s)&&t(s,function(l){r.isObject(l)&&(a(l,"start")&&!a(l,"min")&&(l.min=l.start),a(l,"end")&&!a(l,"max")&&(l.max=l.end))})}})}function a(i,n){return i&&i.hasOwnProperty&&i.hasOwnProperty(n)}return fw=e,fw}var BH={},VH;function H$(){if(VH)return BH;VH=1;var r=Lr();return r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),BH}var GH={},FH;function q$(){if(FH)return GH;FH=1;var r=Pe(),t=ie(),e=Tg(),a=js(),i=r.PRIORITY.VISUAL.COMPONENT;r.registerVisual(i,{createOnAllSeries:!0,reset:function(o,s){var l=[];return s.eachComponent("visualMap",function(u){var v=o.pipelineContext;!u.isTargetSeries(o)||v&&v.large||l.push(e.incrementalApplyVisual(u.stateList,u.targetVisuals,t.bind(u.getValueState,u),u.getDataDimension(o.getData())))}),l}}),r.registerVisual(i,{createOnAllSeries:!0,reset:function(o,s){var l=o.getData(),u=[];s.eachComponent("visualMap",function(v){if(v.isTargetSeries(o)){var h=v.getVisualMeta(t.bind(n,null,o,v))||{stops:[],outerColors:[]},f=v.getDataDimension(l),c=l.getDimensionInfo(f);c!=null&&(h.dimension=c.index,u.push(h))}}),o.getData().setVisual("visualMeta",u)}});function n(o,s,l,u){for(var v=s.targetVisuals[u],h=a.prepareVisualTypes(v),f={color:o.getData().getVisual("color")},c=0,d=h.length;c"],t.isArray(m)&&(m=m.slice(),A=!0),T=y?m:A?[C(m[0]),C(m[1])]:C(m),t.isString(w))return w.replace("{value}",A?T[0]:T).replace("{value2}",A?T[1]:T);if(t.isFunction(w))return A?w(m[0],m[1]):w(m);if(A)return m[0]===b[0]?_[0]+" "+T[1]:m[1]===b[1]?_[1]+" "+T[0]:T[0]+" - "+T[1];return T;function C(M){return M===b[0]?"min":M===b[1]?"max":(+M).toFixed(Math.min(S,20))}},resetExtent:function(){var m=this.option,y=f([m.min,m.max]);this._dataExtent=y},getDataDimension:function(m){var y=this.option.dimension,_=m.dimensions;if(!(y==null&&!_.length)){if(y!=null)return m.getDimension(y);for(var x=m.dimensions,S=x.length-1;S>=0;S--){var b=x[S],w=m.getDimensionInfo(b);if(!w.isCalculationCoord)return b}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var m=this.ecModel,y=this.option,_={inRange:y.inRange,outOfRange:y.outOfRange},x=y.target||(y.target={}),S=y.controller||(y.controller={});t.merge(x,_),t.merge(S,_);var b=this.isCategory();w.call(this,x),w.call(this,S),A.call(this,x,"inRange","outOfRange"),T.call(this,S);function w(C){v(y.color)&&!C.inRange&&(C.inRange={color:y.color.slice().reverse()}),C.inRange=C.inRange||{color:m.get("gradientColor")},h(this.stateList,function(M){var L=C[M];if(t.isString(L)){var D=a.get(L,"active",b);D?(C[M]={},C[M][L]=D):delete C[M]}},this)}function A(C,M,L){var D=C[M],P=C[L];D&&!P&&(P=C[L]={},h(D,function(I,R){if(i.isValidType(R)){var E=a.get(R,"inactive",b);E!=null&&(P[R]=E,R==="color"&&!P.hasOwnProperty("opacity")&&!P.hasOwnProperty("colorAlpha")&&(P.opacity=[0,0]))}}))}function T(C){var M=(C.inRange||{}).symbol||(C.outOfRange||{}).symbol,L=(C.inRange||{}).symbolSize||(C.outOfRange||{}).symbolSize,D=this.get("inactiveColor");h(this.stateList,function(P){var I=this.itemSize,R=C[P];R||(R=C[P]={color:b?D:[D]}),R.symbol==null&&(R.symbol=M&&t.clone(M)||(b?"roundRect":["roundRect"])),R.symbolSize==null&&(R.symbolSize=L&&t.clone(L)||(b?I[0]:[I[0],I[0]])),R.symbol=l(R.symbol,function(B){return B==="none"||B==="square"?"roundRect":B});var E=R.symbolSize;if(E!=null){var k=-1/0;u(E,function(B){B>k&&(k=B)}),R.symbolSize=l(E,function(B){return c(B,[0,k],[0,I[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:d,getValueState:d,getVisualMeta:d}),g=p;return dw=g,dw}var pw,WH;function E_e(){if(WH)return pw;WH=1;var r=ie(),t=U$(),e=st(),a=[20,140],i=t.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(s,l){i.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(u){u.mappingMethod="linear",u.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){i.superApply(this,"resetItemSize",arguments);var s=this.itemSize;this._orient==="horizontal"&&s.reverse(),(s[0]==null||isNaN(s[0]))&&(s[0]=a[0]),(s[1]==null||isNaN(s[1]))&&(s[1]=a[1])},_resetRange:function(){var s=this.getExtent(),l=this.option.range;!l||l.auto?(s.auto=1,this.option.range=s):r.isArray(l)&&(l[0]>l[1]&&l.reverse(),l[0]=Math.max(l[0],s[0]),l[1]=Math.min(l[1],s[1]))},completeVisualOption:function(){t.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(s){var l=this.option.controller[s].symbolSize;l&&l[0]!==l[1]&&(l[0]=0)},this)},setSelected:function(s){this.option.range=s.slice(),this._resetRange()},getSelected:function(){var s=this.getExtent(),l=e.asc((this.get("range")||[]).slice());return l[0]>s[1]&&(l[0]=s[1]),l[1]>s[1]&&(l[1]=s[1]),l[0]=u[1]||s<=l[1])?"inRange":"outOfRange"},findTargetDataIndices:function(s){var l=[];return this.eachTargetSeries(function(u){var v=[],h=u.getData();h.each(this.getDataDimension(h),function(f,c){s[0]<=f&&f<=s[1]&&v.push(c)},this),l.push({seriesId:u.id,dataIndex:v})},this),l},getVisualMeta:function(s){var l=n(this,"outOfRange",this.getExtent()),u=n(this,"inRange",this.option.range.slice()),v=[];function h(y,_){v.push({value:y,color:s(y,_)})}for(var f=0,c=0,d=u.length,p=l.length;cw[1])break;C.push({color:this.getControllerVisual(D,"color",A),offset:L/T})}return C.push({color:this.getControllerVisual(w[1],"color",A),offset:1}),C},_createBarPoints:function(w,A){var T=this.visualMapModel.itemSize;return[[T[0]-A[0],w[0]],[T[0],w[0]],[T[0],w[1]],[T[0]-A[1],w[1]]]},_createBarGroup:function(w){var A=this._orient,T=this.visualMapModel.get("inverse");return new i.Group(A==="horizontal"&&!T?{scale:w==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:A==="horizontal"&&T?{scale:w==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:A==="vertical"&&!T?{scale:w==="left"?[1,-1]:[-1,-1]}:{scale:w==="left"?[1,1]:[-1,1]})},_updateHandle:function(w,A){if(this._useHandle){var T=this._shapes,C=this.visualMapModel,M=T.handleThumbs,L=T.handleLabels;v([0,1],function(D){var P=M[D];P.setStyle("fill",A.handlesColor[D]),P.position[1]=w[D];var I=i.applyTransform(T.handleLabelPoints[D],i.getTransform(P,this.group));L[D].setStyle({x:I[0],y:I[1],text:C.formatValueText(this._dataInterval[D]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?D===0?"bottom":"top":"left",T.barGroup)})},this)}},_showIndicator:function(w,A,T,C){var M=this.visualMapModel,L=M.getExtent(),D=M.itemSize,P=[0,D[1]],I=u(w,L,P,!0),R=this._shapes,E=R.indicator;if(E){E.position[1]=I,E.attr("invisible",!1),E.setShape("points",y(!!T,C,I,D[1]));var k={convertOpacityToAlpha:!0},B=this.getControllerVisual(w,"color",k);E.setStyle("fill",B);var F=i.applyTransform(R.indicatorLabelPoint,i.getTransform(E,this.group)),V=R.indicatorLabel;V.attr("invisible",!1);var N=this._applyTransform("left",R.barGroup),O=this._orient;V.setStyle({text:(T||"")+M.formatValueText(A),textVerticalAlign:O==="horizontal"?N:"middle",textAlign:O==="horizontal"?"center":N,x:F[0],y:F[1]})}},_enableHoverLinkToSeries:function(){var w=this;this._shapes.barGroup.on("mousemove",function(A){if(w._hovering=!0,!w._dragging){var T=w.visualMapModel.itemSize,C=w._applyTransform([A.offsetX,A.offsetY],w._shapes.barGroup,!0,!0);C[1]=h(f(0,C[1]),T[1]),w._doHoverLinkToSeries(C[1],0<=C[0]&&C[0]<=T[0])}}).on("mouseout",function(){w._hovering=!1,!w._dragging&&w._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var w=this.api.getZr();this.visualMapModel.option.hoverLink?(w.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),w.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(w,A){var T=this.visualMapModel,C=T.itemSize;if(T.option.hoverLink){var M=[0,C[1]],L=T.getExtent();w=h(f(M[0],w),M[1]);var D=_(T,L,M),P=[w-D,w+D],I=u(w,M,L,!0),R=[u(P[0],M,L,!0),u(P[1],M,L,!0)];P[0]M[1]&&(R[1]=1/0),A&&(R[0]===-1/0?this._showIndicator(I,R[1],"< ",D):R[1]===1/0?this._showIndicator(I,R[0],"> ",D):this._showIndicator(I,I,"≈ ",D));var E=this._hoverLinkDataIndices,k=[];(A||x(T))&&(k=this._hoverLinkDataIndices=T.findTargetDataIndices(R));var B=l.compressBatches(E,k);this._dispatchHighDown("downplay",s.makeHighDownBatch(B[0],T)),this._dispatchHighDown("highlight",s.makeHighDownBatch(B[1],T))}},_hoverLinkFromSeriesMouseOver:function(w){var A=w.target,T=this.visualMapModel;if(!(!A||A.dataIndex==null)){var C=this.ecModel.getSeriesByIndex(A.seriesIndex);if(T.isTargetSeries(C)){var M=C.getData(A.dataType),L=M.get(T.getDataDimension(M),A.dataIndex,!0);isNaN(L)||this._showIndicator(L,L)}}},_hideIndicator:function(){var w=this._shapes;w.indicator&&w.indicator.attr("invisible",!0),w.indicatorLabel&&w.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var w=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",s.makeHighDownBatch(w,this.visualMapModel)),w.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var w=this.api.getZr();w.off("mouseover",this._hoverLinkFromSeriesMouseOver),w.off("mouseout",this._hideIndicator)},_applyTransform:function(w,A,T,C){var M=i.getTransform(A,C?null:this.group);return i[r.isArray(w)?"applyTransform":"transformDirection"](w,M,T)},_dispatchHighDown:function(w,A){A&&A.length&&this.api.dispatchAction({type:w,batch:A})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function g(w,A,T,C){return new i.Polygon({shape:{points:w},draggable:!!T,cursor:A,drift:T,onmousemove:function(M){e.stop(M.event)},ondragend:C})}function m(w,A){return w===0?[[0,0],[A,0],[A,-A]]:[[0,0],[A,0],[A,A]]}function y(w,A,T,C){return w?[[0,-h(A,f(T,0))],[d,0],[0,h(A,f(C-T,0))]]:[[0,0],[5,-5],[5,5]]}function _(w,A,T){var C=c/2,M=w.get("hoverLinkDataSize");return M&&(C=u(M,A,T,!0)/2),C}function x(w){var A=w.get("hoverLinkOnHandle");return!!(A==null?w.get("realtime"):A)}function S(w){return w==="vertical"?"ns-resize":"ew-resize"}var b=p;return mw=b,mw}var ZH={},XH;function Z$(){if(XH)return ZH;XH=1;var r=Pe(),t={type:"selectDataRange",event:"dataRangeSelected",update:"update"};return r.registerAction(t,function(e,a){a.eachComponent({mainType:"visualMap",query:e},function(i){i.setSelected(e.selected)})}),ZH}var KH;function X$(){if(KH)return NH;KH=1;var r=Pe(),t=F$();return H$(),q$(),E_e(),k_e(),Z$(),r.registerPreprocessor(t),NH}var QH={},yw,jH;function O_e(){if(jH)return yw;jH=1;var r=It();r.__DEV__;var t=ie(),e=U$(),a=js(),i=W$(),n=st(),o=n.reformIntervals,s=e.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(h,f){s.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var c=this._mode=this._determineMode();l[this._mode].call(this),this._resetSelected(h,f);var d=this.option.categories;this.resetVisual(function(p,g){c==="categories"?(p.mappingMethod="category",p.categories=t.clone(d)):(p.dataExtent=this.getExtent(),p.mappingMethod="piecewise",p.pieceList=t.map(this._pieceList,function(y){var y=t.clone(y);return g!=="inRange"&&(y.visual=null),y}))})},completeVisualOption:function(){var h=this.option,f={},c=a.listVisualTypes(),d=this.isCategory();t.each(h.pieces,function(g){t.each(c,function(m){g.hasOwnProperty(m)&&(f[m]=1)})}),t.each(f,function(g,m){var y=0;t.each(this.stateList,function(_){y|=p(h,_,m)||p(h.target,_,m)},this),!y&&t.each(this.stateList,function(_){(h[_]||(h[_]={}))[m]=i.get(m,_==="inRange"?"active":"inactive",d)})},this);function p(g,m,y){return g&&g[m]&&(t.isObject(g[m])?g[m].hasOwnProperty(y):g[m]===y)}e.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(h,f){var c=this.option,d=this._pieceList,p=(f?c:h).selected||{};if(c.selected=p,t.each(d,function(m,y){var _=this.getSelectedMapKey(m);p.hasOwnProperty(_)||(p[_]=!0)},this),c.selectedMode==="single"){var g=!1;t.each(d,function(m,y){var _=this.getSelectedMapKey(m);p[_]&&(g?p[_]=!1:g=!0)},this)}},getSelectedMapKey:function(h){return this._mode==="categories"?h.value+"":h.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var h=this.option;return h.pieces&&h.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(h){this.option.selected=t.clone(h)},getValueState:function(h){var f=a.findPieceIndex(h,this._pieceList);return f!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[f])]?"inRange":"outOfRange"},findTargetDataIndices:function(h){var f=[];return this.eachTargetSeries(function(c){var d=[],p=c.getData();p.each(this.getDataDimension(p),function(g,m){var y=a.findPieceIndex(g,this._pieceList);y===h&&d.push(m)},this),f.push({seriesId:c.id,dataIndex:d})},this),f},getRepresentValue:function(h){var f;if(this.isCategory())f=h.value;else if(h.value!=null)f=h.value;else{var c=h.interval||[];f=c[0]===-1/0&&c[1]===1/0?0:(c[0]+c[1])/2}return f},getVisualMeta:function(h){if(this.isCategory())return;var f=[],c=[],d=this;function p(_,x){var S=d.getRepresentValue({interval:_});x||(x=d.getValueState(S));var b=h(S,x);_[0]===-1/0?c[0]=b:_[1]===1/0?c[1]=b:f.push({value:_[0],color:b},{value:_[1],color:b})}var g=this._pieceList.slice();if(!g.length)g.push({interval:[-1/0,1/0]});else{var m=g[0].interval[0];m!==-1/0&&g.unshift({interval:[-1/0,m]}),m=g[g.length-1].interval[1],m!==1/0&&g.push({interval:[m,1/0]})}var y=-1/0;return t.each(g,function(_){var x=_.interval;x&&(x[0]>y&&p([y,x[0]],"outOfRange"),p(x.slice()),y=x[1])},this),{stops:f,outerColors:c}}}),l={splitNumber:function(){var h=this.option,f=this._pieceList,c=Math.min(h.precision,20),d=this.getExtent(),p=h.splitNumber;p=Math.max(parseInt(p,10),1),h.splitNumber=p;for(var g=(d[1]-d[0])/p;+g.toFixed(c)!==g&&c<5;)c++;h.precision=c,g=+g.toFixed(c),h.minOpen&&f.push({interval:[-1/0,d[0]],close:[0,0]});for(var m=0,y=d[0];m","≥"][d[0]]];c.text=c.text||this.formatValueText(c.value!=null?c.value:c.interval,!1,p)},this)}};function u(h,f){var c=h.inverse;(h.orient==="vertical"?!c:c)&&f.reverse()}var v=s;return yw=v,yw}var _w,JH;function N_e(){if(JH)return _w;JH=1;var r=ie(),t=$$(),e=qe(),a=ti(),i=a.createSymbol,n=Ut(),o=Y$(),s=t.extend({type:"visualMap.piecewise",doRender:function(){var u=this.group;u.removeAll();var v=this.visualMapModel,h=v.get("textGap"),f=v.textStyleModel,c=f.getFont(),d=f.getTextColor(),p=this._getItemAlign(),g=v.itemSize,m=this._getViewData(),y=m.endsText,_=r.retrieve(v.get("showLabel",!0),!y);y&&this._renderEndsText(u,y[0],g,_,p),r.each(m.viewPieceList,x,this),y&&this._renderEndsText(u,y[1],g,_,p),n.box(v.get("orient"),u,v.get("itemGap")),this.renderBackground(u),this.positionGroup(u);function x(S){var b=S.piece,w=new e.Group;w.onclick=r.bind(this._onItemClick,this,b),this._enableHoverLink(w,S.indexInModelPieceList);var A=v.getRepresentValue(b);if(this._createItemSymbol(w,A,[0,0,g[0],g[1]]),_){var T=this.visualMapModel.getValueState(A);w.add(new e.Text({style:{x:p==="right"?-h:g[0]+h,y:g[1]/2,text:b.text,textVerticalAlign:"middle",textAlign:p,textFont:c,textFill:d,opacity:T==="outOfRange"?.5:1}}))}u.add(w)}},_enableHoverLink:function(u,v){u.on("mouseover",r.bind(h,this,"highlight")).on("mouseout",r.bind(h,this,"downplay"));function h(f){var c=this.visualMapModel;c.option.hoverLink&&this.api.dispatchAction({type:f,batch:o.makeHighDownBatch(c.findTargetDataIndices(v),c)})}},_getItemAlign:function(){var u=this.visualMapModel,v=u.option;if(v.orient==="vertical")return o.getItemAlign(u,this.api,u.itemSize);var h=v.align;return(!h||h==="auto")&&(h="left"),h},_renderEndsText:function(u,v,h,f,c){if(v){var d=new e.Group,p=this.visualMapModel.textStyleModel;d.add(new e.Text({style:{x:f?c==="right"?h[0]:0:h[0]/2,y:h[1]/2,textVerticalAlign:"middle",textAlign:f?c:"center",text:v,textFont:p.getFont(),textFill:p.getTextColor()}})),u.add(d)}},_getViewData:function(){var u=this.visualMapModel,v=r.map(u.getPieceList(),function(d,p){return{piece:d,indexInModelPieceList:p}}),h=u.get("text"),f=u.get("orient"),c=u.get("inverse");return(f==="horizontal"?c:!c)?v.reverse():h&&(h=h.slice().reverse()),{viewPieceList:v,endsText:h}},_createItemSymbol:function(u,v,h){u.add(i(this.getControllerVisual(v,"symbol"),h[0],h[1],h[2],h[3],this.getControllerVisual(v,"color")))},_onItemClick:function(u){var v=this.visualMapModel,h=v.option,f=r.clone(h.selected),c=v.getSelectedMapKey(u);h.selectedMode==="single"?(f[c]=!0,r.each(f,function(d,p){f[p]=p===c})):f[c]=!f[c],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})}}),l=s;return _w=l,_w}var e4;function K$(){if(e4)return QH;e4=1;var r=Pe(),t=F$();return H$(),q$(),O_e(),N_e(),Z$(),r.registerPreprocessor(t),QH}var t4;function z_e(){return t4||(t4=1,X$(),K$()),OH}var r4={},a4={},Av={},i4;function Q$(){if(i4)return Av;i4=1;var r=pr(),t="urn:schemas-microsoft-com:vml",e=typeof window>"u"?null:window,a=!1,i=e&&e.document;function n(l){return o(l)}var o;if(i&&!r.canvasSupported)try{!i.namespaces.zrvml&&i.namespaces.add("zrvml",t),o=function(l){return i.createElement("')}}catch(l){o=function(u){return i.createElement("<"+u+' xmlns="'+t+'" class="zrvml">')}}function s(){if(!(a||!i)){a=!0;var l=i.styleSheets;l.length<31?i.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):l[0].addRule(".zrvml","behavior:url(#default#VML)")}}return Av.doc=i,Av.createNode=n,Av.initVML=s,Av}var n4;function B_e(){if(n4)return a4;n4=1;var r=pr(),t=Jt(),e=t.applyTransform,a=rr(),i=en(),n=Da(),o=ug(),s=I9(),l=lf(),u=wu(),v=$s(),h=ur(),f=Au(),c=hg(),d=Q$(),p=f.CMD,g=Math.round,m=Math.sqrt,y=Math.abs,_=Math.cos,x=Math.sin,S=Math.max;if(!r.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",A=21600,T=A/2,C=1e5,M=1e3,L=function(se){se.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",se.coordsize=A+","+A,se.coordorigin="0,0"},D=function(se){return String(se).replace(/&/g,"&").replace(/"/g,""")},P=function(se,ve,ye){return"rgb("+[se,ve,ye].join(",")+")"},I=function(se,ve){ve&&se&&ve.parentNode!==se&&se.appendChild(ve)},R=function(se,ve){ve&&se&&ve.parentNode===se&&se.removeChild(ve)},E=function(se,ve,ye){return(parseFloat(se)||0)*C+(parseFloat(ve)||0)*M+ye},k=o.parsePercent,B=function(se,ve,ye){var Me=i.parse(ve);ye=+ye,isNaN(ye)&&(ye=1),Me&&(se.color=P(Me[0],Me[1],Me[2]),se.opacity=ye*Me[3])},F=function(se){var ve=i.parse(se);return[P(ve[0],ve[1],ve[2]),ve[3]]},V=function(se,ve,ye){var Me=ve.fill;if(Me!=null)if(Me instanceof c){var J,ne=0,ue=[0,0],me=0,xe=1,ge=ye.getBoundingRect(),pe=ge.width,Ce=ge.height;if(Me.type==="linear"){J="gradient";var ze=ye.transform,Ve=[Me.x*pe,Me.y*Ce],ke=[Me.x2*pe,Me.y2*Ce];ze&&(e(Ve,Ve,ze),e(ke,ke,ze));var lt=ke[0]-Ve[0],dt=ke[1]-Ve[1];ne=Math.atan2(lt,dt)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{J="gradientradial";var Ve=[Me.x*pe,Me.y*Ce],ze=ye.transform,Dt=ye.scale,Tt=pe,Bt=Ce;ue=[(Ve[0]-ge.x)/Tt,(Ve[1]-ge.y)/Bt],ze&&e(Ve,Ve,ze),Tt/=Dt[0]*A,Bt/=Dt[1]*A;var Vt=S(Tt,Bt);me=0/Vt,xe=2*Me.r/Vt-me}var Ke=Me.colorStops.slice();Ke.sort(function(jt,mr){return jt.offset-mr.offset});for(var Et=Ke.length,Lt=[],Zt=[],Xt=0;Xt=2){var fa=Lt[0][0],Rr=Lt[1][0],ta=Lt[0][1]*ve.opacity,vr=Lt[1][1]*ve.opacity;se.type=J,se.method="none",se.focus="100%",se.angle=ne,se.color=fa,se.color2=Rr,se.colors=Zt.join(","),se.opacity=vr,se.opacity2=ta}J==="radial"&&(se.focusposition=ue.join(","))}else B(se,Me,ve.opacity)},N=function(se,ve){ve.lineDash&&(se.dashstyle=ve.lineDash.join(" ")),ve.stroke!=null&&!(ve.stroke instanceof c)&&B(se,ve.stroke,ve.opacity)},O=function(se,ve,ye,Me){var J=ve==="fill",ne=se.getElementsByTagName(ve)[0];ye[ve]!=null&&ye[ve]!=="none"&&(J||!J&&ye.lineWidth)?(se[J?"filled":"stroked"]="true",ye[ve]instanceof c&&R(se,ne),ne||(ne=d.createNode(ve)),J?V(ne,ye,Me):N(ne,ye),I(se,ne)):(se[J?"filled":"stroked"]="false",R(se,ne))},z=[[],[],[]],G=function(se,ve){var ye=p.M,Me=p.C,J=p.L,ne=p.A,ue=p.Q,me=[],xe,ge,pe,Ce,ze,Ve,ke=se.data,lt=se.len();for(Ce=0;Ce.01?vr&&(jt+=270/A):Math.abs(mr-Kt)<1e-4?vr&&jtXt?ce-=270/A:ce+=270/A:vr&&mrKt?re+=270/A:re-=270/A),me.push(be,g(((Xt-Pr)*Et+Vt)*A-T),b,g(((Kt-fa)*Lt+Ke)*A-T),b,g(((Xt+Pr)*Et+Vt)*A-T),b,g(((Kt+fa)*Lt+Ke)*A-T),b,g((jt*Et+Vt)*A-T),b,g((mr*Lt+Ke)*A-T),b,g((re*Et+Vt)*A-T),b,g((ce*Lt+Ke)*A-T)),ze=re,Ve=ce;break;case p.R:var Ae=z[0],De=z[1];Ae[0]=ke[Ce++],Ae[1]=ke[Ce++],De[0]=Ae[0]+ke[Ce++],De[1]=Ae[1]+ke[Ce++],ve&&(e(Ae,Ae,ve),e(De,De,ve)),Ae[0]=g(Ae[0]*A-T),De[0]=g(De[0]*A-T),Ae[1]=g(Ae[1]*A-T),De[1]=g(De[1]*A-T),me.push(" m ",Ae[0],b,Ae[1]," l ",De[0],b,Ae[1]," l ",De[0],b,De[1]," l ",Ae[0],b,De[1]);break;case p.Z:me.push(" x ")}if(xe>0){me.push(ge);for(var je=0;jeY&&(W=0,U={});var ye=X.style,Me;try{ye.font=se,Me=ye.fontFamily.split(",")[0]}catch(J){}ve={style:ye.fontStyle||H,variant:ye.fontVariant||H,weight:ye.fontWeight||H,size:parseFloat(ye.fontSize||12)|0,family:Me||"Microsoft YaHei"},U[se]=ve,W++}return ve},Q;n.$override("measureText",function(se,ve){var ye=d.doc;Q||(Q=ye.createElement("div"),Q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",d.doc.body.appendChild(Q));try{Q.style.font=ve}catch(Me){}return Q.innerHTML="",Q.appendChild(ye.createTextNode(se)),{width:Q.offsetWidth}});for(var j=new a,te=function(se,ve,ye,Me){var J=this.style;this.__dirty&&o.normalizeTextStyle(J,!0);var ne=J.text;if(ne!=null&&(ne+=""),!!ne){if(J.rich){var ue=n.parseRichText(ne,J);ne=[];for(var me=0;me-m}function x(O,z){var G=z?O.textFill:O.fill;return G!=null&&G!==v}function S(O,z){var G=z?O.textStroke:O.stroke;return G!=null&&G!==v}function b(O,z){z&&w(O,"transform","matrix("+u.call(z,",")+")")}function w(O,z,G){(!G||G.type!=="linear"&&G.type!=="radial")&&O.setAttribute(z,G)}function A(O,z,G){O.setAttributeNS("http://www.w3.org/1999/xlink",z,G)}function T(O,z,G,q){if(x(z,G)){var H=G?z.textFill:z.fill;H=H==="transparent"?v:H,w(O,"fill",H),w(O,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else w(O,"fill",v);if(S(z,G)){var U=G?z.textStroke:z.stroke;U=U==="transparent"?v:U,w(O,"stroke",U);var W=G?z.textStrokeWidth:z.lineWidth,Y=!G&&z.strokeNoScale?q.getLineScale():1;w(O,"stroke-width",W/Y),w(O,"paint-order",G?"stroke":"fill"),w(O,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var X=z.lineDash;X?(w(O,"stroke-dasharray",z.lineDash.join(",")),w(O,"stroke-dashoffset",h(z.lineDashOffset||0))):w(O,"stroke-dasharray",""),z.lineCap&&w(O,"stroke-linecap",z.lineCap),z.lineJoin&&w(O,"stroke-linejoin",z.lineJoin),z.miterLimit&&w(O,"stroke-miterlimit",z.miterLimit)}else w(O,"stroke",v)}function C(O){for(var z=[],G=O.data,q=O.len(),H=0;H=p:-Z>=p),se=Z>0?Z%p:Z%p+p,ve=!1;fe?ve=!0:_(oe)?ve=!1:ve=se>=d==!!le;var ye=y(X+Q*c(te)),Me=y(K+j*f(te));fe&&(le?Z=p-1e-4:Z=-p+1e-4,ve=!0,H===9&&z.push("M",ye,Me));var J=y(X+Q*c(te+Z)),ne=y(K+j*f(te+Z));z.push("A",y(Q),y(j),h(ee*g),+ve,+le,J,ne);break;case l.Z:W="Z";break;case l.R:var J=y(G[H++]),ne=y(G[H++]),ue=y(G[H++]),me=y(G[H++]);z.push("M",J,ne,"L",J+ue,ne,"L",J+ue,ne+me,"L",J,ne+me,"L",J,ne);break}W&&z.push(W);for(var xe=0;xege){for(;me=u&&d+1>=v){for(var p=[],g=0;g=u&&w+1>=v)return t(l,x.components);c[_]=x}h++}for(;h<=f;){var y=m();if(y)return y}},pushComponent:function(n,o,s){var l=n[n.length-1];l&&l.added===o&&l.removed===s?n[n.length-1]={count:l.count+1,added:o,removed:s}:n.push({count:1,added:o,removed:s})},extractCommon:function(n,o,s,l){for(var u=o.length,v=s.length,h=n.newPos,f=h-l,c=0;h+1=0;--_)if(y[_]===m)return!0;return!1}),g):null:g[0]},f.prototype.update=function(d,p){if(d){var g=this.getDefs(!1);if(d[this._domName]&&g.contains(d[this._domName]))typeof p=="function"&&p(d);else{var m=this.add(d);m&&(d[this._domName]=m)}}},f.prototype.addDom=function(d){var p=this.getDefs(!0);p.appendChild(d)},f.prototype.removeDom=function(d){var p=this.getDefs(!1);p&&d[this._domName]&&(p.removeChild(d[this._domName]),d[this._domName]=null)},f.prototype.getDoms=function(){var d=this.getDefs(!1);if(!d)return[];var p=[];return e.each(this._tagNames,function(g){var m=d.getElementsByTagName(g);p=p.concat([].slice.call(m))}),p},f.prototype.markAllUnused=function(){var d=this.getDoms(),p=this;e.each(d,function(g){g[p._markLabel]=v})},f.prototype.markUsed=function(d){d&&(d[this._markLabel]=h)},f.prototype.removeUnused=function(){var d=this.getDefs(!1);if(d){var p=this.getDoms(),g=this;e.each(p,function(m){m[g._markLabel]!==h&&d.removeChild(m)})}},f.prototype.getSvgProxy=function(d){return d instanceof a?s:d instanceof i?l:d instanceof n?u:s},f.prototype.getTextSvgElement=function(d){return d.__textSvgEl},f.prototype.getSvgElement=function(d){return d.__svgEl};var c=f;return ww=c,ww}var Tw,c4;function H_e(){if(c4)return Tw;c4=1;var r=LD(),t=ie(),e=sf(),a=en();function i(o,s){r.call(this,o,s,["linearGradient","radialGradient"],"__gradient_in_use__")}t.inherits(i,r),i.prototype.addWithoutUpdate=function(o,s){if(s&&s.style){var l=this;t.each(["fill","stroke"],function(u){if(s.style[u]&&(s.style[u].type==="linear"||s.style[u].type==="radial")){var v=s.style[u],h=l.getDefs(!0),f;v._dom?(f=v._dom,h.contains(v._dom)||l.addDom(f)):f=l.add(v),l.markUsed(s);var c=f.getAttribute("id");o.setAttribute(u,"url(#"+c+")")}})}},i.prototype.add=function(o){var s;if(o.type==="linear")s=this.createElement("linearGradient");else if(o.type==="radial")s=this.createElement("radialGradient");else return e("Illegal gradient type."),null;return o.id=o.id||this.nextId++,s.setAttribute("id","zr"+this._zrId+"-gradient-"+o.id),this.updateDom(o,s),this.addDom(s),s},i.prototype.update=function(o){var s=this;r.prototype.update.call(this,o,function(){var l=o.type,u=o._dom.tagName;l==="linear"&&u==="linearGradient"||l==="radial"&&u==="radialGradient"?s.updateDom(o,o._dom):(s.removeDom(o),s.add(o))})},i.prototype.updateDom=function(o,s){if(o.type==="linear")s.setAttribute("x1",o.x),s.setAttribute("y1",o.y),s.setAttribute("x2",o.x2),s.setAttribute("y2",o.y2);else if(o.type==="radial")s.setAttribute("cx",o.x),s.setAttribute("cy",o.y),s.setAttribute("r",o.r);else{e("Illegal gradient type.");return}o.global?s.setAttribute("gradientUnits","userSpaceOnUse"):s.setAttribute("gradientUnits","objectBoundingBox"),s.innerHTML="";for(var l=o.colorStops,u=0,v=l.length;u-1){var c=a.parse(f)[3],d=a.toHex(f);h.setAttribute("stop-color","#"+d),h.setAttribute("stop-opacity",c)}else h.setAttribute("stop-color",l[u].color);s.appendChild(h)}o._dom=s},i.prototype.markUsed=function(o){if(o.style){var s=o.style.fill;s&&s._dom&&r.prototype.markUsed.call(this,s._dom),s=o.style.stroke,s&&s._dom&&r.prototype.markUsed.call(this,s._dom)}};var n=i;return Tw=n,Tw}var Aw,d4;function q_e(){if(d4)return Aw;d4=1;var r=LD(),t=ie(),e=ha();function a(n,o){r.call(this,n,o,"clipPath","__clippath_in_use__")}t.inherits(a,r),a.prototype.update=function(n){var o=this.getSvgElement(n);o&&this.updateDom(o,n.__clipPaths,!1);var s=this.getTextSvgElement(n);s&&this.updateDom(s,n.__clipPaths,!0),this.markUsed(n)},a.prototype.updateDom=function(n,o,s){if(o&&o.length>0){var l=this.getDefs(!0),u=o[0],v,h,f=s?"_textDom":"_dom";u[f]?(h=u[f].getAttribute("id"),v=u[f],l.contains(v)||l.appendChild(v)):(h="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,v=this.createElement("clipPath"),v.setAttribute("id",h),l.appendChild(v),u[f]=v);var c=this.getSvgProxy(u);if(u.transform&&u.parent.invTransform&&!s){var d=Array.prototype.slice.call(u.transform);e.mul(u.transform,u.parent.invTransform,u.transform),c.brush(u),u.transform=d}else c.brush(u);var p=this.getSvgElement(u);v.innerHTML="",v.appendChild(p.cloneNode()),n.setAttribute("clip-path","url(#"+h+")"),o.length>1&&this.updateDom(v,o.slice(1),s)}else n&&n.setAttribute("clip-path","none")},a.prototype.markUsed=function(n){var o=this;n.__clipPaths&&t.each(n.__clipPaths,function(s){s._dom&&r.prototype.markUsed.call(o,s._dom),s._textDom&&r.prototype.markUsed.call(o,s._textDom)})};var i=a;return Aw=i,Aw}var Cw,p4;function W_e(){if(p4)return Cw;p4=1;var r=LD(),t=ie();function e(n,o){r.call(this,n,o,["filter"],"__filter_in_use__","_shadowDom")}t.inherits(e,r),e.prototype.addWithoutUpdate=function(n,o){if(o&&a(o.style)){var s;if(o._shadowDom){s=o._shadowDom;var l=this.getDefs(!0);l.contains(o._shadowDom)||this.addDom(s)}else s=this.add(o);this.markUsed(o);var u=s.getAttribute("id");n.style.filter="url(#"+u+")"}},e.prototype.add=function(n){var o=this.createElement("filter");return n._shadowDomId=n._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(n,o),this.addDom(o),o},e.prototype.update=function(n,o){var s=o.style;if(a(s)){var l=this;r.prototype.update.call(this,o,function(){l.updateDom(o,o._shadowDom)})}else this.remove(n,o)},e.prototype.remove=function(n,o){o._shadowDomId!=null&&(this.removeDom(n),n.style.filter="")},e.prototype.updateDom=function(n,o){var s=o.getElementsByTagName("feDropShadow");s.length===0?s=this.createElement("feDropShadow"):s=s[0];var l=n.style,u=n.scale&&n.scale[0]||1,v=n.scale&&n.scale[1]||1,h,f,c,d;if(l.shadowBlur||l.shadowOffsetX||l.shadowOffsetY)h=l.shadowOffsetX||0,f=l.shadowOffsetY||0,c=l.shadowBlur,d=l.shadowColor;else if(l.textShadowBlur)h=l.textShadowOffsetX||0,f=l.textShadowOffsetY||0,c=l.textShadowBlur,d=l.textShadowColor;else{this.removeDom(o,l);return}s.setAttribute("dx",h/u),s.setAttribute("dy",f/v),s.setAttribute("flood-color",d);var p=c/2/u,g=c/2/v,m=p+" "+g;s.setAttribute("stdDeviation",m),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(c/2*200)+"%"),o.setAttribute("height",Math.ceil(c/2*200)+"%"),o.appendChild(s),n._shadowDom=o},e.prototype.markUsed=function(n){n._shadowDom&&r.prototype.markUsed.call(this,n._shadowDom)};function a(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY||n.textShadowBlur||n.textShadowOffsetX||n.textShadowOffsetY)}var i=e;return Cw=i,Cw}var Mw,g4;function U_e(){if(g4)return Mw;g4=1;var r=MD(),t=r.createElement,e=ie(),a=sf(),i=ur(),n=wu(),o=$s(),s=F_e(),l=H_e(),u=q_e(),v=W_e(),h=DD(),f=h.path,c=h.image,d=h.text;function p(C){return parseInt(C,10)}function g(C){return C instanceof i?f:C instanceof n?c:C instanceof o?d:f}function m(C,M){return M&&C&&M.parentNode!==C}function y(C,M,L){if(m(C,M)&&L){var D=L.nextSibling;D?C.insertBefore(M,D):C.appendChild(M)}}function _(C,M){if(m(C,M)){var L=C.firstChild;L?C.insertBefore(M,L):C.appendChild(M)}}function x(C,M){M&&C&&M.parentNode===C&&C.removeChild(M)}function S(C){return C.__textSvgEl}function b(C){return C.__svgEl}var w=function(C,M,L,D){this.root=C,this.storage=M,this._opts=L=e.extend({},L||{});var P=t("svg");P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P.setAttribute("version","1.1"),P.setAttribute("baseProfile","full"),P.style.cssText="user-select:none;position:absolute;left:0;top:0;";var I=t("g");P.appendChild(I);var R=t("g");P.appendChild(R),this.gradientManager=new l(D,R),this.clipPathManager=new u(D,R),this.shadowManager=new v(D,R);var E=document.createElement("div");E.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=R,this._backgroundRoot=I,this._viewport=E,C.appendChild(E),E.appendChild(P),this.resize(L.width,L.height),this._visibleList=[]};w.prototype={constructor:w,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var C=this.getViewportRoot();if(C)return{offsetLeft:C.offsetLeft||0,offsetTop:C.offsetTop||0}},refresh:function(){var C=this.storage.getDisplayList(!0);this._paintList(C)},setBackgroundColor:function(C){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var M=t("rect");M.setAttribute("width",this.getWidth()),M.setAttribute("height",this.getHeight()),M.setAttribute("x",0),M.setAttribute("y",0),M.setAttribute("id",0),M.style.fill=C,this._backgroundRoot.appendChild(M),this._backgroundNode=M},_paintList:function(C){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var M=this._svgRoot,L=this._visibleList,D=C.length,P=[],I;for(I=0;I=0;--R)if(I[R]===P)return!0;return!1}),L}else return null;else return L[0]},resize:function(C,M){var L=this._viewport;L.style.display="none";var D=this._opts;if(C!=null&&(D.width=C),M!=null&&(D.height=M),C=this._getSize(0),M=this._getSize(1),L.style.display="",this._width!==C||this._height!==M){this._width=C,this._height=M;var P=L.style;P.width=C+"px",P.height=M+"px";var I=this._svgDom;I.setAttribute("width",C),I.setAttribute("height",M)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",C),this._backgroundNode.setAttribute("height",M))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(C){var M=this._opts,L=["width","height"][C],D=["clientWidth","clientHeight"][C],P=["paddingLeft","paddingTop"][C],I=["paddingRight","paddingBottom"][C];if(M[L]!=null&&M[L]!=="auto")return parseFloat(M[L]);var R=this.root,E=document.defaultView.getComputedStyle(R);return(R[D]||p(E[L])||p(R.style[L]))-(p(E[P])||0)-(p(E[I])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var C=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+C}};function A(C){return function(){a('In SVG mode painter not support method "'+C+'"')}}e.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){w.prototype[C]=A(C)});var T=w;return Mw=T,Mw}var m4;function $_e(){if(m4)return l4;m4=1,DD();var r=vg(),t=r.registerPainter,e=U_e();return t("svg",e),l4}var y4;function b1e(){return y4||(y4=1,(function(r){var t=Pe();(function(){for(var a in t){if(t==null||!t.hasOwnProperty(a)||a==="default"||a==="__esModule")return;r[a]=t[a]}})();var e=t$();(function(){for(var a in e){if(e==null||!e.hasOwnProperty(a)||a==="default"||a==="__esModule")return;r[a]=e[a]}})(),U9(),Age(),Ige(),Oge(),Vge(),Xge(),ume(),pme(),wme(),Bme(),Hme(),$me(),iye(),vye(),pye(),Sye(),Aye(),Pye(),Oye(),Bye(),jye(),i0e(),v0e(),h0e(),w0e(),C0e(),P$(),b$(),I0e(),P0e(),q0e(),Z0e(),Sf(),t_e(),r_e(),h_e(),d_e(),m_e(),x_e(),C_e(),B$(),R_e(),G$(),V$(),z_e(),X$(),K$(),G_e(),$_e()})(Ky)),Ky}ot([x9]);ot([ype]);ot([pre,Ire,Gre,_ae,Iae,gie,Wie,Mne,Xne,toe,voe,ise,Lse,Gse,rle,ole,gle,wle,kle,Gle,Kle,Eue]);ot(jue);ot(Tve);ot(t8);ot(zve);ot(G8);ot(Fve);ot(Kve);ot(zhe);ot(rfe);ot(of);ot(_fe);ot(bfe);ot(Rfe);ot(Vfe);ot(Ufe);ot(Qfe);ot(sce);ot(Ace);ot(q7);ot(W7);ot(Uce);ot(X7);ot(K7);ot(Kce);ot(ude);ot(j7);ot(Bde);ot(S6);ot([x9,j7]);ot(S6);var j$=(function(){function r(t){this.value=t}return r})(),Y_e=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new j$(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Z_e=(function(){function r(t){this._list=new Y_e,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,i=this._map,n=null;if(i[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new j$(e),s.key=t,a.insertEntry(s),i[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),ih={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ih.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ih.bounceIn(r*2)*.5:ih.bounceOut(r*2-1)*.5+.5}};tY(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{});tY(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{});var J$=Array.prototype,eY=J$.slice,X_e=J$.map,_4=(function(){}).constructor,Gc=_4?_4.prototype:null,K_e="__proto__";function Q_e(){for(var r=[],t=0;t-S4&&r=0&&d<=1&&(n[c++]=d)}else{var p=h*h-4*v*f;if(Wc(p)){var g=h/v,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m)}else if(p>0){var y=dd(p),_=v*s+1.5*o*(-h+y),x=v*s+1.5*o*(-h-y);_<0?_=-Hc(-_,qc):_=Hc(_,qc),x<0?x=-Hc(-x,qc):x=Hc(x,qc);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(n[c++]=d)}else{var S=(2*v*s-3*o*h)/(2*dd(v*v*v)),b=Math.acos(S)/3,w=dd(v),A=Math.cos(b),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+b4*Math.sin(b)))/(3*o),T=(-s+w*(A-b4*Math.sin(b)))/(3*o);d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m),T>=0&&T<=1&&(n[c++]=T)}}return c}var o1e=/cubic-bezier\(([0-9,\.e ]+)\)/;function rY(r){var t=r&&o1e.exec(r);if(t){var e=t[1].split(","),a=+Fc(e[0]),i=+Fc(e[1]),n=+Fc(e[2]),o=+Fc(e[3]);if(isNaN(a+i+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:n1e(0,a,n,1,l,s)&&i1e(0,i,o,1,s[0])}}}var s1e=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Lw,this.ondestroy=t.ondestroy||Lw,this.onrestart=t.onrestart||Lw,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,i=t-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ag(t)?t:ih[t]||rY(t)},r})(),w4={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function nh(r){return r=Math.round(r),r<0?0:r>255?255:r}function T4(r){return r<0?0:r>1?1:r}function Iw(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?nh(parseFloat(t)/100*255):nh(parseInt(t,10))}function oh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?T4(parseFloat(t)/100):T4(parseFloat(t))}function Pw(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function za(r,t,e,a,i){return r[0]=t,r[1]=e,r[2]=a,r[3]=i,r}function AA(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var aY=new Z_e(20),Uc=null;function Ml(r,t){Uc&&AA(Uc,t),Uc=aY.put(r,Uc||t.slice())}function Rw(r,t){if(r){t=t||[];var e=aY.get(r);if(e)return AA(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in w4)return AA(t,w4[a]),Ml(r,t),t;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){za(t,0,0,0,1);return}return za(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),Ml(r,t),t}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){za(t,0,0,0,1);return}return za(t,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),Ml(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),v=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?za(t,+u[0],+u[1],+u[2],1):za(t,0,0,0,1);v=oh(u.pop());case"rgb":if(u.length>=3)return za(t,Iw(u[0]),Iw(u[1]),Iw(u[2]),u.length===3?v:oh(u[3])),Ml(r,t),t;za(t,0,0,0,1);return;case"hsla":if(u.length!==4){za(t,0,0,0,1);return}return u[3]=oh(u[3]),A4(u,t),Ml(r,t),t;case"hsl":if(u.length!==3){za(t,0,0,0,1);return}return A4(u,t),Ml(r,t),t;default:return}}za(t,0,0,0,1)}}function A4(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=oh(r[1]),i=oh(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return t=t||[],za(t,nh(Pw(o,n,e+1/3)*255),nh(Pw(o,n,e)*255),nh(Pw(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}var l1e=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),u1e=(function(){function r(){this.browser=new l1e,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=typeof window<"u"}return r})(),Un=new u1e;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Un.wxa=!0,Un.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Un.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js?v=1773287522785")===0?(Un.node=!0,Un.svgSupported=!0):v1e(navigator.userAgent,Un);function v1e(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),i&&(e.ie=!0,e.version=i[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}function h1e(r){return r.type==="linear"}function f1e(r){return r.type==="radial"}(function(){return Un.hasGlobalWindow&&Ag(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var CA=Array.prototype.slice;function hn(r,t,e){return(t-r)*e+r}function Ew(r,t,e,a){for(var i=t.length,n=0;na?t:r,n=Math.min(e,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)a.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=M4,l=e;if(pp(e)){var u=g1e(e);s=u,(u===1&&!Dw(e[0])||u===2&&!Dw(e[0][0]))&&(o=!0)}else if(Dw(e)&&!r1e(e))s=Yc;else if(e1e(e))if(!isNaN(+e))s=Yc;else{var v=Rw(e);v&&(l=v,s=Gv)}else if(t1e(e)){var h=j_e({},l);h.colorStops=TA(e.colorStops,function(c){return{offset:c.offset,color:Rw(c.color)}}),h1e(e)?s=MA:f1e(e)&&(s=DA),l=h}n===0?this.valType=s:(s!==this.valType||s===M4)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:e,percent:0};return a&&(f.easing=a,f.easingFunc=Ag(a)?a:ih[a]||rY(a)),i.push(f),f},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=Zc(i),u=D4(i),v=0;v=0&&!(o[v].percent<=e);v--);v=f(v,s-2)}else{for(v=h;ve);v++);v=f(v-1,s-2)}d=o[v+1],c=o[v]}if(c&&d){this._lastFr=v,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:f((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?Mv:t[l];if((Zc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(Zc(n))n===gd?Ew(y,c[i],d[i],m):c1e(y,c[i],d[i],m);else if(D4(n)){var _=c[i],x=d[i],S=n===MA;t[l]={type:S?"linear":"radial",x:hn(_.x,x.x,m),y:hn(_.y,x.y,m),colorStops:TA(_.colorStops,function(w,A){var T=x.colorStops[A];return{offset:hn(w.offset,T.offset,m),color:pd(Ew([],w.color,T.color,m))}}),global:x.global},S?(t[l].x2=hn(_.x2,x.x2,m),t[l].y2=hn(_.y2,x.y2,m)):t[l].r=hn(_.r,x.r,m)}else if(u)Ew(y,c[i],d[i],m),a||(t[l]=pd(y));else{var b=hn(c[i],d[i],m);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,i=this._additiveValue;e===Yc?t[a]=t[a]+i:e===Gv?(Rw(t[a],Mv),$c(Mv,Mv,i,1),t[a]=pd(Mv)):e===gd?$c(t[a],t[a],i,1):e===iY&&C4(t[a],t[a],i,1)},r})(),A1e=(function(){function r(t,e,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Q_e("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,x4(e),a)},r.prototype.whenWithKeys=function(t,e,a,i){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,kw(u),i),this._trackKeys.push(s)}l.addKeyframe(t,kw(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],i=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})(),y1e;y1e=Un.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var _1e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function C1e(r,t){if(r==="world"){var e=_1e[t.name];if(e){var a=[e[0],e[1]];t.setCenter(a)}}}function M1e(r,t,e,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>a+s||or+s&&n>e+s||n