>1^-(s&1),l=l>>1^-(l&1),s+=r,l+=a,r=s,a=l,i.push([s/t,l/t])}return i}function kme(n,e){return n=Nme(n),Xt(dr(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,r=t.geometry,a=[];switch(r.type){case"Polygon":var o=r.coordinates;a.push(new IF(o[0],o.slice(1)));break;case"MultiPolygon":ne(r.coordinates,function(l){l[0]&&a.push(new IF(l[0],l.slice(1)))});break;case"LineString":a.push(new DF([r.coordinates]));break;case"MultiLineString":a.push(new DF(r.coordinates))}var s=new eK(i[e||"name"],a,i.cp);return s.properties=i,s})}var B9=Gi();function nK(n,e){var t=Xt(e,function(i){return n.scale.parse(i)});return n.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Fme(n){var e=n.getLabelModel().get("customValues");if(e){var t=Zv(n),i=n.scale.getExtent(),r=nK(n,e),a=dr(r,function(o){return o>=i[0]&&o<=i[1]});return{labels:Xt(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:n.scale.getLabel(s),tickValue:o}})}}return n.type==="category"?Bme(n):Gme(n)}function Ome(n,e){var t=n.getTickModel().get("customValues");if(t){var i=n.scale.getExtent(),r=nK(n,t);return{ticks:dr(r,function(a){return a>=i[0]&&a<=i[1]})}}return n.type==="category"?zme(n,e):{ticks:Xt(n.scale.getTicks(),function(a){return a.value})}}function Bme(n){var e=n.getLabelModel(),t=iK(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function iK(n,e){var t=rK(n,"labels"),i=YE(e),r=aK(t,i);if(r)return r;var a,o;return $n(i)?a=lK(n,i):(o=i==="auto"?Ume(n):i,a=sK(n,o)),oK(t,i,{labels:a,labelCategoryInterval:o})}function zme(n,e){var t=rK(n,"ticks"),i=YE(e),r=aK(t,i);if(r)return r;var a,o;if((!e.get("show")||n.scale.isBlank())&&(a=[]),$n(i))a=lK(n,i,!0);else if(i==="auto"){var s=iK(n,n.getLabelModel());o=s.labelCategoryInterval,a=Xt(s.labels,function(l){return l.tickValue})}else o=i,a=sK(n,o,!0);return oK(t,i,{ticks:a,tickCategoryInterval:o})}function Gme(n){var e=n.scale.getTicks(),t=Zv(n);return{labels:Xt(e,function(i,r){return{level:i.level,formattedLabel:t(i,r),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function rK(n,e){return B9(n)[e]||(B9(n)[e]=[])}function aK(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(i)),d=Math.abs(u*Math.sin(i)),h=0,f=0;l<=a[1];l+=s){var p=0,m=0,v=g3(t({value:l}),e.font,"center","top");p=v.width*1.3,m=v.height*1.3,h=Math.max(h,p,7),f=Math.max(f,m,7)}var g=h/c,_=f/d;isNaN(g)&&(g=1/0),isNaN(_)&&(_=1/0);var S=Math.max(0,Math.floor(Math.min(g,_))),x=B9(n.model),A=n.getExtent(),C=x.lastAutoInterval,M=x.lastTickCount;return C!=null&&M!=null&&Math.abs(C-S)<=1&&Math.abs(M-o)<=1&&C>S&&x.axisExtent0===A[0]&&x.axisExtent1===A[1]?S=C:(x.lastTickCount=o,x.lastAutoInterval=S,x.axisExtent0=A[0],x.axisExtent1=A[1]),S}function Hme(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function sK(n,e,t){var i=Zv(n),r=n.scale,a=r.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=r.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=JY(n),h=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;h&&u!==a[0]&&m(a[0]);for(var p=u;p<=a[1];p+=l)m(p);f&&p-l!==a[1]&&m(a[1]);function m(v){var g={value:v};s.push(t?v:{formattedLabel:i(g),rawLabel:r.getLabel(g),tickValue:v})}return s}function lK(n,e,t){var i=n.scale,r=Zv(n),a=[];return ne(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:r(o),rawLabel:s,tickValue:l})}),a}var NF=[0,1],Wme=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=i&&e<=r},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return j$(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&r.type==="ordinal"&&(i=i.slice(),kF(i,r.count())),pr(e,NF,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&(i=i.slice(),kF(i,r.count()));var a=pr(e,i,NF,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=Ome(this,t),r=i.ticks,a=Xt(r,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return jme(this,a,o,e.clamp),a},n.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),r=Xt(i,function(a){return Xt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return r},n.prototype.getViewLabels=function(){return Fme(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.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 r=Math.abs(e[1]-e[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return Vme(this)},n}();function kF(n,e){var t=n[1]-n[0],i=e,r=t/i/2;n[0]+=r,n[1]-=r}function jme(n,e,t,i){var r=e.length;if(!n.onBand||t||!r)return;var a=n.getExtent(),o,s;if(r===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;ne(e,function(f){f.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var d=a[0]>a[1];h(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(f,p){return f=Ra(f),p=Ra(p),d?f>p:fr&&(r+=Hm);var f=Math.atan2(s,o);if(f<0&&(f+=Hm),f>=i&&f<=r||f+Hm>=i&&f+Hm<=r)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(i)+n,m=t*Math.sin(i)+e,v=t*Math.cos(r)+n,g=t*Math.sin(r)+e,_=(p-o)*(p-o)+(m-s)*(m-s),S=(v-o)*(v-o)+(g-s)*(g-s);return _0){e=e/180*Math.PI,Z0.fromArray(n[0]),Wr.fromArray(n[1]),Na.fromArray(n[2]),fi.sub(Uu,Z0,Wr),fi.sub(Du,Na,Wr);var t=Uu.len(),i=Du.len();if(!(t<.001||i<.001)){Uu.scale(1/t),Du.scale(1/i);var r=Uu.dot(Du),a=Math.cos(e);if(a1&&fi.copy(Ms,Na),Ms.toArray(n[1])}}}}function Zme(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Z0.fromArray(n[0]),Wr.fromArray(n[1]),Na.fromArray(n[2]),fi.sub(Uu,Wr,Z0),fi.sub(Du,Na,Wr);var i=Uu.len(),r=Du.len();if(!(i<.001||r<.001)){Uu.scale(1/i),Du.scale(1/r);var a=Uu.dot(e),o=Math.cos(t);if(a=l)fi.copy(Ms,Na);else{Ms.scaleAndAdd(Du,s/Math.tan(Math.PI/2-c));var d=Na.x!==Wr.x?(Ms.x-Wr.x)/(Na.x-Wr.x):(Ms.y-Wr.y)/(Na.y-Wr.y);if(isNaN(d))return;d<0?fi.copy(Ms,Wr):d>1&&fi.copy(Ms,Na)}Ms.toArray(n[1])}}}}function ax(n,e,t,i){var r=t==="normal",a=r?n:n.ensureState(t);a.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):a.style=s}function Jme(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var r=eh(i[0],i[1]),a=eh(i[1],i[2]);if(!r||!a){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var o=Math.min(r,a)*t,s=Y4([],i[1],i[0],o/r),l=Y4([],i[1],i[2],o/a),u=Y4([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&a&&A(-c/o,0,o);var m=n[0],v=n[o-1],g,_;S(),g<0&&C(-g,.8),_<0&&C(_,.8),S(),x(g,_,1),x(_,g,-1),S(),g<0&&M(-g),_<0&&M(_);function S(){g=m.rect[e]-i,_=r-v.rect[e]-v.rect[t]}function x(I,D,E){if(I<0){var P=Math.min(D,-I);if(P>0){A(P*E,0,o);var F=P+I;F<0&&C(-F*E,1)}else C(-I*E,1)}}function A(I,D,E){I!==0&&(u=!0);for(var P=D;P0)for(var F=0;F0;F--){var Y=E[F-1]*W;A(-Y,F,o)}}}function M(I){var D=I<0?-1:1;I=Math.abs(I);for(var E=Math.ceil(I/(o-1)),P=0;P0?A(E,0,P+1):A(-E,o-P-1,o),I-=E,I<=0)return}return u}function Qme(n,e,t,i){return hK(n,"x","width",e,t,i)}function fK(n,e,t,i){return hK(n,"y","height",e,t,i)}function pK(n){var e=[];n.sort(function(m,v){return v.priority-m.priority});var t=new gi(0,0,0,0);function i(m){if(!m.ignore){var v=m.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}m.ignore=!0}for(var r=0;r=0&&i.attr(a.oldLayoutSelect),xi(h,"emphasis")>=0&&i.attr(a.oldLayoutEmphasis)),Qi(i,u,t,l)}else if(i.attr(u),!Vv(i).valueAnimation){var d=ai(i.style.opacity,1);i.style.opacity=0,sa(i,{style:{opacity:d}},t,l)}if(a.oldLayout=u,i.states.select){var f=a.oldLayoutSelect={};f6(f,u,p6),f6(f,i.states.select,p6)}if(i.states.emphasis){var p=a.oldLayoutEmphasis={};f6(p,u,p6),f6(p,i.states.emphasis,p6)}Qq(i,l,c,t,t)}if(r&&!r.ignore&&!r.invisible){var a=nge(r),o=a.oldLayout,m={points:r.shape.points};o?(r.attr({shape:o}),Qi(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,sa(r,{style:{strokePercent:1}},t)),a.oldLayout=m}},n}();const rge=ige;var sx=Gi();function age(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var r=sx(t).labelManager;r||(r=sx(t).labelManager=new rge),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var r=sx(t).labelManager;i.updatedSeries.forEach(function(a){r.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var lx=Math.sin,ux=Math.cos,vK=Math.PI,Rf=Math.PI*2,oge=180/vK,sge=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,r,a,o){this._add("C",e,t,i,r,a,o)},n.prototype.quadraticCurveTo=function(e,t,i,r){this._add("Q",e,t,i,r)},n.prototype.arc=function(e,t,i,r,a,o){this.ellipse(e,t,i,i,0,r,a,o)},n.prototype.ellipse=function(e,t,i,r,a,o,s,l){var u=s-o,c=!l,d=Math.abs(u),h=ah(d-Rf)||(c?u>=Rf:-u>=Rf),f=u>0?u%Rf:u%Rf+Rf,p=!1;h?p=!0:ah(d)?p=!1:p=f>=vK==!!c;var m=e+i*ux(o),v=t+r*lx(o);this._start&&this._add("M",m,v);var g=Math.round(a*oge);if(h){var _=1/this._p,S=(c?1:-1)*(Rf-_);this._add("A",i,r,g,1,+c,e+i*ux(o+S),t+r*lx(o+S)),_>.01&&this._add("A",i,r,g,0,+c,m,v)}else{var x=e+i*ux(s),A=t+r*lx(s);this._add("A",i,r,g,+p,+c,x,A)}},n.prototype.rect=function(e,t,i,r){this._add("M",e,t),this._add("l",i,0),this._add("l",0,r),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,r,a,o,s,l,u){for(var c=[],d=this._p,h=1;h"}function mge(n){return""+n+">"}function JE(n,e){e=e||{};var t=e.newline?`
-`:"";function i(r){var a=r.children,o=r.tag,s=r.attrs,l=r.text;return vge(o,s)+(o!=="style"?os(l):l||"")+(a?""+t+Xt(a,function(u){return i(u)}).join(t)+t:"")+mge(o)}return i(n)}function gge(n,e,t){t=t||{};var i=t.newline?`
-`:"",r=" {"+i,a=i+"}",o=Xt(Li(n),function(l){return l+r+Xt(Li(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+a}).join(i),s=Xt(Li(e),function(l){return"@keyframes "+l+r+Xt(Li(e[l]),function(u){return u+r+Xt(Li(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":[""].join(i)}function XA(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zF(n,e,t,i){return go("svg","root",{width:n,height:e,xmlns:gK,"xmlns:xlink":yK,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var yge=0;function SK(){return yge++}var GF={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"},Uf="transform-origin";function _ge(n,e,t){var i=It({},n.shape);It(i,e),n.buildPath(t,i);var r=new mK;return r.reset(N$(n)),t.rebuildPath(r,1),r.generateStr(),r.getStr()}function Sge(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[Uf]=t+"px "+i+"px")}var bge={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function bK(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function xge(n,e,t){var i=n.shape.paths,r={},a,o;if(ne(i,function(l){var u=XA(t.zrId);u.animation=!0,X_(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,h=Li(c),f=h.length;if(f){o=h[f-1];var p=c[o];for(var m in p){var v=p[m];r[m]=r[m]||{d:""},r[m].d+=v.d||""}for(var g in d){var _=d[g].animation;_.indexOf(o)>=0&&(a=_)}}}),!!a){e.d=!1;var s=bK(r,t);return a.replace(o,s)}}function UF(n){return xn(n)?GF[n]?"cubic-bezier("+GF[n]+")":eE(n)?n:"":""}function X_(n,e,t,i){var r=n.animators,a=r.length,o=[];if(n instanceof yE){var s=xge(n,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var Ot=bK(M,t);return Ot+" "+_[0]+" both"}}for(var v in l){var s=m(l[v]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+SK();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function wge(n,e,t){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};VF(i,e,t,!0)}else{var r=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},a=r.fill;if(!a){var o=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||o;l&&(a=oA(l))}var u=r.lineWidth;if(u){var c=!r.strokeNoScale&&n.transform?n.transform[0]:1;u=u/c}var i={cursor:"pointer"};a&&(i.fill=a),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),VF(i,e,t,!0)}}function VF(n,e,t,i){var r=JSON.stringify(n),a=t.cssStyleCache[r];a||(a=t.zrId+"-cls-"+SK(),t.cssStyleCache[r]=a,t.cssNodes["."+a+(i?":hover":"")]=n),e.class=e.class?e.class+" "+a:a}var z9=Math.round;function xK(n){return n&&xn(n.src)}function wK(n){return n&&$n(n.toDataURL)}function QE(n,e,t,i){hge(function(r,a){var o=r==="fill"||r==="stroke";o&&D$(a)?AK(e,n,r,i):o&&tE(a)?CK(t,n,r,i):n[r]=a,o&&i.ssr&&a==="none"&&(n["pointer-events"]="visible")},e,t,!1),Rge(t,n,i)}function eP(n,e){var t=Kde(e);t&&(t.each(function(i,r){i!=null&&(n[(BF+r).toLowerCase()]=i+"")}),e.isSilent()&&(n[BF+"silent"]="true"))}function HF(n){return ah(n[0]-1)&&ah(n[1])&&ah(n[2])&&ah(n[3]-1)}function Tge(n){return ah(n[4])&&ah(n[5])}function tP(n,e,t){if(e&&!(Tge(e)&&HF(e))){var i=t?10:1e4;n.transform=HF(e)?"translate("+z9(e[4]*i)/i+" "+z9(e[5]*i)/i+")":mde(e)}}function WF(n,e,t){for(var i=n.points,r=[],a=0;aa?(p=t[l+1]==null?null:t[l+1].elm,PK(n,p,t,r,l)):c8(n,e,i,a))}function S2(n,e){var t=e.elm=n.elm,i=n.children,r=e.children;n!==e&&(nP(n,e),YA(e.text)?Pu(i)&&Pu(r)?i!==r&&kge(t,i,r):Pu(r)?(Pu(n.text)&&cx(t,""),PK(t,null,r,0,r.length-1)):Pu(i)?c8(t,i,0,i.length-1):Pu(n.text)&&cx(t,""):n.text!==e.text&&(Pu(i)&&c8(t,i,0,i.length-1),cx(t,e.text)))}function Fge(n,e){if(Ag(n,e))S2(n,e);else{var t=n.elm,i=MK(t);G9(e),i!==null&&(Jf(i,e.elm,EK(t)),c8(i,[n],0,0))}return e}var Oge=0,Bge=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=ZF(),this.configLayer=ZF(),this.storage=t,this._opts=i=It({},i),this.root=e,this._id="zr"+Oge++,this._oldVNode=zF(i.width,i.height),e&&!i.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=_K("svg");nP(null,this._oldVNode),r.appendChild(a),e.appendChild(r)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Fge(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return $F(e,XA(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,r=this._height,a=XA(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=zge(i,r,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=go("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=Xt(Li(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(go("defs","defs",{},u)),e.animation){var c=gge(a.cssNodes,a.cssAnims,{newline:!0});if(c){var d=go("style","stl",{},[],c);o.push(d)}}return zF(i,r,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},JE(this.renderToVNode({animation:ai(e.cssAnimation,!0),emphasis:ai(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ai(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var r=e.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[m]===l[m]);m--);for(var v=p-1;v>m;v--)o--,s=a[o-1];for(var g=m+1;g=s)}}for(var d=this.__startIndex;d15)break}}G.prevElClipPaths&&g.restore()};if(_)if(_.length===0)I=v.__endIndex;else for(var E=f.dpr,P=0;P<_.length;++P){var F=_[P];g.save(),g.beginPath(),g.rect(F.x*E,F.y*E,F.width*E,F.height*E),g.clip(),D(F),g.restore()}else g.save(),D(),g.restore();v.__drawIndex=I,v.__drawIndex0&&e>r[0]){for(l=0;le);l++);s=i[r[l]]}if(r.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)}},n.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,r=0;r0?v6:0),this._needsManuallyCompositing),c.__builtin__||qM("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),a=c),r.__dirty&El&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,h){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,ne(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?ui(i[e],t,!0):i[e]=t;for(var r=0;r-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}(pa);const Kge=Yge;function gv(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var r=pv(n,e,t[0]);return r!=null?r+"":null}else if(i){for(var a=[],o=0;o=0&&i.push(e[a])}return i.join(" ")}var Zge=function(n){ot(e,n);function e(t,i,r,a){var o=n.call(this)||this;return o.updateData(t,i,r,a),o}return e.prototype._createSymbol=function(t,i,r,a,o){this.removeAll();var s=Ya(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Jge,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(){$c(this.childAt(0))},e.prototype.downplay=function(){qc(this.childAt(0))},e.prototype.setZ=function(t,i){var r=this.childAt(0);r.zlevel=t,r.z=i},e.prototype.setDraggable=function(t,i){var r=this.childAt(0);r.draggable=t,r.cursor=!i&&t?"move":r.cursor},e.prototype.updateData=function(t,i,r,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var d=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,d)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(f):Qi(h,f,s,i),iu(h)}if(this._updateCommon(t,i,l,r,a),u){var h=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,sa(h,f,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,r,a,o){var s=this.childAt(0),l=t.hostModel,u,c,d,h,f,p,m,v,g;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,d=a.selectItemStyle,h=a.focus,f=a.blurScope,m=a.labelStatesModels,v=a.hoverScale,g=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var _=a&&a.itemModel?a.itemModel:t.getItemModel(i),S=_.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),d=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),h=S.get("focus"),f=S.get("blurScope"),p=S.get("disabled"),m=_o(_),v=S.getShallow("scale"),g=_.getShallow("cursor")}var x=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var A=n1(t.getItemVisual(i,"symbolOffset"),r);A&&(s.x=A[0],s.y=A[1]),g&&s.attr("cursor",g);var C=t.getItemVisual(i,"style"),M=C.fill;if(s instanceof qo){var I=s.style;s.useStyle(It({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},C))}else s.__isEmptyBrush?s.useStyle(It({},C)):s.useStyle(C),s.style.decal=null,s.setColor(M,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(i,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var P=o&&o.useNameLabel;$o(s,m,{labelFetcher:l,labelDataIndex:i,defaultText:F,inheritColor:M,defaultOpacity:C.opacity});function F(W){return P?t.getName(W):gv(t,W)}this._sizeX=r[0]/2,this._sizeY=r[1]/2;var V=s.ensureState("emphasis");V.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var G=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;V.scaleX=this._sizeX*G,V.scaleY=this._sizeY*G,this.setSymbolScale(1),ya(this,h,f,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,r){var a=this.childAt(0),o=ni(this).dataIndex,s=r&&r.animation;if(this.silent=a.silent=!0,r&&r.fadeLabel){var l=a.getTextContent();l&&Ph(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ph(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Kv(t.getItemVisual(i,"symbolSize"))},e}(ei);function Jge(n,e){this.parent.drift(n,e)}const C3=Zge;function hx(n,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]))&&n.getItemVisual(t,"symbol")!=="none"}function eO(n){return n!=null&&!Kn(n)&&(n={isIgnore:n}),n||{}}function tO(n){var e=n.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:_o(e),cursorStyle:e.get("cursor")}}var Qge=function(){function n(e){this.group=new ei,this._SymbolCtor=e||C3}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=eO(t);var i=this.group,r=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=tO(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};a||i.removeAll(),e.diff(a).add(function(d){var h=c(d);if(hx(e,h,d,t)){var f=new o(e,d,l,u);f.setPosition(h),e.setItemGraphicEl(d,f),i.add(f)}}).update(function(d,h){var f=a.getItemGraphicEl(h),p=c(d);if(!hx(e,p,d,t)){i.remove(f);return}var m=e.getItemVisual(d,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==m)i.remove(f),f=new o(e,d,l,u),f.setPosition(p);else{f.updateData(e,d,l,u);var g={x:p[0],y:p[1]};s?f.attr(g):Qi(f,g,r)}i.add(f),e.setItemGraphicEl(d,f)}).remove(function(d){var h=a.getItemGraphicEl(d);h&&h.fadeOut(function(){i.remove(h)},r)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,r){var a=e._getSymbolPoint(r);i.setPosition(a),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tO(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=eO(i);function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=i[0]:i[1]<0&&(t=i[1]),t}function IK(n,e,t,i){var r=NaN;n.stacked&&(r=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=t.get(n.baseDim,i),o[1-a]=r,e.dataToPoint(o)}function t9e(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,r){t.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function n9e(n,e,t,i,r,a,o,s){for(var l=t9e(n,e),u=[],c=[],d=[],h=[],f=[],p=[],m=[],v=LK(r,e,o),g=n.getLayout("points")||[],_=e.getLayout("points")||[],S=0;S=r||m<0)break;if(Cp(g,_)){if(l){m+=a;continue}break}if(m===t)n[a>0?"moveTo":"lineTo"](g,_),d=g,h=_;else{var S=g-u,x=_-c;if(S*S+x*x<.5){m+=a;continue}if(o>0){for(var A=m+a,C=e[A*2],M=e[A*2+1];C===g&&M===_&&v=i||Cp(C,M))f=g,p=_;else{E=C-u,P=M-c;var G=g-u,W=C-g,Y=_-c,Q=M-_,K=void 0,ae=void 0;if(s==="x"){K=Math.abs(G),ae=Math.abs(W);var ie=E>0?1:-1;f=g-ie*K*o,p=_,F=g+ie*ae*o,V=_}else if(s==="y"){K=Math.abs(Y),ae=Math.abs(Q);var he=P>0?1:-1;f=g,p=_-he*K*o,F=g,V=_+he*ae*o}else K=Math.sqrt(G*G+Y*Y),ae=Math.sqrt(W*W+Q*Q),D=ae/(ae+K),f=g-E*o*(1-D),p=_-P*o*(1-D),F=g+E*o*D,V=_+P*o*D,F=Rd(F,Ld(C,g)),V=Rd(V,Ld(M,_)),F=Ld(F,Rd(C,g)),V=Ld(V,Rd(M,_)),E=F-g,P=V-_,f=g-E*K/ae,p=_-P*K/ae,f=Rd(f,Ld(u,g)),p=Rd(p,Ld(c,_)),f=Ld(f,Rd(u,g)),p=Ld(p,Rd(c,_)),E=g-f,P=_-p,F=g+E*ae/K,V=_+P*ae/K}n.bezierCurveTo(d,h,f,p,g,_),d=F,h=V}else n.lineTo(g,_)}u=g,c=_,m+=a}return v}var DK=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),i9e=function(n){ot(e,n);function e(t){var i=n.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 DK},e.prototype.buildPath=function(t,i){var r=i.points,a=0,o=r.length/2;if(i.connectNulls){for(;o>0&&Cp(r[o*2-2],r[o*2-1]);o--);for(;a=0){var x=u?(p-l)*S+l:(f-s)*S+s;return u?[t,x]:[x,t]}s=f,l=p;break;case o.C:f=a[d++],p=a[d++],m=a[d++],v=a[d++],g=a[d++],_=a[d++];var A=u?z5(s,f,m,g,t,c):z5(l,p,v,_,t,c);if(A>0)for(var C=0;C=0){var x=u?vo(l,p,v,_,M):vo(s,f,m,g,M);return u?[t,x]:[x,t]}}s=g,l=_;break}}},e}(Ei),r9e=function(n){ot(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(DK),NK=function(n){ot(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new r9e},e.prototype.buildPath=function(t,i){var r=i.points,a=i.stackedOnPoints,o=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Cp(r[s*2-2],r[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):r&&t.push(o(r,l,0),o(r,l,e));break}else r&&(t.push(o(r,l,0)),r=null),t.push(l),a=l}return t}function s9e(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())&&e.type==="cartesian2d"){for(var r,a,o=i.length-1;o>=0;o--){var s=n.getDimensionInfo(i[o].dimension);if(r=s&&s.coordDim,r==="x"||r==="y"){a=i[o];break}}if(a){var l=e.getAxis(r),u=Xt(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,d=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=o9e(u,r==="x"?t.getWidth():t.getHeight()),f=h.length;if(!f&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,m=h[0].coord-p,v=h[f-1].coord+p,g=v-m;if(g<.001)return"transparent";ne(h,function(S){S.offset=(S.coord-m)/g}),h.push({offset:f?h[f-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:d[0]||"transparent"});var _=new po(0,0,0,0,h,!0);return _[r]=m,_[r+"2"]=v,_}}}function l9e(n,e,t){var i=n.get("showAllSymbol"),r=i==="auto";if(!(i&&!r)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(r&&u9e(a,e))){var o=e.mapDimension(a.dim),s={};return ne(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function u9e(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;oi)return!1;return!0}function c9e(n,e){return isNaN(n)||isNaN(e)}function d9e(n){for(var e=n.length/2;e>0&&c9e(n[e*2-2],n[e*2-1]);e--);return e-1}function oO(n,e){return[n[e*2],n[e*2+1]]}function h9e(n,e,t){for(var i=n.length/2,r=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function OK(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var ae=p.getState("emphasis").style;ae.lineWidth=+p.style.lineWidth+1}ni(p).seriesIndex=t.seriesIndex,ya(p,Y,Q,K);var ie=aO(t.get("smooth")),he=t.get("smoothMonotone");if(p.setShape({smooth:ie,smoothMonotone:he,connectNulls:M}),m){var Ee=s.getCalculationInfo("stackedOnSeries"),He=0;m.useStyle(qn(u.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Ee&&(He=aO(Ee.get("smooth"))),m.setShape({smooth:ie,stackedOnSmooth:He,smoothMonotone:he,connectNulls:M}),jo(m,t,"areaStyle"),ni(m).seriesIndex=t.seriesIndex,ya(m,Y,Q,K)}var xe=this._changePolyState;s.eachItemGraphicEl(function(Fe){Fe&&(Fe.onHoverStateChange=xe)}),this._polyline.onHoverStateChange=xe,this._data=s,this._coordSys=a,this._stackedOnPoints=A,this._points=c,this._step=E,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,i){ni(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,r,a){var o=t.getData(),s=Op(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var h=t.get("zlevel")||0,f=t.get("z")||0;u=new C3(o,s),u.x=c,u.y=d,u.setZ(h,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Yr.prototype.highlight.call(this,t,i,r,a)},e.prototype.downplay=function(t,i,r,a){var o=t.getData(),s=Op(o,a);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 Yr.prototype.downplay.call(this,t,i,r,a)},e.prototype._changePolyState=function(t){var i=this._polygon;$5(this._polyline,t),i&&$5(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new i9e({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new NK({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},e.prototype._initSymbolLabelAnimation=function(t,i,r){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");$n(c)&&(c=c(null));var d=u.get("animationDelay")||0,h=$n(d)?d(null):d;t.eachItemGraphicEl(function(f,p){var m=f;if(m){var v=[f.x,f.y],g=void 0,_=void 0,S=void 0;if(r)if(o){var x=r,A=i.pointToCoord(v);a?(g=x.startAngle,_=x.endAngle,S=-A[1]/180*Math.PI):(g=x.r0,_=x.r,S=A[0])}else{var C=r;a?(g=C.x,_=C.x+C.width,S=f.x):(g=C.y+C.height,_=C.y,S=f.y)}var M=_===g?0:(S-g)/(_-g);l&&(M=1-M);var I=$n(d)?d(p):c*M+h,D=m.getSymbolPath(),E=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:I}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,r){var a=t.getModel("endLabel");if(OK(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 Xi({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=d9e(l);c>=0&&($o(s,_o(t,"endLabel"),{inheritColor:r,labelFetcher:t,labelDataIndex:c,defaultText:function(d,h,f){return f!=null?RK(o,f):gv(o,d)},enableTextSetter:!0},f9e(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,r,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var d=r.getLayout("points"),h=r.hostModel,f=h.get("connectNulls"),p=s.get("precision"),m=s.get("distance")||0,v=l.getBaseAxis(),g=v.isHorizontal(),_=v.inverse,S=i.shape,x=_?g?S.x:S.y+S.height:g?S.x+S.width:S.y,A=(g?m:0)*(_?-1:1),C=(g?0:-m)*(_?-1:1),M=g?"x":"y",I=h9e(d,x,M),D=I.range,E=D[1]-D[0],P=void 0;if(E>=1){if(E>1&&!f){var F=oO(d,D[0]);u.attr({x:F[0]+A,y:F[1]+C}),o&&(P=h.getRawValue(D[0]))}else{var F=c.getPointOn(x,M);F&&u.attr({x:F[0]+A,y:F[1]+C});var V=h.getRawValue(D[0]),G=h.getRawValue(D[1]);o&&(P=nq(r,p,V,G,I.t))}a.lastFrameIndex=D[0]}else{var W=t===1||a.lastFrameIndex>0?D[0]:0,F=oO(d,W);o&&(P=h.getRawValue(W)),u.attr({x:F[0]+A,y:F[1]+C})}if(o){var Y=Vv(u);typeof Y.setLabelText=="function"&&Y.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,i,r,a,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,h=n9e(this._data,t,this._stackedOnPoints,i,this._coordSys,r,this._valueOrigin),f=h.current,p=h.stackedOnCurrent,m=h.next,v=h.stackedOnNext;if(o&&(p=Id(h.stackedOnCurrent,h.current,r,o,l),f=Id(h.current,null,r,o,l),v=Id(h.stackedOnNext,h.next,r,o,l),m=Id(h.next,null,r,o,l)),rO(f,m)>3e3||c&&rO(p,v)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:v}));return}u.shape.__points=h.current,u.shape.points=f;var g={shape:{points:m}};h.current!==f&&(g.shape.__points=h.next),u.stopAnimation(),Qi(u,g,d),c&&(c.setShape({points:f,stackedOnPoints:p}),c.stopAnimation(),Qi(c,{shape:{stackedOnPoints:v}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],S=h.status,x=0;xe&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=i.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(s/h);if(isFinite(f)&&f>1){a==="lttb"?e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/f)):a==="minmax"&&e.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/f));var p=void 0;xn(a)?p=m9e[a]:$n(a)&&(p=a),p&&e.setData(r.downSample(r.mapDimension(u.dim),1/f,p,g9e))}}}}}function y9e(n){n.registerChartView(v9e),n.registerSeriesModel(Kge),n.registerLayout(P3("line",!0)),n.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)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,BK("line"))}var zK=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return nd(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,r){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(r)ne(a.getAxes(),function(h,f){if(h.type==="category"&&i!=null){var p=h.getTicksCoords(),m=h.getTickModel().get("alignWithLabel"),v=o[f],g=i[f]==="x1"||i[f]==="y1";if(g&&!m&&(v+=1),p.length<2)return;if(p.length===2){s[f]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var _=void 0,S=void 0,x=1,A=0;Av){S=(C+_)/2;break}A===1&&(x=M-p[0].tickValue)}S==null&&(_?_&&(S=p[p.length-1].coord):S=p[0].coord),s[f]=h.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=a.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/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}(pa);pa.registerClass(zK);const d8=zK;var _9e=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return nd(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,r){return r.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Uh(d8.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}(d8);const S9e=_9e;var b9e=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),x9e=function(n){ot(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new b9e},e.prototype.buildPath=function(t,i){var r=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,c=i.startAngle,d=i.endAngle,h=i.clockwise,f=Math.PI*2,p=h?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var r=i.scale,a=r.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],r.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==r.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,r,a){if(this._isOrderChangedWithinSameData(t,i,r)){var o=this._dataSort(t,r,i);this._isOrderDifferentInView(o,r)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,r){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.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,r=this._data;t&&t.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(a){L9(a,t,ni(a).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}(Yr),sO={cartesian2d:function(n,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 r=n.x+n.width,a=n.y+n.height,o=px(e.x,n.x),s=vx(e.x+e.width,r),l=px(e.y,n.y),u=vx(e.y+e.height,a),c=sr?s:o,e.y=d&&l>a?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var r=vx(e.r,n.r),a=px(e.r0,n.r0);e.r=r,e.r0=a;var o=r-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},lO={cartesian2d:function(n,e,t,i,r,a,o,s,l){var u=new Hi({shape:It({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(n,e,t,i,r,a,o,s,l){var u=!r&&l?h8:ll,c=new u({shape:i,z2:1});c.name="item";var d=GK(r);if(c.calculateTextPosition=w9e(d,{isRoundCap:u===h8}),a){var h=c.shape,f=r?"r":"endAngle",p={};h[f]=r?i.r0:i.startAngle,p[f]=i[f],(s?Qi:sa)(c,{shape:p},a)}return c}};function M9e(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function uO(n,e,t,i,r,a,o,s){var l,u;a?(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?Qi:sa)(t,{shape:l},e,r,null);var c=e?n.baseAxis.model:null;(o?Qi:sa)(t,{shape:u},c,r)}function cO(n,e){for(var t=0;t0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(n,e,t){var i=n.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 R9e(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function GK(n){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}}}(n)}function hO(n,e,t,i,r,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var c=n.shape,d=cp(i.getModel("itemStyle"),c,!0);It(c,d),n.setShape(c)}}else{var u=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var h=i.getShallow("cursor");h&&n.attr("cursor",h);var f=s?o?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":o?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=_o(i);$o(n,p,{labelFetcher:a,labelDataIndex:t,defaultText:gv(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var m=n.getTextContent();if(s&&m){var v=i.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,T9e(n,v==="outside"?f:v,GK(o),i.get(["label","rotate"]))}Jq(m,p,a.getRawValue(t),function(_){return RK(e,_)});var g=i.getModel(["emphasis"]);ya(n,g.get("focus"),g.get("blurScope"),g.get("disabled")),jo(n,i),R9e(r)&&(n.style.fill="none",n.style.stroke="none",ne(n.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function L9e(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,a)}var I9e=function(){function n(){}return n}(),fO=function(n){ot(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new I9e},e.prototype.buildPath=function(t,i){for(var r=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function D9e(n,e,t){for(var i=n.baseDimIdx,r=1-i,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=a.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function UK(n,e,t){if(r1(t,"cartesian2d")){var i=e,r=t.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}else{var r=t.getArea(),a=e;return{cx:r.cx,cy:r.cy,r0:n?r.r0:a.r0,r:n?r.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function N9e(n,e,t){var i=n.type==="polar"?ll:Hi;return new i({shape:UK(e,t,n),silent:!0,z2:0})}const k9e=C9e;function F9e(n){n.registerChartView(k9e),n.registerSeriesModel(S9e),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,si(HY,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WY("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,BK("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(r){e.sortInfo&&r.axis.setCategorySortInfo(e.sortInfo)})})}var mO=Math.PI*2,_6=Math.PI/180;function VK(n,e){return uo(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function HK(n,e){var t=VK(n,e),i=n.get("center"),r=n.get("radius");$t(r)||(r=[0,r]);var a=_n(t.width,e.getWidth()),o=_n(t.height,e.getHeight()),s=Math.min(a,o),l=_n(r[0],s/2),u=_n(r[1],s/2),c,d,h=n.coordinateSystem;if(h){var f=h.dataToPoint(i);c=f[0]||0,d=f[1]||0}else $t(i)||(i=[i,i]),c=_n(i[0],a)+t.x,d=_n(i[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function O9e(n,e,t){e.eachSeriesByType(n,function(i){var r=i.getData(),a=r.mapDimension("value"),o=VK(i,t),s=HK(i,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,h=-i.get("startAngle")*_6,f=i.get("endAngle"),p=i.get("padAngle")*_6;f=f==="auto"?h-mO:-f*_6;var m=i.get("minAngle")*_6,v=m+p,g=0;r.each(a,function(Q){!isNaN(Q)&&g++});var _=r.getSum(a),S=Math.PI/(_||g)*2,x=i.get("clockwise"),A=i.get("roseType"),C=i.get("stillShowZeroSum"),M=r.getDataExtent(a);M[0]=0;var I=x?1:-1,D=[h,f],E=I*p/2;uE(D,!x),h=D[0],f=D[1];var P=WK(i);P.startAngle=h,P.endAngle=f,P.clockwise=x;var F=Math.abs(f-h),V=F,G=0,W=h;if(r.setLayout({viewRect:o,r:c}),r.each(a,function(Q,K){var ae;if(isNaN(Q)){r.setItemLayout(K,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:d,r:A?NaN:c});return}A!=="area"?ae=_===0&&C?S:Q*S:ae=F/g,aeae?(he=W+I*ae/2,Ee=he):(he=W+E,Ee=ie-E),r.setItemLayout(K,{angle:ae,startAngle:he,endAngle:Ee,clockwise:x,cx:l,cy:u,r0:d,r:A?pr(Q,M,[d,c]):c}),W=ie}),Vt?g:v,A=Math.abs(S.label.y-t);if(A>=x.maxY){var C=S.label.x-e-S.len2*r,M=i+S.len,I=Math.abs(C)n.unconstrainedWidth?null:f:null;i.setStyle("width",p)}var m=i.getBoundingRect();a.width=m.width;var v=(i.style.margin||0)+2.1;a.height=m.height+v,a.y-=(a.height-d)/2}}}function mx(n){return n.position==="center"}function G9e(n){var e=n.getData(),t=[],i,r,a=!1,o=(n.get("minShowLabelAngle")||0)*B9e,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function f(C){C.ignore=!0}function p(C){if(!C.ignore)return!0;for(var M in C.states)if(C.states[M].ignore===!1)return!0;return!1}e.each(function(C){var M=e.getItemGraphicEl(C),I=M.shape,D=M.getTextContent(),E=M.getTextGuideLine(),P=e.getItemModel(C),F=P.getModel("label"),V=F.get("position")||P.get(["emphasis","label","position"]),G=F.get("distanceToLabelLine"),W=F.get("alignTo"),Y=_n(F.get("edgeDistance"),u),Q=F.get("bleedMargin"),K=P.getModel("labelLine"),ae=K.get("length");ae=_n(ae,u);var ie=K.get("length2");if(ie=_n(ie,u),Math.abs(I.endAngle-I.startAngle)0?"right":"left":Ee>0?"left":"right"}var Ft=Math.PI,k=0,_t=F.get("rotate");if(Yi(_t))k=_t*(Ft/180);else if(V==="center")k=0;else if(_t==="radial"||_t===!0){var Ct=Ee<0?-he+Ft:-he;k=Ct}else if(_t==="tangential"&&V!=="outside"&&V!=="outer"){var J=Math.atan2(Ee,He);J<0&&(J=Ft*2+J);var ee=He>0;ee&&(J=Ft+J),k=J-Ft}if(a=!!k,D.x=xe,D.y=Fe,D.rotation=k,D.setStyle({verticalAlign:"middle"}),bt){D.setStyle({align:Ot});var Bt=D.states.select;Bt&&(Bt.x+=D.x,Bt.y+=D.y)}else{var Ue=D.getBoundingRect().clone();Ue.applyTransform(D.getComputedTransform());var xt=(D.style.margin||0)+2.1;Ue.y-=xt/2,Ue.height+=xt,t.push({label:D,labelLine:E,position:V,len:ae,len2:ie,minTurnAngle:K.get("minTurnAngle"),maxSurfaceAngle:K.get("maxSurfaceAngle"),surfaceNormal:new fi(Ee,He),linePoints:pt,textAlign:Ot,labelDistance:G,labelAlignTo:W,edgeDistance:Y,bleedMargin:Q,rect:Ue,unconstrainedWidth:Ue.width,labelStyleWidth:D.style.width})}M.setTextConfig({inside:bt})}}),!a&&n.get("avoidLabelOverlap")&&z9e(t,i,r,l,u,h,c,d);for(var m=0;m0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=a.r0}},e.type="pie",e}(Yr);const H9e=V9e;function Jv(n,e,t){e=$t(e)&&{coordDimensions:e}||It({encodeDefine:n.getEncode()},e);var i=n.getSource(),r=T3(i,e).dimensions,a=new Rs(r,n);return a.initData(i,t),a}var W9e=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const L3=W9e;var j9e=Gi(),$9e=function(n){ot(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new L3(An(this.getData,this),An(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Jv(this,{coordDimensions:["value"],encodeDefaulter:si(EE,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),r=j9e(i),a=r.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=r.seats=ehe(o,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Fp(t,"labelLine",["show"]);var i=t.labelLine,r=t.emphasis.labelLine;i.show=i.show&&t.label.show,r.show=r.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}(pa);const q9e=$9e;function X9e(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(r){var a=i.mapDimension("value"),o=i.get(a,r);return!(Yi(o)&&!isNaN(o)&&o<0)})}}}function Y9e(n){n.registerChartView(H9e),n.registerSeriesModel(q9e),oY("pie",n.registerAction),n.registerLayout(si(O9e,"pie")),n.registerProcessor(R3("pie")),n.registerProcessor(X9e("pie"))}var K9e=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return nd(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,i,r){return r.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}(pa);const Z9e=K9e;var $K=4,J9e=function(){function n(){}return n}(),Q9e=function(n){ot(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new J9e},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var r=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<$K,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d=0;u--){var c=u*2,d=a[c]-s/2,h=a[c+1]-l/2;if(t>=d&&i>=h&&t<=d+s&&i<=h+l)return u}return-1},e.prototype.contain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=r[0],i=r[1],a.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,r=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,d=-1/0,h=0;h=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const t3e=e3e;var n3e=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,r){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,r){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,r){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=P3("").reset(t,i,r);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},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 r=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!r||o!==this._isLargeDraw)&&(r&&r.remove(),r=this._symbolDraw=o?new t3e:new M3,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Yr);const i3e=n3e;var r3e=function(n){ot(e,n);function e(){return n!==null&&n.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}($i);const a3e=r3e;var ZA=function(n){ot(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xa).models[0]},e.type="cartesian2dAxis",e}($i);Za(ZA,A3);var qK={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o3e=ui({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qK),iP=ui({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}}},qK),s3e=ui({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iP),l3e=qn({logBase:10},iP);const XK={category:o3e,value:iP,time:s3e,log:l3e};var u3e={value:1,category:1,time:1,log:1};function yv(n,e,t,i){ne(u3e,function(r,a){var o=ui(ui({},XK[a],!0),i,!0),s=function(l){ot(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var h=D9(this),f=h?jv(c):{},p=d.getTheme();ui(c,p.get(a+"Axis")),ui(c,this.getDefaultOption()),c.type=yO(c),h&&Rh(c,f,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=WA.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",yO)}function yO(n){return n.type||(n.data?"category":"value")}var c3e=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return Xt(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),dr(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const d3e=c3e;var JA=["x","y"];function _O(n){return n.type==="interval"||n.type==="time"}var h3e=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=JA,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!_O(t)||!_O(i))){var r=t.getExtent(),a=i.getExtent(),o=this.dataToPoint([r[0],a[0]]),s=this.dataToPoint([r[1],a[1]]),l=r[1]-r[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,h=o[0]-r[0]*c,f=o[1]-a[0]*d,p=this._transform=[c,0,0,d,h,f];this._invTransform=Bv([],p)}}},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"),r=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&r.contain(r.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 r=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new gi(r[0],r[1],a[0]-r[0],a[1]-r[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,r){r=r||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Ho(r,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(a,i)),r[1]=l.toGlobalCoord(l.dataToCoord(o,i)),r},e.prototype.clampData=function(t,i){var r=this.getAxis("x").scale,a=this.getAxis("y").scale,o=r.getExtent(),s=a.getExtent(),l=r.parse(t[0]),u=a.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 r=[];if(this._invTransform)return Ho(r,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return r[0]=a.coordToData(a.toLocalCoord(t[0]),i),r[1]=o.coordToData(o.toLocalCoord(t[1]),i),r},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(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(r[0],r[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(r[0],r[1])-o+t;return new gi(a,o,s,l)},e}(d3e),f3e=function(n){ot(e,n);function e(t,i,r,a,o){var s=n.call(this,t,i,r)||this;return s.index=0,s.type=a||"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}(ou);const p3e=f3e;function QA(n,e,t){t=t||{};var i=n.coordinateSystem,r=e.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p=u==="x"?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(m,p[1]),p[0])}a.position=[u==="y"?p[h[l]]:d[0],u==="x"?p[h[l]]:d[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[s],a.labelOffset=o?p[h[s]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ro(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function SO(n){return n.get("coordinateSystem")==="cartesian2d"}function bO(n){var e={xAxisModel:null,yAxisModel:null};return ne(e,function(t,i){var r=i.replace(/Model$/,""),a=n.getReferringComponents(r,Xa).models[0];e[i]=a}),e}var gx=Math.log;function YK(n,e,t){var i=Ih.prototype,r=i.getTicks.call(t),a=i.getTicks.call(t,!0),o=r.length-1,s=i.getInterval.call(t),l=ZY(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var h=gx(n.base);u=[gx(u[0])/h,gx(u[1])/h]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var f=i.getExtent.call(n);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=i.getInterval.call(n),m=u[0],v=u[1];if(c&&d)p=(v-m)/o;else if(c)for(v=u[0]+p*o;vu[0]&&isFinite(m)&&isFinite(u[0]);)p=nx(p),m=u[1]-p*o;else{var g=n.getTicks().length-1;g>o&&(p=nx(p));var _=p*o;v=Math.ceil(u[1]/p)*p,m=Ra(v-_),m<0&&u[0]>=0?(m=0,v=Ra(_)):v>0&&u[1]<=0&&(v=0,m=-Ra(_))}var S=(r[0].value-a[0].value)/s,x=(r[o].value-a[o].value)/s;i.setExtent.call(n,m+p*S,v+p*x),i.setInterval.call(n,p),(S||x)&&i.setNiceExtent.call(n,m+p,v-p)}var v3e=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=JA,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function r(o){var s,l=Li(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var h=+l[d],f=o[h],p=f.model,m=f.scale;jA(m)&&p.get("alignTicks")&&p.get("interval")==null?c.push(f):(mv(m,p),jA(m)&&(s=f))}c.length&&(s||(s=c.pop(),mv(s.scale,s.model)),ne(c,function(v){YK(v.scale,v.model,s.scale)}))}}r(i.x),r(i.y);var a={};ne(i.x,function(o){xO(i,"y",o,a)}),ne(i.y,function(o){xO(i,"x",o,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var r=e.getBoxLayoutParams(),a=!i&&e.get("containLabel"),o=uo(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(ne(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Mme(u);if(c){var d=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),ne(this._coordsList,function(u){u.calcAffineTransform()});function l(){ne(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(d[h],d[1-h]),m3e(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}Kn(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,a=this._coordsList;r0?"top":"bottom",a="center"):C9(r-oh)?(o=i>0?"bottom":"top",a="center"):(o="middle",r>0&&r0?"right":"left":a=i>0?"left":"right"),{rotation:r,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),TO={axisLine:function(n,e,t,i){var r=e.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),!!r){var a=e.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Ho(s,s,o),Ho(l,l,o));var c=It({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Lo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});fv(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var h=e.get(["axisLine","symbol"]);if(h!=null){var f=e.get(["axisLine","symbolSize"]);xn(h)&&(h=[h,h]),(xn(f)||Yi(f))&&(f=[f,f]);var p=n1(e.get(["axisLine","symbolOffset"])||0,f),m=f[0],v=f[1];ne([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,_){if(h[_]!=="none"&&h[_]!=null){var S=Ya(h[_],-m/2,-v/2,m,v,c.stroke,!0),x=g.r+g.offset,A=u?l:s;S.attr({rotation:g.rotate,x:A[0]+x*Math.cos(n.rotation),y:A[1]-x*Math.sin(n.rotation),silent:!0,z2:11}),t.add(S)}})}}},axisTickLabel:function(n,e,t,i){var r=S3e(t,i,e,n),a=x3e(t,i,e,n);if(_3e(e,a,r),b3e(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=dK(Xt(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));pK(o)}},axisName:function(n,e,t,i){var r=Ro(n.axisName,e.get("name"));if(r){var a=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,CO(a)?n.labelOffset+o*l:0],h,f=e.get("nameRotate");f!=null&&(f=f*oh/180);var p;CO(a)?h=Mp.innerTextLayout(n.rotation,f!=null?f:n.rotation,o):(h=y3e(n.rotation,a,f||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var m=s.getFont(),v=e.get("nameTruncate",!0)||{},g=v.ellipsis,_=Ro(n.nameTruncateMaxWidth,v.maxWidth,p),S=new Xi({x:d[0],y:d[1],rotation:h.rotation,silent:Mp.isLabelSilent(e),style:qr(s,{text:r,font:m,overflow:"truncate",width:_,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Qp({el:S,componentModel:e,itemName:r}),S.__fullText=r,S.anid="name",e.get("triggerEvent")){var x=Mp.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,ni(S).eventData=x}i.add(S),S.updateTransform(),t.add(S),S.decomposeTransform()}}};function y3e(n,e,t,i){var r=$$(t-n),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return C9(r-oh/2)?(o=l?"bottom":"top",a="center"):C9(r-oh*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",roh/2?a=l?"left":"right":a=l?"right":"left"),{rotation:r,textAlign:a,textVerticalAlign:o}}function _3e(n,e,t){if(!JY(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),r=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],h=t[t.length-2];i===!1?(Kl(a),Kl(u)):AO(a,o)&&(i?(Kl(o),Kl(c)):(Kl(a),Kl(u))),r===!1?(Kl(s),Kl(d)):AO(l,s)&&(r?(Kl(l),Kl(h)):(Kl(s),Kl(d)))}}function Kl(n){n&&(n.ignore=!0)}function AO(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var r=y_([]);return Jp(r,r,-n.rotation),t.applyTransform(Bc([],r,n.getLocalTransform())),i.applyTransform(Bc([],r,e.getLocalTransform())),t.intersect(i)}}function CO(n){return n==="middle"||n==="center"}function KK(n,e,t,i,r){for(var a=[],o=[],s=[],l=0;l=0||n===e}function E3e(n){var e=rP(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,r=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=eC(t);a==null&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o