import{du as un,dv as Gt,dw as _t,cx as Or,dx as fn,cz as ye,cA as Te,dy as qo,dz as Ga,f as er,bV as cn,bW as vn,a6 as tr,bi as Qo,a0 as pn,a_ as xt,c3 as rr,aZ as aa,aW as ia,j as Fe,bB as Va,bw as na,bg as hn,c5 as dn,l as Na,dA as gn,aS as D,ai as oa,bo as de,dB as We,a as yn,co as sa,dC as Vt,O as Ye,cr as Nt,E as mn,b1 as la,M as ut,dD as es,dE as ts,cM as rs,b8 as ua,t as zt,dF as ft,dG as xn,c6 as Le,dH as as,dI as is,m as Sn,dJ as ns,ci as fa,dK as os,dL as ss,dM as ls,dN as _n,b9 as us,b_ as fs,cs as bn,cu as kr,af as Je,bz as cs,aj as vs,A as ca,dO as ps,cB as hs,dP as ds,dQ as za,dR as gs,dS as Fa,bd as Dt,dT as ys,aT as W,bb as Ue,B as ms,v as xs,dU as Wa,dV as Ss,dW as _s,cN as bs,cO as An,cP as Ft,dX as As,dY as ws,ck as va,bD as ar,k as ir,d as wn,c as Cn,cm as Tn,dZ as Cs,bQ as Ln,d_ as Ts,cl as Ir,d$ as ct,cF as Ya,e0 as Ls,e1 as Ms,e2 as Es,cj as Wt,e3 as Rs,cn as pa,ag as Ke,cp as Mn,cR as En,K as Rn,T as Ps,R as nr,Q as or,a3 as Ua,y as te,e4 as Ds,e5 as Xa,ax as Os,dd as Br,e6 as ks,L as Is,S as Bs,P as Gs,e7 as Vs,e8 as Ns,aw as zs,e9 as Pn,ea as Fs,eb as ha,ec as Ws,ed as Dn,bE as Gr,ee as On,bC as kn,c7 as Ys,ef as Us,bl as Xs,eg as Hs,eh as Zs,bu as Ha,ah as js,bR as Js,bn as Ks,cY as $s,u as vt,J as qs,aR as Za,bG as pt,ce as Qs,cf as el,ei as ke,cq as tl,cg as rl,ba as In,bN as al,bI as il,di as nl,$ as ol,V as sl,ej as Bn}from"./Axis-D3q4j9rs.js";import{l as Q,_ as O,E as G,a as Gn,h as F,G as I,o as pe,O as L,g as S,U as ll,P as ht,aw as da,a9 as Yt,Z as Vn,aK as ae,p as se,a6 as q,i as sr,f as N,n as ga,q as U,aN as Me,R as le,az as lr,aO as ul,aJ as dt,B as Y,I as Nn,a1 as V,m as ya,r as z,j as xe,X as ue,V as fl,am as cl,d as oe,c as re,a0 as zn,b as $,aP as ja,av as Ja,aQ as Fn,aR as vl,aH as Wn,aS as pl,aI as Ot,aG as hl,a3 as dl,a2 as Yn,W as Un,aT as Ve,aU as Ee,ah as Ka,aV as ur,aC as gl,aW as yl,aX as Xn,aY as Vr,aZ as fr,a_ as ml,ag as $a,C as xl,a5 as Nr,ar as Sl,a$ as _l,b0 as bl,s as Hn,b1 as dr,a8 as Al,a7 as gr,ab as Zn,L as jn,ae as wl,b2 as gt,b3 as Cl,aL as Tl}from"./graphic-DeMuFa6Q.js";var qa=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Ll=1,Ut=2,Jn=Ll|Ut;function Xt(r,e,t){t=t||Jn,e?r.dirty|=t:r.dirty&=~t}function Kn(r,e){return e=e||Jn,r.dirty==null||!!(r.dirty&e)}function Se(r){if(r)return Kn(r)&&Ml(r,r.label,r),r}function Ml(r,e,t){var a=e.getComputedTransform();r.transform=un(r.transform,a);var i=r.localRect=Gt(r.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=_t.textMargin);for(var c=0;c<4;c++)yr[c]=f===_t.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===_t.textMargin&&Or(i,yr,!1,!1);var v=r.rect=Gt(r.rect,i);return a&&v.applyTransform(a),f===_t.minMargin&&Or(v,yr,!1,!1),r.axisAligned=fn(a),(r.label=r.label||{}).ignore=e.ignore,Xt(r,!1),Xt(r,!0,Ut),r}var yr=[0,0,0,0];function El(r,e,t){return r.transform=un(r.transform,t),r.localRect=Gt(r.localRect,e),r.rect=Gt(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=fn(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Rl(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,t)}}function Qa(r,e){for(var t=0;t0){x(w*E,0,n);var A=w+b;A<0&&C(-A*E,1)}else C(-b*E,1)}}function x(b,M,E){b!==0&&(f=!0);for(var w=M;w0)for(var A=0;A0;A--){var B=E[A-1]*k;x(-B,A,n)}}}function T(b){var M=b<0?-1:1;b=Math.abs(b);for(var E=Math.ceil(b/(n-1)),w=0;w0?x(E,0,w+1):x(-E,n-w-1,n),b-=E,b<=0)return}return f}function Pl(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a=0&&a.push(e[n])}return a.join(" ")}var Ol=(function(r){O(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o.updateData(t,a,i,n),o}return e.prototype._createSymbol=function(t,a,i,n,o,s){this.removeAll();var l=er(t,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=kl,this._symbolType=t,this.add(l)},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(){cn(this.childAt(0))},e.prototype.downplay=function(){vn(this.childAt(0))},e.prototype.setZ=function(t,a){var i=this.childAt(0);i.zlevel=t,i.z=a},e.prototype.setDraggable=function(t,a){var i=this.childAt(0);i.draggable=t,i.cursor=!a&&t?"move":i.cursor},e.prototype.updateData=function(t,a,i,n){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,c=n&&n.disableAnimation;if(f){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,v)}else{var p=this.childAt(0);p.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):tr(p,h,s,a),Qo(p)}if(this._updateCommon(t,a,l,i,n),f){var p=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,pn(p,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,i,n,o){var s=this.childAt(0),l=t.hostModel,u,f,c,v,p,h,d,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,c=n.selectItemStyle,v=n.focus,p=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),p=_.get("blurScope"),h=_.get("disabled"),d=xt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var C=rr(t.getItemVisual(a,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var T=t.getItemVisual(a,"style"),b=T.fill;if(s instanceof Gn){var M=s.style;s.useStyle(F({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},T))}else s.__isEmptyBrush?s.useStyle(F({},T)):s.useStyle(T),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=t.getItemVisual(a,"liftZ"),w=this._z2;E!=null?w==null&&(this._z2=s.z2,s.z2+=E):w!=null&&(s.z2=w,this._z2=null);var A=o&&o.useNameLabel;aa(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:R,inheritColor:b,defaultOpacity:T.opacity});function R(B){return A?t.getName(B):Dl(t,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),ia(this,v,p,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,i){var n=this.childAt(0),o=Fe(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Va(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Va(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return na(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(I);function kl(r,e){this.parent.drift(r,e)}function bt(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(t))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function ti(r){return r!=null&&!pe(r)&&(r={isIgnore:r}),r||{}}function ri(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:xt(e),cursorStyle:e.get("cursor")}}function ai(r,e,t,a,i,n,o){var s=new r(e,t,a,i);return s.setPosition(n),e.setItemGraphicEl(t,s),o.add(s),s}var $c=(function(){function r(e){this.group=new I,this._SymbolCtor=e||Ol}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=ti(t);var a=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=ri(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};n||a.removeAll(),e.diff(n).add(function(c){var v=f(c);bt(e,v,c,t)&&ai(o,e,c,l,u,v,a)}).update(function(c,v){var p=n.getItemGraphicEl(v),h=f(c);if(!bt(e,h,c,t)){a.remove(p);return}var d=e.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)a.remove(p),p=new o(e,c,l,u),p.setPosition(h);else{p.updateData(e,c,l,u);var y={x:h[0],y:h[1]};s?p.attr(y):tr(p,y,i)}a.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var v=n.getItemGraphicEl(c);v&&v.fadeOut(function(){a.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var a=this,i=t.getStore(),n=0,o=i.count();nNa&&(e=Na),!t||r.typed&&t.length=0,n=r.fill||D.color.neutral99;ni(a,e);var o=a.textFill==null;return i?o&&(a.textFill=t.insideFill||D.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||D.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,S(e.rich,function(s){ni(s,s)}),a}function ni(r,e){e&&(L(e,"fill")&&(r.textFill=e.fill),L(e,"stroke")&&(r.textStroke=e.fill),L(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),L(e,"font")&&(r.font=e.font),L(e,"fontStyle")&&(r.fontStyle=e.fontStyle),L(e,"fontWeight")&&(r.fontWeight=e.fontWeight),L(e,"fontSize")&&(r.fontSize=e.fontSize),L(e,"fontFamily")&&(r.fontFamily=e.fontFamily),L(e,"align")&&(r.textAlign=e.align),L(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),L(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),L(e,"width")&&(r.textWidth=e.width),L(e,"height")&&(r.textHeight=e.height),L(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),L(e,"padding")&&(r.textPadding=e.padding),L(e,"borderColor")&&(r.textBorderColor=e.borderColor),L(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),L(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),L(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),L(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),L(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),L(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),L(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),L(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),L(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),L(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var Gl=(function(r){O(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||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 a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(oa),Vl=null;function Nl(){return Vl}var zl="expandAxisBreak",me=Math.PI,Fl=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Wl=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Xe=de(),$n=de(),qn=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,i=this.recordMap,n=i[t]||(i[t]=[]);return n[a]||(n[a]={ready:{}})},r})();function Yl(r,e,t,a){var i=t.axis,n=e.ensureRecord(t),o=[],s,l=Sa(r.axisName)&&We(r.nameLocation);S(a,function(h){var d=Se(h);if(!(!d||d.label.ignore)){o.push(d);var g=n.transGroup;l&&(g.transform?lr(Qe,g.transform):ul(Qe),d.transform&&dt(Qe,Qe,d.transform),Y.copy(At,d.localRect),At.applyTransform(Qe),s?s.union(At):Y.copy(s=new Y(0,0,0,0),At))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(h,d){return Math.abs(h.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-v;s.union(new Y(v,0,p,1))}n.stOccupiedRect=s,n.labelInfoList=o}var Qe=q(),At=new Y(0,0,0,0),Qn=function(r,e,t,a,i,n){if(We(r.nameLocation)){var o=n.stOccupiedRect;o&&eo(El({},o,n.transGroup.transform),a,i)}else to(n.labelInfoList,n.dirVec,a,i)};function eo(r,e,t){var a=new ht;ma(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Rl(e,a)}function to(r,e,t,a){for(var i=ht.dot(a,e)>=0,n=0,o=r.length;n0?"top":"bottom",n="center"):zt(i-me)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(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})(),Ul=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Xl={axisLine:function(r,e,t,a,i,n,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=n.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(ae(f,f,u),ae(c,c,u));var p=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),h={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(a.get(["axisLine","breakLine"])&&Vt(a.axis.scale))Nl().buildAxisBreakLine(a,i,n,h);else{var d=new Ye(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},h));Nt(d.shape,d.style.lineWidth),d.anid="line",i.add(d)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);se(g)&&(g=[g,g]),(se(y)||Nn(y))&&(y=[y,y]);var m=rr(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];S([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(C,T){if(g[T]!=="none"&&g[T]!=null){var b=er(g[T],-_/2,-x/2,_,x,p.stroke,!0),M=C.r+C.offset,E=v?c:f;b.attr({rotation:C.rotate,x:E[0]+M*Math.cos(r.rotation),y:E[1]-M*Math.sin(r.rotation),silent:!0,z2:11}),i.add(b)}})}}},axisTickLabelEstimate:function(r,e,t,a,i,n,o,s){var l=si(e,i,s);l&&oi(r,e,t,a,i,n,o,ft.estimate)},axisTickLabelDetermine:function(r,e,t,a,i,n,o,s){var l=si(e,i,s);l&&oi(r,e,t,a,i,n,o,ft.determine);var u=Jl(r,i,n,a);jl(r,e.labelLayoutList,u),Kl(r,i,n,a,r.tickDirection)},axisName:function(r,e,t,a,i,n,o,s){var l=t.ensureRecord(a);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Sa(u)){var f=r.nameLocation,c=r.nameDirection,v=a.getModel("nameTextStyle"),p=a.get("nameGap")||0,h=a.axis.getExtent(),d=a.axis.inverse?-1:1,g=new ht(0,0),y=new ht(0,0);f==="start"?(g.x=h[0]-d*p,y.x=-d):f==="end"?(g.x=h[1]+d*p,y.x=d):(g.x=(h[0]+h[1])/2,g.y=r.labelOffset+c*p,y.y=c);var m=q();y.transform(da(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*me/180);var x,C;We(f)?x=ve.innerTextLayout(r.rotation,_??r.rotation,c):(x=Hl(r.rotation,f,_||0,h),C=r.raw.axisNameAvailableWidth,C!=null&&(C=Math.abs(C/Math.sin(x.rotation)),!isFinite(C)&&(C=null)));var T=v.getFont(),b=a.get("nameTruncate",!0)||{},M=b.ellipsis,E=Yt(r.raw.nameTruncateMaxWidth,b.maxWidth,C),w=s.nameMarginLevel||0,A=new Vn({x:g.x,y:g.y,rotation:x.rotation,silent:ve.isLabelSilent(a),style:yn(v,{text:u,font:T,overflow:"truncate",width:E,ellipsis:M,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||x.textAlign,verticalAlign:v.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(sa({el:A,componentModel:a,itemName:u}),A.__fullText=u,A.anid="name",a.get("triggerEvent")){var R=ve.makeAxisEventDataBase(a);R.targetType="axisName",R.name=u,Fe(A).eventData=R}n.add(A),A.updateTransform(),e.nameEl=A;var P=l.nameLayout=Se({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:We(f)?Fl[w]:Wl[w]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&P){var k=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,P,y,k)}}}};function oi(r,e,t,a,i,n,o,s){ao(e)||$l(r,e,i,s,a,o);var l=e.labelLayoutList;ql(r,a,l,n),r.rotation;var u=r.optionHideOverlap;Zl(a,l,u),u&&Pl(sr(l,function(f){return f&&!f.label.ignore})),Yl(r,t,a,l)}function Hl(r,e,t,a){var i=mn(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return zt(i-me/2)?(o=l?"bottom":"top",n="center"):zt(i-me*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",ime/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function Zl(r,e,t){var a=r.axis,i=r.get(["axisLabel","customValues"]);if(es(a))return;function n(u,f,c){var v=Se(e[f]),p=Se(e[c]),h=a.scale;if(!(!v||!p)){if(u==null){if(!t&&i)return;var d=Xe(v.label).labelInfo.tick;if(rs(h)&&d.notNice||ua(h)&&d.offInterval){Ge(v.label);return}}if(u===!1||v.suggestIgnore){Ge(v.label);return}if(p.suggestIgnore){Ge(p.label);return}var g=.1;if(!t){var y=[0,0,0,0];v=Qa({marginForce:y},v),p=Qa({marginForce:y},p)}ma(v,p,null,{touchThreshold:g})&&Ge(u?p.label:v.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function jl(r,e,t){r.showMinorTicks||S(e,function(a){if(a&&a.label.ignore)for(var i=0;i=0&&_(T,x,C.getStore())})}var p=0;if(v(function(_,x,C){a.set(x.uid,1),(!i||!i.hasKey(x.uid))&&(o=!0),p+=C.count()}),(!i||i.keys().length!==a.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}xa(be,p);var h=0;v(function(_,x,C){for(var T=0,b=C.count();T0&&m0?ls:ns,t.serUids=a}var be=xa({ctor:Bl},50);function ov(r){return function(e,t){var a=us(e,{fromStat:{key:r}});if(fa(a.w2))return[-a.w2/2,a.w2/2]}}function sv(r){return r+_n}function lv(r,e){return r+_n+e}function ou(r){return iu(),{liPosMinGap:!ua(r.scale)}}var uv="bar",fv="pictorialBar";function cv(r,e,t,a){fs(r,{key:e,seriesType:t,coordSysType:a,getMetrics:ou})}function vv(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var no={left:0,right:0,top:0,bottom:0},Ht=["25%","25%"],kt="cartesian2d",su=(function(r){O(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var i=bn(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&kr(t.outerBounds,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&kr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:no,outerBoundsContain:"all",outerBoundsClampWidth:Ht[0],outerBoundsClampHeight:Ht[1],backgroundColor:D.color.transparent,borderWidth:1,borderColor:D.color.neutral30},e})(Je);function lu(r,e,t){e=Q(e)&&{coordDimensions:e}||F({encodeDefine:r.getEncode()},e);var a=r.getSource(),i=cs(a,e).dimensions,n=new vs(i,r);return n.initData(a,t),n}var Fr=(function(r){O(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Le).models[0]},e.type="cartesian2dAxis",e})(Je);ya(Fr,ca);var oo={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:"auto",onZeroAxisIndex:null,lineStyle:{color:D.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:D.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:D.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[D.color.backgroundTint,D.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:D.color.neutral00,borderColor:D.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uu=z({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},oo),_a=z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:D.color.axisMinorSplitLine,width:1}}},oo),fu=z({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_a),cu=N({logBase:10},_a);const so={category:uu,value:_a,time:fu,log:cu};function Wr(r,e,t,a){S(ds,function(i,n){var o=z(z({},so[n],!0),a,!0),s=(function(l){O(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,c){var v=ps(this),p=v?bn(f):{},h=c.getTheme();z(f,h.get(n+"Axis")),z(f,this.getDefaultOption()),f.type=li(f),v&&kr(f,p,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=hs.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",li)}function li(r){return r.type||(r.data?"category":"value")}var vu=(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 U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),sr(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})(),It=["x","y"];function ui(r){return(r.type==="interval"||r.type==="time")&&!Vt(r)}var pu=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=kt,t.dimensions=It,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ui(t)||!ui(a))){var i=za(t,null),n=za(a,null),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,p=o[1]-n[0]*c,h=this._transform=[f,0,0,c,v,p];this._invTransform=lr([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&i.contain(i.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,a){var i=this.dataToPoint(t),n=this.dataToPoint(a),o=this.getArea(),s=new Y(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ae(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},e.prototype.clampData=function(t,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,i){if(i=i||[],this._invTransform)return ae(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),a),i[1]=o.coordToData(o.toLocalCoord(t[1]),a),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(a[0],a[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(a[0],a[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new Y(n,o,s,l)},e})(vu);function lo(r,e){var t=r.scale,a=r.model,i=gs(t,a,a.ecModel,r,null),n=Fa(t),o=Fa(e)?e.intervalStub:e,s=n?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,p,h;if(c===1)v=p=0,h=1;else if(c===2){var d=Dt(u[0].value-u[1].value),g=Dt(u[1].value-u[2].value);v=p=0,d===g?h=2:(h=1,d=b[1])return!0})):x[1]?(E=b[1],k(function(){if(ie(),P=W(R-w*h,A),B(),M<=b[0])return!0})):k(function(){P=W(An(b[0]/w)*w,A),R=W(Ft(b[1]/w)*w,A);var _e=As((R-P)/w);if(_e<=h){var X=h-_e,H=void 0,qe=i.incl0||n;if(qe&&b[0]===0)H=[0,X];else if(qe&&b[1]===0)H=[X,0];else{var Oe=Ft(X/2);H=X%2===0?[Oe,Oe]:M+E=b[1])return!0}})}Ss(t,x,T,[M,E],C,{interval:w,intervalCount:h,intervalPrecision:A,niceExtent:[P,R]})}var fi=[[3,1],[0,2]],hu=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=It,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;S(this._axesList,function(o){va(o,pa);var s=o.scale;ua(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ue(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Ir(f)}S(l,function(c){gu(c,c.__alignTo)?Ir(c):lo(c,c.__alignTo.scale)})}i(a.x),i(a.y);var n={};S(a.x,function(o){ci(a,"y",o,n)}),S(a.y,function(o){ci(a,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=ar(e,t),n=this._rect=ir(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(uo(o,n),!a){var u=mu(n,s,o,l,t),f=void 0;if(l)f=di(n.clone(),"axisLabel",null,n,o,u,i);else{var c=xu(e,n,i),v=c.outerBoundsRect,p=c.parsedOuterBoundsContain,h=c.outerBoundsClamp;v&&(f=di(v,p,h,n,o,u,i))}fo(n,o,ft.determine,null,f,i),S(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}pe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i=0;i--){var n=r[+e[i]];xn(n.scale)&&Rs(n.model,n.type)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?a.push(n):t=n)}t||(t=a.pop()),t&&S(a,function(o){o.__alignTo=t})}function gu(r,e){return Vt(r.scale)||Vt(e.scale)||e.scale.getTicks().length<2}function yu(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return a-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return a-i+e}}function uo(r,e){S(r.x,function(t){return hi(t,e.x,e.width)}),S(r.y,function(t){return hi(t,e.y,e.height)})}function hi(r,e,t){var a=[0,t],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),yu(r,e)}function di(r,e,t,a,i,n,o){fo(a,i,ft.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=fl(s,function(v){return v>0})==null;return Or(a,s,!0,!0,t),uo(i,a),l;function u(v){S(i[ye[v]],function(p){if(ct(p.model)){var h=n.ensureRecord(p.model),d=h.labelInfoList;if(d)for(var g=0;g0&&!cl(p)&&p>1e-4&&(v/=p),v}}function mu(r,e,t,a,i){var n=new qn(Su);return S(t,function(o){return S(o,function(s){if(ct(s.model)){var l=!a;s.axisBuilder=ru(r,e,s.model,i,n,l)}})}),n}function fo(r,e,t,a,i,n){var o=t===ft.determine;S(e,function(u){return S(u,function(f){ct(f.model)&&(au(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ye[1-u]]=r[Te[u]]<=n.refContainer[Te[u]]*.5?0:1-u===1?2:1}S(e,function(u,f){return S(u,function(c){ct(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function xu(r,e,t){var a,i=r.get("outerBoundsMode",!0);i==="same"?a=e.clone():(i==null||i==="auto")&&(a=ir(r.get("outerBounds",!0)||no,t.refContainer));var n=r.get("outerBoundsContain",!0),o;n==null||n==="auto"||xe(["all","axisLabel"],n)<0?o="all":o=n;var s=[Ya(G(r.get("outerBoundsClampWidth",!0),Ht[0]),e.width),Ya(G(r.get("outerBoundsClampHeight",!0),Ht[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Su=function(r,e,t,a,i,n){var o=t.axis.dim==="x"?"y":"x";Qn(r,e,t,a,i,n),We(r.nameLocation)||S(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&to(s.labelInfoList,s.dirVec,a,i)})};function pv(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _u(t,r,e),t.seriesInvolved&&Au(t,r),t}function _u(r,e,t){var a=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];S(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zt(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(S(s.getAxes(),oe(d,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var v=c.get("trigger")==="axis",p=c.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||p)&&S(h.baseAxes,oe(d,p?"cross":!0,v)),p&&S(h.otherAxes,oe(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Yr(_))){y==null&&(y=_.get("triggerTooltip")),_=g?bu(m,c,i,e,g,y):_;var C=_.get("snap"),T=_.get("triggerEmphasis"),b=Zt(m.model),M=y||C||m.type==="category",E=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:T,involveSeries:M,snap:C,useHandle:Yr(_),seriesModels:[],linkGroup:null};u[b]=E,r.seriesInvolved=r.seriesInvolved||M;var w=wu(n,m);if(w!=null){var A=o[w]||(o[w]={axesInfo:{}});A.axesInfo[b]=E,A.mapper=n[w].mapper,E.linkGroup=A}}}})}function bu(r,e,t,a,i,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};S(s,function(v){l[v]=re(o.get(v))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var c=l.lineStyle=o.get("crossStyle");c&&N(u,c.textStyle)}}return r.model.getModel("axisPointer",new ut(l,t,a))}function Au(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!a||!a.model||i==="none"||i===!1||i==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||S(r.coordSysAxesInfo[Zt(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function wu(r,e){for(var t=e.model,a=e.dim,i=0;i=0||r===e}function Cu(r){var e=co(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Yr(t);n==null&&(i.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=u;d.color!=null&&(g=N({color:d.color},u));var y=z(re(d),{boundaryGap:t,splitNumber:a,clockwise:i,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:p},!1);if(se(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else ga(c)&&(y.name=c(y.name,y));var _=new ut(y,null,this.ecModel);return ya(_,ca.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=En("ec_radar"),_},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=ho,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:D.color.axisLabel},boundaryGap:[0,0],splitNumber:go,axisNameGap:15,scale:!1,shape:"polygon",axisLine:z({lineStyle:{color:D.color.neutral20}},et.axisLine),axisLabel:wt(et.axisLabel,!1),axisTick:wt(et.axisTick,!1),splitLine:wt(et.splitLine,!0),splitArea:wt(et.splitArea,!0),indicator:[]},e})(Je),Bu=(function(r){O(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,a,i){var n=this.group;n.removeAll(),this._buildAxes(t,i),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var i=t.coordinateSystem,n=i.getIndicatorAxes(),o=U(n,function(s){var l=s.model.get("showName")?s.name:"",u=new ve(s.model,a,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});S(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes();if(!i.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"),c=s.get("show"),v=l.get("color"),p=u.get("color"),h=Q(v)?v:[v],d=Q(p)?p:[p],g=[],y=[];function m(B,j,J){var ie=J%j.length;return B[ie]=B[ie]||[],ie}if(n==="circle")for(var _=i[0].getTicksCoords(),x=a.cx,C=a.cy,T=0;T<_.length;T++){if(f){var b=m(g,h,T);g[b].push(new Rn({shape:{cx:x,cy:C,r:_[T].coord}}))}if(c&&T<_.length-1){var b=m(y,d,T);y[b].push(new Ps({shape:{cx:x,cy:C,r0:_[T].coord,r:_[T+1].coord}}))}}else for(var M,E=U(i,function(B,j){var J=B.getTicksCoords();return M=M==null?J.length-1:Math.min(J.length-1,M),U(J,function(ie){return a.coordToPoint(ie.coord,j)})}),w=[],T=0;T<=M;T++){for(var A=[],R=0;R3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(n),v=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(mi(this._zr,"globalPan")||tt(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,i,n,o){t._checkPointer(n,o.originX,o.originY)&&(Ja(n.event),n.__ecRoamConsumed=!0,xi(t,a,i,n,o))},e})(Fn);function tt(r){return r.__ecRoamConsumed}var Yu=de();function cr(r){var e=Yu(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function rt(r,e,t,a){for(var i=cr(r),n=i.roam,o=n[e]=n[e]||[],s=0;s=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=So(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=i;i=new I,i.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:n}},r.prototype._parseNode=function(e,t,a,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=xr[s];if(f&&L(xr,s)){l=f.call(this,e,t);var c=e.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var p=bi[s];if(p&&L(bi,s)){var h=p.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=h)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new vl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});K(t,a),Z(e,a,this._defsUsePending,!1,!1),Zu(a,t);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){xr={g:function(e,t){var a=new I;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new Rn;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Ye;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Is;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),i;a&&(i=Ci(a));var n=new or({shape:{points:i||[]},silent:!0});return K(t,n),Z(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=Ci(a));var n=new nr({shape:{points:i||[]},silent:!0});return K(t,n),Z(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new Gn;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new I;return K(t,s),Z(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),i=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new I;return K(t,s),Z(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",i=ks(a);return K(t,i),Z(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),r})(),bi={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new Gs(e,t,a,i);return Ai(r,n),wi(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new Bs(e,t,a);return Ai(r,i),wi(r,i),i}};function Ai(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function wi(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};xo(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000",s=n.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Wn(o),u=l&&l[3];u&&(l[3]*=pl(s),o=Ot(l,"rgba"))}e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function K(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),N(e.__inheritedStyle,r.__inheritedStyle))}function Ci(r){for(var e=vr(r),t=[],a=0;a0;n-=2){var o=a[n],s=a[n-1],l=vr(o);switch(i=i||q(),s){case"translate":Yn(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dl(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":da(i,i,-parseFloat(l[0])*Sr,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Sr);dt(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Sr);dt(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Li=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xo(r,e,t){var a=r.getAttribute("style");if(a){Li.lastIndex=0;for(var i;(i=Li.exec(a))!=null;){var n=i[1],o=L(jt,n)?jt[n]:null;o&&(e[o]=i[2]);var s=L(Jt,n)?Jt[n]:null;s&&(t[s]=i[2])}}}function Qu(r,e,t){for(var a=0;a1e-6;nt[0]=o?(i[0]-a.x)/n:i[0],nt[1]=o?(i[1]-a.y)/n:i[1],ae(nt,nt,r.mtRawInv);var s=Cf(r,nt);Bi(e,s,n),S(t,function(l){l!==e&&Bi(l,s.slice(),n)})}var nt=[];function Bi(r,e,t){var a=r.option;a.center=e,a.zoom=t}function Eo(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}function xv(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,a=r;return((a.zoom-1)*t+1)/(a.trans[pr].scaleX||1)}function Lf(r,e,t,a,i,n,o,s){var l=Co(r);if(!l){t.disable();return}t.enable(G(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:a,isInClip:function(f,c,v){return!i||i.contain(c,v)}}});function u(f){var c=r.mainType,v=Pn(N({type:Ro(c,r.subType,On)},f));s&&(v.componentType=c),v[c+"Id"]=r.id,e.dispatchAction(v)}t.off("pan").off("zoom").on("pan",function(f){n&&n("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){n&&n("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function Sv(r){return function(e,t,a){return wr.copy(r.getBoundingRect()),wr.applyTransform(r.getComputedTransform()),wr.contain(t,a)}}var wr=new Y(0,0,0,0);function _v(r,e,t){var a=Ro(e,t,On);r.registerAction({type:a,event:a,update:"none"},function(i,n,o){n.eachComponent(Dn(i,e,t),function(s){wo(i,s),To(i,s,n,o)})})}function Ro(r,e,t){return(r!==Gr?r:e==="map"?"geo":e)+t}function bv(r){return r.zoom!=null}function Av(r,e,t,a,i,n,o){var s=new _o(null,Mo(r.ecModel,e));return Ta(s,t,a,i,n),o?Hr(s,o.x,o.y,o.width,o.height):Hr(s,t,a,i,n),Ca(s,r),s}var Ma=["rect","circle","line","ellipse","polygon","polyline","path"],Mf=V(Ma),Ef=V(Ma.concat(["g"])),Rf=V(Ma.concat(["g"])),Po=de();function Mt(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Gi(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Pf=(function(){function r(e){var t=this.group=new I,a=this._transformGroup=new I;t.add(a),this.uid=En("ec_map_draw"),this._controller=new Wu(e.getZr()),a.add(this._regionsGroup=new I),a.add(this._svgGroup=new I)}return r.prototype.draw=function(e,t,a,i,n){var o=this,s=e.getData&&e.getData();Ne(e)&&t.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===e&&(s=d.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||n,p;l.shouldClip()?(p=Aa(null,u),this.group.setClipPath(new le({shape:p.clone()}))):this.group.removeClipPath(),ki(c,Re,u,v?null:e);var h=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,a,l,e,s,h):l.resourceType==="geoSVG"&&this._buildSVG(u,a,l,e,s,h),Lf(e,a,this._controller,function(d,g,y){return e.coordinateSystem.containPoint([g,y])},p,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,a,i)},r.prototype.__updateOnOwnRoam=function(e){ki(this._transformGroup,Re,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,a,i,n,o){var s=this._regionsGroupByName=V(),l=V(),u=this._regionsGroup,f=a.projection,c=f&&f.stream,v=Ee(Kt(null,e,He));function p(g,y){return y&&(g=y(g)),g&&ae([],g,v)}function h(g){for(var y=[],m=!c&&f&&f.project,_=0;_=0)&&(f=r);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;aa(t,xt(i),{labelFetcher:f,labelDataIndex:u,defaultText:a},c);var v=t.getTextContent();if(v&&(Po(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zi(r,e,t,a,i,n){e?e.setItemGraphicEl(n,t):Fe(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:a,region:i&&i.option||{}}}function Fi(r,e,t,a,i){e||sa({el:t,componentModel:r,itemName:a,itemTooltipOption:i.get("tooltip")})}function Wi(r,e,t,a){e.highDownSilentOnTouch=!!r.get("selectedMode");var i=a.getModel("emphasis"),n=i.get("focus");return ia(e,n,i.get("blurScope"),i.get("disabled")),Ne(r)&&Us(e,r,t),n}function Yi(r,e,t){var a=[],i;function n(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),S(r,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill=D.color.neutral00,i.style.lineWidth=2),i},e.prototype.__ownRoamView=function(){return Do(this)?this.coordinateSystem.view:null},e.type="series."+Ea,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:D.color.tertiary},itemStyle:{borderWidth:.5,borderColor:D.color.border,areaColor:D.color.background},emphasis:{label:{show:!0,color:D.color.primary},itemStyle:{areaColor:D.color.highlight}},select:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},nameProperty:"name"},e})(js);function Df(r){return r.indexOf("i")===0}function Do(r){return Of(r.seriesGroup)===r&&!r.getHostGeoModel()}function Of(r){return r.f[0]}function kf(r,e){var t={};return r.eachRawSeriesByType(Ea,function(a){var i=a.getHostGeoModel(),n=i?"o"+i.id:"i"+a.getMapType(),o=t[n]=t[n]||{f:[],r:[]};!r.isSeriesFiltered(a)&&!e&&o.f.push(a),o.r.push(a)}),t}var If={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Oo=["lng","lat"],Ui=(function(r){O(e,r);function e(t,a,i){var n=r.call(this)||this;n.dimensions=Oo,n.type="geo",n._nameCoordMap=V(),n.name=t;var o=i.projection,s=he.load(a,i.nameMap,i.nameProperty),l=he.getGeoResource(a);n.resourceType=l?l.type:null;var u=n.regions=s.regions,f=If[l.type];n._clip=i.clip;var c=o?!1:f.invertLongitute;n.view=new _o(c,Mo(i.ecModel,i.api),n),n.map=a,n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var v;if(o)for(var p=0;p1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var C=r.getBoxLayoutParams();C.aspect=g,x=ir(C,d),x=Js(r,x,g)}Hr(t,x.x,x.y,x.width,x.height),Ca(t,r)}function Bf(r,e){S(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var Gf=(function(){function r(){this.dimensions=Oo}return r.prototype.create=function(e,t){var a=[];function i(n){return{nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale"),projection:n.get("projection"),clip:n.getShallow("clip",!0)}}return e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new Ui(s+o,s,F({nameMap:n.get("nameMap"),api:t,ecModel:e},i(n)));a.push(l),n.coordinateSystem=l,l.model=n,l.resize=Hi,l.resize(n,t)}),e.eachSeries(function(n){Ln({targetModel:n,coordSysType:"geo",coordSysProvider:function(){var o=n.subType===Ea?n.getHostGeoModel():n.getReferringComponents("geo",Le).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),S(kf(e,!0),function(n,o){if(Df(o)){var s=n.r[0],l=[];S(n.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new Ui(u,u,F({nameMap:Sl(l),api:t,ecModel:e},i(s))),c;S(n.r,function(v){c=G(c,v.get("scaleLimit"))}),a.push(f),f.resize=Hi,f.resize(s,t),S(n.r,function(v){v.coordinateSystem=f,Bf(f,v)})}}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=V(),s=0;s=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function Cr(r,e){var t=r.visual,a=[];pe(t)?yt(t,function(n){a.push(n)}):t!=null&&a.push(t);var i={color:1,symbol:1};!e&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),Bo(r,a)}function Et(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:Zr([0,1])}}function Zi(r){var e=this.option.visual;return e[Math.round(vt(r,[0,1],[0,e.length-1],!0))]||{}}function ot(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function st(r){var e=this.option.visual;return e[this.option.loop&&r!==$t?r%e.length:r]}function Ce(){return this.option.visual[0]}function Zr(r){return{linear:function(e){return vt(e,r,this.option.visual,!0)},category:st,piecewise:function(e,t){var a=jr.call(this,t);return a==null&&(a=vt(e,r,this.option.visual,!0)),a},fixed:Ce}}function jr(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Io.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function Bo(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var a=Wn(t);return a||[0,0,0,1]})),e}var Uf={linear:function(r){return vt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Io.findPieceIndex(r,e,!0);if(t!=null)return vt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??$t},fixed:zn};function Rt(r,e,t){return r?e<=t:e0&&(C[0]=-C[0],C[1]=-C[1]);var b=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var M=-Math.atan2(x[1],x[0]);c[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*y+f[0],n.y=-v[1]*m+f[1],h=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*b+f[0],n.y=f[1]+E,h=x[0]<0?"right":"left",n.originX=-y*b,n.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=T[0],n.y=T[1]+E,h="center",n.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*b+c[0],n.y=c[1]+E,h=x[0]>=0?"right":"left",n.originX=y*b,n.originY=-E;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}},e})(I),Tv=(function(){function r(e){this.group=new I,this._LineCtor=e||Zf}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=qi(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){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=qi(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[];function i(l){!l.isGroup&&!jf(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=dn)}for(var n=e.start;n0}function qi(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:xt(e)}}function Qi(r){return isNaN(r[0])||isNaN(r[1])}function Er(r){return r&&!Qi(r[0])&&!Qi(r[1])}var Vo=de();function Lv(r){if(r)return Vo(r).bridge}function Mv(r,e){r&&(Vo(r).bridge=e)}function Jf(r){Kf(r),$f(r)}function Kf(r){if(!r.parallel){var e=!1;S(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function $f(r){var e=pt(r.parallelAxis);S(e,function(t){if(pe(t)){var a=t.parallelIndex||0,i=pt(r.parallel)[a];i&&i.parallelAxisDefault&&z(t,i.parallelAxisDefault,!1)}})}var qf=5,Qf=(function(r){O(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,a,i){this._model=t,this._api=i,this._handlers||(this._handlers={},S(ec,function(n,o){i.getZr().on(o,this._handlers[o]=$(n,this))},this)),Qs(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){el(this,"_throttledDispatchExpand"),S(this._handlers,function(i,n){a.getZr().off(n,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Ke),ec={mousedown:function(r){Rr(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Rr(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>qf)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Rr(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Rr(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var qt="parallel",Kr=qt,tc=(function(r){O(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 a=this.option;t&&z(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var i=t.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){S(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],i=sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);S(i,function(n){t.push("dim"+n.get("dim")),a.push(n.componentIndex)})},e.type=Kr,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})(Je),rc=(function(r){O(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(oa);function ac(r,e,t,a,i,n){r=r||0;var o=ke(t[1],-t[0]);if(i!=null&&(i=Be(i,[0,o])),n!=null&&(n=Math.max(n,i??0)),a==="all"){var s=Math.abs(ke(e[1],-e[0]));s=Be(s,[0,o]),i=n=Be(s,[i,n]),a=0}e[0]=Be(e[0],t),e[1]=Be(e[1],t);var l=Pr(e,a);e[a]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]=ke(f[0],u):f[1]=ke(f[1],-u),e[a]=Be(e[a],f);var c;return c=Pr(e,a),i!=null&&(c.sign!==l.sign||c.spann&&(e[1-a]=ke(e[a],c.sign*n)),e}function Pr(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 Be(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ic=(function(){function r(e,t,a){this.type=qt,this._axesMap=V(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.dimensions,n=e.parallelAxisIndex;S(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=wn(u),c=this._axesMap.set(o,new rc(o,Cn(u,f),[0,0],f,l));c.onBand=Tn(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){S(this.dimensions,function(a){var i=this._axesMap.get(a);va(i,pa),Ir(i)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=a&&o<=a+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var a=ar(e,t).refContainer;this._rect=ir(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,f=Pt(e.get("axisExpandWidth"),l),c=Pt(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,p=e.get("axisExpandWindow"),h;if(p)h=Pt(p[1]-p[0],l),p[1]=p[0]+h;else{h=Pt(f*(c-1),l);var d=e.get("axisExpandCenter")||Ft(u/2);p=[f*d-h/2],p[1]=p[0]+h}var g=(s-h)/(u-c);g<3&&(g=0);var y=[Ft(W(p[0]/f,1))+1,An(W(p[1]/f,1))-1],m=g/f*p[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),S(a,function(o,s){var l=(i.axisExpandable?oc:nc)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:tl/2,vertical:0},c=[u[n].x+e.x,u[n].y+e.y],v=f[n],p=q();da(p,p,v),Yn(p,p,c),this._axesLayout[o]={position:c,rotation:v,transform:p,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,a,i){a==null&&(a=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];S(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fn*(1-c[0])?(u="jump",l=s-n*(1-c[2])):(l=s-n*c[1])>=0&&(l=s-n*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ac(l,i,o,"all"):u="none";else{var p=i[1]-i[0],h=o[1]*s/p;i=[Ue(0,h-p/2)],i[1]=In(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},r})();function Pt(r,e){return In(Ue(r,e[0]),e[1])}function nc(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function oc(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r=0;i--)Sn(a[i])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=a.length;ncc}function Uo(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Xo(r,e,t,a){var i=new I;return i.add(new le({name:"main",style:Oa(t),silent:!0,draggable:!0,cursor:"move",drift:oe(rn,r,e,i,["n","s","w","e"]),ondragend:oe(De,e,{isEnd:!0})})),S(a,function(n){i.add(new le({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:oe(rn,r,e,i,n),ondragend:oe(De,e,{isEnd:!0})}))}),i}function Ho(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=Ze(i,vc),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],c=t[1][1],v=f-n+i/2,p=c-n+i/2,h=f-o,d=c-s,g=h+i,y=d+i;ce(r,e,"main",o,s,h,d),a.transformable&&(ce(r,e,"w",l,u,n,y),ce(r,e,"e",v,u,n,y),ce(r,e,"n",l,u,g,n),ce(r,e,"s",l,p,g,n),ce(r,e,"nw",l,u,n,n),ce(r,e,"ne",v,u,n,n),ce(r,e,"sw",l,p,n,n),ce(r,e,"se",v,p,n,n))}function Qr(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(Oa(t)),i.attr({silent:!a,cursor:a?"move":"default"}),S([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?ea(r,n[0]):xc(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?hc[s]+"-resize":null})})}function ce(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(_c(ka(r,e,[[a,i],[a+n,i+o]])))}function Oa(r){return N({strokeNoScale:!0},r.brushStyle)}function Zo(r,e,t,a){var i=[mt(r,t),mt(e,a)],n=[Ze(r,t),Ze(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function mc(r){return ol(r.group)}function ea(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=nl(t[e],mc(r));return a[i]}function xc(r,e){var t=[ea(r,e[0]),ea(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function rn(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=jo(e,i,n);S(a,function(u){var f=pc[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Zo(s[0][0],s[1][0],s[0][1],s[1][1])),Ra(e,t),De(e,{isEnd:!1})}function Sc(r,e,t,a){var i=e.__brushOption.range,n=jo(r,t,a);S(i,function(o){o[0]+=n[0],o[1]+=n[1]}),Ra(r,e),De(r,{isEnd:!1})}function jo(r,e,t){var a=r.group,i=a.transformCoordToLocal(e,t),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function ka(r,e,t){var a=Yo(r,e);return a&&a!==Pe?a.clipPath(t,r._transform):re(t)}function _c(r){var e=mt(r[0][0],r[1][0]),t=mt(r[0][1],r[1][1]),a=Ze(r[0][0],r[1][0]),i=Ze(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function bc(r,e,t){if(!(!r._brushType||wc(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=Da(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var hr={lineX:on(0),lineY:on(1),rect:{createCover:function(r,e){function t(a){return a}return Xo({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Uo(r);return Zo(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){Ho(r,e,t,a)},updateCommon:Qr,contain:ra},polygon:{createCover:function(r,e){var t=new I;return t.add(new nr({name:"main",style:Oa(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new or({name:"main",draggable:!0,drift:oe(Sc,r,e),ondragend:oe(De,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:ka(r,e,t)})},updateCommon:Qr,contain:ra}};function on(r){return{createCover:function(e,t){return Xo({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Uo(e),a=mt(t[0][r],t[1][r]),i=Ze(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=Yo(e,t);if(o!==Pe&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),Ho(e,t,l,i)},updateCommon:Qr,contain:ra}}function Cc(r){return r=Ia(r),function(e){return sl(e,r)}}function Tc(r,e){return r=Ia(r),function(t){var a=e??t,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function Lc(r,e,t){var a=Ia(r);return function(i,n){return a.contain(n[0],n[1])&&!yo(i,e,t)}}function Ia(r){return Y.create(r)}var Mc=(function(r){O(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,a){r.prototype.init.apply(this,arguments),(this._brushController=new gc(a.getZr())).on("brush",$(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!Ec(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new I,this.group.add(this._axisGroup),!!t.get("show")){var s=Pc(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,v=l.getAxisLayout(c),p=F({strokeContainThreshold:f},v),h=new ve(t,i,p);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(p,u,t,s,f,i),Mn(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Y.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Cc(c),isTargetByCursor:Lc(c,s,n),getLinearBrushOtherExtent:Tc(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Rc(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=U(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Ke);function Ec(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Rc(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Pc(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Dc={type:"axisAreaSelect",event:"axisAreaSelected"};function Oc(r){r.registerAction(Dc,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var kc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ev(r){r.registerComponentView(Qf),r.registerComponentModel(tc),r.registerCoordinateSystem("parallel",lc),r.registerPreprocessor(Jf),r.registerComponentModel($r),r.registerComponentView(Mc),Wr(r,"parallel",$r,kc),Oc(r)}var Ko={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sn=ue(Ko);Hn(gt,function(r,e){return r[e]=1,r},{});gt.join(", ");var Qt=["","style","shape","extra"],je=de();function Ba(r,e,t,a,i){var n=r+"Animation",o=Bn(r,a,i)||{},s=je(e).userDuring;return o.duration>0&&(o.during=s?$(zc,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[n]),o}function Rv(r,e,t,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=je(r),u=e.style;l.userDuring=e.during;var f={},c={};if(Wc(r,e,c),r.type==="compound")for(var v=r.shape.paths,p=e.shape.paths,h=0;h0&&r.animateFrom(g,y)}else Gc(r,e,i||0,t,f);Ic(r,e),u?r.dirty():r.markRedraw()}function Ic(r,e){for(var t=je(r).leaveToProps,a=0;a0&&r.animateFrom(i,n)}}function Vc(r,e){L(e,"silent")&&(r.silent=e.silent),L(e,"ignore")&&(r.ignore=e.ignore),r instanceof Nr&&L(e,"invisible")&&(r.invisible=e.invisible),r instanceof jn&&L(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ne={},Nc={setTransform:function(r,e){return ne.el[r]=e,this},getTransform:function(r){return ne.el[r]},setShape:function(r,e){var t=ne.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=ne.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=ne.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=ne.el.style;if(e)return e[r]},setExtra:function(r,e){var t=ne.el.extra||(ne.el.extra={});return t[r]=e,this},getExtra:function(r){var e=ne.el.extra;if(e)return e[r]}};function zc(){var r=this,e=r.el;if(e){var t=je(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}ne.el=e,a(Nc)}}function ln(r,e,t,a){var i=t[r];if(i){var n=e[r],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),ze(l))F(o,n);else for(var u=pt(l),f=0;f=0){!o&&(o=a[r]={});for(var p=ue(n),f=0;f=0)){var v=r.getAnimationStyleProps(),p=v?v.style:null;if(p){!n&&(n=a.style={});for(var h=ue(t),u=0;u