import{a as kT,b as VT}from"./chunk-4YNSMQCN.js";import{A as tl,Aa as Qc,Ba as Tn,C as el,Fa as pl,Ha as hl,Ka as vl,Oa as dl,Ra as ml,Ta as gl,V as rl,W as ET,Wa as yl,X as PT,_ as il,_a as xl,ab as _l,b as qc,ba as zT,bb as RT,ca as wn,cb as Cn,e as Qs,eb as Sl,fb as NT,gb as bl,ib as wl,jb as OT,ka as al,oa as nl,qa as ol,sa as sl,ta as ll,u as $s,v as Js,va as ul,xa as fl,y as jc,za as Kc}from"./chunk-XXGLJ63T.js";import{$ as Ng,Ab as Bi,B as pT,Bb as Wa,Cb as Re,Db as bn,Ec as DT,Ee as Xs,Fa as xT,G as cT,Gb as CT,Hb as Ae,Hc as MT,Ia as wt,Ic as IT,Ja as $r,Jb as AT,Je as qs,Ka as Og,Kb as Gg,Ke as Wc,Le as Yc,Lf as cl,Na as _T,O as hT,Qb as Zs,Ra as qt,S as vT,Ta as mt,Ua as ST,Va as kg,Wa as bT,Z as dT,a as Fc,ac as df,ad as LT,bb as Vg,bc as va,cb as Ug,db as Bg,eb as Ft,f as sT,fb as Wt,ff as js,ga as mT,gb as Ce,gc as mf,hb as ca,ib as ha,ja as Ys,jb as wT,jf as Ks,k as lT,la as Te,lc as Hc,m as Rg,ma as gT,n as uT,na as yT,ob as TT,pa as vf,qb as Jt,rb as hi,s as hf,sb as ze,tf as Zc,u as fT,vd as gf,vf as Xc,wb as Fg,xb as Sn,yb as Gc,zb as Ui}from"./chunk-TV7RDLL7.js";var Hg=function(r,e){return Hg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Hg(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var nF=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),oF=function(){function r(){this.browser=new nF,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}(),Mo=new oF;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mo.wxa=!0,Mo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mo.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Mo.node=!0,Mo.svgSupported=!0):sF(navigator.userAgent,Mo);function sF(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Tt=Mo;var $c=12,Wg="sans-serif",Jr=$c+"px "+Wg,lF=20,uF=100,fF="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pF(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.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",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function DF(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&n&&c===n[p]&&h===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?Kg(s,o):Kg(o,s))}function $g(r){return r.nodeName.toUpperCase()==="CANVAS"}var MF=/([&<>"'])/g,IF={"&":"&","<":"<",">":">",'"':""","'":"'"};function Je(r){return r==null?"":(r+"").replace(MF,function(e,t){return IF[t]})}var LF=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jg=[],EF=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function sh(r,e,t,i){return t=t||{},i?JT(r,e,t):EF&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):JT(r,e,t),t}function JT(r,e,t){if(Tt.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if($g(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if(oh(Jg,r,i,a)){t.zrX=Jg[0],t.zrY=Jg[1];return}}t.zrX=t.zrY=0}function lh(r){return r||window.event}function Er(r,e,t){if(e=lh(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&sh(r,o,e,t)}else{sh(r,e,e,t);var n=PF(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&LF.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PF(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Sf(r,e,t,i){r.addEventListener(e,t,i)}function tC(r,e,t,i){r.removeEventListener(e,t,i)}var Pr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ty(r){return r.which===2||r.which===3}var rC=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&i&&i.length>1){var n=eC(i)/eC(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=zF(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Me(){return[1,0,0,1,0,0]}function Ln(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function bf(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function zr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function tr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Rr(r,e,t,i){i===void 0&&(i=[0,0]);var a=e[0],n=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),p=Math.cos(t);return r[0]=a*p+s*f,r[1]=-a*f+s*p,r[2]=n*p+l*f,r[3]=-n*f+p*l,r[4]=p*(o-i[0])+f*(u-i[1])+i[0],r[5]=p*(u-i[1])-f*(o-i[0])+i[1],r}function Pl(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function mi(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function iC(r){var e=Me();return bf(e,r),e}var RF=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r}(),bt=RF;var uh=Math.min,fh=Math.max,Po=new bt,zo=new bt,Ro=new bt,No=new bt,wf=new bt,Tf=new bt,NF=function(){function r(e,t,i,a){i<0&&(e=e+i,i=-i),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=i,this.height=a}return r.prototype.union=function(e){var t=uh(e.x,this.x),i=uh(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fh(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fh(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,a=e.height/t.height,n=Me();return tr(n,n,[-t.x,-t.y]),Pl(n,n,[i,a]),tr(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,p=e.y+e.height,c=!(nv&&(v=x,dv&&(v=_,g=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Po.x=Ro.x=t.x,Po.y=No.y=t.y,zo.x=No.x=t.x+t.width,zo.y=Ro.y=t.y+t.height,Po.transform(i),No.transform(i),zo.transform(i),Ro.transform(i),e.x=uh(Po.x,zo.x,Ro.x,No.x),e.y=uh(Po.y,zo.y,Ro.y,No.y);var l=fh(Po.x,zo.x,Ro.x,No.x),u=fh(Po.y,zo.y,Ro.y,No.y);e.width=l-e.x,e.height=u-e.y},r}(),rt=NF;var nC="silent";function OF(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:kF}}function kF(){Pr(this.event)}var VF=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ne),Cf=function(){function r(e,t){this.x=e,this.y=t}return r}(),UF=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ry=new rt(0,0,0,0),oC=function(r){Mt(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Cf(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new VF,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new KT(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(w(UF,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,a=t.zrY,n=sC(this,i,a),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 Cf(i,a):this.findHover(i,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Cf(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];a&&a.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=OF(i,t,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,a){var n=this.storage.getDisplayList(),o=new Cf(t,i);if(aC(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new rt(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ry.copy(c.getBoundingRect()),c.transform&&ry.applyTransform(c.transform),ry.intersect(f)&&s.push(c))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function BF(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s||i.parent}return a?nC:!0}return!1}function aC(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=BF(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==nC)){e.target=o;break}}}function sC(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var lC=oC;var pC=32,Af=7;function FF(r){for(var e=0;r>=pC;)e|=r&1,r>>=1;return r+e}function uC(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a=0;)a++;return a-e}function GF(r,e,t){for(t--;e>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-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 iy(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function ay(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function HF(r,e){var t=Af,i,a,n=0,o=[];i=[],a=[];function s(h,v){i[n]=h,a[n]=v,n+=1}function l(){for(;n>1;){var h=n-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;f(h)}}function u(){for(;n>1;){var h=n-2;h>0&&a[h-1]=Af||T>=Af);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),v===1){for(g=0;g=0;g--)r[S+g]=r[b+g];r[_]=o[x];return}for(var T=t;;){var C=0,A=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,A=0,--v===0){D=!0;break}}else if(r[_--]=o[x--],A++,C=0,--m===1){D=!0;break}while((C|A)=0;g--)r[S+g]=r[b+g];if(v===0){D=!0;break}}if(r[_--]=o[x--],--m===1){D=!0;break}if(A=m-iy(r[y],o,0,m,m-1,e),A!==0){for(_-=A,x-=A,m-=A,S=_+1,b=x+1,g=0;g=Af||A>=Af);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(_-=v,y-=v,S=_+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;gs&&(l=s),fC(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var Ve=1,ko=2,En=4;var cC=!1;function ny(){cC||(cC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hC(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var WF=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hC}return r.prototype.traverse=function(e,t){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(ny(),f.z=0),isNaN(f.z2)&&(ny(),f.z2=0),isNaN(f.zlevel)&&(ny(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,t,i);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,i);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t=0&&this._roots.splice(a,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}(),vC=WF;var dC;dC=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Df=dC;var ph={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 e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ph.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?ph.bounceIn(r*2)*.5:ph.bounceOut(r*2-1)*.5+.5}},ch=ph;var hh=Math.pow,zn=Math.sqrt,dh=1e-8,gC=1e-4,mC=zn(3),vh=1/3,ma=da(),gi=da(),zl=da();function Pn(r){return r>-dh&&rdh||r<-dh}function ye(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function oy(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Vo(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,h=0;if(Pn(f)&&Pn(p))if(Pn(s))n[0]=0;else{var v=-l/s;v>=0&&v<=1&&(n[h++]=v)}else{var d=p*p-4*f*c;if(Pn(d)){var m=p/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g)}else if(d>0){var y=zn(d),x=f*s+1.5*o*(-p+y),_=f*s+1.5*o*(-p-y);x<0?x=-hh(-x,vh):x=hh(x,vh),_<0?_=-hh(-_,vh):_=hh(_,vh);var v=(-s-(x+_))/(3*o);v>=0&&v<=1&&(n[h++]=v)}else{var b=(2*f*s-3*o*p)/(2*zn(f*f*f)),S=Math.acos(b)/3,T=zn(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),g=(-s+T*(C+mC*Math.sin(S)))/(3*o),A=(-s+T*(C-mC*Math.sin(S)))/(3*o);v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g),A>=0&&A<=1&&(n[h++]=A)}}return h}function mh(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Pn(o)){if(yC(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(Pn(f))a[0]=-n/(2*o);else if(f>0){var p=zn(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function yi(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function gh(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,h=1/0,v,d,m,g;ma[0]=l,ma[1]=u;for(var y=0;y<1;y+=.05)gi[0]=ye(r,t,a,o,y),gi[1]=ye(e,i,n,s,y),m=Ya(ma,gi),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(Pn(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=zn(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function yh(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function Rn(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function xh(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;ma[0]=o,ma[1]=s;for(var c=0;c<1;c+=.05){gi[0]=Se(r,t,a,c),gi[1]=Se(e,i,n,c);var h=Ya(ma,gi);h=0&&h=1?1:Vo(0,i,n,1,l,s)&&ye(0,a,o,1,s[0])}}}var ZF=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||te,this.ondestroy=e.ondestroy||te,this.onrestart=e.onrestart||te,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;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=a%i;this._startTime=e-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(e){this.easing=e,this.easingFunc=X(e)?e:ch[e]||Rl(e)},r}(),bC=ZF;var wC=function(){function r(e){this.value=e}return r}();var XF=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new wC(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}();var qF=function(){function r(e){this._list=new XF,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new wC(t),s.key=e,i.insertEntry(s),a[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Za=qF;var TC={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 Gi(r){return r=Math.round(r),r<0?0:r>255?255:r}function jF(r){return r=Math.round(r),r<0?0:r>360?360:r}function Lf(r){return r<0?0:r>1?1:r}function sy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Gi(parseFloat(e)/100*255):Gi(parseInt(e,10))}function Uo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Lf(parseFloat(e)/100):Lf(parseFloat(e))}function ly(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Nn(r,e,t){return r+(e-r)*t}function xi(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function uy(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var AC=new Za(20),_h=null;function Nl(r,e){_h&&uy(_h,e),_h=AC.put(r,_h||e.slice())}function qe(r,e){if(r){e=e||[];var t=AC.get(r);if(t)return uy(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in TC)return uy(e,TC[i]),Nl(r,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){xi(e,0,0,0,1);return}return xi(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),Nl(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){xi(e,0,0,0,1);return}return xi(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),Nl(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xi(e,+u[0],+u[1],+u[2],1):xi(e,0,0,0,1);f=Uo(u.pop());case"rgb":if(u.length>=3)return xi(e,sy(u[0]),sy(u[1]),sy(u[2]),u.length===3?f:Uo(u[3])),Nl(r,e),e;xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){xi(e,0,0,0,1);return}return u[3]=Uo(u[3]),fy(u,e),Nl(r,e),e;case"hsl":if(u.length!==3){xi(e,0,0,0,1);return}return fy(u,e),Nl(r,e),e;default:return}}xi(e,0,0,0,1)}}function fy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Uo(r[1]),a=Uo(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],xi(e,Gi(ly(o,n,t+1/3)*255),Gi(ly(o,n,t)*255),Gi(ly(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function KF(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Sh(r,e){var t=qe(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return _i(t,t.length===4?"rgba":"rgb")}}function bh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Gi(Nn(o[0],s[0],l)),t[1]=Gi(Nn(o[1],s[1],l)),t[2]=Gi(Nn(o[2],s[2],l)),t[3]=Lf(Nn(o[3],s[3],l)),t}}function DC(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=qe(e[a]),s=qe(e[n]),l=i-a,u=_i([Gi(Nn(o[0],s[0],l)),Gi(Nn(o[1],s[1],l)),Gi(Nn(o[2],s[2],l)),Lf(Nn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}function Bo(r,e,t,i){var a=qe(r);if(r)return a=KF(a),e!=null&&(a[0]=jF(e)),t!=null&&(a[1]=Uo(t)),i!=null&&(a[2]=Uo(i)),_i(fy(a),"rgba")}function Fo(r,e){var t=qe(r);if(t&&e!=null)return t[3]=Lf(e),_i(t,"rgba")}function _i(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Ol(r,e){var t=qe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var CC=new Za(100);function Ef(r){if(F(r)){var e=CC.get(r);return e||(e=Sh(r,-.1),CC.put(r,e)),e}else if(Dn(r)){var t=N({},r);return t.colorStops=k(r.colorStops,function(i){return{offset:i.offset,color:Sh(i.color,-.1)}}),t}return r}var Th=Math.round;function On(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=qe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var MC=1e-4;function ga(r){return r-MC}function wh(r){return Th(r*1e3)/1e3}function Ch(r){return Th(r*1e4)/1e4}function IC(r){return"matrix("+wh(r[0])+","+wh(r[1])+","+wh(r[2])+","+wh(r[3])+","+Ch(r[4])+","+Ch(r[5])+")"}var LC={left:"start",right:"end",center:"middle",middle:"middle"};function EC(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function PC(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function zC(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function cy(r){return r&&!!r.image}function QF(r){return r&&!!r.svgElement}function Pf(r){return cy(r)||QF(r)}function Ah(r){return r.type==="linear"}function Dh(r){return r.type==="radial"}function Mh(r){return r&&(r.type==="linear"||r.type==="radial")}function zf(r){return"url(#"+r+")"}function Ih(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Lh(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*Dl,a=at(r.scaleX,1),n=at(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+Th(o*Dl)+"deg, "+Th(s*Dl)+"deg)"),l.join(" ")}var RC=function(){return Tt.hasGlobalWindow&&X(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 vy=Array.prototype.slice;function Xa(r,e,t){return(e-r)*t+r}function hy(r,e,t,i){for(var a=e.length,n=0;ni?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)i.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=OC,l=t;if(me(t)){var u=e5(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(o=!0)}else if(vt(t)&&!Mn(t))s=Ph;else if(F(t))if(!isNaN(+t))s=Ph;else{var f=qe(t);f&&(l=f,s=Nf)}else if(Dn(t)){var p=N({},l);p.colorStops=k(t.colorStops,function(h){return{offset:h.offset,color:qe(h.color)}}),Ah(t)?s=dy:Dh(t)&&(s=my),l=p}n===0?this.valType=s:(s!==this.valType||s===OC)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=X(i)?i:ch[i]||Rl(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=zh(a),u=kC(a),f=0;f=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;ft);f++);f=c(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:c((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Rf:e[l];if((zh(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(zh(n))n===Nh?hy(y,h[a],v[a],g):$F(y,h[a],v[a],g);else if(kC(n)){var x=h[a],_=v[a],b=n===dy;e[l]={type:b?"linear":"radial",x:Xa(x.x,_.x,g),y:Xa(x.y,_.y,g),colorStops:k(x.colorStops,function(T,C){var A=_.colorStops[C];return{offset:Xa(T.offset,A.offset,g),color:Rh(hy([],T.color,A.color,g))}}),global:_.global},b?(e[l].x2=Xa(x.x2,_.x2,g),e[l].y2=Xa(x.y2,_.y2,g)):e[l].r=Xa(x.r,_.r,g)}else if(u)hy(y,h[a],v[a],g),i||(e[l]=Rh(y));else{var S=Xa(h[a],v[a],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Ph?e[i]=e[i]+a:t===Nf?(qe(e[i],Rf),Eh(Rf,Rf,a,1),e[i]=Rh(Rf)):t===Nh?Eh(e[i],e[i],a,1):t===VC&&NC(e[i],e[i],a,1)},r}(),i5=function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Io("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}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(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ft(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,Go(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Go(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),Of=i5;function Ho(){return new Date().getTime()}var a5=function(r){Mt(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,a=t.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Ho()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Df(i),!t._paused&&t.update())}Df(i)},e.prototype.start=function(){this._running||(this._time=Ho(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ho(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ho()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var a=new Of(t,i.loop);return this.addAnimator(a),a},e}(Ne),UC=a5;var n5=300,gy=Tt.domSupported,yy=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}}(),BC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},FC=!1;function Sy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function o5(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 xy(r){r&&(r.zrByTouch=!0)}function s5(r,e){return Er(r.dom,new l5(r,e),!0)}function HC(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var l5=function(){function r(e,t){this.stopPropagation=te,this.stopImmediatePropagation=te,this.preventDefault=te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Hi={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;HC(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){FC=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){FC||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),xy(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Hi.mousemove.call(this,r),Hi.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),xy(r),this.handler.processGesture(r,"change"),Hi.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),xy(r),this.handler.processGesture(r,"end"),Hi.mouseup.call(this,r),+new Date-+this.__lastTouchMomentqC||r<-qC}var Zo=[],kl=[],wy=Me(),Ty=Math.abs,c5=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Yo(this.rotation)||Yo(this.x)||Yo(this.y)||Yo(this.scaleX-1)||Yo(this.scaleY-1)||Yo(this.skewX)||Yo(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(XC(i),this.invTransform=null);return}i=i||Me(),t?this.getLocalTransform(i):XC(i),e&&(t?zr(i,e,i):bf(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Zo);var i=Zo[0]<0?-1:1,a=Zo[1]<0?-1:1,n=((Zo[0]-i)*t+i)/Zo[0]||0,o=((Zo[1]-a)*t+a)/Zo[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Me(),mi(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Me(),zr(kl,e.invTransform,t),t=kl);var i=this.originX,a=this.originY;(i||a)&&(wy[4]=i,wy[5]=a,zr(kl,t,wy),kl[4]-=i,kl[5]-=a,t=kl),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&ge(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&ge(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ty(e[0]-1)>1e-10&&Ty(e[3]-1)>1e-10?Math.sqrt(Ty(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Cy(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,p=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var v=i+s,d=a+l;t[4]=-v*n-c*d*o,t[5]=-d*o-h*v*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=h*n,t[2]=c*o,u&&Rr(t,t,u),t[4]+=i+f,t[5]+=a+p,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ii=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Cy(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function qo(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=er(i[0],t.width),u+=er(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var Ay="__zr_normal__",Dy=ii.concat(["ignore"]),h5=$e(ii,function(r,e){return r[e]=!0,r},{ignore:!1}),Bl={},v5=new rt(0,0,0,0),Ly=function(){function r(e){this.id=eh(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(t),i.position!=null){var f=v5;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bl,i,f):qo(Bl,i,f),n.x=Bl.x,n.y=Bl.y,o=Bl.align,s=Bl.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var c=void 0,h=void 0;p==="center"?(c=f.width*.5,h=f.height*.5):(c=er(p[0],f.width),h=er(p[1],f.height)),u=!0,n.originX=-n.x+c+(a?0:f.x),n.originY=-n.y+h+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var v=i.offset;v&&(n.x+=v[0],n.y+=v[1],u||(n.originX=-v[0],n.originY=-v[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,x=void 0;d&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),x=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),x=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=x,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ve,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Uf:Vf},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&qe(t);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,_i(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var i=e,a=ft(i),n=0;n0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ay,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===Ay,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(nt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){Io("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,c=this._textGuide;return p&&p.useState(e,t,i,f),c&&c.useState(e,t,i,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ve),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l0,v);var d=this._textContent,m=this._textGuide;d&&d.useStates(e,t,c),m&&m.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ve)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=nt(a,e),o=nt(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],o=0;o0&&t.during&&n[0].during(function(v,d){t.during(d)});for(var c=0;c0||a.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},c&&(C={});for(var _=0;_=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=nt(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,a=this._children,n=nt(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return F(r)?w5(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Qt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),aA),r=(+r).toFixed(e),t?r:+r}function Ie(r){return r.sort(function(e,t){return e-t}),r}function rr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return zy(r)}function zy(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function Fl(r,e){var t=Math.log,i=Math.LN10,a=Math.floor(t(r[1]-r[0])/i),n=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function nA(r,e,t){if(!r[e])return 0;var i=Ry(r,t);return i[e]||0}function Ry(r,e){var t=$e(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=Math.pow(10,e),a=k(r,function(h){return(isNaN(h)?0:h)/t*i*100}),n=i*100,o=k(a,function(h){return Math.floor(h)}),s=$e(o,function(h,v){return h+v},0),l=k(a,function(h,v){return h-o[v]});su&&(u=l[p],f=p);++o[f],l[f]=0,++s}return k(o,function(h){return h/i})}function oA(r,e){var t=Math.max(rr(r),rr(e)),i=r+e;return t>aA?i:Qt(i,t)}var Bf=9007199254740991;function Ff(r){var e=Math.PI*2;return(r%e+e)%e}function qa(r){return r>-iA&&r=10&&e++,e}function Hl(r,e){var t=Gl(r),i=Math.pow(10,t),a=r/i,n;return e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,t>=-20?+r.toFixed(t<0?-t:0):r}function Wl(r,e){var t=(r.length-1)*e+1,i=Math.floor(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function Gf(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i=0||n&&nt(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var G5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],H5=Br(G5),TA=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return H5(this,e,t)},r}();var Uy=new Za(50);function AA(r){if(typeof r=="string"){var e=Uy.get(r);return e&&e.image}else return r}function Zf(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=Uy.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!ql(e)&&n.pending.push(o)):(e=pr.loadImage(r,CA,CA),e.__zrImageSrc=r,Uy.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function CA(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Or(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function IA(r,e){var t=e.containerWidth,i=e.font,a=e.contentWidth;if(!t)return"";var n=Or(r,i);if(n<=t)return r;for(var o=0;;o++){if(n<=a||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?Z5(r,a,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Or(r,i)}return r===""&&(r=e.placeholder),r}function Z5(r,e,t,i){for(var a=0,n=0,o=r.length;nh&&u){var v=Math.floor(h/s);p=p.slice(0,v)}if(r&&n&&f!=null)for(var d=MA(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&Fy(t,r.substring(s,u),e,o),Fy(t,l[2],e,o,l[1]),s=By.lastIndex}sa){b>0?(y.tokens=y.tokens.slice(0,b),m(y,_,x),t.lines=t.lines.slice(0,g+1)):t.lines=t.lines.slice(0,g);break t}var I=T.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,f.push(S),S.contentWidth=Or(S.text,D);else{if(L){var P=T.backgroundColor,z=P&&P.image;z&&(z=AA(z),ql(z)&&(S.width=Math.max(S.width,z.width*M/z.height)))}var R=v&&i!=null?i-_:null;R!=null&&R0&&v+i.accumWidth>i.width&&(f=e.split(` `),u=!0),i.accumWidth=v}else{var d=PA(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,p=d.linesWidths,f=d.lines}}else f=e.split(` `);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var K5=$e(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function Q5(r){return j5(r)?!!K5[r]:!0}function PA(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=0;pt:a+f+h>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=h)):v?(n.push(l),o.push(u),l=c,u=h):(n.push(c),o.push(h));continue}f+=h,v?(l+=c,u+=h):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var Wy="__zr_style_"+Math.round(Math.random()*10),xa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xa[Wy]=!0;var zA=["z","z2","invisible"],$5=["invisible"],J5=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ft(t),a=0;a1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Yh[0]=Zy(a)*t+r,Yh[1]=Yy(a)*i+e,Zh[0]=Zy(n)*t+r,Zh[1]=Yy(n)*i+e,u(s,Yh,Zh),f(l,Yh,Zh),a=a%$o,a<0&&(a=a+$o),n=n%$o,n<0&&(n=n+$o),a>n&&!o?n+=$o:aa&&(Xh[0]=Zy(h)*t+r,Xh[1]=Yy(h)*i+e,u(s,Xh,s),f(l,Xh,l))}var oe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ts=[],es=[],_a=[],Bn=[],Sa=[],ba=[],qy=Math.min,jy=Math.max,rs=Math.cos,is=Math.sin,ja=Math.abs,$y=Math.PI,Fn=$y*2,Ky=typeof Float32Array<"u",Xf=[];function Qy(r){var e=Math.round(r/$y*1e8)/1e8;return e%2*$y}function qf(r,e){var t=Qy(r[0]);t<0&&(t+=Fn);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=Fn?a=t+Fn:e&&t-a>=Fn?a=t-Fn:!e&&t>a?a=t+(Fn-Qy(t-a)):e&&t0&&(this._ux=ja(i/Wo/e)||0,this._uy=ja(i/Wo/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(oe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=ja(e-this._xi),a=ja(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(oe.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(oe.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(oe.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),Xf[0]=a,Xf[1]=n,qf(Xf,o),a=Xf[0],n=Xf[1];var s=n-a;return this.addData(oe.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=rs(n)*i+e,this._yi=is(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(oe.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(oe.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Ky&&(this.data=new Float32Array(t));for(var i=0;if.length&&(this._expandData(),f=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){_a[0]=_a[1]=Sa[0]=Sa[1]=Number.MAX_VALUE,Bn[0]=Bn[1]=ba[0]=ba[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;oi||ja(x)>a||c===t-1)&&(d=Math.sqrt(y*y+x*x),n=m,o=g);break}case oe.C:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++],S=e[c++],T=e[c++];d=xC(n,o,_,b,m,g,S,T,10),n=S,o=T;break}case oe.Q:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++];d=SC(n,o,_,b,m,g,10),n=m,o=g;break}case oe.A:var C=e[c++],A=e[c++],D=e[c++],M=e[c++],I=e[c++],L=e[c++],P=L+I;c+=1,v&&(s=rs(I)*D+C,l=is(I)*M+A),d=jy(D,M)*qy(Fn,Math.abs(L)),n=rs(P)*D+C,o=is(P)*M+A;break;case oe.R:{s=n=e[c++],l=o=e[c++];var z=e[c++],R=e[c++];d=z*2+R*2;break}case oe.Z:{var y=s-n,x=l-o;d=Math.sqrt(y*y+x*x),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,h=t<1,v,d,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))t:for(var S=0;S0&&(e.lineTo(_,b),x=0),T){case oe.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case oe.L:{p=i[S++],c=i[S++];var A=ja(p-u),D=ja(c-f);if(A>a||D>n){if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+p*I,f*(1-I)+c*I);break t}m+=M}e.lineTo(p,c),u=p,f=c,x=0}else{var L=A*A+D*D;L>x&&(_=p,b=c,x=L)}break}case oe.C:{var P=i[S++],z=i[S++],R=i[S++],U=i[S++],V=i[S++],B=i[S++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;yi(u,P,R,V,I,ts),yi(f,z,U,B,I,es),e.bezierCurveTo(ts[1],es[1],ts[2],es[2],ts[3],es[3]);break t}m+=M}e.bezierCurveTo(P,z,R,U,V,B),u=V,f=B;break}case oe.Q:{var P=i[S++],z=i[S++],R=i[S++],U=i[S++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;Rn(u,P,R,I,ts),Rn(f,z,U,I,es),e.quadraticCurveTo(ts[1],es[1],ts[2],es[2]);break t}m+=M}e.quadraticCurveTo(P,z,R,U),u=R,f=U;break}case oe.A:var Z=i[S++],Q=i[S++],st=i[S++],ct=i[S++],pt=i[S++],Lt=i[S++],Bt=i[S++],Et=!i[S++],gt=st>ct?st:ct,Pt=ja(st-ct)>.001,Ct=pt+Lt,ut=!1;if(h){var M=v[g++];m+M>y&&(Ct=pt+Lt*(y-m)/M,ut=!0),m+=M}if(Pt&&e.ellipse?e.ellipse(Z,Q,st,ct,Bt,pt,Ct,Et):e.arc(Z,Q,gt,pt,Ct,Et),ut)break t;C&&(s=rs(pt)*st+Z,l=is(pt)*ct+Q),u=rs(Ct)*st+Z,f=is(Ct)*ct+Q;break;case oe.R:s=u=i[S],l=f=i[S+1],p=i[S++],c=i[S++];var At=i[S++],ce=i[S++];if(h){var M=v[g++];if(m+M>y){var Yt=y-m;e.moveTo(p,c),e.lineTo(p+qy(Yt,At),c),Yt-=At,Yt>0&&e.lineTo(p+At,c+qy(Yt,ce)),Yt-=ce,Yt>0&&e.lineTo(p+jy(At-Yt,0),c+ce),Yt-=At,Yt>0&&e.lineTo(p,c+jy(ce-Yt,0));break t}m+=M}e.rect(p,c,At,ce);break;case oe.Z:if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}m+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=oe,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Ye=eG;function wa(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||or+s&&n>t+s||ne+p&&f>i+p&&f>n+p&&f>s+p||fr+p&&u>t+p&&u>a+p&&u>o+p||ue+u&&l>i+u&&l>n+u||lr+u&&s>t+u&&s>a+u||st||f+ua&&(a+=jf);var c=Math.atan2(l,s);return c<0&&(c+=jf),c>=i&&c<=a||c+jf>=i&&c+jf<=a}function bi(r,e,t,i,a,n){if(n>e&&n>i||na?s:0}var Gn=Ye.CMD,as=Math.PI*2,aG=1e-4;function nG(r,e){return Math.abs(r-e)e&&u>i&&u>n&&u>s||u1&&oG(),h=ye(e,i,n,s,wi[0]),c>1&&(v=ye(e,i,n,s,wi[1]))),c===2?me&&s>i&&s>n||s=0&&u<=1){for(var f=0,p=Se(e,i,n,u),c=0;ct||s<-t)return 0;var l=Math.sqrt(t*t-s*s);xr[0]=-l,xr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=as-1e-4){i=0,a=as;var f=n?1:-1;return o>=xr[0]+r&&o<=xr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=as,a+=as);for(var c=0,h=0;h<2;h++){var v=xr[h];if(v+r>o){var d=Math.atan2(s,v),f=n?1:-1;d<0&&(d=as+d),(d>=i&&d<=a||d+as>=i&&d+as<=a)&&(d>Math.PI/2&&d1&&(t||(s+=bi(l,u,f,p,i,a))),m&&(l=n[v],u=n[v+1],f=l,p=u),d){case Gn.M:f=n[v++],p=n[v++],l=f,u=p;break;case Gn.L:if(t){if(wa(l,u,n[v],n[v+1],e,i,a))return!0}else s+=bi(l,u,n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.C:if(t){if(FA(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=sG(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.Q:if(t){if(qh(l,u,n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=lG(l,u,n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.A:var g=n[v++],y=n[v++],x=n[v++],_=n[v++],b=n[v++],S=n[v++];v+=1;var T=!!(1-n[v++]);c=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=c,p=h):s+=bi(l,u,c,h,i,a);var C=(i-g)*_/x+g;if(t){if(WA(g,y,_,b,b+S,T,e,C,a))return!0}else s+=uG(g,y,_,b,b+S,T,C,a);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case Gn.R:f=l=n[v++],p=u=n[v++];var A=n[v++],D=n[v++];if(c=f+A,h=p+D,t){if(wa(f,p,c,p,e,i,a)||wa(c,p,c,h,e,i,a)||wa(c,h,f,h,e,i,a)||wa(f,h,f,p,e,i,a))return!0}else s+=bi(c,p,c,h,i,a),s+=bi(f,h,f,p,i,a);break;case Gn.Z:if(t){if(wa(l,u,f,p,e,i,a))return!0}else s+=bi(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!nG(u,p)&&(s+=bi(l,u,f,p,i,a)||0),s!==0}function ZA(r,e,t){return YA(r,0,!1,e,t)}function XA(r,e,t,i){return YA(r,e,!0,t,i)}var jl=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xa),pG={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qo.style)},Jy=ii.concat(["invisible","culling","z","z2","zlevel","parent"]),cG=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s.5?Vf:i>.2?ZC:Uf}else if(t)return Uf}return Vf},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(F(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Ol(t,0)0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&En)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.contain(t,i)){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)),XA(s,l/u,t,i)))return!0}if(this.hasFill())return ZA(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=En,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:N(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&En)},e.prototype.createStyle=function(t){return In(jl,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=N({},a.shape),N(u,i.shape)):(u=N({},n?this.shape:a.shape),N(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},p=ft(u),c=0;c0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return In(hG,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var a=ya(i,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(be);qA.prototype.type="tspan";var Ka=qA;var vG=q({x:0,y:0},xa),dG={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qo.style)};function mG(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var jA=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return In(vG,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=mG(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return dG},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new rt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(be);jA.prototype.type="image";var re=jA;function KA(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Kl=Math.round;function jh(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(Kl(i*2)===Kl(a*2)&&(r.x1=r.x2=Hn(i,s,!0)),Kl(n*2)===Kl(o*2)&&(r.y1=r.y2=Hn(n,s,!0))),r}}function Kh(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Hn(i,s,!0),r.y=Hn(a,s,!0),r.width=Math.max(Hn(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Hn(a+o,s,!1)-r.y,o===0?0:1)),r}}function Hn(r,e,t){if(!e)return r;var i=Kl(r*2);return(i+Kl(e))%2===0?i/2:(i+(t?1:-1))/2}var xG=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}();var _G={},QA=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xG},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Kh(_G,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?KA(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(it);QA.prototype.type="rect";var ht=QA;var $A={fill:"#000"},JA=2,SG={style:q({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},Qo.style)},sD=function(r){Mt(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$A,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=S[L],P.align==="right");)this._placeToken(P,t,C,g,I,"right",x),A-=P.width,I-=P.width,L--;for(M+=(n-(M-m)-(y-I)-A)/2;D<=L;)P=S[D],this._placeToken(P,t,C,g,M+P.width/2,"center",x),M+=P.width,D++;g+=C}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&t0(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=nD(o,s,v),p-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ka),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=aD("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=iD("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(x=JA,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,S&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Jr,m.opacity=Be(u.opacity,i.opacity,1),eD(m,u),b&&(m.lineWidth=Be(u.lineWidth,i.lineWidth,x),m.lineDash=at(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),_&&(m.fill=_);var T=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new rt(Vl(m.x,T,m.textAlign),Xo(m.y,C,m.textBaseline),T,C))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,h=t.borderRadius,v=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(ht),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=at(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(re),m.onload=function(){v.dirtyStyle()};var x=m.style;x.image=l.image,x.x=a,x.y=n,x.width=o,x.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=at(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(d||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Be(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return r0(t)&&(i=[t.fontStyle,t.fontWeight,e0(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Fe(i)||t.textFont||t.font},e}(be),bG={left:!0,right:1,center:1},wG={top:1,bottom:1,middle:1},tD=["fontStyle","fontWeight","fontSize","fontFamily"];function e0(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$c+"px":r+"px"}function eD(r,e){for(var t=0;t=0,n=!1;if(r instanceof it){var o=vD(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ql(s)||Ql(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=N({},i),u=N({},u),u.fill=s):!Ql(u.fill)&&Ql(s)?(n=!0,i=N({},i),u=N({},u),u.fill=Ef(s)):!Ql(u.stroke)&&Ql(l)&&(n||(i=N({},i),u=N({},u)),u.stroke=Ef(l)),i.style=u}}if(i&&i.z2==null){n||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Qa)}return i}function LG(r,e,t){if(t&&t.z2==null){t=N({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??CG)}return t}function EG(r,e,t){var i=nt(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:MG(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:i?a:n.opacity*.1},o),t.style=o),t}function i0(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return IG(this,r,e,t);if(r==="blur")return EG(this,r,t);if(r==="select")return LG(this,r,t)}return t}function Yi(r){r.stateProxy=i0;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=i0),t&&(t.stateProxy=i0)}function pD(r,e){!yD(r,e)&&!r.__highByOuter&&$a(r,dD)}function cD(r,e){!yD(r,e)&&!r.__highByOuter&&$a(r,mD)}function cr(r,e){r.__highByOuter|=1<<(e||0),$a(r,dD)}function hr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&$a(r,mD)}function Jh(r){$a(r,s0)}function tp(r){$a(r,gD)}function l0(r){$a(r,AG)}function u0(r){$a(r,DG)}function yD(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function f0(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=n0(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){gD(u)}),s&&t.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function a0(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Ta(r,e,t){Ja(r,!0),$a(r,Yi),ev(r,e,t)}function PG(r){Ja(r,!1)}function Vt(r,e,t,i){i?PG(r):Ta(r,e,t)}function ev(r,e,t){var i=tt(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var hD=["emphasis","blur","select"],zG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function se(r,e,t,i){t=t||"itemStyle";for(var a=0;anp,BezierCurve:()=>us,BoundingRect:()=>rt,Circle:()=>_r,CompoundPath:()=>iu,Ellipse:()=>rp,Group:()=>K,Image:()=>re,IncrementalDisplayable:()=>KD,Line:()=>fe,LinearGradient:()=>Aa,OrientedBoundingRect:()=>au,Path:()=>it,Point:()=>bt,Polygon:()=>he,Polyline:()=>pe,RadialGradient:()=>fv,Rect:()=>ht,Ring:()=>ls,Sector:()=>we,Text:()=>yt,applyTransform:()=>nr,clipPointsByRect:()=>S0,clipRectByRect:()=>c3,createIcon:()=>nn,extendPath:()=>u3,extendShape:()=>s3,getShapeClass:()=>op,getTransform:()=>qi,groupTransition:()=>an,initProps:()=>Ut,isElementRemoved:()=>tn,lineLineIntersect:()=>aM,linePolygonIntersect:()=>ou,makeImage:()=>_0,makePath:()=>nu,mergePath:()=>dr,registerShape:()=>Xi,removeElement:()=>Ti,removeElementWithFadeOut:()=>en,resizePath:()=>iM,setTooltipConfig:()=>ji,subPixelOptimize:()=>sp,subPixelOptimizeLine:()=>rn,subPixelOptimizeRect:()=>f3,transformDirection:()=>cs,traverseElements:()=>Sr,updateProps:()=>_t});var tu=Ye.CMD,RG=[[],[],[]],DD=Math.sqrt,NG=Math.atan2;function iv(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=tu.M,p=tu.C,c=tu.L,h=tu.R,v=tu.A,d=tu.Q;for(o=0,s=0;o1&&(o*=h0(v),s*=h0(v));var d=(a===n?-1:1)*h0((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,m=d*o*h/s,g=d*-s*c/o,y=(r+t)/2+nv(p)*m-av(p)*g,x=(e+i)/2+av(p)*m+nv(p)*g,_=ID([1,0],[(c-m)/o,(h-g)/s]),b=[(c-m)/o,(h-g)/s],S=[(-1*c-m)/o,(-1*h-g)/s],T=ID(b,S);if(v0(b,S)<=-1&&(T=ep),v0(b,S)>=1&&(T=0),T<0){var C=Math.round(T/ep*1e6)/1e6;T=ep*2+C%2*ep}f.addData(u,y,x,o,s,_,T,p,n)}var OG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VG(r){var e=new Ye;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=Ye.CMD,l=r.match(OG);if(!l)return e;for(var u=0;uP*P+z*z&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-p,x1:C*(a/b-1),y1:A*(a/b-1)}}function WG(r){var e;if(O(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function BD(r,e){var t,i=ip(e.r,0),a=ip(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,p=e.cy,c=!!e.clockwise,h=VD(u-l),v=h>d0&&h%d0;if(v>Zi&&(h=v),!(i>Zi))r.moveTo(f,p);else if(h>d0-Zi)r.moveTo(f+i*ru(l),p+i*ss(l)),r.arc(f,p,i,l,u,!c),a>Zi&&(r.moveTo(f+a*ru(u),p+a*ss(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,C=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,z=i*ru(l),R=i*ss(l),U=a*ru(u),V=a*ss(u),B=h>Zi;if(B){var Z=e.cornerRadius;Z&&(t=WG(Z),d=t[0],m=t[1],g=t[2],y=t[3]);var Q=VD(i-a)/2;if(x=Ca(Q,g),_=Ca(Q,y),b=Ca(Q,d),S=Ca(Q,m),A=T=ip(x,_),D=C=ip(b,S),(T>Zi||C>Zi)&&(M=i*ru(u),I=i*ss(u),L=a*ru(l),P=a*ss(l),hZi){var Pt=Ca(g,A),Ct=Ca(y,A),ut=sv(L,P,z,R,i,Pt,c),At=sv(M,I,U,V,i,Ct,c);r.moveTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),A0&&r.arc(f+ut.cx,p+ut.cy,Pt,vr(ut.y0,ut.x0),vr(ut.y1,ut.x1),!c),r.arc(f,p,i,vr(ut.cy+ut.y1,ut.cx+ut.x1),vr(At.cy+At.y1,At.cx+At.x1),!c),Ct>0&&r.arc(f+At.cx,p+At.cy,Ct,vr(At.y1,At.x1),vr(At.y0,At.x0),!c))}else r.moveTo(f+z,p+R),r.arc(f,p,i,l,u,!c);if(!(a>Zi)||!B)r.lineTo(f+U,p+V);else if(D>Zi){var Pt=Ca(d,D),Ct=Ca(m,D),ut=sv(U,V,M,I,a,-Ct,c),At=sv(z,R,L,P,a,-Pt,c);r.lineTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),D0&&r.arc(f+ut.cx,p+ut.cy,Ct,vr(ut.y0,ut.x0),vr(ut.y1,ut.x1),!c),r.arc(f,p,a,vr(ut.cy+ut.y1,ut.cx+ut.x1),vr(At.cy+At.y1,At.cx+At.x1),c),Pt>0&&r.arc(f+At.cx,p+At.cy,Pt,vr(At.y1,At.x1),vr(At.y0,At.x0),!c))}else r.lineTo(f+U,p+V),r.arc(f,p,a,u,l,c)}r.closePath()}}}var ZG=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}();var FD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZG},e.prototype.buildPath=function(t,i){BD(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(it);FD.prototype.type="sector";var we=FD;var XG=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}();var GD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XG},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e}(it);GD.prototype.type="ring";var ls=GD;function m0(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(i){var n=m0(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;sps[1]){if(s=!1,n)return s;var f=Math.abs(ps[0]-fs[1]),p=Math.abs(fs[0]-ps[1]);Math.min(f,p)>a.len()&&(f0){var p=f.duration,c=f.delay,h=f.easing,v={duration:p,delay:c||0,easing:h,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function _t(r,e,t,i,a,n){g0("update",r,e,t,i,a,n)}function Ut(r,e,t,i,a,n){g0("enter",r,e,t,i,a,n)}function tn(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function tM(r){return!r.isGroup}function p3(r){return r.shape!=null}function an(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){tM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return p3(o)&&(s.shape=N({},o.shape)),s}var n=i(r);e.traverse(function(o){if(tM(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),_t(o,l,t,tt(o).dataIndex)}}})}function S0(r,e){return k(r,function(t){var i=t[0];i=hv(i,e.x),i=vv(i,e.x+e.width);var a=t[1];return a=hv(a,e.y),a=vv(a,e.y+e.height),[i,a]})}function c3(r,e){var t=hv(r.x,e.x),i=vv(r.x+r.width,e.x+e.width),a=hv(r.y,e.y),n=vv(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function nn(r,e,t){var i=N({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),q(a,t),new re(i)):nu(r.replace("path://",""),i,t,"center")}function ou(r,e,t,i,a){for(var n=0,o=a[a.length-1];n1)return!1;var m=y0(h,v,f,p)/c;return!(m<0||m>1)}function y0(r,e,t,i){return r*i-t*e}function h3(r){return r<=1e-6&&r>=-1e-6}function ji(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=F(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ft(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=tt(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:q({content:i,formatterParams:s},a)}}function eM(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Sr(r,e){if(r)if(O(r))for(var t=0;t=0&&s.push(l)}),s}}function mr(r,e){return lt(lt({},r,!0),e,!0)}var dM={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:". "}}}};var mM={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var xv="ZH",M0="EN",lu=M0,yv={},I0={},_v=Tt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||lu).toUpperCase();return r.indexOf(xv)>-1?xv:lu}():lu;function gM(r,e){r=r.toUpperCase(),I0[r]=new zt(e),yv[r]=e}function yM(r){if(F(r)){var e=yv[r.toUpperCase()]||{};return r===xv||r===M0?$(e):lt($(e),$(yv[lu]),!1)}else return lt($(r),$(yv[lu]),!1)}function up(r){return I0[r]}function xM(){return I0[lu]}gM(M0,dM);gM(xv,mM);var bv=1e3,wv=bv*60,fu=wv*60,ni=fu*24,E0=ni*365,fp={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}"},Sv="{yyyy}-{MM}-{dd}",P0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sv,hour:Sv+" "+fp.hour,minute:Sv+" "+fp.minute,second:Sv+" "+fp.second,millisecond:fp.none},L0=["year","month","day","hour","minute","second","millisecond"],z0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sn(r,e){return r+="","0000".substr(0,e-r.length)+r}function ds(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 _M(r){return r===ds(r)}function SM(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ms(r,e,t,i){var a=ir(r),n=a[Tv(t)](),o=a[vs(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[pp(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[uu(t)](),p=(f-1)%12+1,c=a[cp(t)](),h=a[hp(t)](),v=a[vp(t)](),d=i instanceof zt?i:up(i||_v)||xM(),m=d.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),x=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,sn(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,sn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,sn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,sn(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,sn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,sn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,sn(v,3)).replace(/{S}/g,v+"")}function bM(r,e,t,i,a){var n=null;if(F(t))n=t;else if(X(t))n=t(r.value,e,{level:r.level});else{var o=N({},fp);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(O(n)){var p=r.level==null?0:r.level>=0?r.level:n.length+r.level;p=Math.min(p,n.length-1),n=n[p]}}return ms(new Date(r.value),n,a,i)}function wM(r,e){var t=ir(r),i=t[vs(e)]()+1,a=t[pp(e)](),n=t[uu(e)](),o=t[cp(e)](),s=t[hp(e)](),l=t[vp(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,h=c&&a===1,v=h&&i===1;return v?"year":h?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function R0(r,e,t){var i=vt(r)?ir(r):r;switch(e=e||wM(r,t),e){case"year":return i[Tv(t)]();case"half-year":return i[vs(t)]()>=6?1:0;case"quarter":return Math.floor((i[vs(t)]()+1)/4);case"month":return i[vs(t)]();case"day":return i[pp(t)]();case"half-day":return i[uu(t)]()/24;case"hour":return i[uu(t)]();case"minute":return i[cp(t)]();case"second":return i[hp(t)]();case"millisecond":return i[vp(t)]()}}function Tv(r){return r?"getUTCFullYear":"getFullYear"}function vs(r){return r?"getUTCMonth":"getMonth"}function pp(r){return r?"getUTCDate":"getDate"}function uu(r){return r?"getUTCHours":"getHours"}function cp(r){return r?"getUTCMinutes":"getMinutes"}function hp(r){return r?"getUTCSeconds":"getSeconds"}function vp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function TM(r){return r?"setUTCFullYear":"setFullYear"}function N0(r){return r?"setUTCMonth":"setMonth"}function O0(r){return r?"setUTCDate":"setDate"}function k0(r){return r?"setUTCHours":"setHours"}function V0(r){return r?"setUTCMinutes":"setMinutes"}function U0(r){return r?"setUTCSeconds":"setSeconds"}function B0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function G0(r){if(!jo(r))return F(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Cv(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ki=Al;function Av(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Fe(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ir(r):r;if(isNaN(+l)){if(s)return"-"}else return ms(l,i,t)}if(e==="ordinal")return xf(r)?a(r):vt(r)&&n(r)?r+"":"-";var u=kr(r);return n(u)?G0(u):xf(r)?a(r):typeof r=="boolean"?r+"":"-"}var CM=["a","b","c","d","e","f","g"],F0=function(r,e){return"{"+r+(e??"")+"}"};function Dv(r,e,t){O(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n':'';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Qi(r,e){return e=e||"transparent",F(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function gs(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Mv=w,H0=["left","right","top","bottom","width","height"],ys=[["width","left","right"],["height","top","bottom"]];function W0(r,e,t,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);h=n+d,h>i||l.newline?(n=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);v=o+m,v>a||l.newline?(n+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=h+t:o=v+t)})}var $i=W0,Rat=et(W0,"vertical"),Nat=et(W0,"horizontal");function MM(r,e,t){var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=Ki(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Zt(r,e,t){t=Ki(t||0);var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a),u=H(r.width,i),f=H(r.height,a),p=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(n)&&(n=i-s-u-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var v=new rt(n+t[3],o+t[0],u,f);return v.margin=t,v}function Xn(r,e,t,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.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 rt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=Zt(q({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,h=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=h):(n.x+=c,n.y+=h),n===r&&r.markRedraw(),!0}function IM(r,e){return r[ys[e][0]]!=null||r[ys[e][1]]!=null&&r[ys[e][2]]!=null}function qn(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function Wr(r,e,t){var i=t&&t.ignoreSize;!O(i)&&(i=[i,i]);var a=o(ys[0],0),n=o(ys[1],1);u(ys[0],r,a),u(ys[1],r,n);function o(f,p){var c={},h=0,v={},d=0,m=2;if(Mv(f,function(x){v[x]=r[x]}),Mv(f,function(x){s(e,x)&&(c[x]=v[x]=e[x]),l(c,x)&&h++,l(v,x)&&d++}),i[p])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(d===m||!h)return v;if(h>=m)return c;for(var g=0;g=0;l--)s=lt(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return Vn(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(zt);Wh(pu,zt);Un(pu);hM(pu);vM(pu,w3);function w3(r){var e=[];return w(pu.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=k(e,function(t){return Ur(t).main}),r!=="dataset"&&nt(e,"dataset")<=0&&e.unshift("dataset"),e}var xt=pu;var LM="";typeof navigator<"u"&&(LM=navigator.platform||"");var cu="rgba(0, 0, 0, 0.2)",EM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LM.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 Iv=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),je="original",Le="arrayRows",sr="objectRows",oi="keyedColumns",si="typedArray",Z0="unknown",Yr="column",ln="row";var Ze={Must:1,Might:2,Not:3},PM=ot();function zM(r){PM(r).datasetMap=Y()}function Lv(r,e,t){var i={},a=Ev(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=PM(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),w(r,function(d,m){var g=j(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=v(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});w(r,function(d,m){var g=d.name,y=v(d);if(f==null){var x=c.valueWayDim;h(i[g],x,y),h(o,x,y),c.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(n,0,y);else{var x=c.categoryWayDim;h(i[g],x,y),h(o,x,y),c.categoryWayDim+=y}});function h(d,m,g){for(var y=0;ye)return r[i];return r[t-1]}function UM(r,e,t,i,a,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?t:C3(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function A3(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var zv,yp,BM,FM="\0_ec_inner",D3=1;var YM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new zt(n),this._locale=new zt(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=WM(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,WM(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?BM(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;zM(this),w(t,function(p,c){p!=null&&(xt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?$(p):lt(a[c],p,!0))}),u&&u.each(function(p,c){xt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),xt.topologicalTravel(s,xt.getAllClassMainTypes(),f,this);function f(p){var c=kM(this,p,Nt(t[p])),h=n.get(p),v=h?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=Gh(h,c,v);mA(d,p,xt),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,x,_;w(d,function(b,S){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=p==="series",D=xt.getClass(p,b.keyInfo.subType,!A);if(!D){if(0)var M,I;return}if(p==="tooltip"){if(x)return;x=!0}if(T&&T.constructor===D)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var L=N({componentIndex:S},b.keyInfo);T=new D(C,this,this,L),N(T,L),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&zv(this)}this._seriesIndices||zv(this)},e.prototype.getOption=function(){var t=$(this.option);return w(t,function(i,a){if(xt.hasClass(a)){for(var n=Nt(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Yl(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[FM],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function V3(r,e){return r.join(",")===e.join(",")}var ZM=R3;var Ji=w,_p=j,XM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function j0(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=XM.length;t=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=oA(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var kv=function(){function r(e){this.data=e.data||(e.sourceFormat===oi?{}:[]),this.sourceFormat=e.sourceFormat||Z0,this.seriesLayoutBy=e.seriesLayoutBy||Yr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;id&&(d=x)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};rI=(e={},e[Le+"_"+Yr]={pure:!0,appendData:n},e[Le+"_"+ln]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[sr]={pure:!0,appendData:n},e[oi]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[je]={appendData:n},e[si]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return pn(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r}();function nx(r){var e,t;return j(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function jn(r){return new $3(r)}var $3=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||h1&&i>0?s:o}};return n;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},tH=function(){function r(e,t){if(!vt(t)){var i="";Gt(i)}this._opFn=sI[e],this._rvalFloat=kr(t)}return r.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(kr(e),this._rvalFloat)},r}(),Fv=function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=vt(e)?e:kr(e),a=vt(t)?t:kr(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=F(e),l=F(t);s&&(i=l?e:0),l&&(a=s?t:0)}return ia?-this._resultLT:0},r}();var eH=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=kr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=kr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function lI(r,e){return r==="eq"||r==="ne"?new eH(r==="eq",e):J(sI,r)?new tH(r,e):null}var rH=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Mi(e,t)},r}();function iH(r,e){var t=new rH,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Yr&&Gt(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var x="";J(l,g)&&Gt(x),l[g]=y}});else for(var f=0;f65535?uH:fH}function gu(){return[1/0,-1/0]}function pH(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function hI(r,e,t,i,a){var n=vI[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;um[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=k(o,function(y){return y.property}),f=0;fg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,i){var a=this._chunks,n=a[e],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,p=this.count();f=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(n===2){for(var m=h[a[0]],x=h[a[1]],_=e[a[1]][0],b=e[a[1]][1],g=0;g=p&&y<=c||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=d),d++}v=!0}}if(!v)if(n===1)for(var g=0;g=p&&y<=c||isNaN(y))&&(l[u++]=T)}else for(var g=0;ge[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,h=new(wp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=p,c=_)}M>0&&Mf-v&&(l=f-v,s.length=l);for(var d=0;dp[1]&&(p[1]=g),c[h++]=y}return n._count=h,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();nl&&(l=p)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,a,n){return Mi(t[n],this._dimensions[n])}sx={arrayRows:e,objectRows:function(t,i,a,n){return Mi(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return Mi(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}}(),r}(),Tp=cH;var Wv=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,a,n;if(Hv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=De(s)?si:je,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=at(p.seriesLayoutBy,c.seriesLayoutBy)||null,v=at(p.sourceHeader,c.sourceHeader),d=at(p.dimensions,c.dimensions),m=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=m?[bp(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[bp(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&dI(n)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&dI(p),s.push(f),l.push(u._getVersionSign())}),i?o=pI(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[eI(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return w(r.blocks,function(a){var n=xI(a);n>=e&&(e=n+ +(i&&(!n||fx(a)&&!a.noHeader)))}),e}return 0}function dH(r,e,t,i){var a=e.noHeader,n=gH(xI(e)),o=[],s=e.blocks||[];ne(!s||O(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new Fv(u[l],null);s.sort(function(v,d){return f.evaluate(v.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,d){var m=e.valueFormatter,g=yI(v)(m?N(N({},r),{valueFormatter:m}):r,v,d>0?n.html:0,i);g!=null&&o.push(g)});var p=r.renderMode==="richText"?o.join(n.richText):px(o.join(""),a?t:n.html);if(a)return p;var c=Av(e.header,"ordinal",r.useUTC),h=gI(i,r.renderMode).nameStyle;return r.renderMode==="richText"?_I(r,c,h)+n.richText+p:px('
'+Je(c)+"
"+p,t)}function mH(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(_){return _=O(_)?_:[_],k(_,function(b,S){return Av(b,O(h)?h[S]:h,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),c=n?"":Av(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.dataIndex),d=!s||!n,m=!s&&n,g=gI(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":_I(r,c,y))+(o?"":_H(r,v,d,m,x)):px((s?"":p)+(n?"":yH(c,!s,y))+(o?"":xH(v,d,m,x)),t)}}function cx(r,e,t,i,a,n){if(r){var o=yI(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function gH(r){return{html:hH[r],richText:vH[r]}}function px(r,e){var t='
',i="margin: "+e+"px 0 0";return'
'+r+t+"
"}function yH(r,e,t){var i=e?"margin-left:2px":"";return''+Je(r)+""}function xH(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],''+k(r,function(o){return Je(o)}).join("  ")+""}function _I(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function _H(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(e)?e.join(" "):e,n)}function Yv(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Qi(i)}function Zv(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Xv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Fh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=DM({color:t,type:e,renderMode:i,markerId:a});return F(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};O(t)?w(t,function(n){return N(i,n)}):N(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r}();function qv(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=O(s),u=Yv(e,t),f,p,c,h;if(o>1||l&&!o){var v=SH(s,e,t,n,u);f=v.inlineValues,p=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);h=f=pn(a,t,n[0]),p=d.type}else h=f=l?s[0]:s;var m=Zl(e),g=m&&e.name||"",y=a.getName(t),x=i?g:y;return ie("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[ie("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fe(x),value:f,valueType:p,dataIndex:t})].concat(c||[])})}function SH(r,e,t,i,a){var n=e.getData(),o=$e(r,function(p,c,h){var v=n.getDimensionInfo(h);return p=p||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(p){f(pn(n,t,p),p)}):w(r,f);function f(p,c){var h=n.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(ie("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:p,valueType:h.type})):(s.push(p),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kn=ot();function jv(r,e){return r.getName(e)||r.getId(e)}var Cp="__universalTransitionEnabled",Kv=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=jn({count:wH,reset:TH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=Kn(this).sourceManager=new Wv(this);n.prepareSource();var o=this.getInitialData(t,a);bI(o,this),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,SI(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=qn(this),n=a?Ai(t):{},o=this.subType;xt.hasClass(o)&&(o+="Series"),lt(t,i.getTheme().get(this.subType)),lt(t,this.getDefaultOption()),ai(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Wr(t,n,a)},e.prototype.mergeOption=function(t,i){t=lt(this.option,t,!0),this.fillDataTextStyle(t.data);var a=qn(this);a&&Wr(this.option,t,a);var n=Kn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);bI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,SI(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!De(t))for(var i=["show"],a=0;athis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,a){var n=this.ecModel,o=mp.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[jv(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Cp])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,i)}},e.registerClass=function(t){return xt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(xt);jt(Kv,mu);jt(Kv,mp);Wh(Kv,xt);function SI(r){var e=r.name;Zl(r)||(r.name=bH(r)||e)}function bH(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return w(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function wH(r){return r.model.getRawData().count()}function TH(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),CH}function CH(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bI(r,e){w(Eo(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,et(AH,e))})}function AH(r,e){var t=hx(r);return t&&t.setOutputEnd((e||this).count()),e}function hx(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var Rt=Kv;var vx=function(){function r(){this.group=new K,this.uid=Ci("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Xl(vx);Un(vx);var Ot=vx;function li(){var r=ot();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var CI=ot(),DH=li(),dx=function(){function r(){this.group=new K,this.uid=Ci("viewChart"),this.renderTask=jn({plan:MH,reset:IH}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&TI(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&TI(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateLayout=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){Sr(this.group,e)},r.markUpdateMethod=function(e,t){CI(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function wI(r,e,t){r&&Zn(r)&&(e==="emphasis"?cr:hr)(r,t)}function TI(r,e,t){var i=Si(r,e),a=e&&e.highlightKey!=null?CD(e.highlightKey):null;i!=null?w(Nt(i),function(n){wI(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){wI(n,t,a)})}Xl(dx,["dispose"]);Un(dx);function MH(r){return DH(r.model)}function IH(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&CI(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),LH[l]}var LH={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},It=dx;var Qv="\0__throttleOriginMethod",AI="\0__throttleRate",DI="\0__throttleType";function Ap(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],v=0;v=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ii(r,e,t,i){var a=r[e];if(a){var n=a[Qv]||a,o=a[DI],s=a[AI];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=Ap(n,t,i==="debounce"),a[Qv]=n,a[DI]=i,a[AI]=t}return a}}function cn(r,e){var t=r[e];t&&t[Qv]&&(t.clear&&t.clear(),r[e]=t[Qv])}var MI=ot(),II={itemStyle:Br(A0,!0),lineStyle:Br(C0,!0)},EH={lineStyle:"stroke",itemStyle:"fill"};function LI(r,e){var t=r.visualStyleMapper||II[e];return t||(console.warn("Unknown style type '"+e+"'."),II.itemStyle)}function EI(r,e){var t=r.visualDrawType||EH[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var PI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=LI(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=EI(r,i),u=o[l],f=X(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},Dp=new zt,zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=LI(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Dp.option=l[i];var u=a(Dp),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Dp.option.decal&&(o.setItemVisual(s,"decal",Dp.option.decal),Dp.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},RI={performRawSeries:!0,overallReset:function(r){var e=Y();r.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+i,n=e.get(a);n||(n={},e.set(a,n)),MI(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var i=t.getRawData(),a={},n=t.getData(),o=MI(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=EI(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();c[l]=t.getColorFromPalette(h,o,v)}})}})}};var Jv=Math.PI;function mx(r,e){e=e||{},q(e,{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 t=new K,i=new ht({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new yt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new ht({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new np({shape:{startAngle:-Jv/2,endAngle:-Jv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var PH=function(){function r(e,t,i,a){this._stageTaskMap=Y(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&n>=i.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=Y();e.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;w(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";ne(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,o=this;w(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);v.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.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(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Y(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,h=s.set(c,o&&o.get(c)||jn({plan:kH,reset:VH,count:BH}));h.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,h)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||jn({reset:zH});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=e.seriesType,f=e.getTargetSeries,p=!0,c=!1,h="";ne(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,a).each(v):(p=!1,w(i.getSeries(),v));function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,jn({reset:RH,onDirty:OH})));g.context={model:d,overallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return X(e)&&(e={overallReset:e,seriesType:FH(e)}),e.uid=Ci("stageHandler"),t&&(e.visualType=t),e},r}();function zH(r){r.overallReset(r.ecModel,r.api,r.payload)}function RH(r){return r.overallProgress&&NH}function NH(){this.agent.dirty(),this.getDownstream().dirty()}function OH(){this.agent&&this.agent.dirty()}function kH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function VH(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?k(e,function(t,i){return NI(i)}):UH}var UH=NI(0);function NI(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n0&&h===u.length-c.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,n));function f(p,c,h,v){return p[h]==null||c[v||h]===p[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}();var yx=["symbol","symbolSize","symbolRotate","symbolOffset"],YI=yx.concat(["symbolKeepAspect"]),ZI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o=0&&bs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ep(r,e,t){for(var i=e.type==="radial"?t4(r,e,t):JH(r,e,t),a=e.colorStops,n=0;n0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:vt(r)?[r]:O(r)?r:null}function Pp(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&e4(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=k(t,function(n){return n/a}),i/=a)}return[t,i]}var r4=new Ye(!0);function ad(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function $I(r){return typeof r=="string"&&r!=="none"}function nd(r){var e=r.fill;return e!=null&&e!=="none"}function JI(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function tL(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function od(r,e,t){var i=Zf(e.image,e.__image,t);if(ql(i)){var a=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Dl),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function i4(r,e,t,i){var a,n=ad(t),o=nd(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||r4,p=e.__dirty;if(!i){var c=t.fill,h=t.stroke,v=o&&!!c.colorStops,d=n&&!!h.colorStops,m=o&&!!c.image,g=n&&!!h.image,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0;(v||d)&&(S=e.getBoundingRect()),v&&(y=p?Ep(r,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(x=p?Ep(r,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=p||!e.__canvasFillPattern?od(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(b=p||!e.__canvasStrokePattern?od(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?r.fillStyle=y:m&&(_?r.fillStyle=_:o=!1),d?r.strokeStyle=x:g&&(b?r.strokeStyle=b:n=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(a=Pp(e),C=a[0],A=a[1]);var D=!0;(u||p&En)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(t.strokeFirst?(n&&tL(r,t),o&&JI(r,t)):(o&&JI(r,t),n&&tL(r,t))),C&&r.setLineDash([])}function a4(r,e,t){var i=e.__image=Zf(t.image,e.__image,e,e.onload);if(!(!i||!ql(i))){var a=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function n4(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Jr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Pp(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(ad(t)&&r.strokeText(a,t.x,t.y),nd(t)&&r.fillText(a,t.x,t.y)):(nd(t)&&r.fillText(a,t.x,t.y),ad(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var eL=["shadowBlur","shadowOffsetX","shadowOffsetY"],rL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lL(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Zr(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?xa.opacity:o}(i||e.blend!==t.blend)&&(n||(Zr(r,a),n=!0),r.globalCompositeOperation=e.blend||xa.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,a){if(!this[yr]){if(this._disposed){this.id;return}var n,o,s;if(j(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[yr]=!0,!this._model||i){var l=new ZM(this._api),u=this._theme,f=this._model=new Rv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Ex);var p={seriesTransition:s,optionChanged:!0};if(a)this[Xr]={silent:n,updateParams:p},this[yr]=!1,this.getZr().wakeUp();else{try{xu(this),Jn.update.call(this,null,p)}catch(c){throw this[Xr]=null,this[yr]=!1,c}this._ssr||this._zr.flush(),this[Xr]=null,this[yr]=!1,Rp.call(this,n),Np.call(this,n)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Tt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Tt.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return w(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;w(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return w(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(CL[a]){var l=s,u=s,f=-s,p=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(kp,function(x,_){if(x.group===a){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas($(t)),S=x.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),p=o(S.bottom,p),c.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,p*=h;var v=f-l,d=p-u,m=pr.createCanvas(),g=Py(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return w(c,function(x){var _=x.left-l,b=x.top-u;y+=''+x.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new ht({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),w(c,function(x){var _=new re({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Ax(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Ax(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=kn(a,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=kn(a,t,{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?Ip(s,l,i):Ma(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(D4,function(i){var a=function(n){var o=t.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&ta(s,function(v){var d=tt(v);if(d&&d.dataIndex!=null){var m=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=m&&m.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=N({},d.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var c=f&&p!=null&&o.getComponent(f,p),h=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:h},t.trigger(i,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)}),w(Op,function(i,a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),w(["selectchanged"],function(i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),qI(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ky(this.getDom(),Nx,"");var i=this,a=i._api,n=i._model;w(i._componentsViews,function(o){o.dispose(n,a)}),w(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete kp[i.id]},e.prototype.resize=function(t){if(!this[yr]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[Xr]&&(n==null&&(n=this[Xr].silent),a=!0,this[Xr]=null),this[yr]=!0;try{a&&xu(this),Jn.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[yr]=!1,o}this[yr]=!1,Rp.call(this,n),Np.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(j(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Px[t]){var a=Px[t](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=N({},t);return i.type=Op[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(j(i)||(i={silent:!!i}),!!fd[t.type]&&this._model){if(this[yr]){this._pendingActions.push(t);return}var a=i.silent;Mx.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&Tt.browser.weChat&&this._throttledZrFlush(),Rp.call(this,a),Np.call(this,a)}},e.prototype.updateLabelLayout=function(){Li.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){xu=function(p){var c=p._scheduler;c.restorePipelines(p._model),c.prepareStageTasks(),Cx(p,!0),Cx(p,!1),c.plan()},Cx=function(p,c){for(var h=p._model,v=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,x=0;xc.get("hoverLayerThreshold")&&!Tt.node&&!Tt.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=p._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(p,c){var h=p.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(p,c){if(!p.preventAutoZ){var h=p.get("z")||0,v=p.get("zlevel")||0;c.eachRendered(function(d){return l(d,h,v,-1/0),!0})}}function l(p,c,h,v){var d=p.getTextContent(),m=p.getTextGuideLine(),g=p.isGroup;if(g)for(var y=p.childrenRef(),x=0;x0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(tn(g))return;if(g instanceof it&&AD(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}wL=function(p){return new(function(c){E(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){cr(v,d),Ei(p)},h.prototype.leaveEmphasis=function(v,d){hr(v,d),Ei(p)},h.prototype.enterBlur=function(v){Jh(v),Ei(p)},h.prototype.leaveBlur=function(v){tp(v),Ei(p)},h.prototype.enterSelect=function(v){l0(v),Ei(p)},h.prototype.leaveSelect=function(v){u0(v),Ei(p)},h.prototype.getModel=function(){return p.getModel()},h.prototype.getViewOfComponentModel=function(v){return p.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return p.getViewOfSeriesModel(v)},h}(Nv))(p)},OL=function(p){function c(h,v){for(var d=0;d=0)){AL.push(t);var n=gx.wrapStageHandler(t,a);n.__prio=e,n.__raw=t,r.push(n)}}function Bx(r,e){Px[r]=e}function WL(r,e,t){var i=gL("registerMap");i&&i(r,e,t)}var YL=fI;to(zx,PI);to(cd,zI);to(cd,RI);to(zx,ZI);to(cd,XI);to(IL,Sx);kx(Ov);Vx(m4,$0);Bx("default",mx);wr({type:Yn,event:Yn,update:Yn},te);wr({type:$f,event:$f,update:$f},te);wr({type:$l,event:$l,update:$l},te);wr({type:Jf,event:Jf,update:Jf},te);wr({type:Jl,event:Jl,update:Jl},te);UL("light",UI);UL("dark",HI);var ZL=[],L4={registerPreprocessor:kx,registerProcessor:Vx,registerPostInit:BL,registerPostUpdate:FL,registerUpdateLifecycle:hd,registerAction:wr,registerCoordinateSystem:GL,registerLayout:HL,registerVisual:to,registerTransform:YL,registerLoading:Bx,registerMap:WL,registerImpl:mL,PRIORITY:LL,ComponentModel:xt,ComponentView:Ot,SeriesModel:Rt,ChartView:It,registerComponentModel:function(r){xt.registerClass(r)},registerComponentView:function(r){Ot.registerClass(r)},registerSeriesModel:function(r){Rt.registerClass(r)},registerChartView:function(r){It.registerClass(r)},registerSubTypeDefaulter:function(r,e){xt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){tA(r,e)}};function St(r){if(O(r)){w(r,function(e){St(e)});return}nt(ZL,r)>=0||(ZL.push(r),X(r)&&(r={install:r}),r.install(L4))}function Vp(r){return r==null?0:r.length||1}function XL(r){return r}var E4=function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||XL,this._newKeyGetter=a||XL,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var h=0;h1)for(var s=0;s30}var Up=j,eo=k,k4=typeof Int32Array>"u"?Array:Int32Array,V4="e\0\0",jL=-1,U4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],B4=["_approximateExtent"],KL,md,Bp,Fp,Zx,gd,Xx,F4=function(){function r(e,t){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;dd(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===je;if(l&&!a.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),O(n)?n=n.slice():Up(n)&&(n=N({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Up(t)?N(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Up(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;Kf(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:eo(this.dimensions,this._getDimInfo,this),this.hostModel)),Zx(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];X(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(rh(arguments)))})},r.internalField=function(){KL=function(e){var t=e._invertedIndicesMap;w(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new k4(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[t]=l}}}(),r}(),ve=F4;function ia(r,e){vu(r)||(r=du(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=Y(),n=[],o=H4(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Yx(o),l=i===r.dimensionsDefine,u=l?Wx(r):Hx(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=Y(f),c=new lx(o),h=0;h0&&(i.name=a+(n-1)),n++,e.set(a,n)}}function H4(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return w(e,function(n){var o;j(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function W4(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var Y4=function(){function r(e){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=e}return r}();function QL(r){var e=r.get("coordinateSystem"),t=new Y4(e),i=Z4[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var Z4={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",$t).models[0],n=r.getReferringComponents("yAxis",$t).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),Su(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),Su(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",$t).models[0];e.coordSysDims=["single"],t.set("single",a),Su(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",$t).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Su(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),Su(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Su(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Su(r){return r.get("type")==="category"}function $L(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;X4(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c;if(w(n,function(y,x){F(y)&&(n[x]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,d=0;w(n,function(y){y.coordDim===h&&d++});var m={name:p,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,v),g.storeDimIndex=s.ensureCalculationDimension(p,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(n.push(m),n.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function X4(r){return!dd(r.schema)}function fi(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function yd(r,e){return fi(r,e)?r.getCalculationInfo("stackResultDimension"):e}function q4(r,e){var t=r.get("coordinateSystem"),i=un.get(t),a;return e&&e.coordSysDims&&(a=k(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=ws(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function j4(r,e,t){var i,a;return t&&w(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function K4(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=du(r)):(a=i.getSource(),n=a.sourceFormat===je);var o=QL(e),s=q4(e,o),l=t.useEncodeDefaulter,u=X(l)?l:l?et(Lv,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=ia(a,f),c=j4(p.dimensions,t.createInvertedIndices,o),h=n?null:i.getSharedDataStore(p),v=$L(e,{schema:p,store:h}),d=new ve(p,e);d.setCalculationInfo(v);var m=c!=null&&Q4(a)?function(g,y,x,_){return _===c?x:this.defaultDimValueGetter(g,y,x,_)}:null;return d.hasItemOption=!1,d.initData(n?a:h,null,m),d}function Q4(r){if(r.sourceFormat===je){var e=$4(r.data||[]);return!O(Wi(e))}}function $4(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Un(JL);var qr=JL;var J4=0,tW=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++J4}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&k(i,eW);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!F(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function eW(r){return j(r)&&r.value!=null?r.value:r+""}var Gp=tW;function Hp(r){return r.type==="interval"||r.type==="log"}function eE(r,e,t,i){var a={},n=r[1]-r[0],o=a.interval=Hl(n/e,!0);t!=null&&oi&&(o=a.interval=i);var s=a.intervalPrecision=qx(o),l=a.niceTickExtent=[Qt(Math.ceil(r[0]/o)*o,s),Qt(Math.floor(r[1]/o)*o,s)];return rW(l,r),a}function xd(r){var e=Math.pow(10,Gl(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Qt(t*e)}function qx(r){return rr(r)+2}function tE(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function rW(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),tE(r,0,e),tE(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ro(r,e){return r>=e[0]&&r<=e[1]}function io(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function ao(r,e){return r*(e[1]-e[0])+e[0]}var rE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Gp({})),O(a)&&(a=new Gp({categories:k(a,function(n){return j(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ro(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),io(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(ao(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,a=i[0];a<=i[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(qr);qr.registerClass(rE);var Wp=rE;var Ts=Qt,iE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ro(t,this._extent)},e.prototype.normalize=function(t){return io(t,this._extent)},e.prototype.scale=function(t){return ao(t,this._extent)},e.prototype.setExtent=function(t,i){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(i)||(a[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=qx(t)},e.prototype.getTicks=function(t){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(t?s.push({value:Ts(f+i,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;on[0]&&h0&&(n=n===null?s:Math.min(n,s))}t[i]=n}}return t}function Jx(r){var e=aW(r),t=[];return w(r,function(i){var a=i.coordinateSystem,n=a.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=e[l],f=Math.abs(o[1]-o[0]),p=n.scale.getExtent(),c=Math.abs(p[1]-p[0]);s=u?f/c*u:f}else{var h=i.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=H(i.get("barWidth"),s),d=H(i.get("barMaxWidth"),s),m=H(i.get("barMinWidth")||(uE(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Qx(n),stackId:Kx(i)})}),oE(t)}function oE(r){var e={};w(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=i.barMaxWidth;p&&(l[u].maxWidth=p);var c=i.barMinWidth;c&&(l[u].minWidth=c);var h=i.barGap;h!=null&&(s.gap=h);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(i.gap,1),p=i.remainedWidth,c=i.autoWidthCount,h=(p-u)/(c+(c-1)*f);h=Math.max(h,0),w(n,function(g){var y=g.maxWidth,x=g.minWidth;if(g.width){var _=g.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),g.width=_,p-=_+f*_,c--}else{var _=h;y&&y<_&&(_=Math.min(y,p)),x&&x>_&&(_=x),_!==h&&(g.width=_,p-=_+f*_,c--)}}),h=(p-u)/(c+(c-1)*f),h=Math.max(h,0);var v=0,d;w(n,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+f)}),d&&(v-=d.width*f);var m=-v/2;w(n,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),t}function sE(r,e,t){if(r&&e){var i=r[Qx(e)];return i!=null&&t!=null?i[Kx(t)]:i}}function Sd(r,e){var t=$x(r,e),i=Jx(t);w(t,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Kx(a),u=i[Qx(s)][l],f=u.offset,p=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:p})})}function bd(r){return{seriesType:r,plan:li(),reset:function(e){if(lE(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=fi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),h=nW(a,n),v=uE(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=v&&Tr(b*3),T=v&&l&&Tr(b*3),C=v&&Tr(b),A=i.master.getRect(),D=c?A.width:A.height,M,I=_.getStore(),L=0;(M=x.next())!=null;){var P=I.get(p?m:o,M),z=I.get(s,M),R=h,U=void 0;p&&(U=+P-I.get(o,M));var V=void 0,B=void 0,Z=void 0,Q=void 0;if(c){var st=i.dataToPoint([P,z]);if(p){var ct=i.dataToPoint([U,z]);R=ct[0]}V=R,B=st[1]+y,Z=st[0]-R,Q=g,Math.abs(Z)>>1;r[a][1]a&&(this._approxInterval=a);var s=wd.length,l=Math.min(oW(wd,this._approxInterval,0,s),s-1);this._interval=wd[l][1],this._minLevelUnit=wd[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+ir(t)},e.prototype.contain=function(t){return ro(this.parse(t),this._extent)},e.prototype.normalize=function(t){return io(this.parse(t),this._extent)},e.prototype.scale=function(t){return ao(t,this._extent)},e.type="time",e}(jr),wd=[["second",bv],["minute",wv],["hour",fu],["quarter-day",fu*6],["half-day",fu*12],["day",ni*1.2],["half-week",ni*3.5],["week",ni*7],["month",ni*31],["quarter",ni*95],["half-year",E0/2],["year",E0]];function sW(r,e,t,i){var a=ir(e),n=ir(t),o=function(v){return R0(a,v,i)===R0(n,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},p=function(){return f()&&o("minute")},c=function(){return p()&&o("second")},h=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return p();case"second":return c();case"millisecond":return h()}}function lW(r,e){return r/=ni,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function uW(r){var e=30*ni;return r/=e,r>6?6:r>3?3:r>2?2:1}function fW(r){return r/=fu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function fE(r,e){return r/=e?wv:bv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function pW(r){return Hl(r,!0)}function cW(r,e,t){var i=new Date(r);switch(ds(e)){case"year":case"month":i[N0(t)](0);case"day":i[O0(t)](1);case"hour":i[k0(t)](0);case"minute":i[V0(t)](0);case"second":i[U0(t)](0),i[B0(t)](0)}return i.getTime()}function hW(r,e,t,i){var a=1e4,n=z0,o=0;function s(D,M,I,L,P,z,R){for(var U=new Date(M),V=M,B=U[L]();V1&&z===0&&I.unshift({value:I[0].value-V})}}for(var z=0;z=i[0]&&y<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>x*1.5&&c>x/1.5||(u.push(m),p>x||r===n[h]))break}f=[]}}}for(var _=Dt(k(u,function(D){return Dt(D,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],S=_.length-1,h=0;h<_.length;++h)for(var T=_[h],C=0;C0;)n*=10;var s=[Qt(mW(i[0]/n)*n),Qt(dW(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Yp.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=aa(t)/aa(this.base),ro(t,this._extent)},e.prototype.normalize=function(t){return t=aa(t)/aa(this.base),io(t,this._extent)},e.prototype.scale=function(t){return t=ao(t,this._extent),Cd(this.base,t)},e.type="log",e}(qr),hE=t_.prototype;hE.getMinorTicks=Yp.getMinorTicks;hE.getLabel=Yp.getLabel;function Ad(r,e){return vW(r,rr(e))}qr.registerClass(t_);var vE=t_;var gW=function(){function r(e,t,i){this._prepareParams(e,t,i)}return r.prototype._prepareParams=function(e,t,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:p}},r.prototype.modifyDataMinMax=function(e,t){this[xW[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var i=yW[e];this[i]=t},r.prototype.freeze=function(){this.frozen=!0},r}();var yW={min:"_determinedMin",max:"_determinedMax"},xW={min:"_dataMin",max:"_dataMax"};function Md(r,e,t){var i=r.rawExtentInfo;return i||(i=new gW(r,e,t),r.rawExtentInfo=i,i)}function Dd(r,e){return e==null?null:Mn(e)?NaN:r.parse(e)}function e_(r,e){var t=r.type,i=Md(r,e,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=e.ecModel;if(o&&t==="time"){var s=$x("bar",o),l=!1;if(w(s,function(p){l=l||p.getBaseAxis()===e.axis}),l){var u=Jx(s),f=_W(a,n,e,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function _W(r,e,t,i){var a=t.axis.getExtent(),n=a[1]-a[0],o=sE(i,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,p=1-(s+l)/n,c=f/p-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Ia(r,e){var t=e,i=e_(r,t),a=i.extent,n=t.get("splitNumber");r instanceof vE&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function no(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Wp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Td({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(qr.getClass(e)||jr)}}function dE(r){var e=r.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function bu(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}}(e):F(e)?function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n??"");return o}}(e):X(e)?function(i){return function(a,n){return t!=null&&(n=a.value-t),i(Zp(r,a),n,a.level!=null?{level:a.level}:null)}}(e):function(i){return r.scale.getLabel(i)}}function Zp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function mE(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,a,n=t.getExtent();t instanceof Wp?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=bu(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var La=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();var bW=1e-8;function yE(r,e){return Math.abs(r-e)a&&(i=o,a=l)}if(i)return TW(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?_E(s.exterior,a,n,t):w(s.points,function(l){_E(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var n=0,o=a.length;n>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function o_(r,e){return r=CW(r),k(Dt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new i_(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new i_(l[0],l.slice(1)))});break;case"LineString":n.push(new a_([a.coordinates]));break;case"MultiLineString":n.push(new a_(a.coordinates))}var s=new Pd(i[e||"name"],n,i.cp);return s.properties=i,s})}var Tu={};sT(Tu,{MAX_SAFE_INTEGER:()=>Bf,asc:()=>Ie,getPercentWithPrecision:()=>nA,getPixelPrecision:()=>Fl,getPrecision:()=>rr,getPrecisionSafe:()=>zy,isNumeric:()=>jo,isRadianAroundZero:()=>qa,linearMap:()=>kt,nice:()=>Hl,numericToNumber:()=>kr,parseDate:()=>ir,quantile:()=>Wl,quantity:()=>Bh,quantityExponent:()=>Gl,reformIntervals:()=>Gf,remRadian:()=>Ff,round:()=>Qt});var Xp=ot();function TE(r){return r.type==="category"?AW(r):MW(r)}function CE(r,e){return r.type==="category"?DW(r,e):{ticks:k(r.scale.getTicks(),function(t){return t.value})}}function AW(r){var e=r.getLabelModel(),t=AE(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function AE(r,e){var t=DE(r,"labels"),i=Id(e),a=ME(t,i);if(a)return a;var n,o;return X(i)?n=PE(r,i):(o=i==="auto"?IW(r):i,n=EE(r,o)),IE(t,i,{labels:n,labelCategoryInterval:o})}function DW(r,e){var t=DE(r,"ticks"),i=Id(e),a=ME(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),X(i))n=PE(r,i,!0);else if(i==="auto"){var s=AE(r,r.getLabelModel());o=s.labelCategoryInterval,n=k(s.labels,function(l){return l.tickValue})}else o=i,n=EE(r,o,!0);return IE(t,i,{ticks:n,tickCategoryInterval:o})}function MW(r){var e=r.scale.getTicks(),t=bu(r);return{labels:k(e,function(i,a){return{level:i.level,formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function DE(r,e){return Xp(r)[e]||(Xp(r)[e]=[])}function ME(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),p=Math.abs(u*Math.sin(i)),c=0,h=0;l<=n[1];l+=s){var v=0,d=0,m=ya(t({value:l}),e.font,"center","top");v=m.width*1.3,d=m.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/f,y=h/p;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(g,y))),_=Xp(r.model),b=r.getExtent(),S=_.lastAutoInterval,T=_.lastTickCount;return S!=null&&T!=null&&Math.abs(S-x)<=1&&Math.abs(T-o)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function LW(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function EE(r,e,t){var i=bu(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Ld(r),c=o.get("showMinLabel")||p,h=o.get("showMaxLabel")||p;c&&u!==n[0]&&d(n[0]);for(var v=u;v<=n[1];v+=l)d(v);h&&v-l!==n[1]&&d(n[1]);function d(m){var g={value:m};s.push(t?m:{formattedLabel:i(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function PE(r,e,t){var i=r.scale,a=bu(r),n=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var zE=[0,1],EW=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Fl(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(i=i.slice(),RE(i,a.count())),kt(e,zE,i,t)},r.prototype.coordToData=function(e,t){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),RE(i,a.count()));var n=kt(e,i,zE,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=CE(this,t),a=i.ticks,n=k(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return PW(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),a=k(i,function(n){return k(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return TE(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 e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return LE(this)},r}();function RE(r,e){var t=r[1]-r[0],i=e,a=t/i/2;r[0]+=a,r[1]-=a}function PW(r,e,t,i){var a=e.length;if(!r.onBand||t||!a)return;var n=r.getExtent(),o,s;if(a===1)e[0].coord=n[0],o=e[1]={coord:n[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var p=n[0]>n[1];c(e[0].coord,n[0])&&(i?e[0].coord=n[0]:e.shift()),i&&c(n[0],e[0].coord)&&e.unshift({coord:n[0]}),c(n[1],o.coord)&&(i?o.coord=n[1]:e.pop()),i&&c(o.coord,n[1])&&e.push({coord:n[1]});function c(h,v){return h=Qt(h),v=Qt(v),p?h>v:ha&&(a+=qp);var h=Math.atan2(s,o);if(h<0&&(h+=qp),h>=i&&h<=a||h+qp>=i&&h+qp<=a)return l[0]=f,l[1]=p,u-t;var v=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y0){e=e/180*Math.PI,oa.fromArray(r[0]),ue.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Pa,oa,ue),bt.sub(Ea,Ee,ue);var t=Pa.len(),i=Ea.len();if(!(t<.001||i<.001)){Pa.scale(1/t),Ea.scale(1/i);var a=Pa.dot(Ea),n=Math.cos(e);if(n1&&bt.copy(Cr,Ee),Cr.toArray(r[1])}}}}function OE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,oa.fromArray(r[0]),ue.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Pa,ue,oa),bt.sub(Ea,Ee,ue);var i=Pa.len(),a=Ea.len();if(!(i<.001||a<.001)){Pa.scale(1/i),Ea.scale(1/a);var n=Pa.dot(e),o=Math.cos(t);if(n=l)bt.copy(Cr,Ee);else{Cr.scaleAndAdd(Ea,s/Math.tan(Math.PI/2-f));var p=Ee.x!==ue.x?(Cr.x-ue.x)/(Ee.x-ue.x):(Cr.y-ue.y)/(Ee.y-ue.y);if(isNaN(p))return;p<0?bt.copy(Cr,ue):p>1&&bt.copy(Cr,Ee)}Cr.toArray(r[1])}}}}function s_(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function VW(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var a=di(i[0],i[1]),n=di(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=Il([],i[1],i[0],o/a),l=Il([],i[1],i[2],o/n),u=Il([],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],i[2][0],i[2][1])}else for(var f=1;f0&&n&&S(-p/o,0,o);var m=r[0],g=r[o-1],y,x;_(),y<0&&T(-y,.8),x<0&&T(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&C(-y),x<0&&C(x);function _(){y=m.rect[e]-i,x=a-g.rect[e]-g.rect[t]}function b(A,D,M){if(A<0){var I=Math.min(D,-A);if(I>0){S(I*M,0,o);var L=I+A;L<0&&T(-L*M,1)}else T(-A*M,1)}}function S(A,D,M){A!==0&&(u=!0);for(var I=D;I0)for(var L=0;L0;L--){var U=M[L-1]*R;S(-U,L,o)}}}function C(A){var D=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),I=0;I0?S(M,0,I+1):S(-M,o-I-1,o),A-=M,A<=0)return}return u}function VE(r,e,t,i){return kE(r,"x","width",e,t,i)}function Od(r,e,t,i){return kE(r,"y","height",e,t,i)}function kd(r){var e=[];r.sort(function(d,m){return m.priority-d.priority});var t=new rt(0,0,0,0);function i(d){if(!d.ignore){var m=d.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&i.attr(n.oldLayoutSelect),nt(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),_t(i,u,t,l)}else if(i.attr(u),!on(i).valueAnimation){var p=at(i.style.opacity,1);i.style.opacity=0,Ut(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var h=n.oldLayoutSelect={};Vd(h,u,Ud),Vd(h,i.states.select,Ud)}if(i.states.emphasis){var v=n.oldLayoutEmphasis={};Vd(v,u,Ud),Vd(v,i.states.emphasis,Ud)}gv(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=FW(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),_t(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Ut(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}(),BE=GW;var p_=ot();function c_(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=p_(t).labelManager;a||(a=p_(t).labelManager=new BE),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=p_(t).labelManager;i.updatedSeries.forEach(function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var h_=Math.sin,v_=Math.cos,FE=Math.PI,As=Math.PI*2,HW=180/FE,WW=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=ga(p-As)||(f?u>=As:-u>=As),h=u>0?u%As:u%As+As,v=!1;c?v=!0:ga(p)?v=!1:v=h>=FE==!!f;var d=e+i*v_(o),m=t+a*h_(o);this._start&&this._add("M",d,m);var g=Math.round(n*HW);if(c){var y=1/this._p,x=(f?1:-1)*(As-y);this._add("A",i,a,g,1,+f,e+i*v_(o+x),t+a*h_(o+x)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var _=e+i*v_(s),b=t+a*h_(s);this._add("A",i,a,g,+v,+f,_,b)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c"}function KW(r){return""}function Kp(r,e){e=e||{};var t=e.newline?` `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return jW(o,s)+(o!=="style"?Je(l):l||"")+(n?""+t+k(n,function(u){return i(u)}).join(t)+t:"")+KW(o)}return i(r)}function YE(r,e,t){t=t||{};var i=t.newline?` `:"",a=" {"+i,n=i+"}",o=k(ft(r),function(l){return l+a+k(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=k(ft(e),function(l){return"@keyframes "+l+a+k(ft(e[l]),function(u){return u+a+k(ft(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":[""].join(i)}function Qp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function x_(r,e,t,i){return Pe("svg","root",{width:r,height:e,xmlns:GE,"xmlns:xlink":g_,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var QW=0;function Gd(){return QW++}var ZE={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"},Ds="transform-origin";function $W(r,e,t){var i=N({},r.shape);N(i,e),r.buildPath(t,i);var a=new Bd;return a.reset(Ih(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function JW(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Ds]=t+"px "+i+"px")}var t6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qE(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function e6(r,e,t){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=Qp(t.zrId);u.animation=!0,$p(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=ft(f),h=c.length;if(h){o=c[h-1];var v=f[o];for(var d in v){var m=v[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=qE(a,t);return n.replace(o,s)}}function XE(r){return F(r)?ZE[r]?"cubic-bezier("+ZE[r]+")":Rl(r)?r:"":""}function $p(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof iu){var s=e6(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var Et=qE(T,t);return Et+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+Gd();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function KE(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};jE(i,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.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=Ef(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),jE(i,e,t,!0)}}function jE(r,e,t,i){var a=JSON.stringify(r),n=t.cssStyleCache[a];n||(n=t.zrId+"-cls-"+Gd(),t.cssStyleCache[a]=n,t.cssNodes["."+n+(i?":hover":"")]=r),e.class=e.class?e.class+" "+n:n}var Jp=Math.round;function t2(r){return r&&F(r.src)}function e2(r){return r&&X(r.toDataURL)}function __(r,e,t,i){m_(function(a,n){var o=a==="fill"||a==="stroke";o&&Mh(n)?T_(e,r,a,i):o&&Pf(n)?C_(t,r,a,i):o&&n==="none"?r[a]="transparent":r[a]=n},e,t,!1),l6(t,r,i)}function S_(r,e){var t=eA(e);t&&(t.each(function(i,a){i!=null&&(r[(y_+a).toLowerCase()]=i+"")}),e.isSilent()&&(r[y_+"silent"]="true"))}function QE(r){return ga(r[0]-1)&&ga(r[1])&&ga(r[2])&&ga(r[3]-1)}function r6(r){return ga(r[4])&&ga(r[5])}function b_(r,e,t){if(e&&!(r6(e)&&QE(e))){var i=t?10:1e4;r.transform=QE(e)?"translate("+Jp(e[4]*i)/i+" "+Jp(e[5]*i)/i+")":IC(e)}}function $E(r,e,t){for(var i=r.points,a=[],n=0;n"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";ne(c,m),ne(h,m)}else if(c==null||h==null){var g=function(D,M){if(D){var I=D.elm,L=c||M.width,P=h||M.height;D.tag==="pattern"&&(u?(P=1,L/=n.width):f&&(L=1,P/=n.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},y=Zf(v,null,r,function(D){l||g(S,D),g(p,D)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}p=Pe("image","img",{href:v,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(p=$(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){var x,_;l?x=_=1:u?(_=1,x=o.width/n.width):f?(x=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=Lh(a);b&&(o.patternTransform=b);var S=Pe("pattern","",o,[p]),T=Kp(S),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,S=i.defs[A]=Pe("pattern",A,o,[p])),e[t]=zf(A)}}function i2(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=Pe("clipPath",n,o,[r2(r,t)])}e["clip-path"]=zf(n)}function A_(r){return document.createTextNode(r)}function oo(r,e,t){r.insertBefore(e,t)}function D_(r,e){r.removeChild(e)}function M_(r,e){r.appendChild(e)}function I_(r){return r.parentNode}function L_(r){return r.nextSibling}function Hd(r,e){r.textContent=e}var a2=58,f6=120,p6=Pe("","");function E_(r){return r===void 0}function za(r){return r!==void 0}function c6(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function tc(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function ec(r){var e,t=r.children,i=r.tag;if(za(i)){var a=r.elm=Fd(i);if(Yd(p6,r),O(t))for(e=0;en?(v=t[l+1]==null?null:t[l+1].elm,n2(r,v,t,a,l)):Wd(r,e,i,n))}function Du(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Yd(r,e),E_(e.text)?za(i)&&za(a)?i!==a&&h6(t,i,a):za(a)?(za(r.text)&&Hd(t,""),n2(t,null,a,0,a.length-1)):za(i)?Wd(t,i,0,i.length-1):za(r.text)&&Hd(t,""):r.text!==e.text&&(za(i)&&Wd(t,i,0,i.length-1),Hd(t,e.text)))}function P_(r,e){if(tc(r,e))Du(r,e);else{var t=r.elm,i=I_(t);ec(e),i!==null&&(oo(i,e.elm,L_(t)),Wd(i,[r],0,0))}return e}var v6=0,d6=function(){function r(e,t,i){if(this.type="svg",this.refreshHover=o2("refreshHover"),this.configLayer=o2("configLayer"),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+v6++,this._oldVNode=x_(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Fd("svg");Yd(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",P_(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return w_(e,Qp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=Qp(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=m6(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=Pe("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=k(ft(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(Pe("defs","defs",{},u)),e.animation){var f=YE(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=Pe("style","stl",{},[],f);o.push(p)}}return x_(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Kp(this.renderToVNode({animation:at(e.cssAnimation,!0),emphasis:at(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:at(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g=s)}}for(var p=this.__startIndex;p15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var D=h.dpr,M=0;M0&&e>a[0]){for(l=0;le);l++);s=i[a[l]]}if(a.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,a=0;a0?Xd:0),this._needsManuallyCompositing),f.__builtin__||Io("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),a.__dirty&Ve&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(p,c){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,w(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?lt(i[e],t,!0):i[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Rt),p2=b6;function sa(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=pn(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o=0&&i.push(e[n])}return i.join(" ")}var w6=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o){this.removeAll();var s=Xt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=T6,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){cr(this.childAt(0))},e.prototype.downplay=function(){hr(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,p)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(h):_t(c,h,s,i),Oe(c)}if(this._updateCommon(t,i,l,a,n),u){var c=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Ut(c,h,s,i)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,h,v,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,h=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,v=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),h=x.get("blurScope"),v=x.get("disabled"),d=Kt(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=ui(t.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),T=S.fill;if(s instanceof re){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(i,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ee(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:T,defaultOpacity:S.opacity});function I(z){return M?t.getName(z):sa(t,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Vt(this,c,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=tt(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Ti(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Ti(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return ea(t.getItemVisual(i,"symbolSize"))},e}(K);function T6(r,e){this.parent.drift(r,e)}var vn=w6;function N_(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function c2(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function h2(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Kt(e),cursorStyle:e.get("cursor")}}var C6=function(){function r(e){this.group=new K,this._SymbolCtor=e||vn}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=c2(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=h2(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);if(N_(e,c,p,t)){var h=new o(e,p,l,u);h.setPosition(c),e.setItemGraphicEl(p,h),i.add(h)}}).update(function(p,c){var h=n.getItemGraphicEl(c),v=f(p);if(!N_(e,v,p,t)){i.remove(h);return}var d=e.getItemVisual(p,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,p,l,u),h.setPosition(v);else{h.updateData(e,p,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):_t(h,g,a)}i.add(h),e.setItemGraphicEl(p,h)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,a){var n=e._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h2(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=c2(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=i[0]:i[1]<0&&(t=i[1]),t}function Kd(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function D6(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function O_(r,e,t,i,a,n,o,s){for(var l=D6(r,e),u=[],f=[],p=[],c=[],h=[],v=[],d=[],m=jd(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x=a||d<0)break;if(Is(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){d+=n;continue}if(o>0){for(var b=d+n,S=e[b*2],T=e[b*2+1];S===g&&T===y&&m=i||Is(S,T))h=g,v=y;else{D=S-u,M=T-f;var P=g-u,z=S-g,R=y-f,U=T-y,V=void 0,B=void 0;if(s==="x"){V=Math.abs(P),B=Math.abs(z);var Z=D>0?1:-1;h=g-Z*V*o,v=y,I=g+Z*B*o,L=y}else if(s==="y"){V=Math.abs(R),B=Math.abs(U);var Q=M>0?1:-1;h=g,v=y-Q*V*o,I=g,L=y+Q*B*o}else V=Math.sqrt(P*P+R*R),B=Math.sqrt(z*z+U*U),A=B/(B+V),h=g-D*o*(1-A),v=y-M*o*(1-A),I=g+D*o*A,L=y+M*o*A,I=so(I,lo(S,g)),L=so(L,lo(T,y)),I=lo(I,so(S,g)),L=lo(L,so(T,y)),D=I-g,M=L-y,h=g-D*V/B,v=y-M*V/B,h=so(h,lo(u,g)),v=so(v,lo(f,y)),h=lo(h,so(u,g)),v=lo(v,so(f,y)),D=g-h,M=y-v,I=g+D*B/V,L=y+M*B/V}r.bezierCurveTo(p,c,h,v,g,y),p=I,c=L}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var v2=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),d2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new v2},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Is(a[o*2-2],a[o*2-1]);o--);for(;n=0){var _=u?(v-l)*x+l:(h-s)*x+s;return u?[t,_]:[_,t]}s=h,l=v;break;case o.C:h=n[p++],v=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var b=u?Vo(s,h,d,g,t,f):Vo(l,v,m,y,t,f);if(b>0)for(var S=0;S=0){var _=u?ye(l,v,m,y,T):ye(s,h,d,g,T);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e}(it);var M6=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(v2),Qd=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new M6},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Is(a[s*2-2],a[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function E6(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=k(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=L6(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var v=10,d=c[0].coord-v,m=c[h-1].coord+v,g=m-d;if(g<.001)return"transparent";w(c,function(x){x.offset=(x.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var y=new Aa(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function P6(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&z6(n,e))){var o=e.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function z6(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;oi)return!1;return!0}function R6(r,e){return isNaN(r)||isNaN(e)}function N6(r){for(var e=r.length/2;e>0&&R6(r[e*2-2],r[e*2-1]);e--);return e-1}function _2(r,e){return[r[e*2],r[e*2+1]]}function O6(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function S2(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Z=d.getState("emphasis").style;Z.lineWidth=+d.style.lineWidth+1}tt(d).seriesIndex=t.seriesIndex,Vt(d,U,V,B);var Q=x2(t.get("smooth")),st=t.get("smoothMonotone");if(d.setShape({smooth:Q,smoothMonotone:st,connectNulls:C}),m){var ct=l.getCalculationInfo("stackedOnSeries"),pt=0;m.useStyle(q(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ct&&(pt=x2(ct.get("smooth"))),m.setShape({smooth:Q,stackedOnSmooth:pt,smoothMonotone:st,connectNulls:C}),se(m,t,"areaStyle"),tt(m).seriesIndex=t.seriesIndex,Vt(m,U,V,B)}var Lt=function(Bt){n._changePolyState(Bt)};l.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=Lt)}),this._polyline.onHoverStateChange=Lt,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=p,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,i){tt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,a,n){var o=t.getData(),s=Si(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 f=l[s*2],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new vn(o,s),u.x=f,u.y=p,u.setZ(c,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else It.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=Si(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 It.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;os(this._polyline,t),i&&os(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new d2({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Qd({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=X(p)?p(null):p;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,x=void 0;if(a)if(o){var _=a,b=i.pointToCoord(m);n?(g=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(g=_.r0,y=_.r,x=b[0])}else{var S=a;n?(g=S.x,y=S.x+S.width,x=h.x):(g=S.y+S.height,y=S.y,x=h.y)}var T=y===g?0:(x-g)/(y-g);l&&(T=1-T);var C=X(p)?p(v):f*T+c,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(S2(t)){var o=t.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 yt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=N6(l);f>=0&&(ee(s,Kt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,h){return h!=null?qd(o,h):sa(o,p)},enableTextSetter:!0},k6(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=i.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,b=(g?d:0)*(y?-1:1),S=(g?0:-d)*(y?-1:1),T=g?"x":"y",C=O6(p,_,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!h){var I=_2(p,A[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(M=c.getRawValue(A[0]))}else{var I=f.getPointOn(_,T);I&&u.attr({x:I[0]+b,y:I[1]+S});var L=c.getRawValue(A[0]),P=c.getRawValue(A[1]);o&&(M=Hh(a,v,L,P,C.t))}n.lastFrameIndex=A[0]}else{var z=t===1||n.lastFrameIndex>0?A[0]:0,I=_2(p,z);o&&(M=c.getRawValue(z)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var R=on(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=O_(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),h=c.current,v=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=uo(c.current,a,o,l),v=uo(c.stackedOnCurrent,a,o,l),d=uo(c.next,a,o,l),m=uo(c.stackedOnNext,a,o,l)),y2(h,d)>3e3||f&&y2(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),u.stopAnimation(),_t(u,g,p),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),_t(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=c.status,_=0;_e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;te&&(e=n,t=a)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},B6=function(r){return Math.round(r.length/2)};function rc(r){return{seriesType:r,reset:function(e,t,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),h=Math.round(s/c);if(isFinite(h)&&h>1){n==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;F(n)?v=U6[n]:X(n)&&(v=n),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,v,B6))}}}}}function F_(r){r.registerChartView(b2),r.registerSeriesModel(p2),r.registerLayout(la("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rc("line"))}var w2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)w(n.getAxes(),function(c,h){if(c.type==="category"&&i!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;bm){x=(S+y)/2;break}b===1&&(_=T-v[0].tickValue)}x==null&&(y?y&&(x=v[v.length-1].coord):x=v[0].coord),s[h]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Rt);Rt.registerClass(w2);var Mu=w2;var F6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ke(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mr(Mu.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}),e}(Mu),T2=F6;var G6=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}(),H6=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new G6},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,p=i.endAngle,c=i.clockwise,h=Math.PI*2,v=c?p-fMath.PI/2&&fs)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){en(n,t,tt(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(It),D2={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,n=r.y+r.height,o=G_(e.x,r.x),s=H_(e.x+e.width,a),l=G_(e.y,r.y),u=H_(e.y+e.height,n),f=sa?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var a=H_(e.r,r.r),n=G_(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},M2={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new ht({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Iu:we,f=new u({shape:i,z2:1});f.name="item";var p=O2(a);if(f.calculateTextPosition=C2(p,{isRoundCap:u===Iu}),n){var c=f.shape,h=a?"r":"endAngle",v={};c[h]=a?i.r0:i.startAngle,v[h]=i[h],(s?_t:Ut)(f,{shape:v},n)}return f}};function Z6(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function I2(r,e,t,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?_t:Ut)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?_t:Ut)(t,{shape:u},f,a)}function L2(r,e){for(var t=0;t0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function j6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function O2(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function P2(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=Oa(i.getModel("itemStyle"),f,!0);N(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Kt(i);ee(r,v,{labelFetcher:n,labelDataIndex:t,defaultText:sa(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,A2(r,m==="outside"?h:m,O2(o),i.get(["label","rotate"]))}mv(d,v,n.getRawValue(t),function(y){return qd(e,y)});var g=i.getModel(["emphasis"]);Vt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),se(r,i),j6(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function K6(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var Q6=function(){function r(){}return r}(),z2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Q6},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function $6(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function k2(r,e,t){if(Pi(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function J6(r,e,t){var i=r.type==="polar"?we:ht;return new i({shape:k2(e,t,r),silent:!0,z2:0})}var V2=Y6;function W_(r){r.registerChartView(V2),r.registerSeriesModel(T2),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(Sd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rc("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var U2=Math.PI*2,em=Math.PI/180;function B2(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Y_(r,e){var t=B2(r,e),i=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var n=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(n,o),l=H(a[0],s/2),u=H(a[1],s/2),f,p,c=r.coordinateSystem;if(c){var h=c.dataToPoint(i);f=h[0]||0,p=h[1]||0}else O(i)||(i=[i,i]),f=H(i[0],n)+t.x,p=H(i[1],o)+t.y;return{cx:f,cy:p,r0:l,r:u}}function Z_(r,e,t){e.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=B2(i,t),s=Y_(i,t),l=s.cx,u=s.cy,f=s.r,p=s.r0,c=-i.get("startAngle")*em,h=i.get("endAngle"),v=i.get("padAngle")*em;h=h==="auto"?c-U2:-h*em;var d=i.get("minAngle")*em,m=d+v,g=0;a.each(n,function(R){!isNaN(R)&&g++});var y=a.getSum(n),x=Math.PI/(y||g)*2,_=i.get("clockwise"),b=i.get("roseType"),S=i.get("stillShowZeroSum"),T=a.getDataExtent(n);T[0]=0;var C=_?1:-1,A=[c,h],D=C*v/2;qf(A,!_),c=A[0],h=A[1];var M=Math.abs(h-c),I=M,L=0,P=c;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(R,U){var V;if(isNaN(R)){a.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:p,r:b?NaN:f});return}b!=="area"?V=y===0&&S?x:R*x:V=M/g,VV?(Z=P+C*V/2,Q=Z):(Z=P+D,Q=B-D),a.setItemLayout(U,{angle:V,startAngle:Z,endAngle:Q,clockwise:_,cx:l,cy:u,r0:p,r:b?kt(R,T,[p,f]):f}),P=B}),It?g:m,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*a,T=i+x.len,C=Math.abs(S)r.unconstrainedWidth?null:h:null;i.setStyle("width",v)}var d=i.getBoundingRect();n.width=d.width;var m=(i.style.margin||0)+2.1;n.height=d.height+m,n.y-=(n.height-p)/2}}}function X_(r){return r.position==="center"}function q_(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*t7,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),C=T.shape,A=T.getTextContent(),D=T.getTextGuideLine(),M=e.getItemModel(S),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),z=I.get("alignTo"),R=H(I.get("edgeDistance"),u),U=I.get("bleedMargin"),V=M.getModel("labelLine"),B=V.get("length");B=H(B,u);var Z=V.get("length2");if(Z=H(Z,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":st>0?"left":"right"}var _e=Math.PI,de=0,fr=I.get("rotate");if(vt(fr))de=fr*(_e/180);else if(L==="center")de=0;else if(fr==="radial"||fr===!0){var Ha=st<0?-Q+_e:-Q;de=Ha}else if(fr==="tangential"&&L!=="outside"&&L!=="outer"){var Ir=Math.atan2(st,ct);Ir<0&&(Ir=_e*2+Ir);var Bc=ct>0;Bc&&(Ir=_e+Ir),de=Ir-_e}if(n=!!de,A.x=pt,A.y=Lt,A.rotation=de,A.setStyle({verticalAlign:"middle"}),gt){A.setStyle({align:Et});var zg=A.states.select;zg&&(zg.x+=A.x,zg.y+=A.y)}else{var _n=A.getBoundingRect().clone();_n.applyTransform(A.getComputedTransform());var oT=(A.style.margin||0)+2.1;_n.y-=oT/2,_n.height+=oT,t.push({label:A,labelLine:D,position:L,len:B,len2:Z,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new bt(st,ct),linePoints:Bt,textAlign:Et,labelDistance:P,labelAlignTo:z,edgeDistance:R,bleedMargin:U,rect:_n,unconstrainedWidth:_n.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:gt})}}),!n&&r.get("avoidLabelOverlap")&&e7(t,i,a,l,u,c,f,p);for(var d=0;d0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p=n.r0}},e.type="pie",e}(It),H2=i7;function pi(r,e,t){e=O(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=ia(i,e).dimensions,n=new ve(a,r);return n.initData(i,t),n}var a7=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),ka=a7;var n7=ot(),o7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pi(this,{coordDimensions:["value"],encodeDefaulter:et(hu,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=n7(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=Ry(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ai(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Rt),W2=o7;function j_(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function K_(r){r.registerChartView(H2),r.registerSeriesModel(W2),rd("pie",r.registerAction),r.registerLayout(et(Z_,"pie")),r.registerProcessor(ua("pie")),r.registerProcessor(j_("pie"))}var s7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Rt),Y2=s7;var Z2=4,l7=function(){function r(){}return r}(),u7=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new l7},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,p=-1/0,c=0;c=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),X2=f7;var p7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=la("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new X2:new Ra,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(It),q2=p7;var c7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(xt),j2=c7;var rm=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$t).models[0]},e.type="cartesian2dAxis",e}(xt);jt(rm,La);var K2={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},h7=lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},K2),Q_=lt({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}}},K2),v7=lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Q_),d7=q({logBase:10},Q_),im={category:h7,value:Q_,time:v7,log:d7};var Q2={value:1,category:1,time:1,log:1};function fa(r,e,t,i){w(Q2,function(a,n){var o=lt(lt({},im[n],!0),i,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,p){var c=qn(this),h=c?Ai(f):{},v=p.getTheme();lt(f,v.get(n+"Axis")),lt(f,this.getDefaultOption()),f.type=$2(f),c&&Wr(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Gp.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",$2)}function $2(r){return r.type||(r.data?"category":"value")}var m7=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return k(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Dt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),J2=m7;var am=["x","y"];function tP(r){return r.type==="interval"||r.type==="time"}var g7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=am,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!tP(t)||!tP(i))){var a=t.getExtent(),n=i.getExtent(),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-n[0]*p,v=this._transform=[f,0,0,p,c,h];this._invTransform=mi([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ge(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var a=[];if(this._invTransform)return ge(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-n+t,l=Math.max(a[0],a[1])-o+t;return new rt(n,o,s,l)},e}(J2),eP=g7;var y7=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Qe),rP=y7;function ic(r,e,t){t=t||{};var i=r.coordinateSystem,a=e.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}n.position=[u==="y"?v[c[l]]:p[0],u==="x"?v[c[l]]:p[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=m[s],n.labelOffset=o?v[c[s]]-v[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ae(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-g:g,n.z2=1,n}function $_(r){return r.get("coordinateSystem")==="cartesian2d"}function J_(r){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,$t).models[0];e[i]=n}),e}var tS=Math.log;function nm(r,e,t){var i=jr.prototype,a=i.getTicks.call(t),n=i.getTicks.call(t,!0),o=a.length-1,s=i.getInterval.call(t),l=e_(r,e),u=l.extent,f=l.fixMin,p=l.fixMax;if(r.type==="log"){var c=tS(r.base);u=[tS(u[0])/c,tS(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:p});var h=i.getExtent.call(r);f&&(u[0]=h[0]),p&&(u[1]=h[1]);var v=i.getInterval.call(r),d=u[0],m=u[1];if(f&&p)v=(m-d)/o;else if(f)for(m=u[0]+v*o;mu[0]&&isFinite(d)&&isFinite(u[0]);)v=xd(v),d=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=xd(v));var y=v*o;m=Math.ceil(u[1]/v)*v,d=Qt(m-y),d<0&&u[0]>=0?(d=0,m=Qt(y)):m>0&&u[1]<=0&&(m=0,d=-Qt(y))}var x=(a[0].value-n[0].value)/s,_=(a[o].value-n[o].value)/s;if(i.setExtent.call(r,d+v*x,m+v*_),i.setInterval.call(r,v),(x||_)&&i.setNiceExtent.call(r,d+v,m-v),0)var b}var x7=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=am,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=ft(o),u=l.length;if(u){for(var f=[],p=u-1;p>=0;p--){var c=+l[p],h=o[c],v=h.model,d=h.scale;Hp(d)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Ia(d,v),Hp(d)&&(s=h))}f.length&&(s||(s=f.pop(),Ia(s.scale,s.model)),w(f,function(m){nm(m.scale,m.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){aP(i,"y",o,n)}),w(i.y,function(o){aP(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=e.getBoxLayoutParams(),n=!i&&e.get("containLabel"),o=Zt(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=mE(u);if(f){var p=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[p]-=f[p]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),p=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(p[c],p[1-c]),_7(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a0?"top":"bottom",n="center"):qa(a-fo)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),sP={axisLine:function(r,e,t,i){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=e.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(ge(s,s,o),ge(l,l,o));var f=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new fe({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});rn(p.shape,p.style.lineWidth),p.anid="line",t.add(p);var c=e.get(["axisLine","symbol"]);if(c!=null){var h=e.get(["axisLine","symbolSize"]);F(c)&&(c=[c,c]),(F(h)||vt(h))&&(h=[h,h]);var v=ui(e.get(["axisLine","symbolOffset"])||0,h),d=h[0],m=h[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var x=Xt(c[y],-d/2,-m/2,d,m,f.stroke,!0),_=g.r+g.offset,b=u?l:s;x.attr({rotation:g.rotate,x:b[0]+_*Math.cos(r.rotation),y:b[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,i){var a=w7(t,i,e,r),n=C7(t,i,e,r);if(b7(e,n,a),T7(t,i,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Nd(k(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));kd(o)}},axisName:function(r,e,t,i){var a=ae(r.axisName,e.get("name"));if(a){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,p=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,uP(n)?r.labelOffset+o*l:0],c,h=e.get("nameRotate");h!=null&&(h=h*fo/180);var v;uP(n)?c=Ls.innerTextLayout(r.rotation,h??r.rotation,o):(c=S7(r.rotation,n,h||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=s.getFont(),m=e.get("nameTruncate",!0)||{},g=m.ellipsis,y=ae(r.nameTruncateMaxWidth,m.maxWidth,v),x=new yt({x:p[0],y:p[1],rotation:c.rotation,silent:Ls.isLabelSilent(e),style:Ht(s,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(ji({el:x,componentModel:e,itemName:a}),x.__fullText=a,x.anid="name",e.get("triggerEvent")){var _=Ls.makeAxisEventDataBase(e);_.targetType="axisName",_.name=a,tt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function S7(r,e,t,i){var a=Ff(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return qa(a-fo/2)?(o=l?"bottom":"top",n="center"):qa(a-fo*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",afo/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function b7(r,e,t){if(!Ld(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],p=t[t.length-1],c=t[t.length-2];i===!1?(zi(n),zi(u)):lP(n,o)&&(i?(zi(o),zi(f)):(zi(n),zi(u))),a===!1?(zi(s),zi(p)):lP(l,s)&&(a?(zi(l),zi(c)):(zi(s),zi(p)))}}function zi(r){r&&(r.ignore=!0)}function lP(r,e){var t=r&&r.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var a=Ln([]);return Rr(a,a,-r.rotation),t.applyTransform(zr([],a,r.getLocalTransform())),i.applyTransform(zr([],a,e.getLocalTransform())),t.intersect(i)}}function uP(r){return r==="middle"||r==="center"}function fP(r,e,t,i,a){for(var n=[],o=[],s=[],l=0;l=0||r===e}function cP(r){var e=om(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=iS(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=l;v.color!=null&&(d=q({color:v.color},l));var m=lt($(v),{boundaryGap:t,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:p,nameTextStyle:d,triggerEvent:c},!1);if(F(f)){var g=m.name;m.name=f.replace("{value}",g??"")}else X(f)&&(m.name=f(m.name,m));var y=new zt(m,null,this.ecModel);return jt(y,La.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:lt({lineStyle:{color:"#bbb"}},ac.axisLine),axisLabel:fm(ac.axisLabel,!1),axisTick:fm(ac.axisTick,!1),splitLine:fm(ac.splitLine,!0),splitArea:fm(ac.splitArea,!0),indicator:[]},e}(xt),bP=k7;var V7=["axisLine","axisTickLabel","axisName"],U7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes(),n=k(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ur(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(n,function(o){w(V7,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),h=u.get("color"),v=O(c)?c:[c],d=O(h)?h:[h],m=[],g=[];function y(z,R,U){var V=U%R.length;return z[V]=z[V]||[],V}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,b=i.cy,S=0;S3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;hS(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);hS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!pS(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:1/1.1;hS(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ne);function hS(r,e,t,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Pr(i.event),EP(r,e,t,i,a))}function EP(r,e,t,i,a){a.isAvailableBehavior=W(pm,null,t,i),r.trigger(e,a)}function pm(r,e,t){var i=t[r];return!r||i&&(!F(i)||e.event[i+"Key"])}var Va=G7;function Eu(r,e,t){var i=r.target;i.x+=e,i.y+=t,i.dirty()}function Pu(r,e,t,i){var a=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,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,a.x-=(t-a.x)*(u-1),a.y-=(i-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var H7={axisPointer:1,tooltip:1,brush:1};function po(r,e,t){var i=e.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==t&&!H7.hasOwnProperty(i.mainType)&&a&&a.model!==t}function cm(r){if(F(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var dS,hm={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"},PP=ft(hm),vm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zP=ft(vm),W7=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=cm(e);this._defsUsePending=[];var a=new K;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ci(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;X7(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=dm(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(p=gS(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new K,a.add(h),h.scaleX=h.scaleY=p.scale,h.x=p.x,h.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new ht({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=dS[s];if(f&&J(dS,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=RP[s];if(h&&J(RP,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new Ka({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),Y7(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){dS={g:function(e,t){var i=new K;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new ht;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new _r;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new fe;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new rp;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=kP(i));var n=new he({shape:{points:a||[]},silent:!0});return Ri(t,n),ci(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=kP(i));var n=new pe({shape:{points:a||[]},silent:!0});return Ri(t,n),ci(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new re;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new K;return Ri(t,s),ci(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new K;return Ri(t,s),ci(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=ov(i);return Ri(t,a),ci(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),RP={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new Aa(e,t,i,a);return NP(r,n),OP(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new fv(e,t,i);return NP(r,a),OP(r,a),a}};function NP(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function OP(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};BP(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ri(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function kP(r){for(var e=dm(r),t=[],i=0;i0;n-=2){var o=i[n],s=i[n-1],l=dm(o);switch(a=a||Me(),s){case"translate":tr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pl(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Rr(a,a,-parseFloat(l[0])*mS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*mS);zr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*mS);zr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var UP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function BP(r,e,t){var i=r.getAttribute("style");if(i){UP.lastIndex=0;for(var a;(a=UP.exec(i))!=null;){var n=a[1],o=J(hm,n)?hm[n]:null;o&&(e[o]=a[2]);var s=J(vm,n)?vm[n]:null;s&&(t[s]=a[2])}}}function Q7(r,e,t){for(var i=0;i0,m={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Y(),i=Y(),a=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,v){return v&&(h=v(h)),h&&[h[0]*n.scaleX+n.x,h[1]*n.scaleY+n.y]}function p(h){for(var v=[],d=!u&&l&&l.project,m=0;m=0)&&(c=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ee(e,Kt(i),{labelFetcher:c,labelDataIndex:p,defaultText:t},h);var v=e.getTextContent();if(v&&($P(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function qP(r,e,t,i,a,n){r.data?r.data.setItemGraphicEl(n,e):tt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:i&&i.option||{}}}function jP(r,e,t,i,a){r.data||ji({el:e,componentModel:a,itemName:t,itemTooltipOption:i.get("tooltip")})}function KP(r,e,t,i,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return Vt(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&TD(e,a,t),o}function QP(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Rt),tz=p8;function c8(r,e){var t={};return w(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f1?(_.width=x,_.height=x/m):(_.height=x,_.width=x*m),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var b=r.getBoxLayoutParams();b.aspect=m,_=Zt(b,{width:v,height:d})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function d8(r,e){w(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var m8=function(){function r(){this.dimensions=CS}return r.prototype.create=function(e,t){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new AS(l+s,l,N({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=nz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),w(n,function(o,s){var l=k(o,function(f){return f.get("nameMap")}),u=new AS(s,s,N({nameMap:Cl(l)},a(o[0])));u.zoomLimit=ae.apply(null,k(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=nz,u.resize(o[0],t),w(o,function(f){f.coordinateSystem=u,d8(u,f)})}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=Y(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function fz(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){S8(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=b8(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function pz(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function LS(r){return arguments.length?r:C8}function zs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function cz(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S8(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function b8(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=MS(s),n=IS(n),s&&n;){a=MS(a),o=IS(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(T8(w8(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!MS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!IS(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function MS(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function IS(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function w8(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function T8(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function C8(r,e){return r.parentNode===e.parentNode?1:2}var A8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),D8=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new A8},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=H(i.forkPosition,1),h=[];h[f]=o[f],h[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var v=1;vy.x,b||(_=_-Math.PI));var T=b?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:C.get("position")||T,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Eo(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(tt(t).focus=L),I8(a,o,f,t,v,h,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var z=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);z&&z.hoverState===ns||os(t.__edge,P)}})}function I8(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new us({shape:ES(f,p,c,a,a)})),_t(d,{shape:ES(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;yt&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t=0){var i=t.getData().tree.root,a=r.targetNode;if(F(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function zS(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Nu(r,e){var t=zS(r);return nt(t,e)>=0}function ho(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var B8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new zt(a,this,this.ecModel),o=Ru.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=ho(a,this),i.collapsed=!a.isExpand,i},e.type="series.tree",e.layoutMode="box",e.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},e}(Rt),_z=B8;function Sz(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(a[n])}}function NS(r,e){r.eachSeriesByType("tree",function(t){F8(t,e)})}function F8(r,e){var t=cz(r,e);r.layoutInfo=t;var i=r.get("layout"),a=0,n=0,o=null;i==="radial"?(a=2*Math.PI,n=Math.min(t.height,t.width)/2,o=LS(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(a=t.width,n=t.height,o=LS());var s=r.getData().tree.root,l=s.children[0];if(l){uz(s),Sz(l,fz,o),s.hierNode.modifier=-l.hierNode.prelim,Ou(l,pz);var u=l,f=l,p=l;Ou(l,function(x){var _=x.getLayout().x;_f.getLayout().x&&(f=x),x.depth>p.depth&&(p=x)});var c=u===f?1:o(u,f)/2,h=c-u.getLayout().x,v=0,d=0,m=0,g=0;if(i==="radial")v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Ou(l,function(x){m=(x.getLayout().x+h)*v,g=(x.depth-1)*d;var _=zs(m,g);x.setLayout({x:_.x,y:_.y,rawX:m,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=n/(f.getLayout().x+c+h),v=a/(p.depth-1||1),Ou(l,function(x){g=(x.getLayout().x+h)*d,m=y==="LR"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:m,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Ou(l,function(x){m=(x.getLayout().x+h)*v,g=y==="TB"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:m,y:g},!0)}))}}}function OS(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");N(s,o)})})}function bz(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=a.coordinateSystem,o=zu(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function kS(r){r.registerChartView(yz),r.registerSeriesModel(_z),r.registerLayout(NS),r.registerVisual(OS),bz(r)}var wz=["treemapZoomToNode","treemapRender","treemapMove"];function Tz(r){for(var e=0;e1;)n=n.parentNode;var o=gp(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var G8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};Cz(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new zt({itemStyle:o},this,i);n=t.levels=H8(n,i);var l=k(n||[],function(p){return new zt(p,s,i)},this),u=Ru.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,h){var v=u.getNodeByDataIndex(h),d=v?l[v.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ie("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=ho(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},N(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Y(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){sc(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",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)",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:[]},e}(Rt);function Cz(r){var e=0;w(r.children,function(i){Cz(i);var a=i.value;O(a)&&(a=a[0]),e+=a});var t=r.value;O(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),O(r.value)?r.value[0]=t:r.value=t}function H8(r,e){var t=Nt(e.get("color")),i=Nt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;w(r,function(s){var l=new zt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var Az=G8;var W8=8,Dz=8,VS=5,Y8=function(){function r(e){this.group=new K,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,p,u),this._renderContent(e,p,s,l,u,f,a),Xn(o,p.pos,p.box)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=le(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+W8*2,t.emptyItemWidth);t.totalWidth+=s+Dz,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),p=MM(t.pos,t.box),c=t.totalWidth,h=t.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var m=h[d],g=m.node,y=m.width,x=m.text;c>p.width&&(c-=y-u,y=u,x=null);var _=new he({shape:{points:Z8(l,0,y,f,d===h.length-1,d===0)},style:q(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new yt({style:Ht(n,{text:x})}),textConfig:{position:"inside"},z2:Qa*1e4,onclick:et(s,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ht(o,{text:x}),_.ensureState("emphasis").style=v,Vt(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),X8(_,e,g),l+=y+Dz}},r.prototype.remove=function(){this.group.removeAll()},r}();function Z8(r,e,t,i,a,n){var o=[[a?r:r-VS,e],[r+t,e],[r+t,e+i],[a?r:r-VS,e+i]];return!n&&o.splice(2,0,[r+t+VS,e+i/2]),!a&&o.push([r,e+i/2]),o}function X8(r,e,t){tt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ho(t,e)}}var Mz=Y8;var q8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;aEz||Math.abs(t.dy)>Ez)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;i-=l.x,a-=l.y;var u=Me();tr(u,u,[-i,-a]),Pl(u,u,[t.scale,t.scale]),tr(u,u,[i,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&gs(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mz(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(Nu(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=lc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,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(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(It);function lc(){return{nodeGroup:[],background:[],content:[]}}function tY(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,v=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=f.upperHeight,b=x&&x.length,S=c.getModel("itemStyle"),T=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),A=c.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=pt("nodeGroup",US);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),_m(M).nodeWidth=h,_m(M).nodeHeight=v,f.isAboveViewRoot)return M;var I=pt("background",Lz,u,Q8);I&&B(M,I,b&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),z=L.get("blurScope"),R=L.get("disabled"),U=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Zn(M)&&Ja(M,!1),I&&(Ja(I,!R),p.setItemGraphicEl(o.dataIndex,I),ev(I,U,z));else{var V=pt("content",Lz,u,$8);V&&Z(M,V),I.disableMorphing=!0,I&&Zn(I)&&Ja(I,!1),Ja(M,!R),p.setItemGraphicEl(o.dataIndex,M),ev(M,U,z)}return M;function B(Et,gt,Pt){var Ct=tt(gt);if(Ct.dataIndex=o.dataIndex,Ct.seriesIndex=r.seriesIndex,gt.setShape({x:0,y:0,width:h,height:v,r:D}),m)Q(gt);else{gt.invisible=!1;var ut=o.getVisual("style"),At=ut.stroke,ce=Rz(S);ce.fill=At;var Yt=Rs(T);Yt.fill=T.get("borderColor");var _e=Rs(C);_e.fill=C.get("borderColor");var de=Rs(A);if(de.fill=A.get("borderColor"),Pt){var fr=h-2*d;st(gt,At,ut.opacity,{x:d,y:0,width:fr,height:_})}else gt.removeTextContent();gt.setStyle(ce),gt.ensureState("emphasis").style=Yt,gt.ensureState("blur").style=_e,gt.ensureState("select").style=de,Yi(gt)}Et.add(gt)}function Z(Et,gt){var Pt=tt(gt);Pt.dataIndex=o.dataIndex,Pt.seriesIndex=r.seriesIndex;var Ct=Math.max(h-2*d,0),ut=Math.max(v-2*d,0);if(gt.culling=!0,gt.setShape({x:d,y:d,width:Ct,height:ut,r:D}),m)Q(gt);else{gt.invisible=!1;var At=o.getVisual("style"),ce=At.fill,Yt=Rz(S);Yt.fill=ce,Yt.decal=At.decal;var _e=Rs(T),de=Rs(C),fr=Rs(A);st(gt,ce,At.opacity,null),gt.setStyle(Yt),gt.ensureState("emphasis").style=_e,gt.ensureState("blur").style=de,gt.ensureState("select").style=fr,Yi(gt)}Et.add(gt)}function Q(Et){!Et.invisible&&n.push(Et)}function st(Et,gt,Pt,Ct){var ut=c.getModel(Ct?zz:Pz),At=le(c.get("name"),null),ce=ut.getShallow("show");ee(Et,Kt(c,Ct?zz:Pz),{defaultText:ce?At:null,inheritColor:gt,defaultOpacity:Pt,labelFetcher:r,labelDataIndex:o.dataIndex});var Yt=Et.getTextContent();if(Yt){var _e=Yt.style,de=Al(_e.padding||0);Ct&&(Et.setTextConfig({layoutRect:Ct}),Yt.disableLabelLayout=!0),Yt.beforeUpdate=function(){var Ha=Math.max((Ct?Ct.width:Et.shape.width)-de[1]-de[3],0),Ir=Math.max((Ct?Ct.height:Et.shape.height)-de[0]-de[2],0);(_e.width!==Ha||_e.height!==Ir)&&Yt.setStyle({width:Ha,height:Ir})},_e.truncateMinChar=2,_e.lineOverflow="truncate",ct(_e,Ct,f);var fr=Yt.getState("emphasis");ct(fr?fr.style:null,Ct,f)}}function ct(Et,gt,Pt){var Ct=Et?Et.text:null;if(!gt&&Pt.isLeafRoot&&Ct!=null){var ut=r.get("drillDownIcon",!0);Et.text=ut?ut+" "+Ct:Ct}}function pt(Et,gt,Pt,Ct){var ut=y!=null&&t[Et][y],At=a[Et];return ut?(t[Et][y]=null,Lt(At,ut)):m||(ut=new gt,ut instanceof be&&(ut.z2=eY(Pt,Ct)),Bt(At,ut)),e[Et][g]=ut}function Lt(Et,gt){var Pt=Et[g]={};gt instanceof US?(Pt.oldX=gt.x,Pt.oldY=gt.y):Pt.oldShape=N({},gt.shape)}function Bt(Et,gt){var Pt=Et[g]={},Ct=o.parentNode,ut=gt instanceof K;if(Ct&&(!i||i.direction==="drillDown")){var At=0,ce=0,Yt=a.background[Ct.getRawIndex()];!i&&Yt&&Yt.oldShape&&(At=Yt.oldShape.width,ce=Yt.oldShape.height),ut?(Pt.oldX=0,Pt.oldY=ce):Pt.oldShape={x:At,y:ce,width:0,height:0}}Pt.fadein=!ut}}function eY(r,e){return r*K8+e}var Nz=J8;var pc=w,rY=j,wm=-1,HS=function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=$(e);this.type=i,this.mappingMethod=t,this._normalizeData=nY[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(BS(a),iY(a)):t==="category"?a.categories?aY(a):BS(a,!0):(ne(t!=="linear"||a.dataExtent),BS(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){j(e)?w(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=O(e)?[]:j(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&pc(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(O(e))e=e.slice();else if(rY(e)){var t=[];pc(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function BS(r,e){var t=r.visual,i=[];j(t)?pc(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),kz(r,i)}function Sm(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:FS([0,1])}}function Oz(r){var e=this.option.visual;return e[Math.round(kt(r,[0,1],[0,e.length-1],!0))]||{}}function uc(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function fc(r){var e=this.option.visual;return e[this.option.loop&&r!==wm?r%e.length:r]}function Ns(){return this.option.visual[0]}function FS(r){return{linear:function(e){return kt(e,r,this.option.visual,!0)},category:fc,piecewise:function(e,t){var i=GS.call(this,t);return i==null&&(i=kt(e,r,this.option.visual,!0)),i},fixed:Ns}}function GS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=HS.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function kz(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=k(e,function(t){var i=qe(t);return i||[0,0,0,1]})),e}var nY={linear:function(r){return kt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=HS.findPieceIndex(r,e,!0);if(t!=null)return kt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??wm},fixed:te};function bm(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var g=fY(a,l,d,m,v,i);Fz(d,g,t,i)}})}}}function sY(r,e,t){var i=N({},e),a=t.designatedVisualItemStyle;return w(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function Vz(r){var e=WS(r,"color");if(e){var t=WS(r,"colorAlpha"),i=WS(r,"colorSaturation");return i&&(e=Bo(e,null,null,i)),t&&(e=Fo(e,t)),e}}function lY(r,e){return e!=null?Bo(e,null,null,r):null}function WS(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function uY(r,e,t,i,a,n){if(!(!n||!n.length)){var o=YS(e,"color")||a.color!=null&&a.color!=="none"&&(YS(e,"colorAlpha")||YS(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new xe(p);return Uz(c).drColorMappingBy=f,c}}}function YS(r,e){var t=r.get(e);return O(t)&&t.length?{name:e,range:t}:null}function fY(r,e,t,i,a,n){var o=N({},e);if(a){var s=a.type,l=s==="color"&&Uz(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var cc=Math.max,Tm=Math.min,Gz=ae,ZS=w,Wz=["itemStyle","borderWidth"],pY=["itemStyle","gapWidth"],cY=["upperLabel","show"],hY=["upperLabel","height"],Yz={seriesType:"treemap",reset:function(r,e,t,i){var a=t.getWidth(),n=t.getHeight(),o=r.option,s=Zt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(Gz(s.width,l[0]),a),f=H(Gz(s.height,l[1]),n),p=i&&i.type,c=["treemapZoomToNode","treemapRootToNode"],h=mn(i,c,r),v=p==="treemapRender"||p==="treemapMove"?i.rootRect:null,d=r.getViewRoot(),m=zS(d);if(p!=="treemapMove"){var g=p==="treemapZoomToNode"?xY(r,h,d,u,f):v?[v.width,v.height]:[u,f],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),Zz(d,x,!1,0),_=d.getLayout(),ZS(m,function(S,T){var C=(m[T+1]||d).getValue();S.setLayout(N({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(_Y(s,v,h),!0),r.setLayoutInfo(s),Xz(b,new rt(-s.x,-s.y,a,n),m,d,0)}};function Zz(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(Wz),u=s.get(pY)/2,f=qz(s),p=Math.max(l,f),c=l-u,h=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=cc(a-2*c,0),n=cc(n-c-h,0);var v=a*n,d=vY(r,s,v,e,t,i);if(d.length){var m={x:c,y:h,width:a,height:n},g=Tm(a,n),y=1/0,x=[];x.area=0;for(var _=0,b=d.length;_=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function yY(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;ni&&(i=o));var l=r.area*r.area,u=e*e*t;return l?cc(u*i/l,l/(u*a)):1/0}function Hz(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;pBf&&(u=Bf),n=s}ui&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var T=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(_[1],_[0]);p[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*T+f[0],n.y=f[1]+A,v=_[0]<0?"right":"left",n.originX=-g*T,n.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=S[0],n.y=S[1]+A,v="center",n.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*T+p[0],n.y=p[1]+A,v=_[0]>=0?"right":"left",n.originX=g*T,n.originY=-A;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||v})}},e}(K),Bu=DY;var MY=function(){function r(e){this.group=new K,this._LineCtor=e||Bu}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=sR(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=sR(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!IY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function sR(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Kt(e)}}function lR(r){return isNaN(r[0])||isNaN(r[1])}function u1(r){return r&&!lR(r[0])&&!lR(r[1])}var Fu=MY;var f1=[],p1=[],c1=[],Gu=Se,h1=Ya,uR=Math.abs;function fR(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){f1[0]=Gu(i[0],a[0],n[0],f),f1[1]=Gu(i[1],a[1],n[1],f);var p=uR(h1(f1,e)-l);p=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function dc(r,e){var t=[],i=Rn,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[Lr(u[0]),Lr(u[1])],u[2]&&u.__original.push(Lr(u[2])));var c=u.__original;if(u[2]!=null){if(Ge(a[0],c[0]),Ge(a[1],c[2]),Ge(a[2],c[1]),f&&f!=="none"){var h=ks(s.node1),v=fR(a,c[0],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var h=ks(s.node2),v=fR(a,c[1],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Ge(u[0],a[0]),Ge(u[1],a[2]),Ge(u[2],a[1])}else{if(Ge(n[0],c[0]),Ge(n[1],c[1]),Fi(o,n[1],n[0]),vi(o,o),f&&f!=="none"){var h=ks(s.node1);_f(n[0],n[0],o,h*e)}if(p&&p!=="none"){var h=ks(s.node2);_f(n[1],n[1],o,-h*e)}Ge(u[0],n[0]),Ge(u[1],n[1])}})}function pR(r){return r.type==="view"}var LY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var a=new Ra,n=new Fu,o=this.group;this._controller=new Va(i.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(pR(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):_t(u,f,t)}dc(t.getGraph(),Os(t));var p=t.getData();s.updateData(p);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,i,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,v=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=t.get("layout");p.graph.eachNode(function(x){var _=x.dataIndex,b=x.getGraphicEl(),S=x.getModel();if(b){b.off("drag").off("dragend");var T=S.get("draggable");T&&b.on("drag",function(A){switch(d){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,v),h.setFixed(_),p.setItemLayout(_,[b.x,b.y]);break;case"circular":p.setItemLayout(_,[b.x,b.y]),x.setLayout({fixed:!0},!0),Vu(t,"symbolSize",x,[A.offsetX,A.offsetY]),n.updateLayout(t);break;case"none":default:p.setItemLayout(_,[b.x,b.y]),vc(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),b.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(tt(b).focus=x.getAdjacentDataIndices())}}),p.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(tt(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=p.getLayout("cx"),y=p.getLayout("cy");p.graph.eachNode(function(x){e1(x,m,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var a=this;(function n(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(i?a._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,i,a){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,p){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,p)&&!po(u,a,t)}),!pR(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Eu(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Pu(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),dc(t.getGraph(),Os(t)),n._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=Os(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){dc(t.getGraph(),Os(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(It),cR=LY;function Hu(r){return"_EC_"+r}var EY=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Hu(e)]){var a=new Vs(e,t);return a.hostGraph=this,this.nodes.push(a),i[Hu(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Hu(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(vt(e)&&(e=this.nodes[e]),vt(t)&&(t=this.nodes[t]),e instanceof Vs||(e=a[Hu(e)]),t instanceof Vs||(t=a[Hu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new hR(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Vs&&(e=e.id),t instanceof Vs&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Vs||(t=this._nodesMap[Hu(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}jt(Vs,vR("hostGraph","data"));jt(hR,vR("hostGraph","edgeData"));var dR=EY;function mc(r,e,t,i,a){for(var n=new dR(i),o=0;o "+c)),u++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=Ke(r,t);else{var d=un.get(h),m=d?d.dimensions||[]:[];nt(m,"value")<0&&m.concat(["value"]);var g=ia(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;v=new ve(g,t),v.initData(r)}var y=new ve(["value"],t);return y.initData(l,s),a&&a(v,y),xm({mainData:v,struct:n,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var PY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new ka(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ai(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){Qz(this);var s=mc(n,a,this,!0,l);return w(s.edges,function(u){$z(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,m=v.getShallow("category"),g=d[m];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var p=zt.prototype.getModel;function c(v,d){var m=p.call(this,v,d);return m.resolveParentPath=h,m}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ie("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=qv({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=k(this.option.categories||[],function(a){return a.value!=null?a:N({value:0},a)}),i=new ve(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(Rt),mR=PY;var zY={type:"graphRoam",event:"graphRoam",update:"none"};function v1(r){r.registerChartView(cR),r.registerSeriesModel(mR),r.registerProcessor(qS),r.registerVisual(jS),r.registerVisual(KS),r.registerLayout(JS),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,r1),r.registerLayout(i1),r.registerCoordinateSystem("graphView",{dimensions:dn.dimensions,create:a1}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},te),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},te),r.registerAction(zY,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(a){var n=a.coordinateSystem,o=zu(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var RY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),NY=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new RY},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e}(it),gR=NY;function OY(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Mm(r,e){var t=r==null?"":r+"";return e&&(F(e)?t=e.replace("{value}",t):X(e)&&(t=e(r))),t}var kY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=OY(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),h=c?Iu:we,v=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];qf(g,!l),u=g[0],f=g[1];for(var y=f-u,x=u,_=[],b=0;v&&b=A&&(D===0?0:n[D-1][0])Math.PI/2&&(pt+=Math.PI)):ct==="tangential"?pt=-C-Math.PI/2:vt(ct)&&(pt=ct*Math.PI/180),pt===0?p.add(new yt({style:Ht(x,{text:B,x:Q,y:st,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:Z}),silent:!0})):p.add(new yt({style:Ht(x,{text:B,x:Q,y:st,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:Q,originY:st,rotation:pt}))}if(y.get("show")&&R!==_){var U=y.get("distance");U=U?U+f:f;for(var Lt=0;Lt<=b;Lt++){P=Math.cos(C),z=Math.sin(C);var Bt=new fe({shape:{x1:P*(v-U)+c,y1:z*(v-U)+h,x2:P*(v-T-U)+c,y2:z*(v-T-U)+h},silent:!0,style:I});I.stroke==="auto"&&Bt.setStyle({stroke:n((R+Lt/b)/_)}),p.add(Bt),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),b=+t.get("max"),S=[_,b],T=[s,l];function C(D,M){var I=y.getItemModel(D),L=I.getModel("pointer"),P=H(L.get("width"),o.r),z=H(L.get("length"),o.r),R=t.get(["pointer","icon"]),U=L.get("offsetCenter"),V=H(U[0],o.r),B=H(U[1],o.r),Z=L.get("keepAspect"),Q;return R?Q=Xt(R,V-P/2,B-z,P,z,null,Z):Q=new gR({shape:{angle:-Math.PI/2,width:P,r:z,x:V,y:B}}),Q.rotation=-(M+Math.PI/2),Q.x=o.cx,Q.y=o.cy,Q}function A(D,M){var I=m.get("roundCap"),L=I?Iu:we,P=m.get("overlap"),z=P?m.get("width"):f/y.count(),R=P?o.r-z:o.r-(D+1)*z,U=P?o.r:o.r-D*z,V=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:U}});return P&&(V.z2=b-y.get(x,D)%b),V}(g||d)&&(y.diff(c).add(function(D){var M=y.get(x,D);if(d){var I=C(D,s);Ut(I,{rotation:-((isNaN(+M)?T[0]:kt(M,S,T,!0))+Math.PI/2)},t),p.add(I),y.setItemGraphicEl(D,I)}if(g){var L=A(D,s),P=m.get("clip");Ut(L,{shape:{endAngle:kt(M,S,T,P)}},t),p.add(L),Kf(t.seriesIndex,y.dataType,D,L),v[D]=L}}).update(function(D,M){var I=y.get(x,D);if(d){var L=c.getItemGraphicEl(M),P=L?L.rotation:s,z=C(D,P);z.rotation=P,_t(z,{rotation:-((isNaN(+I)?T[0]:kt(I,S,T,!0))+Math.PI/2)},t),p.add(z),y.setItemGraphicEl(D,z)}if(g){var R=h[M],U=R?R.shape.endAngle:s,V=A(D,U),B=m.get("clip");_t(V,{shape:{endAngle:kt(I,S,T,B)}},t),p.add(V),Kf(t.seriesIndex,y.dataType,D,V),v[D]=V}}).execute(),y.each(function(D){var M=y.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),z=I.get("disabled");if(d){var R=y.getItemGraphicEl(D),U=y.getItemVisual(D,"style"),V=U.fill;if(R instanceof re){var B=R.style;R.useStyle(N({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},U))}else R.useStyle(U),R.type!=="pointer"&&R.setColor(V);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",n(kt(y.get(x,D),S,[0,1],!0))),R.z2EmphasisLift=0,se(R,M),Vt(R,L,P,z)}if(g){var Z=v[D];Z.useStyle(y.getItemVisual(D,"style")),Z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),Z.z2EmphasisLift=0,se(Z,M),Vt(Z,L,P,z)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Xt(s,i.cx-o/2+H(l[0],i.r),i.cy-o/2+H(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new K,h=[],v=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new yt({silent:!0}),v[g]=new yt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),x=l.get(u,g),_=new K,b=n(kt(x,[f,p],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+H(T[0],o.r),A=o.cy+H(T[1],o.r),D=h[g];D.attr({z2:m?0:2,style:Ht(S,{x:C,y:A,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),z=H(M.get("width"),o.r),R=H(M.get("height"),o.r),U=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:b,D=v[g],V=M.get("formatter");D.attr({z2:m?0:2,style:Ht(M,{x:L,y:P,text:Mm(x,V),width:isNaN(z)?null:z,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:U})}),mv(D,{normal:M},x,function(Z){return Mm(Z,V)}),d&&gv(D,g,l,t,{getFormattedLabel:function(Z,Q,st,ct,pt,Lt){return Mm(Lt?Lt.interpolatedValue:x,V)}}),_.add(D)}c.add(_)}),this.group.add(c),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(It),yR=kY;var VY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return pi(this,["value"])},e.type="series.gauge",e.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}},e}(Rt),xR=VY;function d1(r){r.registerChartView(yR),r.registerSeriesModel(xR)}var UY=["itemStyle","opacity"],BY=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new pe,s=new yt;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(UY);f=f??1,a||Oe(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Ut(n,{style:{opacity:f}},o,i)):_t(n,{style:{opacity:f},shape:{points:l.points}},o,i),se(n,s),this._updateLabel(t,i),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;ee(o,Kt(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var h=f.linePoints;n.setShape({points:h}),a.textGuideLineConfig={anchor:h?new bt(h[0][0],h[0][1]):null},_t(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Cu(a,Au(l),{stroke:c})},e}(he),FY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new BY(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);en(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(It),_R=FY;var GY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return pi(this,{coordDimensions:["value"],encodeDefaulter:et(hu,this)})},e.prototype._defaultLabelLine=function(t){ai(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.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"}}},e}(Rt),SR=GY;function HY(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function WY(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();oi9)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_1(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function _1(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var MR=a9;var o9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&<(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=Dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);w(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(xt),IR=o9;var s9=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Qe),LR=s9;function Qr(r,e,t,i,a,n){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Wu(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Wu(s,[0,o]),a=n=Wu(s,[a,n]),i=0}e[0]=Wu(e[0],t),e[1]=Wu(e[1],t);var l=S1(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[i]=Wu(e[i],f);var p;return p=S1(e,i),a!=null&&(p.sign!==l.sign||p.spann&&(e[1-i]=e[i]+p.sign*n),e}function S1(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Wu(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var b1=w,zR=Math.min,RR=Math.max,ER=Math.floor,l9=Math.ceil,PR=Qt,u9=Math.PI,f9=function(){function r(e,t,i){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;b1(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new LR(o,no(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var a=i.getData();b1(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(a,a.mapDimension(n)),Ia(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Zt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Im(e.get("axisExpandWidth"),l),p=Im(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=Im(h[1]-h[0],l),h[1]=h[0]+v;else{v=Im(f*(p-1),l);var d=e.get("axisExpandCenter")||ER(u/2);h=[f*d-v/2],h[1]=h[0]+v}var m=(s-v)/(u-p);m<3&&(m=0);var g=[ER(PR(h[0]/f,1))+1,l9(PR(h[1]/f,1))-1],y=m/f*h[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),b1(i,function(o,s){var l=(a.axisExpandable?c9:p9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:u9/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],h=Me();Rr(h,h,c),tr(h,h,p),this._axesLayout[o]={position:p,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;fn*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Qr(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[RR(0,v-h/2)],a[1]=zR(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r}();function Im(r,e){return zR(RR(r,e[0]),e[1])}function p9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function c9(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r=0;a--)Ie(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;ng9}function jR(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function KR(r,e,t,i){var a=new K;return a.add(new ht({name:"main",style:P1(t),silent:!0,draggable:!0,cursor:"move",drift:et(BR,r,e,a,["n","s","w","e"]),ondragend:et(Bs,e,{isEnd:!0})})),w(i,function(n){a.add(new ht({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(BR,r,e,a,n),ondragend:et(Bs,e,{isEnd:!0})}))}),a}function QR(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=Yu(a,y9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,h=p-n+a/2,v=f-o,d=p-s,m=v+a,g=d+a;gn(r,e,"main",o,s,v,d),i.transformable&&(gn(r,e,"w",l,u,n,g),gn(r,e,"e",c,u,n,g),gn(r,e,"n",l,u,m,n),gn(r,e,"s",l,h,m,n),gn(r,e,"nw",l,u,n,n),gn(r,e,"ne",c,u,n,n),gn(r,e,"sw",l,h,n,n),gn(r,e,"se",c,h,n,n))}function C1(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(P1(t)),a.attr({silent:!i,cursor:i?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?A1(r,n[0]):C9(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?_9[s]+"-resize":null})})}function gn(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(D9(z1(r,e,[[i,a],[i+n,a+o]])))}function P1(r){return q({strokeNoScale:!0},r.brushStyle)}function $R(r,e,t,i){var a=[gc(r,t),gc(e,i)],n=[Yu(r,t),Yu(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function T9(r){return qi(r.group)}function A1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=cs(t[e],T9(r));return i[a]}function C9(r,e){var t=[A1(r,e[0]),A1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function BR(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=JR(e,a,n);w(i,function(u){var f=x9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange($R(s[0][0],s[1][0],s[0][1],s[1][1])),I1(e,t),Bs(e,{isEnd:!1})}function A9(r,e,t,i){var a=e.__brushOption.range,n=JR(r,t,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),I1(r,e),Bs(r,{isEnd:!1})}function JR(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function z1(r,e,t){var i=qR(r,e);return i&&i!==Us?i.clipPath(t,r._transform):$(t)}function D9(r){var e=gc(r[0][0],r[1][0]),t=gc(r[0][1],r[1][1]),i=Yu(r[0][0],r[1][0]),a=Yu(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function M9(r,e,t){if(!(!r._brushType||L9(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=E1(r,e,t);if(!r._dragging)for(var o=0;oi.getWidth()||t<0||t>i.getHeight()}var Lm={lineX:HR(0),lineY:HR(1),rect:{createCover:function(r,e){function t(i){return i}return KR({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=jR(r);return $R(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){QR(r,e,t,i)},updateCommon:C1,contain:M1},polygon:{createCover:function(r,e){var t=new K;return t.add(new pe({name:"main",style:P1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new he({name:"main",draggable:!0,drift:et(A9,r,e),ondragend:et(Bs,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:z1(r,e,t)})},updateCommon:C1,contain:M1}};function HR(r){return{createCover:function(e,t){return KR({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=jR(e),i=gc(t[0][r],t[1][r]),a=Yu(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=qR(e,t);if(o!==Us&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),QR(e,t,l,a)},updateCommon:C1,contain:M1}}var Zu=b9;function Em(r){return r=R1(r),function(e){return S0(e,r)}}function Pm(r,e){return r=R1(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function zm(r,e,t){var i=R1(r);return function(a,n){return i.contain(n[0],n[1])&&!po(a,e,t)}}function R1(r){return rt.create(r)}var E9=["axisLine","axisTickLabel","axisName"],P9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new Zu(i.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!z9(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new K,this.group.add(this._axisGroup),!!t.get("show")){var s=N9(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),h=N({strokeContainThreshold:f},c),v=new ur(t,h);w(E9,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,t,s,f,a),an(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=rt.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Em(p),isTargetByCursor:zm(p,s,n),getLinearBrushOtherExtent:Pm(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(R9(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=k(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Ot);function z9(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function R9(r){var e=r.axis;return k(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function N9(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var rN=P9;var O9={type:"axisAreaSelect",event:"axisAreaSelected"};function iN(r){r.registerAction(O9,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var k9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function yc(r){r.registerComponentView(MR),r.registerComponentModel(IR),r.registerCoordinateSystem("parallel",OR),r.registerPreprocessor(x1),r.registerComponentModel(w1),r.registerComponentView(rN),fa(r,"parallel",w1,k9),iN(r)}function N1(r){St(yc),r.registerChartView(CR),r.registerSeriesModel(AR),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,DR)}var V9=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}(),U9=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new V9},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){cr(this)},e.prototype.downplay=function(){hr(this)},e}(it),B9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,a){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,p=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var d=new U9,m=tt(d);m.dataIndex=v.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),x=y.get("curveness"),_=v.node1.getLayout(),b=v.node1.getModel(),S=b.get("localX"),T=b.get("localY"),C=v.node2.getLayout(),A=v.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=v.getLayout(),L,P,z,R,U,V,B,Z;d.shape.extent=Math.max(1,I.dy),d.shape.orient=h,h==="vertical"?(L=(S!=null?S*u:_.x)+I.sy,P=(T!=null?T*f:_.y)+_.dy,z=(D!=null?D*u:C.x)+I.ty,R=M!=null?M*f:C.y,U=L,V=P*(1-x)+R*x,B=z,Z=P*x+R*(1-x)):(L=(S!=null?S*u:_.x)+_.dx,P=(T!=null?T*f:_.y)+I.sy,z=D!=null?D*u:C.x,R=(M!=null?M*f:C.y)+I.ty,U=L*(1-x)+z*x,V=P,B=L*x+z*(1-x),Z=R),d.setShape({x1:L,y1:P,x2:z,y2:R,cpx1:U,cpy1:V,cpx2:B,cpy2:Z}),d.useStyle(y.getItemStyle()),aN(d.style,h,v);var Q=""+g.get("value"),st=Kt(g,"edgeLabel");ee(d,st,{labelFetcher:{getFormattedLabel:function(Lt,Bt,Et,gt,Pt,Ct){return t.getFormattedLabel(Lt,Bt,"edge",gt,Be(Pt,st.normal&&st.normal.get("formatter"),Q),Ct)}},labelDataIndex:v.dataIndex,defaultText:Q}),d.setTextConfig({position:"inside"});var ct=g.getModel("emphasis");se(d,g,"lineStyle",function(Lt){var Bt=Lt.getItemStyle();return aN(Bt,h,v),Bt}),s.add(d),c.setItemGraphicEl(v.dataIndex,d);var pt=ct.get("focus");Vt(d,pt==="adjacency"?v.getAdjacentDataIndices():pt==="trajectory"?v.getTrajectoryDataIndices():pt,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),m=v.getModel(),g=m.get("localX"),y=m.get("localY"),x=m.getModel("emphasis"),_=new ht({shape:{x:g!=null?g*u:d.x,y:y!=null?y*f:d.y,width:d.dx,height:d.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});ee(_,Kt(m),{labelFetcher:{getFormattedLabel:function(S,T){return t.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),se(_,m),s.add(_),p.setItemGraphicEl(v.dataIndex,_),tt(_).dataType="node";var b=x.get("focus");Vt(_,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),p.eachItemGraphicEl(function(v,d){var m=p.getItemModel(d);m.get("draggable")&&(v.drift=function(g,y){n._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:p.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},v.ondragend=function(){n._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(F9(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(It);function aN(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");F(i)&&F(a)&&(r.fill=new Aa(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function F9(r,e,t){var i=new ht({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ut(i,{shape:{width:r.width+20}},e,t),i}var nN=B9;var G9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var a=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new zt(o[l],this,i));if(n&&a){var u=mc(n,a,this,!0,f);return u.data}function f(p,c){p.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getData().getItemLayout(v);if(m){var g=m.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getGraph().getEdgeByIndex(v),g=m.node1.getLayout();if(g){var y=g.depth,x=d.levelModels[y];x&&(h.parentModel=x)}return h})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ie("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return ie("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.type="series.sankey",e.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},e}(Rt),oN=G9;function k1(r,e){r.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=H9(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;Y9(u);var p=Dt(u,function(d){return d.getLayout().value===0}),c=p.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),v=t.get("nodeAlign");W9(u,f,i,a,o,s,c,h,v)})}function H9(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function W9(r,e,t,i,a,n,o,s,l){Z9(r,e,t,a,n,s,l),K9(r,e,n,a,i,o,s),nZ(r,s)}function Y9(r){w(r,function(e){var t=vo(e.outEdges,Rm),i=vo(e.inEdges,Rm),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function Z9(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c=0;g&&m.depth>h&&(h=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;yp-1?h:p-1;o&&o!=="left"&&X9(r,o,n,T);var C=n==="vertical"?(a-t)/T:(i-t)/T;j9(r,C,n)}function sN(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function X9(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,J9(s,l,o),O1(s,a,t,i,o),aZ(s,l,o),O1(s,a,t,i,o)}function Q9(r,e){var t=[],i=e==="vertical"?"y":"x",a=Yf(r,function(n){return n.getLayout()[i]});return a.keys.sort(function(n,o){return n-o}),w(a.keys,function(n){t.push(a.buckets.get(n))}),t}function $9(r,e,t,i,a,n){var o=1/0;w(r,function(s){var l=s.length,u=0;w(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var v=a==="vertical"?i:t;if(u=f-e-v,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=p-2;h>=0;--h)l=o[h],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function J9(r,e,t){w(r.slice().reverse(),function(i){w(i,function(a){if(a.outEdges.length){var n=vo(a.outEdges,tZ,t)/vo(a.outEdges,Rm);if(isNaN(n)){var o=a.outEdges.length;n=o?vo(a.outEdges,eZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-mo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-mo(a,t))*e;a.setLayout({y:l},!0)}}})})}function tZ(r,e){return mo(r.node2,e)*r.getValue()}function eZ(r,e){return mo(r.node2,e)}function rZ(r,e){return mo(r.node1,e)*r.getValue()}function iZ(r,e){return mo(r.node1,e)}function mo(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Rm(r){return r.getValue()}function vo(r,e,t){for(var i=0,a=r.length,n=-1;++no&&(o=l)}),w(i,function(s){var l=new xe({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&w(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function U1(r){r.registerChartView(nN),r.registerSeriesModel(oN),r.registerLayout(k1),r.registerVisual(V1),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Nm=function(){function r(){}return r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",i=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,p=this._baseAxisDim=u[f],c=u[1-f],h=[a,n],v=h[f].get("type"),d=h[1-f].get("type"),m=e.data;if(m&&l){var g=[];w(m,function(_,b){var S;O(_)?(S=_.slice(),_.unshift(b)):O(_.value)?(S=N({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,g.push(S)}),e.data=g}var y=this.defaultValueDimensions,x=[{name:p,type:ws(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ws(d),dimsDef:y.slice()}];return pi(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:et(Lv,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}();var lN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(Rt);jt(lN,Nm,!0);var uN=lN;var oZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),p=fN(f,n,u,l,!0);n.setItemGraphicEl(u,p),o.add(p)}}).update(function(u,f){var p=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(p);return}var c=n.getItemLayout(u);p?(Oe(p),pN(c,p,n,u)):p=fN(c,n,u,l),o.add(p),n.setItemGraphicEl(u,p)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type="boxplot",e}(It),sZ=function(){function r(){}return r}(),lZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new sZ},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();nd){var _=[g,x];i.push(_)}}}return{boxData:t,outliers:i}}var hN={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Le){var i="";Gt(i)}var a=F1(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function G1(r){r.registerSeriesModel(uN),r.registerChartView(cN),r.registerLayout(B1),r.registerTransform(hN)}var hZ=["color","borderColor"],vZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),i.diff(a).add(function(f){if(i.hasValue(f)){var p=i.getItemLayout(f);if(s&&vN(u,p))return;var c=H1(p,f,!0);Ut(c,{shape:{points:p.ends}},t,f),W1(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}}).update(function(f,p){var c=a.getItemGraphicEl(p);if(!i.hasValue(f)){n.remove(c);return}var h=i.getItemLayout(f);if(s&&vN(u,h)){n.remove(c);return}c?(_t(c,{shape:{points:h.ends}},t,f),Oe(c)):c=H1(h,f),W1(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}).remove(function(f){var p=a.getItemGraphicEl(f);p&&n.remove(p)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),dN(t,this.group);var i=t.get("clip",!0)?Na(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=H1(s,o);W1(l,a,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){dN(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(It),dZ=function(){function r(){}return r}(),mZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new dZ},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(it);function H1(r,e,t){var i=r.ends;return new mZ({shape:{points:t?gZ(i,r):i},z2:100})}function vN(r,e){for(var t=!0,i=0;i0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(hZ);e.useStyle(n),e.style.fill=null,e.style.stroke=a}var mN=vZ;var gN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Rt);jt(gN,Nm,!0);var yN=gN;function X1(r){!r||!O(r.series)||w(r.series,function(e){j(e)&&e.type==="k"&&(e.type="candlestick")})}var xZ=["itemStyle","borderColor"],_Z=["itemStyle","borderColor0"],SZ=["itemStyle","borderColorDoji"],bZ=["itemStyle","color"],wZ=["itemStyle","color0"],TZ={seriesType:"candlestick",plan:li(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?bZ:wZ)}function i(n,o){return o.get(n===0?SZ:n>0?xZ:_Z)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=i(u,l)||f.fill;var p=o.ensureUniqueItemVisual(s,"style");N(p,f)}}}}}},xN=TZ;var CZ={seriesType:"candlestick",plan:li(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=AZ(r,t),a=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=k(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var x=y.get(s,g),_=y.get(u,g),b=y.get(f,g),S=y.get(p,g),T=y.get(c,g),C=Math.min(_,b),A=Math.max(_,b),D=U(C,x),M=U(A,x),I=U(S,x),L=U(T,x),P=[];V(P,M,0),V(P,D,1),P.push(Z(L),Z(M),Z(I),Z(D));var z=m.getItemModel(g),R=!!z.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:_N(y,g,_,b,f,R),initBaseline:_>b?M[n]:D[n],ends:P,brushRect:B(S,T,x)})}function U(Q,st){var ct=[];return ct[a]=st,ct[n]=Q,isNaN(st)||isNaN(Q)?[NaN,NaN]:e.dataToPoint(ct)}function V(Q,st,ct){var pt=st.slice(),Lt=st.slice();pt[a]=sp(pt[a]+i/2,1,!1),Lt[a]=sp(Lt[a]-i/2,1,!0),ct?Q.push(pt,Lt):Q.push(Lt,pt)}function B(Q,st,ct){var pt=U(Q,ct),Lt=U(st,ct);return pt[a]-=i/2,Lt[a]-=i/2,{x:pt[0],y:pt[1],width:n?i:Lt[0]-pt[0],height:n?Lt[1]-pt[1]:i}}function Z(Q){return Q[a]=sp(Q[a],1),Q}}function v(d,m){for(var g=Tr(d.count*4),y=0,x,_=[],b=[],S,T=m.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=d.next())!=null;){var A=T.get(s,S),D=T.get(u,S),M=T.get(f,S),I=T.get(p,S),L=T.get(c,S);if(isNaN(A)||isNaN(I)||isNaN(L)){g[y++]=NaN,y+=3;continue}g[y++]=_N(T,S,D,M,f,C),_[a]=A,_[n]=I,x=e.dataToPoint(_,null,b),g[y++]=x?x[0]:NaN,g[y++]=x?x[1]:NaN,_[n]=L,x=e.dataToPoint(_,null,b),g[y++]=x?x[1]:NaN}m.setLayout("largePoints",g)}}};function _N(r,e,t,i,a,n){var o;return t>i?o=-1:t0?r.get(a,e-1)<=i?1:-1:1,o}function AZ(r,e){var t=r.getBaseAxis(),i,a=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),n=H(at(r.get("barMaxWidth"),a),a),o=H(at(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?H(s,a):Math.max(Math.min(a/2,n),o)}var SN=CZ;function q1(r){r.registerChartView(mN),r.registerSeriesModel(yN),r.registerPreprocessor(X1),r.registerVisual(xN),r.registerLayout(SN)}function bN(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var DZ=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=new vn(t,i),o=new K;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;X(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return di(t.__p1,t.__cp1)+di(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Se,f=Mf;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;li);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var h=t.__t<1?c[0]-p[0]:p[0]-c[0],v=t.__t<1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(Om),AN=PZ;var zZ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),RZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zZ},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+p)/2-(f-c)*n,v=(f+c)/2-(p-u)*n;t.quadraticCurveTo(h,v,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var p=n[u++],c=n[u++],h=1;h0){var m=(p+v)/2-(c-d)*o,g=(c+d)/2-(v-p)*o;if(qh(p,c,m,g,v,d,s,t,i))return l}else if(wa(p,c,v,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),DN=NZ;var OZ={seriesType:"lines",plan:li(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var p=t.get("clip",!0)&&Na(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Vm.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new DN:new Fu(o?n?AN:km:n?Om:Bu),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),a=i.painter.getType()==="svg";!a&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(It),MN=kZ;var VZ=typeof Uint32Array>"u"?Array:Uint32Array,UZ=typeof Float64Array>"u"?Array:Float64Array;function IN(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=k(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Cl([a,t[0],t[1]])}))}var BZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],IN(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(IN(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Eo(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Eo(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;oa}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new ve(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ie("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Rt),LN=BZ;function Um(r){return r instanceof Array||(r=[r,r]),r}var FZ={seriesType:"lines",reset:function(r){var e=Um(r.get("symbol")),t=Um(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=Um(s.getShallow("symbol",!0)),u=Um(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:i.hasItemOption?a:null}}},EN=FZ;function K1(r){r.registerChartView(MN),r.registerSeriesModel(LN),r.registerLayout(Vm),r.registerVisual(EN)}var GZ=256,HZ=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=pr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),h=e.length;p.width=t,p.height=i;for(var v=0;v0){var I=o(x)?l:u;x>0&&(x=x*D+C),b[S++]=I[M],b[S++]=I[M+1],b[S++]=I[M+2],b[S++]=I[M+3]*x*256}else S+=4}return c.putImageData(_,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=pr.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r}(),PN=HZ;function WZ(r,e,t){var i=r[1]-r[0];e=k(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&i<=e[1]}}function zN(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var ZZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):zN(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(zN(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,a,n,o){var s=t.coordinateSystem,l=Pi(s,"cartesian2d"),u,f,p,c;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,f=v.getBandWidth()+.5,p=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,m=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),b=Kt(t),S=t.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),A=S.get("disabled"),D=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=a;Mp[1]||zc[1])continue;var R=s.dataToPoint([P,z]);I=new ht({shape:{x:R[0]-u/2,y:R[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(m.get(D[1],M)))continue;I=new ht({z2:1,shape:s.dataToRect([m.get(D[0],M)]).contentShape,style:L})}if(m.hasItemOption){var U=m.getItemModel(M),V=U.getModel("emphasis");g=V.getModel("itemStyle").getItemStyle(),y=U.getModel(["blur","itemStyle"]).getItemStyle(),x=U.getModel(["select","itemStyle"]).getItemStyle(),_=U.get(["itemStyle","borderRadius"]),T=V.get("focus"),C=V.get("blurScope"),A=V.get("disabled"),b=Kt(U)}I.shape.r=_;var B=t.getRawValue(M),Z="-";B&&B[2]!=null&&(Z=B[2]+""),ee(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:Z}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=x,Vt(I,T,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),m.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new PN;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),h=Math.max(f.y,0),v=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=v-c,g=d-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(T,C,A){var D=t.dataToPoint([T,C]);return D[0]-=c,D[1]-=h,D.push(A),D}),_=a.getExtent(),b=a.type==="visualMap.continuous"?YZ(_,a.option.range):WZ(_,a.getPieceList(),a.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new re({style:{width:m,height:g,x:c,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(It),RN=ZZ;var XZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=un.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Rt),NN=XZ;function Q1(r){r.registerChartView(RN),r.registerSeriesModel(NN)}var qZ=["itemStyle","borderWidth"],ON=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$1=new _r,jZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:ON[+f],categoryDim:ON[1-+f]};o.diff(s).add(function(v){if(o.hasValue(v)){var d=VN(o,v),m=kN(o,v,d,c),g=UN(o,c,m);o.setItemGraphicEl(v,g),n.add(g),FN(g,c,m)}}).update(function(v,d){var m=s.getItemGraphicEl(d);if(!o.hasValue(v)){n.remove(m);return}var g=VN(o,v),y=kN(o,v,g,c),x=qN(o,y);m&&x!==m.__pictorialShapeStr&&(n.remove(m),o.setItemGraphicEl(v,null),m=null),m?rX(m,c,y):m=UN(o,c,y,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=y,n.add(m),FN(m,c,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&BN(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?Na(t.coordinateSystem,!1,t):null;return h?n.setClipPath(h):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){BN(n,tt(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(It);function kN(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};KZ(t,n,a,i,c),QZ(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),$Z(t,c.symbolScale,u,i,c);var h=c.symbolSize,v=ui(t.get("symbolOffset"),h);return JZ(t,h,a,n,o,v,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function KZ(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(O(o)){var p=[J1(s,o[0])-l,J1(s,o[1])-l];p[1]0?1:-1}function J1(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function QZ(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),h=r.getItemVisual(e,"symbolSize"),v;O(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[p.index]=H(v[p.index],c),v[f.index]=H(v[f.index],i?c:Math.abs(n)),u.symbolSize=v;var d=u.symbolScale=[v[0]/s,v[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function $Z(r,e,t,i,a){var n=r.get(qZ)||0;n&&($1.attr({scaleX:e[0],scaleY:e[1],rotation:t}),$1.updateTransform(),n/=$1.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function JZ(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,h=f.valueDim,v=p.pxSign,d=Math.max(e[h.index]+s,0),m=d;if(i){var g=Math.abs(l),y=ae(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=H(y,e[h.index]),b=Math.max(d+_*2,0),S=x?0:_*2,T=jo(i),C=T?i:GN((g+S)/b),A=g-C*d;_=A/2/(x?C:Math.max(C-1,1)),b=d+_*2,S=x?0:_*2,!T&&i!=="fixed"&&(C=u?GN((Math.abs(u)+S)/b):0),m=C*b-S,p.repeatTimes=C,p.symbolMargin=_}var D=v*(m/2),M=p.pathPosition=[];M[c.index]=t[c.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var I=p.bundlePosition=[];I[c.index]=t[c.xy],I[h.index]=t[h.xy];var L=p.barRectShape=N({},t);L[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(M[h.index]+D)),L[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function HN(r){var e=r.symbolPatternSize,t=Xt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function WN(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(tb(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function YN(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?Xu(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=HN(t),a.add(n),Xu(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function ZN(r,e,t){var i=N({},e.barRectShape),a=r.__pictorialBarRect;a?Xu(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new ht({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function XN(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=N({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)_t(a,{shape:n},s,l);else{n[o.wh]=0,a=new ht({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],dt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function VN(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=tX,t.isAnimationEnabled=eX,t}function tX(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function eX(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function UN(r,e,t,i){var a=new K,n=new K;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?WN(a,e,t):YN(a,e,t),ZN(a,t,i),XN(a,e,t,i),a.__pictorialShapeStr=qN(r,t),a.__pictorialSymbolMeta=t,a}function rX(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;_t(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?WN(r,e,t,!0):YN(r,e,t,!0),ZN(r,t,!0),XN(r,e,t,!0)}function BN(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];tb(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),w(n,function(o){Ti(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function qN(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tb(r,e,t){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function Xu(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&dt[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function FN(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");tb(r,function(d){if(d instanceof re){var m=d.style;d.useStyle(N({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,ee(v,Kt(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:sa(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Vt(r,f,p,n.get("disabled"))}function GN(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var jN=jZ;var iX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=mr(Mu.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"}}}),e}(Mu),KN=iX;function eb(r){r.registerChartView(jN),r.registerSeriesModel(KN),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(Sd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bd("pictorialBar"))}var aX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var h=new lr(this._layersSeries||[],l,c,c),v=[];h.add(W(d,this,"add")).update(W(d,this,"update")).remove(W(d,this,"remove")).execute();function d(m,g,y){var x=o._layers;if(m==="remove"){s.remove(x[g]);return}for(var _=[],b=[],S,T=l[g].indices,C=0;Cn&&(n=s),i.push(s)}for(var u=0;un&&(n=p)}return{y0:a,max:n}}function ab(r){r.registerChartView(QN),r.registerSeriesModel($N),r.registerLayout(ib),r.registerProcessor(ua("themeRiver"))}var lX=2,uX=4,fX=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=lX,o.textConfig={inside:!0},tt(o).seriesIndex=i.seriesIndex;var s=new yt({z2:uX,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;tt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=N({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var h=i.getVisual("decal");h&&(c.decal=ra(h,o));var v=Oa(l.getModel("itemStyle"),p,!0);N(p,v),w(Ue,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=Oa(_,p);b&&(x.shape=b)}),t?(s.setShape(p),s.shape.r=f.r0,Ut(s,{shape:{r:f.r}},a,i.dataIndex)):(_t(s,{shape:p},a),Oe(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;Vt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),h=this.node.dataIndex,v=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(v!=null&&Math.abs(s)P&&!qa(R-P)&&R0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new nb(y,t,i,a),f.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";gs(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bm,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(It),rO=cX;var hX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};iO(a);var n=this._levelModels=k(t.levels||[],function(l){return new zt(l,this,i)},this),o=Ru.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=ho(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){sc(this)},e.type="series.sunburst",e.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"},e}(Rt);function iO(r){var e=0;w(r.children,function(i){iO(i);var a=i.value;O(a)&&(a=a[0]),e+=a});var t=r.value;O(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),O(r.value)?r.value[0]=t:r.value=t}var aO=hX;var nO=Math.PI/180;function ob(r,e,t){e.eachSeriesByType(r,function(i){var a=i.get("center"),n=i.get("radius");O(n)||(n=[0,n]),O(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(a[0],o),f=H(a[1],s),p=H(n[0],l/2),c=H(n[1],l/2),h=-i.get("startAngle")*nO,v=i.get("minAngle")*nO,d=i.getData().tree.root,m=i.getViewRoot(),g=m.depth,y=i.get("sort");y!=null&&oO(m,y);var x=0;w(m.children,function(R){!isNaN(R.getValue())&&x++});var _=m.getValue(),b=Math.PI/(_||x)*2,S=m.depth>0,T=m.height-(S?-1:1),C=(c-p)/(T||1),A=i.get("clockwise"),D=i.get("stillShowZeroSum"),M=A?1:-1,I=function(R,U){if(R){var V=U;if(R!==d){var B=R.getValue(),Z=_===0&&D?b:B*b;Z1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&F(s)&&(s=Sh(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");N(u,l)})})}function lb(r){r.registerChartView(rO),r.registerSeriesModel(aO),r.registerLayout(et(ob,"sunburst")),r.registerProcessor(et(ua,"sunburst")),r.registerVisual(sb),eO(r)}var ub={color:"fill",borderColor:"stroke"},sO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ua=ot(),dX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return Ke(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=Ua(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Rt),lO=dX;function mX(r,e){return e=e||[0,0],k(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function fb(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(mX,r)}}}function gX(r,e){return e=e||[0,0],k([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function pb(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:W(gX,r)}}}function yX(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function cb(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(yX,r)}}}function xX(r,e){return e=e||[0,0],k(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function hb(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:W(xX,r)}}}function vb(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)}}}}function Fm(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||J(r,"text")))}function Gm(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},J(i,"text")&&(o.text=i.text),J(i,"rich")&&(o.rich=i.rich),J(i,"textFill")&&(o.fill=i.textFill),J(i,"textStroke")&&(o.stroke=i.textStroke),J(i,"fontFamily")&&(o.fontFamily=i.fontFamily),J(i,"fontSize")&&(o.fontSize=i.fontSize),J(i,"fontStyle")&&(o.fontStyle=i.fontStyle),J(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=J(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),J(i,"textPosition")&&(a.position=i.textPosition),J(i,"textOffset")&&(a.offset=i.textOffset),J(i,"textRotation")&&(a.rotation=i.textRotation),J(i,"textDistance")&&(a.distance=i.textDistance)}return uO(o,r),w(o.rich,function(l){uO(l,l)}),{textConfig:a,textContent:n}}function uO(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function db(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||"#000";fO(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,w(e.rich,function(s){fO(s,s)}),i}function fO(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var vO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pO=ft(vO),zMt=$e(ii,function(r,e){return r[e]=1,r},{}),RMt=ii.join(", "),_c=["","style","shape","extra"],qu=ot();function mb(r,e,t,i,a){var n=r+"Animation",o=Da(r,i,a)||{},s=qu(e).userDuring;return o.duration>0&&(o.during=s?W(TX,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),N(o,t[n]),o}function ju(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=qu(r),u=e.style;l.userDuring=e.during;var f={},p={};if(AX(r,e,p),hO("shape",e,p),hO("extra",e,p),!n&&s&&(CX(r,e,f),cO("shape",r,e,f),cO("extra",r,e,f),DX(r,e,u,f)),p.style=u,_X(r,p,o),bX(r,e),s)if(n){var c={};w(_c,function(v){var d=v?e[v]:e;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),N(v?c[v]:c,d.enterFrom))});var h=mb("enter",r,e,t,a);h.duration>0&&r.animateFrom(c,h)}else SX(r,e,a||0,t,f);gb(r,e),u?r.dirty():r.markRedraw()}function gb(r,e){for(var t=qu(r).leaveToProps,i=0;i<_c.length;i++){var a=_c[i],n=a?e[a]:e;n&&n.leaveTo&&(t||(t=qu(r).leaveToProps={}),a&&(t[a]=t[a]||{}),N(a?t[a]:t,n.leaveTo))}}function Ku(r,e,t,i){if(r){var a=r.parent,n=qu(r).leaveToProps;if(n){var o=mb("update",r,e,t,0);o.done=function(){a.remove(r),i&&i()},r.animateTo(n,o)}else a.remove(r),i&&i()}}function go(r){return r==="all"}function _X(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var a=r.animators,n=0;n0&&r.animateFrom(a,n)}}function bX(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"ignore")&&(r.ignore=e.ignore),r instanceof be&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof it&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ba={},wX={setTransform:function(r,e){return Ba.el[r]=e,this},getTransform:function(r){return Ba.el[r]},setShape:function(r,e){var t=Ba.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Ba.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Ba.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Ba.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Ba.el.extra||(Ba.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Ba.el.extra;if(e)return e[r]}};function TX(){var r=this,e=r.el;if(e){var t=qu(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}Ba.el=e,i(wX)}}function cO(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),go(l))N(o,n);else for(var u=Nt(l),f=0;f=0){!o&&(o=i[r]={});for(var h=ft(n),f=0;f=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!n&&(n=i.style={});for(var v=ft(t),u=0;u=0?e.getStore().get(U,z):void 0}var V=e.get(R.name,z),B=R&&R.ordinalMeta;return B?B.categories[V]:V}function S(P,z){z==null&&(z=u);var R=e.getItemVisual(z,"style"),U=R&&R.fill,V=R&&R.opacity,B=y(z,yo).getItemStyle();U!=null&&(B.fill=U),V!=null&&(B.opacity=V);var Z={inheritColor:F(U)?U:"#000"},Q=x(z,yo),st=Ht(Q,null,Z,!1,!0);st.text=Q.getShallow("show")?at(r.getFormattedLabel(z,yo),sa(e,z)):null;var ct=lp(Q,Z,!1);return A(P,B),B=db(B,st,ct),P&&C(B,P),B.legacy=!0,B}function T(P,z){z==null&&(z=u);var R=y(z,yn).getItemStyle(),U=x(z,yn),V=Ht(U,null,null,!0,!0);V.text=U.getShallow("show")?Be(r.getFormattedLabel(z,yn),r.getFormattedLabel(z,yo),sa(e,z)):null;var B=lp(U,null,!0);return A(P,R),R=db(R,V,B),P&&C(R,P),R.legacy=!0,R}function C(P,z){for(var R in z)J(z,R)&&(P[R]=z[R])}function A(P,z){P&&(P.textFill&&(z.textFill=P.textFill),P.textPosition&&(z.textPosition=P.textPosition))}function D(P,z){if(z==null&&(z=u),J(ub,P)){var R=e.getItemVisual(z,"style");return R?R[ub[P]]:null}if(J(sO,P))return e.getItemVisual(z,P)}function M(P){if(n.type==="cartesian2d"){var z=n.getBaseAxis();return nE(q({axis:z},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return su(P,t)}}function kX(r){var e={};return w(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function _b(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=Db(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&Vt(s,i.focus,i.blurScope,i.emphasisDisabled),s}function Db(r,e,t,i,a,n){var o=-1,s=e;e&&bO(e,i,a)&&(o=nt(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Cb(i),s&&zX(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oi.normal.cfg=Oi.normal.conOpt=Oi.emphasis.cfg=Oi.emphasis.conOpt=Oi.blur.cfg=Oi.blur.conOpt=Oi.select.cfg=Oi.select.conOpt=null,Oi.isLegacy=!1,UX(u,t,i,a,l,Oi),VX(u,t,i,a,l),Ab(r,u,t,i,Oi,a,l),J(i,"info")&&(Ua(u).info=i.info);for(var f=0;f=0?n.replaceAt(u,o):n.add(u),u}function bO(r,e,t){var i=Ua(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&WX(n)&&wO(n)!==i.customPathData||a==="image"&&J(o,"image")&&o.image!==i.customImagePath}function VX(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&bO(o,n,i)&&(o=null),o||(o=Cb(n),r.setClipPath(o)),Ab(null,o,e,n,null,i,a)}}function UX(r,e,t,i,a,n){if(!r.isGroup){gO(t,null,n),gO(t,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 f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Cb(o),r.setTextContent(f)),Ab(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c=f;h--){var v=e.childAt(h);FX(e,v,a)}}}function FX(r,e,t){e&&Ku(e,Ua(r).option,t)}function GX(r){new lr(r.oldChildren,r.newChildren,yO,yO,r).add(xO).update(xO).remove(HX).execute()}function yO(r,e){var t=r&&r.name;return t??EX+e}function xO(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;Db(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function HX(r){var e=this.context,t=e.oldChildren[r];t&&Ku(t,Ua(t).option,e.seriesModel)}function wO(r){return r&&(r.pathData||r.d)}function WX(r){return r&&(J(r,"pathData")||J(r,"d"))}function Ib(r){r.registerChartView(_O),r.registerSeriesModel(lO)}var Fs=ot(),TO=$,Lb=W,YX=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!a&&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,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new K,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=et(CO,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}DO(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=om(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Fs(e).pointerEl=new dt[n.type](TO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Fs(e).labelEl=new yt(TO(t.label));e.add(n),AO(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Fs(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Fs(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),AO(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=nn(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Pr(u.event)},onmousedown:Lb(this._onHandleDragMove,this,0,0),drift:Lb(this._onHandleDragMove,this),ondragend:Lb(this._onHandleDragEnd,this)}),i.add(a)),DO(a,t,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ii(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){CO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Eb(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(Eb(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(Eb(a)),Fs(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),cn(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();function CO(r,e,t,i){MO(Fs(t).lastProp,i)||(Fs(t).lastProp=i,e?_t(t,i,r):(t.stopAnimation(),t.attr(i)))}function MO(r,e){if(j(r)&&j(e)){var t=!0;return w(e,function(i,a){t=t&&MO(r[a],i)}),!!t}else return r===e}function AO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Eb(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function DO(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var $u=YX;function Ju(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function Pb(r,e,t,i,a){var n=t.get("value"),o=zb(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ki(s.get("padding")||0),u=s.getFont(),f=ya(o,u),p=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=a.align;v==="right"&&(p[0]-=c),v==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=h),d==="middle"&&(p[1]-=h/2),ZX(p,c,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:Ht(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function ZX(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function zb(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Zp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),F(o)?n=o.replace("{value}",n):X(o)&&(n=o(s))}return n}function Sc(r,e,t){var i=Me();return Rr(i,i,t.rotation),tr(i,i,t.position),nr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function Ym(r,e,t,i,a,n){var o=ur.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),Pb(e,i,a,n,{position:Sc(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function tf(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Zm(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function Rb(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}var XX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=IO(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=Ju(n),h=qX[u](s,p,f);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=ic(l.model,a);Ym(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=ic(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Sc(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=IO(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=p[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e}($u);function IO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var qX={line:function(r,e,t){var i=tf([e,t[0]],[e,t[1]],LO(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:Zm([e-i/2,t[0]],[i,a],LO(r))}}};function LO(r){return r.dim==="x"?0:1}var EO=XX;var jX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(xt),PO=jX;var xn=ot(),KX=w;function qm(r,e,t){if(!Tt.node){var i=e.getZr();xn(i).records||(xn(i).records={}),QX(i,e);var a=xn(i).records[r]||(xn(i).records[r]={});a.handler=t}}function QX(r,e){if(xn(r).initialized)return;xn(r).initialized=!0,t("click",et(zO,"click")),t("mousemove",et(zO,"mousemove")),t("globalout",JX);function t(i,a){r.on(i,function(n){var o=tq(e);KX(xn(r).records,function(s){s&&a(s,n,o.dispatchAction)}),$X(o.pendings,e)})}}function $X(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function JX(r,e,t){r.handler("leave",null,t)}function zO(r,e,t,i){e.handler(r,t,i)}function tq(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function bc(r,e){if(!Tt.node){var t=e.getZr(),i=(xn(t).records||{})[r];i&&(xn(t).records[r]=null)}}var eq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";qm("axisPointer",a,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})})},e.prototype.remove=function(t,i){bc("axisPointer",i)},e.prototype.dispose=function(t,i){bc("axisPointer",i)},e.type="axisPointer",e}(Ot),NO=eq;function wc(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Si(n,r);if(o==null||o<0||O(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,h=p==="x"||p==="radius"?1:0,v=n.mapDimension(c),d=[];d[h]=n.get(v,o),d[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(k(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var OO=ot();function Nb(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){jm(a)&&(a=wc({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=jm(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||jm(a),c={},h={},v={list:[],map:{}},d={showPointer:et(iq,h),showTooltip:et(aq,v)};w(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,T=lq(u,_);if(!p&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&kO(_,C,d,!1,c)}})});var m={};return w(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&w(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var T=S.value;x.mapper&&(T=g.axis.scale.parse(x.mapper(T,VO(_),VO(g)))),m[g.key]=T}})}),w(m,function(g,y){kO(f[y],g,d,!0,c)}),nq(h,f,c),oq(v,a,r,o),sq(f,o,t),c}}function kO(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=rq(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function rq(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,p=h.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(!(p==null||!isFinite(p))){var v=r-p,d=Math.abs(v);d<=o&&((d=0&&s<0)&&(o=d,s=v,a=p,n.length=0),w(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function iq(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function aq(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Lu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function nq(r,e,t){var i=t.axesInfo=[];w(e,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function oq(r,e,t,i){if(jm(e)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function sq(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=OO(i)[a]||{},o=OO(i)[a]={};w(r,function(u,f){var p=u.axisPointerModel.option;p.status==="show"&&u.triggerEmphasis&&w(p.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];w(n,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function lq(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function VO(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function jm(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function pa(r){Kr.registerAxisPointerClass("CartesianAxisPointer",EO),r.registerComponentModel(PO),r.registerComponentView(NO),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!O(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=pP(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Nb)}function Ob(r){St(um),St(pa)}var uq=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var h=Ju(n),v=pq[c](s,l,p,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=n.get(["label","margin"]),m=fq(i,a,n,l,d);Pb(t,a,n,o,m)},e}($u);function fq(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=Me();Rr(c,c,s),tr(c,c,[i.cx,i.cy]),u=nr([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,v=ur.innerTextLayout(s,h*Math.PI/180,-1);f=v.textAlign,p=v.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var pq={line:function(r,e,t,i){return r.dim==="angle"?{type:"Line",shape:tf(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i){var a=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Rb(e.cx,e.cy,i[0],i[1],(-t-a/2)*n,(-t+a/2)*n)}:{type:"Sector",shape:Rb(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},UO=uq;var cq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(xt),BO=cq;var kb=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$t).models[0]},e.type="polarAxis",e}(xt);jt(kb,La);var FO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(kb);var GO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(kb);var Vb=function(r){E(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(Qe);Vb.prototype.dataToRadius=Qe.prototype.dataToCoord;Vb.prototype.radiusToData=Qe.prototype.coordToData;var HO=Vb;var hq=ot(),Ub=function(r){E(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ya(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=hq(t.model),d=v.lastAutoInterval,m=v.lastTickCount;return d!=null&&m!=null&&Math.abs(d-h)<=1&&Math.abs(m-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Qe);Ub.prototype.dataToAngle=Qe.prototype.dataToCoord;Ub.prototype.angleToData=Qe.prototype.coordToData;var WO=Ub;var Bb=["radius","angle"],vq=function(){function r(e){this.dimensions=Bb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HO,this._angleAxis=new WO,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,a=Math.cos(i)*t+this.cx,n=-Math.sin(i)*t+this.cy;return[a,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,p=this.r,c=this.r0;return f<=p*p&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,i){var a=YO(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=YO(t);return a===this?this.pointToData(i):null},r}();function YO(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var ZO=vq;function dq(r,e,t){var i=e.get("center"),a=t.getWidth(),n=t.getHeight();r.cx=H(i[0],a),r.cy=H(i[1],n);var o=r.getRadiusAxis(),s=Math.min(a,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:O(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function mq(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();w(wu(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(wu(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Ia(i.scale,i.model),Ia(a.scale,a.model),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function gq(r){return r.mainType==="angleAxis"}function XO(r,e){var t;if(r.type=e.get("type"),r.scale=no(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),gq(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,a)}e.axis=r,r.model=e}var yq={dimensions:Bb,create:function(r,e){var t=[];return r.eachComponent("polar",function(i,a){var n=new ZO(a+"");n.update=mq;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");XO(o,l),XO(s,u),dq(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var a=i.getReferringComponents("polar",$t).models[0];i.coordinateSystem=a.coordinateSystem}}),t}},qO=yq;var xq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Km(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Qm(r){var e=r.getRadiusAxis();return e.inverse?0:1}function jO(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var _q=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=k(a.getViewLabels(),function(f){f=$(f);var p=a.scale,c=p.type==="ordinal"?p.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(c),f});jO(u),jO(s),w(xq,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Sq[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Kr),Sq={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Qm(t),p=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[p]===0?c=new dt[h]({shape:{cx:t.cx,cy:t.cy,r:n[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new ls({shape:{cx:t.cx,cy:t.cy,r:n[f],r0:n[p]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Qm(t)],u=k(i,function(f){return new fe({shape:Km(t,[l,l+s],f.coord)})});r.add(dr(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Qm(t)],f=[],p=0;pg?"left":"right",_=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[v]){var b=s[v];j(b)&&b.textStyle&&(h=new zt(b.textStyle,l,l.ecModel))}var S=new yt({silent:ur.isLabelSilent(e),style:Ht(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:x,verticalAlign:_})});if(r.add(S),f){var T=ur.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=p.rawLabel,tt(S).eventData=T}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p=0?"p":"n",L=T;b&&(i[f][M]||(i[f][M]={p:T,n:T}),L=i[f][M][I]);var P=void 0,z=void 0,R=void 0,U=void 0;if(v.dim==="radius"){var V=v.dataToCoord(D)-T,B=l.dataToCoord(M);Math.abs(V)=U})}}})}function Mq(r){var e={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=JO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),p=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=p.stacks;e[l]=p;var h=$O(i);c[h]||p.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=H(i.get("barWidth"),f),d=H(i.get("barMaxWidth"),f),m=i.get("barGap"),g=i.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(p.remainedWidth,v),c[h].width=v,p.remainedWidth-=v),d&&(c[h].maxWidth=d),m!=null&&(p.gap=m),g!=null&&(p.categoryGap=g)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=H(i.categoryGap,o),l=H(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,p=(u-s)/(f+(f-1)*l);p=Math.max(p,0),w(n,function(d,m){var g=d.maxWidth;g&&g=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),a=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=n===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,i){var a=nk(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=nk(t);return a===this?this.pointToData(i):null},r}();function nk(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var ok=kq;function Vq(r,e){var t=[];return r.eachComponent("singleAxis",function(i,a){var n=new ok(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var a=i.getReferringComponents("singleAxis",$t).models[0];i.coordinateSystem=a&&a.coordinateSystem}}),t}var Uq={create:Vq,dimensions:Gb},sk=Uq;var lk=["x","y"],Bq=["width","height"],Fq=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=Hb(l,1-Jm(s)),f=l.dataToPoint(i)[0],p=n.get("type");if(p&&p!=="none"){var c=Ju(n),h=Gq[p](s,f,u);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=Tc(a);Ym(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Tc(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Sc(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=Jm(o),u=Hb(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=Hb(s,1-l),c=(p[1]+p[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}($u),Gq={line:function(r,e,t){var i=tf([e,t[0]],[e,t[1]],Jm(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:Zm([e-i/2,t[0]],[i,a],Jm(r))}}};function Jm(r){return r.isHorizontal()?0:1}function Hb(r,e){var t=r.getRect();return[t[lk[e]],t[lk[e]]+t[Bq[e]]]}var uk=Fq;var Hq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Ot);function Wb(r){St(pa),Kr.registerAxisPointerClass("SingleAxisPointer",uk),r.registerComponentView(Hq),r.registerComponentView(rk),r.registerComponentModel($m),fa(r,"single",$m,$m.defaultOption),r.registerCoordinateSystem("single",sk)}var Wq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Ai(t);r.prototype.init.apply(this,arguments),fk(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),fk(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(xt);function fk(r,e){var t=r.cellSize,i;O(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=k([0,1],function(n){return IM(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});Wr(r,e,{type:"box",ignoreSize:a})}var pk=Wq;var Yq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,p=new ht({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){v(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var h=p.date;h.setMonth(h.getMonth()+1),p=s.getDateInfo(h)}v(s.getNextNDay(i.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new pe({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return F(t)&&t?AM(t,i):X(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[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 f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},v=i.start.y;+i.end.y>+i.start.y&&(v=v+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:v},g=this._formatterLabel(d,m),y=new yt({z2:30,style:Ht(o,{text:g})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||F(s))&&(s&&(i=up(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=f==="center",d=0;d=a.start.time&&i.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/Yb)-Math.floor(t[0].time/Yb)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&ta.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=i[a.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function hk(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var vk=Zq;function Zb(r){r.registerComponentModel(pk),r.registerComponentView(ck),r.registerCoordinateSystem("calendar",vk)}function Xq(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function dk(r,e){var t;return w(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function qq(r,e,t){var i=N({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;lt(a,i,!0),Wr(a,i,{ignoreSize:!0}),Y0(t,a),tg(t,a),tg(t,a,"shape"),tg(t,a,"style"),tg(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var mk=["transition","enterFrom","leaveTo"],jq=mk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function tg(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?mk:jq,a=0;a=0;f--){var p=a[f],c=le(p.id,null),h=c!=null?o.get(c):null;if(h){var v=h.parent,g=ki(v),y=v===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Xn(h,p,y,null,{hv:p.hv,boundingMode:p.bounding},x);if(!ki(h).isNew&&_){for(var b=p.transition,S={},T=0;T=0)?S[C]=A:h[C]=A}_t(h,S,t,0)}else h.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){eg(a,ki(a).option,i,t._lastGraphicModel)}),this._elMap=Y()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Ot);function Xb(r){var e=J(yk,r)?yk[r]:op(r),t=new e({});return ki(t).type=r,t}function xk(r,e,t,i){var a=Xb(t);return e.add(a),i.set(r,a),ki(a).id=r,ki(a).isNew=!0,a}function eg(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){eg(n,e,t,i)}),Ku(r,e,i),t.removeKey(ki(r).id))}function _k(r,e,t,i){r.isGroup||w([["cursor",be.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];J(e,n)?r[n]=at(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),w(ft(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=X(n)?n:null}}),J(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Qq(r){return r=N({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(H0),function(e){delete r[e]}),r}function $q(r,e,t){var i=tt(r).eventData;!r.silent&&!r.ignore&&!i&&(i=tt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function qb(r){r.registerComponentModel(gk),r.registerComponentView(Sk),r.registerPreprocessor(function(e){var t=e.graphic;O(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var jb=["x","y","radius","angle","single"],Jq=["cartesian2d","polar","singleAxis"];function bk(r){var e=r.get("coordinateSystem");return nt(Jq,e)>=0}function Vi(r){return r+"Axis"}function wk(r,e){var t=Y(),i=[],a=Y();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,h){var v=t.get(c);v&&v[h]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function rg(r){var e=r.ecModel,t={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(Vi(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Kb=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),tj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,a){var n=Tk(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=Tk(t);lt(this.option,t,!0),lt(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return w(jb,function(a){var n=this.getReferringComponents(Vi(a),yA);if(n.specified){i=!0;var o=new Kb;w(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new Kb;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var h=p.getReferringComponents("grid",$t).models[0];h&&w(u,function(v){p.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",$t).models[0]&&c.add(v.componentIndex)})}}}n&&w(jb,function(u){if(n){var f=a.findComponents({mainType:Vi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new Kb;p.add(f[0].componentIndex),t.set(u,p),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(Vi(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){w(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){var a=this.getAxisModel(t,i);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(Vi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;w(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;no[1];if(x&&!_&&!b)return!0;x&&(m=!0),_&&(v=!0),b&&(d=!0)}return m&&v&&d})}else rf(f,function(h){if(n==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});rf(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;rf(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=kt(i[0]+o,i,[0,100],!0):n!=null&&(o=kt(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var a=Fl(i,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),t[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r}();function nj(r,e,t){var i=[1/0,-1/0];rf(t,function(o){gE(i,o.getData(),e)});var a=r.getAxisModel(),n=Md(a.axis.scale,a,i).calculate();return[n.min,n.max]}var Mk=aj;var oj={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Vi(o),s);a(o,s,l,n)})})}e(function(a,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Mk(a,n,s,r),t.push(o.__dzAxisProxy))});var i=Y();return w(t,function(a){w(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).reset(t)}),t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},Ik=oj;function Qb(r){r.registerAction("dataZoom",function(e,t){var i=wk(t,e);w(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Lk=!1;function Gs(r){Lk||(Lk=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Ik),Qb(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ek(r){r.registerComponentModel(Ck),r.registerComponentView(Ak),Gs(r)}var Xe=function(){function r(){}return r}();var Pk={};function So(r,e){Pk[r]=e}function ig(r){return Pk[r]}var lj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;w(this.option.feature,function(i,a){var n=ig(a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),lt(i,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(xt),zk=lj;function Rk(r,e,t){var i=e.getBoxLayoutParams(),a=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Zt(i,n,a);$i(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Xn(r,i,n,a)}function ag(r,e){var t=Ki(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),r=new ht({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var fj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),p=[];w(u,function(v,d){p.push(d)}),new lr(this._featureNames||[],p).add(c).update(c).remove(et(c,null)).execute(),this._featureNames=p;function c(v,d){var m=p[v],g=p[d],y=u[m],x=new zt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===m&&(y.title=n.newTitle),m&&!g){if(pj(m))_={onclick:x.option.onclick,featureName:m};else{var b=ig(m);if(!b)return;_=new b}f[m]=_}else if(_=f[g],!_)return;_.uid=Ci("toolbox-feature"),_.model=x,_.ecModel=i,_.api=a;var S=_ instanceof Xe;if(!m&&g){S&&_.dispose&&_.dispose(i,a);return}if(!x.get("show")||S&&_.unusable){S&&_.remove&&_.remove(i,a);return}h(x,_,m),x.setIconStatus=function(T,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,D[T]&&(C==="emphasis"?cr:hr)(D[T])},_ instanceof Xe&&_.render&&_.render(x,i,a,n)}function h(v,d,m){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),x=d instanceof Xe&&d.getIcons?d.getIcons():v.get("icon"),_=v.get("title")||{},b,S;F(x)?(b={},b[m]=x):b=x,F(_)?(S={},S[m]=_):S=_;var T=v.iconPaths={};w(b,function(C,A){var D=nn(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(g.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new yt({style:{text:S[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:su({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},i)},ignore:!0});D.setTextContent(I),ji({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:S[A]}}),D.__title=S[A],D.on("mouseover",function(){var L=y.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(v.get(["iconStatus",A])==="emphasis"?cr:hr)(D),o.add(D),D.on("click",W(d.onclick,d,i,a,A)),T[A]=D})}Rk(o,t,a),o.add(ag(o.getBoundingRect(),t)),l||o.eachChild(function(v){var d=v.__title,m=v.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=v.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!X(x)&&d){var _=x.style||(x.style={}),b=ya(d,yt.makeFont(_)),S=v.x+o.x,T=v.y+o.y+s,C=!1;T+b.height>a.getHeight()&&(g.position="top",C=!0);var A=C?-5-b.height:s+10;S+b.width/2>a.getWidth()?(g.position=["100%",A],_.align="right"):S-b.width/2<0&&(g.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,i,a,n){w(this._features,function(o){o instanceof Xe&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.remove=function(t,i){w(this._features,function(a){a instanceof Xe&&a.remove&&a.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){w(this._features,function(a){a instanceof Xe&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e}(Ot);function pj(r){return r.indexOf("my")===0}var Nk=fj;var cj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Tt.browser;if(X(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,v=o?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,g=new Uint8Array(m);m--;)g[m]=v.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(v),b.close(),_.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(x)}}else{var S=a.get("lang"),T='',C=window.open();C.document.write(T),C.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(Xe),Ok=cj;var kk="__ec_magicType_stack__";var hj=[["line","bar"],["stack"]],vj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return w(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(Vk[a]){var s={series:[]},l=function(p){var c=p.subType,h=p.id,v=Vk[a](c,h,p,n);v&&(q(v,p.option),s.series.push(v));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=p.getReferringComponents(y,$t).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=a==="bar"}}};w(hj,function(p){nt(p,a)>=0&&w(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=lt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Xe),Vk={line:function(r,e,t,i){if(r==="bar")return lt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return lt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===kk;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),lt({id:e,stack:a?"":kk},i.get(["option","stack"])||{},!0)}};wr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Uk=vj;var og=new Array(60).join("-"),af=" ";function dj(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function mj(r){var e=[];return w(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(k(t.series,function(h){return h.name})),l=[a.model.getCategories()];w(t.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var u=[s.join(af)],f=0;f=0)return!0}var $b=new RegExp("["+af+"]+","g");function _j(r){for(var e=r.split(/\n+/g),t=ng(e.shift()).split($b),i=[],a=k(t,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Wk(r){var e=Jb(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return Fk(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function Yk(r){Gk(r).snapshots=null}function Zk(r){return Jb(r).length}function Jb(r){var e=Gk(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Cj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){Yk(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(Xe);wr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var qk=Cj;var Aj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Dj=function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=jk(t,e);w(Mj,function(o,s){(!i||!i.include||nt(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=tw[i.brushType](0,n,a);i.__rangeOffset={offset:Jk[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){w(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&w(n.coordSyses,function(o){var s=tw[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){w(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=tw[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Jk[i.brushType](n.values,o.offset,Ij(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return k(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:Em(a),isTargetByCursor:zm(a,e,i.coordSysModel),getLinearBrushOtherExtent:Pm(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&nt(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=jk(t,e),n=0;nr[1]&&r.reverse(),r}function jk(r,e){return kn(r,e,{includeMainTypes:Aj})}var Mj={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=Y(),o={},s={};!t&&!i&&!a||(w(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),w(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),w(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(p,c){(nt(t,p.getAxis("x").model)>=0||nt(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Qk.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){w(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:Qk.geo})})}},Kk=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],Qk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(qi(r)),e}},tw={lineX:et($k,0),lineY:et($k,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[ew([a[0],n[0]]),ew([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[[1/0,-1/0],[1/0,-1/0]],n=k(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function $k(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=ew(k([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var Jk={lineX:et(tV,0),lineY:et(tV,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return k(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function tV(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function Ij(r,e){var t=eV(r),i=eV(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function eV(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Cc=Dj;var rw=w,Lj=dA("toolbox-dataZoom_");var Ej=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new Zu(a.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),Rj(t,i,this,n,a),zj(t,i)},e.prototype.onclick=function(t,i,a){Pj[a].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Cc(iw(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",p,f[0]),s("y",p,f[1])):s({lineX:"x",lineY:"y"}[c],p,f)}}),Hk(n,a),this._dispatchZoomAction(a);function s(u,f,p){var c=f.getAxis(u),h=c.model,v=l(u,h,n),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(p=Qr(0,p.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:p[0],endValue:p[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,f.componentIndex);v&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];rw(t,function(a,n){i.push($(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(Xe),Pj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Wk(this.ecModel))}};function iw(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function zj(r,e){r.setIconStatus("back",Zk(e)>1?"emphasis":"normal")}function Rj(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Cc(iw(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}OM("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=iw(i),o=kn(r,n);rw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),rw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Lj+u+p};c[f]=p,a.push(c)}return a});var rV=Ej;function aw(r){r.registerComponentModel(zk),r.registerComponentView(Nk),So("saveAsImage",Ok),So("magicType",Uk),So("dataView",Bk),So("dataZoom",rV),So("restore",qk),St(Ek)}var Nj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(xt),iV=Nj;function sg(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function aV(r){if(Tt.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t-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 f=u*Math.PI/180,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'
'}function Bj(r,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+t,a="opacity"+i+",visibility"+i;return e||(i=" "+r+"s "+t,a+=Tt.transformSupported?","+sw+i:",left"+i+",top"+i),Oj+":"+a}function sV(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Tt.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=Tt.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+sw+":"+o+";":[["top",0],["left",0],[nw,o]]}function Fj(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Gj(r,e,t){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),p=Zv(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),e&&a&&i.push(Bj(a,t)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(h){var v="border-"+h,d=Cv(v),m=r.get(d);m!=null&&i.push(v+":"+m+(h==="color"?"":"px"))}),i.push(Fj(f)),p!=null&&i.push("padding:"+Ki(p).join("px ")+"px"),i.join(";")+";"}function lV(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&$T(r,o,t,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Hj=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,o=n&&(F(n)?document.querySelector(n):An(n)?n:X(n)&&n(e.getDom()));lV(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Er(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=oV(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=kj+Gj(e,!this._firstShow,this._longHide)+sV(n[0],n[1],!0)+("border-color:"+Qi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(F(n)&&i.get("trigger")==="item"&&!sg(i)&&(s=Uj(i,a,n)),F(e))o.innerHTML=e+s;else if(e){o.innerHTML="",O(e)||(e=[e]);for(var l=0;l=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||Tt.node||!a.getDom())){var o=hV(n,a);this._ticket="";var s=n.dataByCoordSys,l=Kj(n,i,a);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 f=Yj;f.x=n.x,f.y=n.y,f.update(),tt(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},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(t,i,a,n))return;var p=wc(n,i),c=p.point[0],h=p.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:p.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,a,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(hV(n,a))},e.prototype._manuallyAxisShowTip=function(t,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),p=Ac([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=tt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ta(a,function(f){if(tt(f).dataIndex!=null)return l=f,!0;if(tt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var a=t.get("showDelay");i=W(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ac([i.tooltipOption],n),l=this._renderMode,u=[],f=ie("section",{blocks:[],noHeader:!0}),p=[],c=new Xv;w(t,function(y){w(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!_||b==null)){var S=zb(b,_.axis,a,x.seriesDataIndices,x.valueLabelOpt),T=ie("section",{header:S,noHeader:!Fe(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(x.seriesDataIndices,function(C){var A=a.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Zp(_.axis,{value:b}),M.axisValueLabel=S,M.marker=c.makeTooltipMarker("item",Qi(M.color),l);var I=nx(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=Ac([A],n).get("valueFormatter");T.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&p.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var h=i.position,v=s.get("order"),d=cx(f,c,l,v,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?` `:"
",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=tt(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),h=this._renderMode,v=t.positionDefault,d=Ac([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Xv;g.marker=y.makeTooltipMarker("item",Qi(g.color),h);var x=nx(u.formatTooltip(f,!1,p)),_=d.get("order"),b=d.get("valueFormatter"),S=x.frag,T=S?cx(b?N({valueFormatter:b},S):S,y,h,_,n.get("useUTC"),d.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,C,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=tt(i),o=n.tooltipConfig,s=o.option||{};if(F(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var p=t.positionDefault,c=Ac(u,this._tooltipModel,p?{position:p}:null),h=c.get("content"),v=Math.random()+"",d=new Xv;this._showOrMove(c,function(){var m=$(c.get("formatterParams")||{});this._showTooltipContent(c,h,m,v,t.offsetX,t.offsetY,t.position,i,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=v.color;if(c)if(F(c)){var m=t.ecModel.get("useUTC"),g=O(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=ms(g.axisValue,h,m)),h=Dv(h,a,!0)}else if(X(c)){var x=W(function(_,b){_===this._ticket&&(p.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,h=c(a,n,x)}else h=c;p.setContent(h,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n){if(a==="axis"||O(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!O(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),X(i)&&(i=i([a,n],s,o.el,v,{viewSize:[u,f],contentSize:p.slice()})),O(i))a=H(i[0],u),n=H(i[1],f);else if(j(i)){var d=i;d.width=p[0],d.height=p[1];var m=Zt(d,{width:u,height:f});a=m.x,n=m.y,c=null,h=null}else if(F(i)&&l){var g=jj(i,v,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=Xj(a,n,o,u,f,c?null:20,h?null:20);a=g[0],n=g[1]}if(c&&(a-=vV(c)?p[0]/2:c==="right"?p[0]:0),h&&(n-=vV(h)?p[1]/2:h==="bottom"?p[1]:0),sg(t)){var g=qj(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&w(u,function(c,h){var v=p[h]||{},d=c.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===m.length,o&&w(d,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&w(c.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){Tt.node||!i.getDom()||(cn(this,"_updatePosition"),this._tooltipContent.dispose(),bc("itemTooltip",i))},e.type="tooltip",e}(Ot);function Ac(r,e,t){var i=e.ecModel,a;t?(a=new zt(t,i,i),a=new zt(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof zt&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(a=new zt(o,a,i)))}return a}function hV(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function Xj(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function qj(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function jj(r,e,t,i){var a=t[0],n=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function vV(r){return r==="center"||r==="middle"}function Kj(r,e,t){var i=Wf(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Vn(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=tt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var dV=Zj;function lw(r){St(pa),r.registerComponentModel(iV),r.registerComponentView(dV),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},te),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},te)}var Qj=["rect","polygon","keep","clear"];function uw(r,e){var t=Nt(r?r.brush:[]);if(t.length){var i=[];w(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;O(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),$j(s),e&&!s.length&&s.push.apply(s,Qj)}}function $j(r){var e={};w(r,function(t){e[t]=1}),r.length=0,w(e,function(t,i){r.push(i)})}var mV=w;function gV(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Dc(r,e,t){var i={};return mV(e,function(n){var o=i[n]=a();mV(r[n],function(s,l){if(xe.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new xe(u),l==="opacity"&&(u=$(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new xe(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function lg(r,e,t){var i;w(t,function(a){e.hasOwnProperty(a)&&gV(e[a])&&(i=!0)}),i&&w(t,function(a){e.hasOwnProperty(a)&&gV(e[a])?r[a]=$(e[a]):delete r[a]})}function yV(r,e,t,i,a,n){var o={};w(r,function(p){var c=xe.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Ip(t,s,p)}function u(p,c){xx(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=i.call(a,p),d=e[v],m=o[v],g=0,y=m.length;ge[0][1]&&(e[0][1]=n[0]),n[1]e[1][1]&&(e[1][1]=n[1])}return e&&CV(e)}};function CV(r){return new rt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var iK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new Zu(i.getZr())).on("brush",W(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){cw(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:$(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:$(a),$from:i})},e.type="brush",e}(Ot),AV=iK;var aK="#ddd",nK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&lg(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:aK},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=k(t,function(i){return DV(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=DV(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(xt);function DV(r,e){return lt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new zt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var MV=nK;var oK=["rect","polygon","lineX","lineY","keep","clear"],sK=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,w(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return w(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:oK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(Xe),IV=sK;function vw(r){r.registerComponentView(AV),r.registerComponentModel(MV),r.registerPreprocessor(uw),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,hw),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},te),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},te),So("brush",IV)}var lK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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"}},e}(xt),uK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=at(t.get("textBaseline"),t.get("textVerticalAlign")),f=new yt({style:Ht(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),h=new yt({style:Ht(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){gs(v,"_"+t.get("target"))}),d&&h.on("click",function(){gs(d,"_"+t.get("subtarget"))}),tt(f).eventData=tt(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(h);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=Zt(y,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),n.x=x.x,n.y=x.y,n.markRedraw();var _={align:l,verticalAlign:u};f.setStyle(_),h.setStyle(_),g=n.getBoundingRect();var b=x.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var T=new ht({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});n.add(T)}},e.type="title",e}(Ot);function dw(r){r.registerComponentModel(lK),r.registerComponentView(uK)}var fK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],w(i,function(u,f){var p=le(Wi(u),""),c;j(u)?(c=$(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ve([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.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:[]},e}(xt),mw=fK;var LV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=mr(mw.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:[]}),e}(mw);jt(LV,mu.prototype);var EV=LV;var pK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Ot),PV=pK;var cK=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Qe),zV=cK;var gw=Math.PI,RV=ot(),hK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ie("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=dK(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:gw/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,m=v+d,g=t.get(["label","rotate"])||0;g=g*gw/180;var y,x,_,b=c.get("position",!0),S=h&&c.get("showPlayBtn",!0),T=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),A=0,D=p;b==="left"||b==="bottom"?(S&&(y=[0,0],A+=m),T&&(x=[A,0],A+=m),C&&(_=[D-v,0],D-=m)):(S&&(y=[D-v,0],D-=m),T&&(x=[0,0],A+=m),C&&(_=[D-v,0],D-=m));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:v,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Me(),l=o.x,u=o.y+o.height;tr(s,s,[-l,-u]),Rr(s,s,-gw/2),tr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),h=[a.x,a.y],v=[n.x,n.y];v[0]=h[0]=f[0][0];var d=t.labelPosOpt;if(d==null||F(d)){var m=d==="+"?0:1;x(h,p,f,1,m),x(v,c,f,1,1-m)}else{var m=d>=0?0:1;x(h,p,f,1,m),v[1]=h[1]+d}a.setPosition(h),n.setPosition(v),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(_){_.originX=f[0][0]-_.x,_.originY=f[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,S,T,C){_[T]+=S[T][C]-b[T][C]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType"),o=vK(i,n);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new zV("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new K;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new fe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:N({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new fe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),h=p.getModel(["emphasis","itemStyle"]),v=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},m=NV(p,c,i,d);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Ta(m);var g=tt(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],w(u,function(f){var p=f.tickValue,c=l.getItemModel(p),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(f.tickValue),g=new yt({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,p),silent:!1,style:Ht(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Ht(v),g.ensureState("progress").style=Ht(d),i.add(g),Ta(g),RV(g).dataIndex=p,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",W(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",W(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function c(h,v,d,m){if(h){var g=er(at(n.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],x=mK(n,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});x.ensureState("emphasis").style=u,i.add(x),Ta(x)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=W(u._handlePointerDrag,u),p.ondragend=W(u._handlePointerDragend,u),OV(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){OV(p,u._progressLine,s,a,n)}};this._currentPointer=NV(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=Ie(n.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[n]=+o[n].toFixed(c)),[o,p]}var _w={min:et(cg,"min"),max:et(cg,"max"),average:et(cg,"average"),median:et(cg,"median")};function wo(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!xK(e)&&!O(e.coord)&&O(a)){var n=bw(e,t,i,r);if(e=$(e),e.type&&_w[e.type]&&n.baseAxis&&n.valueAxis){var o=nt(a,n.baseAxis.dim),s=nt(a,n.valueAxis.dim),l=_w[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!O(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)_w[u[f]]&&(u[f]=vg(t,t.mapDimension(a[f]),u[f]));return e}}function bw(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(_K(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function _K(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function To(r,e){return r&&r.containData&&e.coord&&!Sw(e)?r.containData(e.coord):!0}function GV(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Sw(e)&&!Sw(t)?r.containZone(e.coord,t.coord):!0}function hg(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return Mi(o,e[n])}:function(t,i,a,n){return Mi(t.value,e[n])}}function vg(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Tw=ot(),SK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Y()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){Tw(s).keep=!1}),i.eachSeries(function(s){var l=Mr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!Tw(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){Tw(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;w(t,function(n){var o=Mr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?Jh(l):tp(l))})}})},e.type="marker",e}(Ot),nf=SK;function HV(r,e,t){var i=e.coordinateSystem;r.each(function(a){var n=r.getItemModel(a),o,s=H(n.get("x"),t.getWidth()),l=H(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(i){var u=r.get(i.dimensions[0],a),f=r.get(i.dimensions[1],a);o=i.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var bK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markPoint");o&&(HV(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ra),p=wK(o,t,i);i.setData(p),HV(i.getData(),t,n),p.each(function(c){var h=p.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(X(v)||X(d)||X(m)||X(g)){var x=i.getRawValue(c),_=i.getDataParams(c);X(v)&&(v=v(x,_)),X(d)&&(d=d(x,_)),X(m)&&(m=m(x,_)),X(g)&&(g=g(x,_))}var b=h.getModel("itemStyle").getItemStyle(),S=Ma(l,"color");b.fill||(b.fill=S),p.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:b})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(h){tt(h).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(nf);function wK(r,e,t){var i;r?i=k(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return N(N({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new ve(i,t),n=k(t.get("data"),et(wo,e));r&&(n=Dt(n,et(To,r)));var o=hg(!!r,i);return a.initData(n,null,o),a}var WV=bK;function Cw(r){r.registerComponentModel(FV),r.registerComponentView(WV),r.registerPreprocessor(function(e){Ws(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var TK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markLine",e.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"},e}(Mr),YV=TK;var dg=ot(),CK=function(r,e,t,i){var a=r.getData(),n;if(O(i))n=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=ae(i.yAxis,i.xAxis);else{var u=bw(i,a,e,r);s=u.valueAxis;var f=yd(a,u.valueDataDim);l=vg(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,h=$(i),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=t.get("precision");d>=0&&vt(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[p]=v.coord[p]=l,n=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[wo(r,n[0]),wo(r,n[1]),N({},n[2])];return m[2].type=m[2].type||null,lt(m[2],m[0]),lt(m[2],m[1]),m};function mg(r){return!isNaN(r)&&!isFinite(r)}function ZV(r,e,t,i){var a=1-r,n=i.dimensions[r];return mg(e[a])&&mg(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function AK(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(ZV(1,t,i,r)||ZV(0,t,i,r)))return!0}return To(r,e[0])&&To(r,e[1])}function Aw(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),a.getWidth()),u=H(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Pi(n,"cartesian2d")){var h=n.getAxis("x"),v=n.getAxis("y"),f=n.dimensions;mg(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):mg(r.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var DK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=dg(o).from,u=dg(o).to;l.each(function(f){Aw(l,f,!0,n,a),Aw(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu);this.group.add(f.group);var p=MK(o,t,i),c=p.from,h=p.to,v=p.line;dg(i).from=c,dg(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");O(d)||(d=[d,d]),O(m)||(m=[m,m]),O(g)||(g=[g,g]),O(y)||(y=[y,y]),p.from.each(function(_){x(c,_,!0),x(h,_,!1)}),v.each(function(_){var b=v.getItemModel(_).getModel("lineStyle").getLineStyle();v.setItemLayout(_,[c.getItemLayout(_),h.getItemLayout(_)]),b.stroke==null&&(b.stroke=c.getItemVisual(_,"style").fill),v.setItemVisual(_,{fromSymbolKeepAspect:c.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(_,"symbolOffset"),fromSymbolRotate:c.getItemVisual(_,"symbolRotate"),fromSymbolSize:c.getItemVisual(_,"symbolSize"),fromSymbol:c.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:b})}),f.updateData(v),p.line.eachItemGraphicEl(function(_){tt(_).dataModel=i,_.traverse(function(b){tt(b).dataModel=i})});function x(_,b,S){var T=_.getItemModel(b);Aw(_,b,S,t,n);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Ma(l,"color")),_.setItemVisual(b,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:at(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:at(T.get("symbolRotate",!0),g[S?0:1]),symbolSize:at(T.get("symbolSize"),m[S?0:1]),symbol:at(T.get("symbol",!0),d[S?0:1]),style:C})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(nf);function MK(r,e,t){var i;r?i=k(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return N(N({},f),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new ve(i,t),n=new ve(i,t),o=new ve([],t),s=k(t.get("data"),et(CK,e,r,t));r&&(s=Dt(s,et(AK,r)));var l=hg(!!r,i);return a.initData(k(s,function(u){return u[0]}),null,l),n.initData(k(s,function(u){return u[1]}),null,l),o.initData(k(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var XV=DK;function Dw(r){r.registerComponentModel(YV),r.registerComponentView(XV),r.registerPreprocessor(function(e){Ws(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var IK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Mr),qV=IK;var gg=ot(),LK=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=wo(r,a),s=wo(r,n),l=o.coord,u=s.coord;l[0]=ae(l[0],-1/0),l[1]=ae(l[1],-1/0),u[0]=ae(u[0],1/0),u[1]=ae(u[1],1/0);var f=Cl([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function yg(r){return!isNaN(r)&&!isFinite(r)}function jV(r,e,t,i){var a=1-r;return yg(e[a])&&yg(t[a])}function EK(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Pi(r,"cartesian2d")?t&&i&&(jV(1,t,i,r)||jV(0,t,i,r))?!0:GV(r,a,n):To(r,a)||To(r,n)}function KV(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),a.getWidth()),u=H(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),h=n.clampData(p),v=[];t[0]==="x0"?v[0]=c[0]>h[0]?p[0]:f[0]:v[0]=c[0]>h[0]?f[0]:p[0],t[1]==="y0"?v[1]=c[1]>h[1]?p[1]:f[1]:v[1]=c[1]>h[1]?f[1]:p[1],s=i.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Pi(n,"cartesian2d")){var y=n.getAxis("x"),x=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);yg(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):yg(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var QV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],PK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=k(QV,function(p){return KV(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new K});this.group.add(f.group),this.markKeep(f);var p=zK(o,t,i);i.setData(p),p.each(function(c){var h=k(QV,function(C){return KV(p,c,C,t,n)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,m=v.getExtent(),g=d.getExtent(),y=[v.parse(p.get("x0",c)),v.parse(p.get("x1",c))],x=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];Ie(y),Ie(x);var _=!(m[0]>y[1]||m[1]x[1]||g[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(xt),Ic=NK;var of=et,Iw=w,xg=K,OK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new xg),this.group.add(this._selectorGroup=new xg),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,a,l,s,u);var f=t.getBoxLayoutParams(),p={width:a.getWidth(),height:a.getHeight()},c=t.get("padding"),h=Zt(f,p,c),v=this.layoutInner(t,o,h,n,l,u),d=Zt(q({width:v.width,height:v.height},f),p,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ag(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=Y(),p=i.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Iw(i.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` `)){var m=new xg;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(d)[0];if(!f.get(d))if(g){var y=g.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,d,v,h,i,t,x,b,_,p,n);S.on("click",of(JV,d,null,n,c)).on("mouseover",of(Lw,g.name,null,n,c)).on("mouseout",of(Ew,g.name,null,n,c)),a.ssr&&S.eachChild(function(T){var C=tt(T);C.seriesIndex=g.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=qe(D.fill);I&&I[3]===0&&(I[3]=.2,D=N(N({},D),{fill:_i(I,"rgba")}));var L=this._createItem(T,d,v,h,i,t,{},D,M,p,n);L.on("click",of(JV,null,d,n,c)).on("mouseover",of(Lw,null,d,n,c)).on("mouseout",of(Ew,null,d,n,c)),a.ssr&&L.eachChild(function(P){var z=tt(P);z.seriesIndex=T.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();Iw(t,function(u){var f=u.type,p=new yt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var c=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);ee(p,{normal:c,emphasis:h},{defaultText:u.title}),Ta(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),x=n.get("icon");f=x||f||"roundRect";var _=kK(f,n,l,u,h,m,c),b=new xg,S=n.getModel("textStyle");if(X(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(VK({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,A=s,D=o.get("formatter"),M=i;F(D)&&D?M=D.replace("{name}",i??""):X(D)&&(M=D(i));var I=m?S.getTextColor():n.get("inactiveColor");b.add(new yt({style:Ht(S,{text:M,x:C,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new ht({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&ji({el:L,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(z){z.silent=!0}),L.silent=!p,this.getContentGroup().add(b),Ta(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$i(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){$i("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:p[d]+=c[m]+v,h[1-d]+=f[g]/2-c[g]/2,u.x=h[0],u.y=h[1],l.x=p[0],l.y=p[1];var x={x:0,y:0};return x[m]=f[m]+v+c[m],x[g]=Math.max(f[g],c[g]),x[y]=Math.min(0,c[y]+h[1-d]),x}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ot);function kK(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Iw(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:ra(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!n){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function VK(r){var e=r.icon||"roundRect",t=Xt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function JV(r,e,t,i){Ew(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Lw(r,e,t,i)}function tU(r){for(var e=r.getZr().storage.getDisplayList(),t,i=0,a=e.length;ia[o],m=[-h.x,-h.y];i||(m[n]=f[u]);var g=[0,0],y=[-v.x,-v.y],x=at(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);_==="end"?y[n]+=a[o]-v[o]:g[n]+=v[o]+x}y[1-n]+=h[s]/2-v[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var b={x:0,y:0};if(b[o]=d?a[o]:h[o],b[s]=Math.max(h[s],v[s]),b[l]=Math.min(0,v[l]+y[1-n]),p.__rectSize=a[o],d){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-x,0),S[s]=b[s],p.setClipPath(new ht({shape:S})),p.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&_t(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),b},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",F(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=zw[o],l=Rw[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return v;var d=_(p);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,x=null;m<=c;++m)x=_(f[m]),(!x&&y.e>g.s+n||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=x;for(var m=u-1,g=d,y=d,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i=T&&S.s<=T+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e}(_g),nU=BK;function Nw(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function oU(r){St(Sg),r.registerComponentModel(iU),r.registerComponentView(nU),Nw(r)}function Ow(r){St(Sg),St(oU)}var FK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=mr(_o.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(_o),sU=FK;var kw=ot();function lU(r,e,t){kw(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function uU(r,e){for(var t=kw(r).coordSysRecordMap,i=t.keys(),a=0;ai[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function pU(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=kw(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=Y());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=rg(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,GK(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.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){fU(a,n);return}var f=YK(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),Ii(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var XK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),lU(a,t,{pan:W(Vw.pan,this),zoom:W(Vw.zoom,this),scrollMove:W(Vw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(ef),Vw={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=Uw[e](null,[i.originX,i.originY],o,t,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/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Qr(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:cU(function(r,e,t,i,a,n){var o=Uw[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:cU(function(r,e,t,i,a,n){var o=Uw[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function cU(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(Qr(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Uw={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},hU=XK;function Ec(r){Gs(r),r.registerComponentModel(sU),r.registerComponentView(hU),pU(r)}var qK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=mr(_o.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(_o),vU=qK;var Pc=ht,dU=7,jK=1,Bw=30,KK=7,zc="horizontal",mU="vertical",QK=5,$K=["line","bar","candlestick","scatter"],JK={easing:"cubicOut",duration:100,delay:0},tQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),Ii(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cn(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new K;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?KK:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===zc?{right:s.width-o.x-o.width,top:s.height-Bw-dU-n,width:o.width,height:Bw}:{right:dU,top:o.y,width:Bw,height:o.height},u=Ai(t.option);w(["right","top","width","height"],function(p){u[p]==="ph"&&(u[p]=l[p])});var f=Zt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===mU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===zc&&!o?{scaleY:l?1:-1,scaleX:1}:a===zc&&o?{scaleY:l?1:-1,scaleX:-1}:a===mU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Pc({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Pc({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:W(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)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(l),c=(p[1]-p[0])*.3;p=[p[0]-c,p[1]+c];var h=[0,i[1]],v=[0,i[0]],d=[[i[0],0],[0,0]],m=[],g=v[1]/(o.count()-1),y=0,x=Math.round(o.count()/i[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=g;return}var M=A==null||isNaN(A)||A==="",I=M?0:kt(A,p,h,!0);M&&!_&&D?(d.push([d[d.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&_&&(d.push([y,0]),m.push([y,0])),d.push([y,I]),m.push([y,I]),y+=g,_=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function S(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new K,I=new he({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new pe({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!a&&!(i!==!0&&nt($K,u.get("type"))<0)){var f=n.getComponent(Vi(o),s).axis,p=eQ(o),c,h=u.coordinateSystem;p!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),p=u.getData().mapDimension(p),a={thisAxis:f,series:u,thisDim:o,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Pc({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Pc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:jK,fill:"rgba(0,0,0,0)"}})),w([0,1],function(x){var _=l.get("handleIcon");!Lp[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=Xt(_,-1,0,2,2,null,!0);b.attr({cursor:gU(this._orient),draggable:!0,drift:W(this._onDragMove,this,x),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=H(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ta(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(a[x]=b);var A=l.getModel("textStyle");t.add(n[x]=new yt({silent:!0,invisible:!0,style:Ht(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=c;if(p){var v=H(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new ht({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Xt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new ht({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:gU(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[kt(t[0],[0,100],i,!0),kt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Qr(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?kt(s.minSpan,l,o,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ie([kt(n[0],o,l,!0),kt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=Ie(a.slice()),o=this._size;w([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.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]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;fi[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new bt(i,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ie([kt(a.x,o,s,!0),kt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Pr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Pc({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?JK:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=rg(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(ef);function eQ(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function gU(r){return r==="vertical"?"ns-resize":"ew-resize"}var yU=tQ;function Rc(r){r.registerComponentModel(vU),r.registerComponentView(yU),Gs(r)}function Fw(r){St(Ec),St(Rc)}var rQ={get:function(r,e,t){var i=$((iQ[r]||{})[e]);return t&&O(i)?i[i.length-1]:i}},iQ={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]}},bg=rQ;var xU=xe.mapVisual,aQ=xe.eachVisual,nQ=O,_U=w,oQ=Ie,sQ=kt,lQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&lg(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=W(t,this),this.controllerVisuals=Dc(this.option.controller,i,t),this.targetVisuals=Dc(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=Nt(t),i},e.prototype.eachTargetSeries=function(t,i){w(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],O(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(F(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(X(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=oQ([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var a=t.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});lt(n,a),lt(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(p){nQ(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,h){var v=p[c],d=p[h];v&&!d&&(d=p[h]={},_U(v,function(m,g){if(xe.isValidType(g)){var y=bg.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,h=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";_U(this.stateList,function(g){var y=this.itemSize,x=p[g];x||(x=p[g]={color:s?v:[v]}),x.symbol==null&&(x.symbol=c&&$(c)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&$(h)||(s?y[0]:[y[0],y[0]])),x.symbol=xU(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;aQ(_,function(S){S>b&&(b=S)}),x.symbolSize=xU(_,function(S){return sQ(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(xt),sf=lQ;var SU=[20,140],uQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=SU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=SU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):O(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Ie((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=bU(this,"outOfRange",this.getExtent()),a=bU(this,"inRange",this.option.range.slice()),n=[];function o(h,v){n.push({value:h,color:t(h,v)})}for(var s=0,l=0,u=a.length,f=i.length;lt[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new K(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();pQ([0,1],function(f){var p=o[f];p.setStyle("fill",i.handlesColor[f]),p.y=t[f];var c=Fa(t[f],[0,l[1]],u,!0),h=this.getControllerVisual(c,"symbolSize");p.scaleX=p.scaleY=h/l[0],p.x=l[0]-h/2;var v=nr(a.handleLabelPoints[f],qi(p,this.group));s[f].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),v=this.getControllerVisual(t,"symbolSize"),d=Fa(t,s,u,!0),m=l[0]-v/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=nr(f.indicatorLabelPoint,qi(p,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),b=this._orient,S=b==="horizontal";x.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:S?_:"middle",align:S?"center":_});var T={x:m,y:d,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(T,A),x.animateTo(C,A)}else p.attr(T),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(i||MU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var v=gA(c,h);this._dispatchHighDown("downplay",lf(v[0],a)),this._dispatchHighDown("highlight",lf(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(ta(t.target,function(l){var u=tt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function mQ(r,e,t,i){for(var a=e.targetVisuals[i],n=xe.prepareVisualTypes(a),o={color:Ma(r.getData(),"color")},s=0,l=n.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(EU,PU),w(zU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Hw))}function Oc(r){r.registerComponentModel(wU),r.registerComponentView(LU),Nc(r)}var gQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],yQ[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=$(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=k(this._pieceList,function(l){return l=$(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=xe.listVisualTypes(),n=this.isCategory();w(t.pieces,function(s){w(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),w(i,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&w(this.stateList,function(f){(t[f]||(t[f]={}))[l]=bg.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,w(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;w(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=$(t)},e.prototype.getValueState=function(t){var i=xe.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=xe.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var h=t(c,p);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:i.push({value:f[0],color:h},{value:f[1],color:h})}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 w(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=mr(sf.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}),e}(sf),yQ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function OU(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var kU=gQ;var xQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),p=f.endsText,c=ae(i.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],u,c,l),w(f.viewPieceList,function(h){var v=h.piece,d=new K;d.onclick=W(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var m=i.getRepresentValue(v);if(this._createItemSymbol(d,m,[0,0,u[0],u[1]]),c){var g=this.visualMapModel.getValueState(m);d.add(new yt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}t.add(d)},this),p&&this._renderEndsText(t,p[1],u,c,l),$i(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:lf(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return Tg(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new K,l=this.visualMapModel.textStyleModel;s.add(new yt({style:Ht(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=k(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a){t.add(Xt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=$(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,w(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})}},e.type="visualMap.piecewise",e}(wg),VU=xQ;function kc(r){r.registerComponentModel(kU),r.registerComponentView(VU),Nc(r)}function Ww(r){St(Oc),St(kc)}var _Q={label:{enabled:!0},decal:{show:!1}},UU=ot(),SQ={};function Yw(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=$(_Q);lt(i.label,r.getLocaleModel().get("aria"),!1),lt(t.option,i,!1),a(),n();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var p=Y();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=p.get(c.type);h||(h={},p.set(c.type,h)),UU(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(X(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=gp(c.ecModel,c.name,SQ,r.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",_(x,y))}else{var v=c.getRawData(),d={},m=UU(c).scope;h.each(function(b){var S=h.getRawIndex(b);d[S]=b});var g=v.count();v.each(function(b){var S=d[b],T=v.getName(b)||b+"",C=gp(c.ecModel,T,m,g),A=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",_(A,C))})}function _(b,S){var T=b?N(N({},S),b):S;return T.dirty=!0,T}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=q(f.option,u),!!f.get("enabled")){var p=e.getZr().dom;if(f.get("description")){p.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),m;if(!(c<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var x=[],_=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(_,{seriesCount:c}),r.eachSeries(function(C,A){if(A1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var L=C.getData();if(L.count()>h){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:h})}else D+=f.get(["data","allData"]);for(var z=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),U=[],V=0;V":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},bQ=function(){function r(e){var t=this._condVal=F(e)?new RegExp(e):ZT(e)?e:null;if(t==null){var i="";Gt(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return F(t)?this._condVal.test(e):vt(t)?this._condVal.test(e+""):!1},r}(),wQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),TQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&i.push(a),a=[L,P]}function f(L,P,z,R){ff(L,z)&&ff(P,R)||a.push(L,P,z,R,z,R)}function p(L,P,z,R,U,V){var B=Math.abs(P-L),Z=Math.tan(B/4)*4/3,Q=PC:M2&&i.push(a),i}function Qw(r,e,t,i,a,n,o,s,l,u){if(ff(r,t)&&ff(e,i)&&ff(a,o)&&ff(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,h=s-e,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=t-r,m=i-e,g=a-o,y=n-s,x=d*d+m*m,_=g*g+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],D=[];yi(r,t,a,o,.5,A),yi(e,i,n,s,.5,D),Qw(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Qw(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function ZU(r,e){var t=Cg(r),i=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),p=KU([l,u],f?0:1,e),c=(f?s:u)/p.length,h=0;ha,o=KU([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c1?null:new bt(d*l+r,d*u+e)}function NQ(r,e,t){var i=new bt;bt.sub(i,t,e),i.normalize();var a=new bt;bt.sub(a,r,e);var n=a.dot(i);return n}function pf(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function OQ(r,e,t){for(var i=r.length,a=[],n=0;no?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),OQ(e,u,f)}function Ag(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);Ag(r,n[0],a,i),Ag(r,n[1],t-a,i)}return i}function kQ(r,e){for(var t=[],i=0;i0)for(var b=i/t,S=-i/2;S<=i/2;S+=b){for(var T=Math.sin(S),C=Math.cos(S),A=0,x=0;x0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Mg(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=k(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=k(n,function(s,l){return{cp:s,z:YQ(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function iB(r){return QU(r.path,r.count)}function $w(){return{fromIndividuals:[],toIndividuals:[],count:0}}function aB(r,e,t){var i=[];function a(b){for(var S=0;S=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var ZQ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;oB(r)&&(u=r,f=e),oB(e)&&(u=e,f=r);function p(g,y,x,_,b){var S=g.many,T=g.one;if(S.length===1&&!b){var C=y?S[0]:T,A=y?T:S[0];if(Uc(C))p({many:[C],one:A},!0,x,_,!0);else{var D=s?q({delay:s(x,_)},l):l;Ig(C,A,D),n(C,A,C,A,D)}}else for(var M=q({dividePath:ZQ[t],individualDelay:s&&function(U,V,B,Z){return s(U+x,_)}},l),I=y?aB(S,T,M):nB(T,S,M),L=I.fromIndividuals,P=I.toIndividuals,z=L.length,R=0;Re.length,h=u?sB(f,u):sB(c?e:r,[c?r:e]),v=0,d=0;ddB))for(var n=i.getIndices(),o=0;o0&&S.group.traverse(function(C){C instanceof it&&!C.animators.length&&C.animateFrom({style:{opacity:0}},T)})})}function cB(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function hB(r){return O(r)?r.sort().join(","):r}function Ao(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function JQ(r,e){var t=Y(),i=Y(),a=Y();w(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=cB(o),p=hB(f);i.set(p,{dataGroupId:l,data:u}),O(f)&&w(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&uA("Duplicated seriesKey in universalTransition "+o)}return w(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=cB(o),f=hB(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:Ao(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:Ao(l),data:l}]});else if(O(u)){var c=[];w(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:Ao(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:Ao(l)}]})}else{var h=a.get(u);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ao(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:Ao(l)})}}}}),t}function vB(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ao(e.oldData[s]),groupIdDim:o.dimension})}),w(Nt(r.to),function(o){var s=vB(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ao(l),groupIdDim:o.dimension})}}),a.length>0&&n.length>0&&mB(a,n,i)}function eT(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){w(Nt(i.seriesTransition),function(a){w(Nt(a.to),function(n){for(var o=i.updatedSeries,s=0;s{let e=class e{constructor(){this.chartInstance=null,this.options={},this.defaultTooltipOptions={tooltip:{trigger:"item",borderColor:"#00eff8",backgroundColor:"#12192C",padding:[6,14,6,14],textStyle:{fontSize:14,color:"#74FAFB"},position:"top",axisPointer:{type:"shadow"}},series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:0,max:1,splitNumber:8,axisLine:{lineStyle:{width:6,color:[[.25,"#74FAFB"],[.5,"#74FAFB"],[.75,"#74FAFB"],[1,"#74FAFB"]]}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"12%",width:20,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{length:12,lineStyle:{color:"auto",width:2}},splitLine:{length:20,lineStyle:{color:"auto",width:5}},axisLabel:{color:"#464646",fontSize:20,distance:-60,rotate:"tangential",formatter:function(i){return""}},title:{offsetCenter:[0,"-10%"],fontSize:20},tooltip:{trigger:"item",borderColor:"#00eff8",backgroundColor:"#12192C",padding:[6,14,6,14],textStyle:{fontSize:14,color:"#74FAFB"},position:"top",axisPointer:{type:"shadow"}},detail:{fontSize:30,offsetCenter:[0,"-5%"],valueAnimation:!0,formatter:function(i){return Math.round(i*100)+""},color:"inherit"}}]}}ngOnInit(){console.log("ChartComponentComponent ngOnInit"),this.initEcharts()}ngOnChanges(i){i.options&&!i.options.isFirstChange()&&(console.log("ChartComponentComponent ngOnChanges"),this.updateChartOptions())}ngOnDestroy(){this.chartInstance&&(console.log("ChartComponentComponent ngOnInit"),this.chartInstance.dispose())}initEcharts(){let i=this.chartContainer.nativeElement;this.chartInstance=Ox(i,"dark");let a=Fc(Fc({},this.defaultTooltipOptions),this.options);this.chartInstance.setOption(a)}updateChartOptions(){this.chartInstance&&this.chartInstance.setOption(this.options)}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["app-chart-component"]],viewQuery:function(a,n){if(a&1&&Gc(e$,7),a&2){let o;Ui(o=Bi())&&(n.chartContainer=o.first)}},inputs:{options:"options"},standalone:!0,features:[vf,Ae],decls:2,vars:0,consts:[[2,"width","100%","height","100%"],["chart",""]],template:function(a,n){a&1&&Ce(0,"div",0,1)}});let r=e;return r})();var Do=["*"];function r$(r,e){if(r&1&&Ce(0,"nz-avatar",3),r&2){let t=Jt();mt("nzSrc",t.nzSrc)}}function i$(r,e){r&1&&ze(0,0,["*ngIf","!nzSrc"])}function a$(r,e){if(r&1&&Ce(0,"nz-list-item-meta-avatar",3),r&2){let t=Jt();mt("nzSrc",t.avatarStr)}}function n$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-avatar"),wT(1,4),Wt()),r&2){let t=Jt();wt(),mt("ngTemplateOutlet",t.avatarTpl)}}function o$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzTitle)}}function s$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-title"),qt(1,o$,2,1,"ng-container",6),Wt()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzTitle)}}function l$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzDescription)}}function u$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-description"),qt(1,l$,2,1,"ng-container",6),Wt()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzDescription)}}function f$(r,e){if(r&1&&(Ft(0,"div",5),qt(1,s$,2,1,"nz-list-item-meta-title",1)(2,u$,2,1,"nz-list-item-meta-description",1),ze(3,1),ze(4,2),Wt()),r&2){let t=Jt();wt(),mt("ngIf",t.nzTitle&&!t.titleComponent),wt(),mt("ngIf",t.nzDescription&&!t.descriptionComponent)}}var p$=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],c$=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function h$(r,e){r&1&&ze(0)}var v$=["nz-list-item-actions",""];function d$(r,e){}function m$(r,e){r&1&&Ce(0,"em",3)}function g$(r,e){if(r&1&&(Ft(0,"li"),qt(1,d$,0,0,"ng-template",1)(2,m$,1,0,"em",2),Wt()),r&2){let t=e.$implicit,i=e.last;wt(),mt("ngTemplateOutlet",t),wt(),mt("ngIf",!i)}}function y$(r,e){}var wB=(r,e)=>({$implicit:r,index:e});function x$(r,e){if(r&1&&(ca(0),qt(1,y$,0,0,"ng-template",9),ha()),r&2){let t=e.$implicit,i=e.index,a=Jt(2);wt(),mt("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",Gg(2,wB,t,i))}}function _$(r,e){if(r&1&&(Ft(0,"div",7),qt(1,x$,2,5,"ng-container",8),ze(2,4),Wt()),r&2){let t=Jt();wt(),mt("ngForOf",t.nzDataSource)}}function S$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(2);wt(),bn(t.nzHeader)}}function b$(r,e){if(r&1&&(Ft(0,"nz-list-header"),qt(1,S$,2,1,"ng-container",10),Wt()),r&2){let t=Jt();wt(),mt("nzStringTemplateOutlet",t.nzHeader)}}function w$(r,e){r&1&&Ce(0,"div"),r&2&&ST("min-height",53,"px")}function T$(r,e){}function C$(r,e){if(r&1&&(Ft(0,"div",13),qt(1,T$,0,0,"ng-template",9),Wt()),r&2){let t=e.$implicit,i=e.index,a=Jt(2);mt("nzSpan",a.nzGrid.span||null)("nzXs",a.nzGrid.xs||null)("nzSm",a.nzGrid.sm||null)("nzMd",a.nzGrid.md||null)("nzLg",a.nzGrid.lg||null)("nzXl",a.nzGrid.xl||null)("nzXXl",a.nzGrid.xxl||null),wt(),mt("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",Gg(9,wB,t,i))}}function A$(r,e){if(r&1&&(Ft(0,"div",11),qt(1,C$,2,12,"div",12),Wt()),r&2){let t=Jt();mt("nzGutter",t.nzGrid.gutter||null),wt(),mt("ngForOf",t.nzDataSource)}}function D$(r,e){if(r&1&&Ce(0,"nz-list-empty",14),r&2){let t=Jt();mt("nzNoResult",t.nzNoResult)}}function M$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(2);wt(),bn(t.nzFooter)}}function I$(r,e){if(r&1&&(Ft(0,"nz-list-footer"),qt(1,M$,2,1,"ng-container",10),Wt()),r&2){let t=Jt();wt(),mt("nzStringTemplateOutlet",t.nzFooter)}}function L$(r,e){}function E$(r,e){}function P$(r,e){if(r&1&&(Ft(0,"nz-list-pagination"),qt(1,E$,0,0,"ng-template",6),Wt()),r&2){let t=Jt();wt(),mt("ngTemplateOutlet",t.nzPagination)}}var z$=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],R$=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function N$(r,e){if(r&1&&Ce(0,"ul",6),r&2){let t=Jt(2);mt("nzActions",t.nzActions)}}function O$(r,e){if(r&1&&(qt(0,N$,1,1,"ul",5),ze(1)),r&2){let t=Jt();mt("ngIf",t.nzActions&&t.nzActions.length>0)}}function k$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzContent)}}function V$(r,e){if(r&1&&(ca(0),qt(1,k$,2,1,"ng-container",8),ha()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzContent)}}function U$(r,e){if(r&1&&(ze(0,1),ze(1,2),qt(2,V$,2,1,"ng-container",7)),r&2){let t=Jt();wt(2),mt("ngIf",t.nzContent)}}function B$(r,e){r&1&&ze(0,3)}function F$(r,e){}function G$(r,e){}function H$(r,e){}function W$(r,e){}function Y$(r,e){if(r&1&&qt(0,F$,0,0,"ng-template",9)(1,G$,0,0,"ng-template",9)(2,H$,0,0,"ng-template",9)(3,W$,0,0,"ng-template",9),r&2){let t=Jt(),i=Wa(3),a=Wa(5),n=Wa(1);mt("ngTemplateOutlet",i),wt(),mt("ngTemplateOutlet",t.nzExtra),wt(),mt("ngTemplateOutlet",a),wt(),mt("ngTemplateOutlet",n)}}function Z$(r,e){}function X$(r,e){}function q$(r,e){}function j$(r,e){if(r&1&&(Ft(0,"nz-list-item-extra"),qt(1,q$,0,0,"ng-template",9),Wt()),r&2){let t=Jt(2);wt(),mt("ngTemplateOutlet",t.nzExtra)}}function K$(r,e){}function Q$(r,e){if(r&1&&(ca(0),Ft(1,"div",10),qt(2,Z$,0,0,"ng-template",9)(3,X$,0,0,"ng-template",9),Wt(),qt(4,j$,2,1,"nz-list-item-extra",7)(5,K$,0,0,"ng-template",9),ha()),r&2){let t=Jt(),i=Wa(3),a=Wa(1),n=Wa(5);wt(2),mt("ngTemplateOutlet",i),wt(),mt("ngTemplateOutlet",a),wt(),mt("ngIf",t.nzExtra),wt(),mt("ngTemplateOutlet",n)}}var $$=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],J$=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"],yB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(a,n){a&1&&(hi(),Ft(0,"h4",0),ze(1),Wt())},encapsulation:2,changeDetection:0});let r=e;return r})(),xB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(a,n){a&1&&(hi(),Ft(0,"div",0),ze(1),Wt())},encapsulation:2,changeDetection:0});let r=e;return r})(),TB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(a,n){a&1&&(hi(),Ft(0,"div",0),qt(1,r$,1,1,"nz-avatar",1)(2,i$,1,0,"ng-content",2),Wt()),a&2&&(wt(),mt("ngIf",n.nzSrc),wt(),mt("ngIf",!n.nzSrc))},dependencies:[Cn,RT,va],encapsulation:2,changeDetection:0});let r=e;return r})(),tJ=(()=>{let e=class e{set nzAvatar(i){i instanceof Fg?(this.avatarStr="",this.avatarTpl=i):this.avatarStr=i}constructor(i){this.elementRef=i,this.avatarStr=""}};e.\u0275fac=function(a){return new(a||e)($r(xT))},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(a,n,o){if(a&1&&(Sn(o,xB,5),Sn(o,yB,5)),a&2){let s;Ui(s=Bi())&&(n.descriptionComponent=s.first),Ui(s=Bi())&&(n.titleComponent=s.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[Ae],ngContentSelectors:c$,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(a,n){a&1&&(hi(p$),qt(0,a$,1,1,"nz-list-item-meta-avatar",0)(1,n$,2,1,"nz-list-item-meta-avatar",1),ze(2),qt(3,f$,5,2,"div",2)),a&2&&(mt("ngIf",n.avatarStr),wt(),mt("ngIf",n.avatarTpl),wt(2),mt("ngIf",n.nzTitle||n.nzDescription||n.descriptionComponent||n.titleComponent))},dependencies:[TB,va,mf,yB,Yc,Wc,xB],encapsulation:2,changeDetection:0});let r=e;return r})(),_B=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),eJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(a,n){if(a&1&&Gc(Fg,5),a&2){let o;Ui(o=Bi())&&(n.templateRef=o.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),qt(0,h$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=e;return r})(),rJ=(()=>{let e=class e{constructor(i,a,n){this.ngZone=i,this.nzActions=[],this.actions=[],this.inputActionChanges$=new Rg,this.contentChildrenChanges$=pT(()=>this.nzListItemActions?fT(null):this.ngZone.onStable.pipe(hT(1),this.enterZone(),vT(()=>this.nzListItemActions.changes.pipe(dT(this.nzListItemActions))))),cT(this.contentChildrenChanges$,this.inputActionChanges$).pipe(Ng(n)).subscribe(()=>{this.nzActions.length?this.actions=this.nzActions:this.actions=this.nzListItemActions.map(o=>o.templateRef),a.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}enterZone(){return i=>new lT(a=>i.subscribe({next:n=>this.ngZone.run(()=>a.next(n))}))}};e.\u0275fac=function(a){return new(a||e)($r(_T),$r(Og),$r(qc))},e.\u0275cmp=Te({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(a,n,o){if(a&1&&Sn(o,eJ,4),a&2){let s;Ui(s=Bi())&&(n.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[CT([qc]),vf,Ae],attrs:v$,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(a,n){a&1&&qt(0,g$,3,2,"li",0),a&2&&mt("ngForOf",n.actions)},dependencies:[df,mf,va],encapsulation:2,changeDetection:0});let r=e;return r})(),CB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[Ae],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(a,n){a&1&&Ce(0,"nz-embed-empty",0),a&2&&mt("nzComponentName","list")("specificContent",n.nzNoResult)},dependencies:[PT,ET],encapsulation:2,changeDetection:0});let r=e;return r})(),iJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),SB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),bB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),aJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275dir=yT({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0});let r=e;return r})();var AB=(()=>{let e=class e{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(i){this.directionality=i,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new uT(this.nzItemLayout),this.destroy$=new Rg}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Ng(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(i){i.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}};e.\u0275fac=function(a){return new(a||e)($r(LT,8))},e.\u0275cmp=Te({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(a,n,o){if(a&1&&(Sn(o,SB,5),Sn(o,bB,5),Sn(o,aJ,5)),a&2){let s;Ui(s=Bi())&&(n.nzListFooterComponent=s.first),Ui(s=Bi())&&(n.nzListPaginationComponent=s.first),Ui(s=Bi())&&(n.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(a,n){a&2&&kg("ant-list-rtl",n.dir==="rtl")("ant-list-vertical",n.nzItemLayout==="vertical")("ant-list-lg",n.nzSize==="large")("ant-list-sm",n.nzSize==="small")("ant-list-split",n.nzSplit)("ant-list-bordered",n.nzBordered)("ant-list-loading",n.nzLoading)("ant-list-something-after-last-item",n.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[vf,Ae],ngContentSelectors:R$,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(a,n){if(a&1&&(hi(z$),qt(0,_$,3,1,"ng-template",null,0,Zs)(2,b$,2,1,"nz-list-header",1),ze(3),Ft(4,"nz-spin",2),ca(5),qt(6,w$,1,2,"div",3)(7,A$,2,2,"div",4)(8,D$,1,1,"nz-list-empty",5),ha(),Wt(),qt(9,I$,2,1,"nz-list-footer",1),ze(10,1),qt(11,L$,0,0,"ng-template",6),ze(12,2),qt(13,P$,2,1,"nz-list-pagination",1),ze(14,3)),a&2){let o=Wa(1);wt(2),mt("ngIf",n.nzHeader),wt(2),mt("nzSpinning",n.nzLoading),wt(2),mt("ngIf",n.nzLoading&&n.nzDataSource&&n.nzDataSource.length===0),wt(),mt("ngIf",n.nzGrid&&n.nzDataSource)("ngIfElse",o),wt(),mt("ngIf",!n.nzLoading&&n.nzDataSource&&n.nzDataSource.length===0),wt(),mt("ngIf",n.nzFooter),wt(2),mt("ngTemplateOutlet",n.nzLoadMore),wt(2),mt("ngIf",n.nzPagination)}},dependencies:[mf,df,iJ,va,Yc,Wc,wn,zT,Tn,Qc,Kc,CB,SB,bB],encapsulation:2,changeDetection:0});let r=e;return hf([gf()],r.prototype,"nzBordered",void 0),hf([gf()],r.prototype,"nzLoading",void 0),hf([gf()],r.prototype,"nzSplit",void 0),r})(),nJ=(()=>{let e=class e{get isVerticalAndExtra(){return this.itemLayout==="vertical"&&(!!this.listItemExtraDirective||!!this.nzExtra)}constructor(i,a){this.parentComp=i,this.cdr=a,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(i=>{this.itemLayout=i,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}};e.\u0275fac=function(a){return new(a||e)($r(AB),$r(Og))},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(a,n,o){if(a&1&&Sn(o,_B,5),a&2){let s;Ui(s=Bi())&&(n.listItemExtraDirective=s.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(a,n){a&2&&kg("ant-list-item-no-flex",n.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],standalone:!0,features:[Ae],ngContentSelectors:J$,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(a,n){if(a&1&&(hi($$),qt(0,O$,2,1,"ng-template",null,0,Zs)(2,U$,3,1,"ng-template",null,1,Zs)(4,B$,1,0,"ng-template",null,2,Zs)(6,Y$,4,4,"ng-template",null,3,Zs)(8,Q$,6,4,"ng-container",4)),a&2){let o=Wa(7);wt(8),mt("ngIf",n.isVerticalAndExtra)("ngIfElse",o)}},dependencies:[rJ,va,Yc,Wc,mf,_B],encapsulation:2,changeDetection:0});let r=e;return hf([gf()],r.prototype,"nzNoFlex",void 0),r})();var Pg=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=gT({type:e}),e.\u0275inj=mT({imports:[AB,CB,nJ,tJ,TB]});let r=e;return r})();var lJ=r=>({margin:r,width:"100%",height:"16rem"});function uJ(r,e){if(r&1&&Ce(0,"app-chart-component",28),r&2){let t=Jt(2).$implicit,i=Jt();bT(AT(3,lJ,"20px "+20/i.chartConfig.rowNumber+"px")),mt("options",t.options)}}function fJ(r,e){if(r&1&&(Ft(0,"div",26),qt(1,uJ,1,5,"app-chart-component",27),Wt()),r&2){let t=Jt().$implicit,i=Jt();mt("nzSpan",24/i.chartConfig.rowNumber),wt(),mt("ngIf",t.checked)}}function pJ(r,e){if(r&1&&qt(0,fJ,2,2,"div",25),r&2){let t=e.$implicit;mt("ngIf",t.checked)}}function cJ(r,e){if(r&1&&(Ft(0,"div",4)(1,"div",29),Ce(2,"app-chart-component",30),Wt()()),r&2){let t=e.$implicit;wt(2),mt("options",t)}}var rF=(()=>{let e=class e{handleCheckedItems(i){console.log("\u5F53\u524D\u9009\u4E2D\u7684\u9879\u76EE:",i)}constructor(i){this._mqttService=i,this.http=Ys(Xc),this.modal=Ys(Zc),this.chartConfig={rowNumber:1,optionsCheckList:[{label:"\u5168\u6C34",options:{},checked:!0},{label:"\u70ED\u503C",options:{},checked:!0},{label:"\u5168\u786B",options:{},checked:!1},{label:"\u5185\u6C34",options:{},checked:!1},{label:"\u7070\u5206",options:{},checked:!1},{label:"\u6325\u53D1\u5206",options:{},checked:!1}],optionBottomList:[{}],optionsList:[{label:"\u5168\u6C34",options:{},checked:!0},{label:"\u70ED\u503C",options:{},checked:!0}],tableList:[{coldef:[{headerName:"\u65F6\u95F4",field:"rwmc",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u7CFB\u7EDF/\u8BBE\u5907",field:"rwms",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u64CD\u4F5C\u63CF\u8FF0",field:"kssj",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u64CD\u4F5C\u4EBA\u5458",field:"jhwcsj",unSortIcon:!0,minWidth:void 0,flex:1}],rowData:[]},{coldef:[{headerName:"\u5E8F\u53F7",field:"rwmc",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u65F6\u95F4",field:"kssj",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u4EFB\u52A1\u63CF\u8FF0",field:"rwms",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u7B49\u7EA7",field:"dqzt",unSortIcon:!0,minWidth:void 0,flex:1}],rowData:[]}]},this.chart_options={},this.chart_options0={},this.chart_options1={},this.chart_options2={},this.chart_options3={},this.chart_options4={},this.rowData=[],this.colDefs1=[{headerName:"\u65F6\u95F4",field:"rwmc",flex:1},{headerName:"\u7CFB\u7EDF/\u8BBE\u5907",field:"rwms",flex:1},{headerName:"\u64CD\u4F5C\u63CF\u8FF0",field:"kssj",flex:1},{headerName:"\u64CD\u4F5C\u4EBA\u5458",field:"jhwcsj",flex:1}],this.colDefs2=[{headerName:"\u5E8F\u53F7",field:"rwmc",flex:1},{headerName:"\u65F6\u95F4",field:"kssj",flex:2},{headerName:"\u4EFB\u52A1\u63CF\u8FF0",field:"rwms",flex:1},{headerName:"\u7B49\u7EA7",field:"dqzt",flex:1.5}],this.subscription=this._mqttService.observe("s1").subscribe(a=>{let n=JSON.parse(a.payload.toString());console.log("Received message as object: ",n.msg),this.chart_options0=n.msg})}ngOnInit(){this.getServerConfig();for(var i=1;i<30;i++)this.rowData.push({rwmc:"\u4EFB\u52A1"+i,rwms:"\u4EFB\u52A1\u63CF\u8FF0"+i,kssj:"2024-1-"+i+" 13:38:"+i*11,jhwcsj:"2024-1-"+i+" 13:38:"+i*10,sfcq:"\u5426",dqzt:"\u6B63\u5E38",dqjd:"\u8282\u70B9"+i,sjwcsj:"2024-1-"+i+" 13:38:"+i*27,bjmc:"\u62A5\u8B665",bjms:"\u62A5\u8B66\u63CF\u8FF05",bjsj:"2024-1-"+i+" 13:38:"+i*12,gzyy:"-",clff:"-",tzsj:"2024-1-"+i+" 13:38:"+i*19,zycd:"\u4E00\u822C",tzmc:"\u7CFB\u7EDF\u63D0\u793A",tznr:"\u8D26\u6237\u767B\u5F55",fj:"-",cz:"\u64CD\u4F5C"});for(var a=[],n=[],o=[],s=100,i=0;i{this.chartConfig.optionsCheckList[0].options=i.data,console.log(i)})}};e.\u0275fac=function(a){return new(a||e)($r(VT))},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-s1"]],standalone:!0,features:[Ae],decls:56,vars:13,consts:[["nz-row","",1,"s1-container",3,"nzGutter"],["nz-col","","nzSpan","8"],["title","\u7CFB\u7EDF\u72B6\u6001"],["nz-row","",2,"justify-content","center","align-items","center"],["nz-col","","nzSpan","12"],[1,"centered-element"],[2,"width","26rem","height","11rem",3,"options"],[1,"sys-status-title"],["title","\u7CFB\u7EDF\u64CD\u4F5C\u8BB0\u5F55",2,"margin-top","1rem"],[1,"ag-theme-datav",3,"rowData","columnDefs"],["title","\u7CFB\u7EDF\u62A5\u8B66\u4FE1\u606F",2,"margin-top","1rem"],["title","",2,"margin-top","1rem"],[1,"progress-container"],[1,"status-text"],[2,"width","100%",3,"nzPercent","nzStrokeColor"],[1,"status-ext-text"],[1,"progress-container","mt-sm"],["title",""],[2,"height","34.6rem"],["src","assets/dashboard/dashboard_ws_demo1.png",2,"width","100%"],["nz-row","",2,"justify-content","center","align-items","center","margin-top","0.5rem"],["nz-col","","nzSpan","12",1,"sys-status-title"],["title","\u5316\u9A8C\u7ED3\u679C",3,"showSetting","optionsList","onCheckedItemsChange"],["nz-row","",1,"scrollable-container"],["nz-row",""],["nz-col","","class","centered-element",3,"nzSpan",4,"ngIf"],["nz-col","",1,"centered-element",3,"nzSpan"],[3,"options","style",4,"ngIf"],[3,"options"],[1,"centered-element",2,"margin","2px"],[2,"width","26rem","height","11rem","margin-left","0.4rem",3,"options"],["nz-col","","class","centered-element",3,"nzSpan"]],template:function(a,n){a&1&&(Ft(0,"div",0)(1,"div",1)(2,"data-v-card",2)(3,"div",3)(4,"div",4)(5,"div",5),Ce(6,"app-chart-component",6),Wt(),Ft(7,"div",7),Re(8,"\u7CFB\u7EDF\u5065\u5EB7\u5EA6"),Wt()(),Ft(9,"div",4)(10,"div",5),Ce(11,"app-chart-component",6),Wt(),Ft(12,"div",7),Re(13,"\u8BBE\u5907\u6295\u8FD0\u5EA6"),Wt()()()(),Ft(14,"data-v-card",8),Ce(15,"ag-grid-angular",9),Wt(),Ft(16,"data-v-card",10),Ce(17,"ag-grid-angular",9),Wt(),Ft(18,"data-v-card",11)(19,"div",12)(20,"span",13),Re(21,"\u5316\u9A8C\u6548\u7387\uFF1A"),Wt(),Ce(22,"nz-progress",14),Ft(23,"span",15),Re(24,"\uFF0816/25\uFF09"),Wt()(),Ft(25,"div",16)(26,"span",13),Re(27,"\u5B8C \u6210 \u7387 \uFF1A"),Wt(),Ce(28,"nz-progress",14),Ft(29,"span",15),Re(30,"\uFF0812/20\uFF09"),Wt()()()(),Ft(31,"div",1)(32,"data-v-card",17)(33,"div",18),Ce(34,"img",19),Ft(35,"div",20)(36,"div",21),Re(37," \u673A\u5668\u4EBA "),Wt(),Ft(38,"div",21),Re(39," \u5168\u786B\u4EEA "),Wt(),Ft(40,"div",21),Re(41," \u5168\u6C34\u5206\u6790\u4EEA "),Wt(),Ft(42,"div",21),Re(43," \u6325\u53D1\u5206\u4EEA "),Wt(),Ft(44,"div",21),Re(45," \u91CF\u70ED\u4EEA "),Wt(),Ft(46,"div",21),Re(47," \u8C08\u60C5\u6C2E\u5143\u7D20 "),Wt()()()()(),Ft(48,"div",1)(49,"data-v-card",22),TT("onCheckedItemsChange",function(s){return n.handleCheckedItems(s)}),Ft(50,"div",23),Ug(51,pJ,1,1,"div",31,Vg),Wt(),Ft(53,"div",24),Ug(54,cJ,3,1,"div",4,Vg),Wt()()()()),a&2&&(mt("nzGutter",16),wt(6),mt("options",n.chart_options),wt(5),mt("options",n.chart_options0),wt(4),mt("rowData",n.rowData)("columnDefs",n.colDefs1),wt(2),mt("rowData",n.rowData)("columnDefs",n.colDefs2),wt(5),mt("nzPercent",64)("nzStrokeColor","#74FAFB"),wt(6),mt("nzPercent",60)("nzStrokeColor","#74FAFB"),wt(21),mt("showSetting",!0)("optionsList",n.chartConfig.optionsCheckList),wt(2),Bg(n.chartConfig.optionsCheckList),wt(3),Bg(n.chartConfig.optionBottomList))},dependencies:[Hc,va,jc,bl,NT,OT,kT,Pg,$s,Js,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Qc,Kc,Tn,qs,nl,ol,_l,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn,gB],styles:[".dashboard-container[_ngcontent-%COMP%]{width:20rem;height:10rem;margin-top:-3rem;margin-bottom:-2rem}.sys-status-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#94ddf3;text-align:center}.ag-theme-datav[_ngcontent-%COMP%]{--ag-border-color: #74FAFB;--ag-foreground-color: #74FAFB;--ag-background-color: #0A1632;--ag-header-foreground-color: #74FAFB;--ag-header-background-color: #0A1632;--ag-odd-row-background-color: #0A1632;--ag-header-column-resize-handle-color: #7e2e84;--ag-font-size: 17px;--ag-font-family: monospace;height:5rem}.centered-element[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%}.status-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.status-circle[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%}.status-circle.red[_ngcontent-%COMP%]{background-color:red}.status-circle.green[_ngcontent-%COMP%]{background-color:green}.progress-container[_ngcontent-%COMP%]{display:flex;color:#fff}.progress-container[_ngcontent-%COMP%] .status-text[_ngcontent-%COMP%]{width:8rem;margin-left:6px;font-size:16px;font-weight:600;color:#74fafb}.progress-container[_ngcontent-%COMP%] .status-ext-text[_ngcontent-%COMP%]{margin-top:3px;font-size:12px}.progress-display[_ngcontent-%COMP%]{color:#fff;text-align:right}.statistic-item-container[_ngcontent-%COMP%]{display:flex;padding:1rem 0;color:#fff}.white-color-theme[_ngcontent-%COMP%]{color:#74fafb}.scrollable-container[_ngcontent-%COMP%]{scrollbar-color:auto;overflow-y:auto;width:100%;height:20rem} ::-webkit-scrollbar{width:10px} ::-webkit-scrollbar-track{background-color:#0a1632} ::-webkit-scrollbar-thumb{background-color:#74fafb;border-radius:2px} ::-webkit-scrollbar-thumb:hover{background-color:#74fafb}"]});let r=e;return r})();function hJ(r,e){if(r&1&&(Ft(0,"li")(1,"a",2),Re(2),Wt()()),r&2){let t=e.$implicit;wt(),mt("routerLink",t.link),wt(),bn(t.text)}}function vJ(r,e){if(r&1&&(Ft(0,"div")(1,"ul"),qt(2,hJ,3,2,"li",1),Wt()()),r&2){let t=Jt();wt(2),mt("ngForOf",t.children)}}var iF=(()=>{let e=class e{constructor(i,a){this.route=i,this.router=a,this.menu=null,this.children=null}ngOnInit(){let i=this.router.getCurrentNavigation();i?.extras.state&&(this.menu=i.extras.state.menu,this.children=this.menu?.children||null,console.log("\u7A7F\u5E26\u8FC7\u6765\u7684\u83DC\u5355\u53C2\u6570"),console.log(this.menu),console.log(this.children))}navigateToChild(i){i.link&&this.router.navigateByUrl(i.link)}};e.\u0275fac=function(a){return new(a||e)($r(DT),$r(MT))},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-s1"]],standalone:!0,features:[Ae],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(a,n){a&1&&qt(0,vJ,3,1,"div",0),a&2&&mt("ngIf",n.children&&n.children.length)},dependencies:[Hc,df,va,jc,bl,Pg,$s,Js,IT,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Tn,qs,nl,ol,_l,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn],styles:[".dashboard-container[_ngcontent-%COMP%]{width:20rem;height:10rem;margin-top:-3rem;margin-bottom:-2rem}.sys-status-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#94ddf3;text-align:center}.ag-theme-datav[_ngcontent-%COMP%]{--ag-border-color: #74FAFB;--ag-foreground-color: #74FAFB;--ag-background-color: #0A1632;--ag-header-foreground-color: #74FAFB;--ag-header-background-color: #0A1632;--ag-odd-row-background-color: #0A1632;--ag-header-column-resize-handle-color: #7e2e84;--ag-font-size: 17px;--ag-font-family: monospace;height:5rem}.scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;width:100%;height:20rem}.centered-element[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%}.status-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.status-circle[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%}.status-circle.red[_ngcontent-%COMP%]{background-color:red}.status-circle.green[_ngcontent-%COMP%]{background-color:green}.progress-container[_ngcontent-%COMP%]{display:flex;color:#fff}.progress-container[_ngcontent-%COMP%] .status-text[_ngcontent-%COMP%]{width:8rem;margin-left:6px;font-size:16px;font-weight:600;color:#74fafb}.progress-container[_ngcontent-%COMP%] .status-ext-text[_ngcontent-%COMP%]{margin-top:3px;font-size:12px}.progress-display[_ngcontent-%COMP%]{color:#fff;text-align:right}.statistic-item-container[_ngcontent-%COMP%]{display:flex;padding:1rem 0;color:#fff}.white-color-theme[_ngcontent-%COMP%]{color:#74fafb}"]});let r=e;return r})();var aF=(()=>{let e=class e{constructor(){this.http=Ys(Xc),this.modal=Ys(Zc)}ngOnInit(){}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-threejs"]],standalone:!0,features:[Ae],decls:1,vars:0,consts:[["src","http://112.33.111.160:8083/","width","100%","height","650px",2,"border","0"]],template:function(a,n){a&1&&Ce(0,"iframe",0)},dependencies:[$s,Js,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Tn,qs,nl,ol,_l,bl,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn]});let r=e;return r})();var tGt=[{path:"s1/:id",component:rF,data:{menu:null}},{path:"second1/:id",component:iF,data:{menu:null}},{path:"threejs/:id",component:aF}];export{tGt as routes};