>1^-(1&s),l=l>>1^-(1&l),n=s+=n,i=l+=i,a.push([s/t,l/t])}return a}function Bd(r,e){return r=function tz(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;return null==t&&(t=1024),A(e.features,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case\"LineString\":i.coordinates=kw(s,o,t);break;case\"Polygon\":case\"MultiLineString\":Vd(s,o,t);break;case\"MultiPolygon\":A(s,function(l,u){return Vd(l,o[u],t)})}}),e.UTF8Encoding=!1,e}(r),G(Lt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case\"Polygon\":var o=n.coordinates;i.push(new Pw(o[0],o.slice(1)));break;case\"MultiPolygon\":A(n.coordinates,function(l){l[0]&&i.push(new Pw(l[0],l.slice(1)))});break;case\"LineString\":i.push(new Rw([n.coordinates]));break;case\"MultiLineString\":i.push(new Rw(n.coordinates))}var s=new Ew(a[e||\"name\"],i,a.cp);return s.properties=a,s})}function ez(r,e,t,a,n,i,o,s){return new bt({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?\"truncate\":null,lineHeight:s}}).getBoundingRect()}var il=Ct();function Ow(r,e){var i,o,t=Nw(r,\"labels\"),a=Od(e);return Vw(t,a)||(j(a)?i=Gw(r,a):(o=\"auto\"===a?function sz(r){var e=il(r).autoInterval;return null!=e?e:il(r).autoInterval=r.calculateCategoryInterval()}(r):a,i=zw(r,o)),Bw(t,a,{labels:i,labelCategoryInterval:o}))}function Nw(r,e){return il(r)[e]||(il(r)[e]=[])}function Vw(r,e){for(var t=0;t1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Mw(r),v=o.get(\"showMinLabel\")||h,c=o.get(\"showMaxLabel\")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return c&&p-l!==i[1]&&d(i[1]),s}function Gw(r,e,t){var a=r.scale,n=nl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Fw=[0,1],fz=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return dc(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&\"ordinal\"===n.type&&Hw(a=a.slice(),n.count()),It(e,Fw,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&\"ordinal\"===n.type&&Hw(a=a.slice(),n.count());var i=It(e,a,Fw,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=G(function az(r,e){return\"category\"===r.type?function iz(r,e){var i,o,t=Nw(r,\"ticks\"),a=Od(e),n=Vw(t,a);if(n)return n;if((!e.get(\"show\")||r.scale.isBlank())&&(i=[]),j(a))i=Gw(r,a,!0);else if(\"auto\"===a){var s=Ow(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else i=zw(r,o=a,!0);return Bw(t,a,{ticks:i,tickCategoryInterval:o})}(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}(this,t).ticks,function(s){return{coord:this.dataToCoord(\"ordinal\"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function hz(r,e,t,a){var n=e.length;if(r.onBand&&!t&&n){var o,i=r.getExtent();if(1===n)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var u=(e[n-1].coord-e[0].coord)/(e[n-1].tickValue-e[0].tickValue);A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();e.push(o={coord:e[n-1].coord+u*(1+f[1]-e[n-1].tickValue)})}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]})}function v(c,p){return c=Wt(c),p=Wt(p),h?c>p:c0&&t<100||(t=5),G(this.scale.getMinorTicks(t),function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},r.prototype.getViewLabels=function(){return function rz(r){return\"category\"===r.type?function nz(r){var e=r.getLabelModel(),t=Ow(r,e);return!e.get(\"show\")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}(r):function oz(r){var e=r.scale.getTicks(),t=nl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}(r)}(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel(\"axisLabel\")},r.prototype.getTickModel=function(){return this.model.getModel(\"axisTick\")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);0===a&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return function lz(r){var e=function uz(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get(\"rotate\")||0,font:e.getFont()}}(r),t=nl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d,g=ls(t({value:l}),e.font,\"center\",\"top\");d=1.3*g.height,v=Math.max(v,1.3*g.width,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=il(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return null!=x&&null!=w&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}(this)},r}();function Hw(r,e){var n=(r[1]-r[0])/e/2;r[0]+=n,r[1]-=n}const lr=fz;function vz(r){var e=St.extend(r);return St.registerClass(e),e}function cz(r){var e=Gt.extend(r);return Gt.registerClass(e),e}function pz(r){var e=Nt.extend(r);return Nt.registerClass(e),e}function dz(r){var e=Et.extend(r);return Et.registerClass(e),e}var ol=2*Math.PI,ri=Wr.CMD,gz=[\"top\",\"right\",\"bottom\",\"left\"];function yz(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case\"top\":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case\"bottom\":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case\"left\":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case\"right\":a.set(t.x+i+e,t.y+o/2),n.set(1,0)}}function mz(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*t+r,h=(s/=u)*t+e;if(Math.abs(a-n)%ol<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=wr(n),n=wr(v)}else a=wr(a),n=wr(n);a>n&&(n+=ol);var c=Math.atan2(s,o);if(c<0&&(c+=ol),c>=a&&c<=n||c+ol>=a&&c+ol<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Kf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h),p=(l*(f/=v)+u*(h/=v))/v;s&&(p=Math.min(Math.max(p,0),1));var d=o[0]=r+(p*=v)*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function Ww(r,e,t,a,n,i,o){t<0&&(r+=t,t=-t),a<0&&(e+=a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Rr=[];function _z(r,e,t){var a=Ww(e.x,e.y,e.width,e.height,r.x,r.y,Rr);return t.set(Rr[0],Rr[1]),a}function Sz(r,e,t){for(var s,l,a=0,n=0,i=0,o=0,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Er.fromArray(r[0]),Vt.fromArray(r[1]),jt.fromArray(r[2]),lt.sub(Kr,Er,Vt),lt.sub(jr,jt,Vt);var t=Kr.len(),a=jr.len();if(!(t<.001||a<.001)){Kr.scale(1/t),jr.scale(1/a);var n=Kr.dot(jr);if(Math.cos(e)1&<.copy(Re,jt),Re.toArray(r[1])}}}}function xz(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Er.fromArray(r[0]),Vt.fromArray(r[1]),jt.fromArray(r[2]),lt.sub(Kr,Vt,Er),lt.sub(jr,jt,Vt);var a=Kr.len(),n=jr.len();if(!(a<.001||n<.001)&&(Kr.scale(1/a),jr.scale(1/n),Kr.dot(e)=l)lt.copy(Re,jt);else{Re.scaleAndAdd(jr,s/Math.tan(Math.PI/2-f));var h=jt.x!==Vt.x?(Re.x-Vt.x)/(jt.x-Vt.x):(Re.y-Vt.y)/(jt.y-Vt.y);if(isNaN(h))return;h<0?lt.copy(Re,Vt):h>1&<.copy(Re,jt)}Re.toArray(r[1])}}}function Zw(r,e,t,a){var n=\"normal\"===t,i=n?r:r.ensureState(t);i.ignore=e;var o=a.get(\"smooth\");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel(\"lineStyle\").getLineStyle();n?r.useStyle(s):i.style=s}function bz(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=ea(a[0],a[1]),i=ea(a[1],a[2]);if(!n||!i)return r.lineTo(a[1][0],a[1][1]),void r.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*t,s=Uo([],a[1],a[0],o/n),l=Uo([],a[1],a[2],o/i),u=Uo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&x(-h/o,0,o);var m,_,g=r[0],y=r[o-1];return S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),u}function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,M,D){if(C<0){var L=Math.min(M,-C);if(L>0){x(L*D,0,o);var I=L+C;I<0&&w(-I*D,1)}else w(-C*D,1)}}function x(C,M,D){0!==C&&(u=!0);for(var L=M;L0)for(I=0;I0;I--)x(-D[I-1]*E,I,o)}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),L=0;L0?x(D,0,L+1):x(-D,o-L-1,o),(C-=D)<=0)return}}function Kw(r,e,t,a){return qw(r,\"y\",\"height\",e,t,a)}function jw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ut(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState(\"emphasis\");null==g.ignore&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),vt(v,\"emphasis\")>=0&&a.attr(i.oldLayoutEmphasis)),Mt(a,u,t,l)}else if(a.attr(u),!Wi(a).valueAnimation){var h=st(a.style.opacity,1);a.style.opacity=0,zt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};Jf(c,u,Qf),Jf(c,a.states.select,Qf)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Jf(p,u,Qf),Jf(p,a.states.emphasis,Qf)}OS(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=Az(n),d={points:n.shape.points};(o=i.oldLayout)?(n.attr({shape:o}),Mt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,zt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const Dz=Mz;var Hd=Ct();function Qw(r){r.registerUpdateLifecycle(\"series:beforeupdate\",function(e,t,a){var n=Hd(t).labelManager;n||(n=Hd(t).labelManager=new Dz),n.clearLabels()}),r.registerUpdateLifecycle(\"series:layoutlabels\",function(e,t,a){var n=Hd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function $w(r,e,t){var a=dr.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position=\"absolute\",o.left=\"0\",o.top=\"0\",o.width=n+\"px\",o.height=i+\"px\",a.setAttribute(\"data-zr-dom-id\",r)),a.width=n*t,a.height=i*t,a}ct(Qw);var Lz=function(r){function e(t,a,n){var o,i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||xu,\"string\"==typeof t?o=$w(t,a,n):$(t)&&(t=(o=t).id),i.id=t,i.dom=o;var s=o.style;return s&&(xv(o),o.onselectstart=function(){return!1},s.padding=\"0\",s.margin=\"0\",s.borderWidth=\"0\"),i.painter=a,i.dpr=n,i}return Bt(e,r),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext(\"2d\"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=$w(\"back-\"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext(\"2d\"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var g,o=[],s=this.maxRepaintRectCount,l=!1,u=new ut(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new ut(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,x=0,w=0;w=s)}}for(var h=this.__startIndex;h15)break}P.prevElClipPaths&&y.restore()};if(m)if(0===m.length)T=g.__endIndex;else for(var M=c.dpr,D=0;D0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[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=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?.01:0),this._needsManuallyCompositing),f.__builtin__||Xl(\"ZLevel \"+u+\" has been used by unkown layer \"+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,t(l),i=f),1&n.__dirty&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ot(a[e],t,!0):a[e]=t;for(var n=0;n=ni:-u>=ni),c=u>0?u%ni:u%ni+ni;p=!!v||!Ea(h)&&c>=eT==!!f;var d=e+a*Yd(o),g=t+n*Ud(o);this._start&&this._add(\"M\",d,g);var y=Math.round(i*Nz);if(v){var m=1/this._p,_=(f?1:-1)*(ni-m);this._add(\"A\",a,n,y,1,+f,e+a*Yd(o+_),t+n*Ud(o+_)),m>.01&&this._add(\"A\",a,n,y,0,+f,d,g)}else{var S=e+a*Yd(s),b=t+n*Ud(s);this._add(\"A\",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add(\"M\",e,t),this._add(\"l\",a,0),this._add(\"l\",0,n),this._add(\"l\",-a,0),this._add(\"Z\")},r.prototype.closePath=function(){this._d.length>0&&this._add(\"Z\")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v\"}(o,n.attrs)+(\"style\"!==o?we(l):l||\"\")+(i?\"\"+t+G(i,function(u){return a(u)}).join(t)+t:\"\")+function Zz(r){return\"\"+r+\">\"}(o)}(r)}function qd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function oT(r,e,t,a){return oe(\"svg\",\"root\",{width:r,height:e,xmlns:aT,\"xmlns:xlink\":nT,version:\"1.1\",baseProfile:\"full\",viewBox:!!a&&\"0 0 \"+r+\" \"+e},t)}var sT={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\"},ii=\"transform-origin\";function qz(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new rT;return n.reset(Z0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function Kz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[ii]=t+\"px \"+a+\"px\")}var jz={fill:\"fill\",opacity:\"opacity\",lineWidth:\"stroke-width\",lineDashOffset:\"stroke-dashoffset\"};function lT(r,e){var t=e.zrId+\"-ani-\"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function uT(r){return U(r)?sT[r]?\"cubic-bezier(\"+sT[r]+\")\":zv(r)?r:\"\":\"\"}function th(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof hf){var s=function Jz(r,e,t){var i,o,n={};if(A(r.shape.paths,function(l){var u=qd(t.zrId);u.animation=!0,th(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=mt(f),c=v.length;if(c){var p=f[o=v[c-1]];for(var d in p){var g=p[d];n[d]=n[d]||{d:\"\"},n[d].d+=g.d||\"\"}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),i){e.d=!1;var s=lT(n,t);return i.replace(o,s)}}(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length)return lT(w,t)+\" \"+m[0]+\" both\"}for(var g in l)(s=d(l[g]))&&o.push(s);if(o.length){var y=t.zrId+\"-cls-\"+t.cssClassIdx++;t.cssNodes[\".\"+y]={animation:o.join(\",\")},e.class=y}}var ll=Math.round;function fT(r){return r&&U(r.src)}function hT(r){return r&&j(r.toDataURL)}function Kd(r,e,t,a){(function Hz(r,e,t,a){var n=null==e.opacity?1:e.opacity;if(t instanceof ue)r(\"opacity\",n);else{if(function zz(r){var e=r.fill;return null!=e&&e!==sl}(e)){var i=ns(e.fill);r(\"fill\",i.color);var o=null!=e.fillOpacity?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r(\"fill-opacity\",o)}else r(\"fill\",sl);if(function Gz(r){var e=r.stroke;return null!=e&&e!==sl}(e)){var s=ns(e.stroke);r(\"stroke\",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,h=e.strokeFirst;if((a||1!==u)&&r(\"stroke-width\",u),(a||h)&&r(\"paint-order\",h?\"stroke\":\"fill\"),(a||f<1)&&r(\"stroke-opacity\",f),e.lineDash){var v=$p(t),c=v[0],p=v[1];c&&(p=Bz(p||0),r(\"stroke-dasharray\",c.join(\",\")),(p||a)&&r(\"stroke-dashoffset\",p))}else a&&r(\"stroke-dasharray\",sl);for(var d=0;di?CT(r,null==t[l+1]?null:t[l+1].elm,t,n,l):eh(r,e,a,i))}(t,a,n):Jr(n)?(Jr(r.text)&&Jd(t,\"\"),CT(t,null,n,0,n.length-1)):Jr(a)?eh(t,a,0,a.length-1):Jr(r.text)&&Jd(t,\"\"):r.text!==e.text&&(Jr(a)&&eh(t,a,0,a.length-1),Jd(t,e.text)))}var h5=0,v5=function(){function r(e,t,a){if(this.type=\"svg\",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=a=V({},a),this.root=e,this._id=\"zr\"+h5++,this._oldVNode=oT(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement(\"div\");n.style.cssText=\"position:relative;overflow:hidden\";var i=this._svgDom=this._oldVNode.elm=iT(\"svg\");$d(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=\"position:absolute;left:0;top:0;user-select:none\",function f5(r,e){if(ul(r,e))yo(r,e);else{var t=r.elm,a=bT(t);fl(e),null!==a&&(oi(a,e.elm,wT(t)),eh(a,[r],0,0))}}(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return gT(e,qd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=qd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=function c5(r,e,t,a){var n;if(t&&\"none\"!==t)if(n=oe(\"rect\",\"bg\",{width:r,height:e,x:\"0\",y:\"0\",id:\"0\"}),Y0(t))yT({fill:t},n.attrs,\"fill\",a);else if(Zv(t))mT({style:{fill:t},dirty:Xt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,\"fill\",a);else{var i=ns(t),s=i.opacity;n.attrs.fill=i.color,s<1&&(n.attrs[\"fill-opacity\"]=s)}return n}(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=oe(\"g\",\"main\",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(mt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(oe(\"defs\",\"defs\",{},u)),e.animation){var f=function Xz(r,e,t){var a=(t=t||{}).newline?\"\\n\":\"\",n=\" {\"+a,i=a+\"}\",o=G(mt(r),function(l){return l+n+G(mt(r[l]),function(u){return u+\":\"+r[l][u]+\";\"}).join(a)+i}).join(a),s=G(mt(e),function(l){return\"@keyframes \"+l+n+G(mt(e[l]),function(u){return u+n+G(mt(e[l][u]),function(f){var h=e[l][u][f];return\"d\"===f&&(h='path(\"'+h+'\")'),f+\":\"+h+\";\"}).join(a)+i}).join(a)+i}).join(a);return o||s?[\"\"].join(a):\"\"}(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=oe(\"style\",\"stl\",{},[],f);o.push(h)}}return oT(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return Xd(this.renderToVNode({animation:st((e=e||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:st(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var s,l,n=e.length,i=[],o=0,u=0,f=0;f=0&&(!v||!l||v[d]!==l[d]);d--);for(var g=p-1;g>d;g--)s=i[--o-1];for(var y=d+1;y-1&&(u.style.stroke=u.style.fill,u.style.fill=\"#fff\",u.style.lineWidth=2),a},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}(Nt);const y5=g5;function mo(r,e){var t=r.mapDimensionsAll(\"defaultedLabel\"),a=t.length;if(1===a){var n=Qi(r,e,t[0]);return null!=n?n+\"\":null}if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(\" \")}var m5=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return O(e,r),e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=_5,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(){fa(this.childAt(0))},e.prototype.downplay=function(){ha(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?\"move\":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,\"symbol\")||\"circle\",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,\"symbolKeepAspect\");this._createSymbol(o,t,a,l,h)}else{(v=this.childAt(0)).silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Mt(v,c,s,a),Tr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);f||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}},v.scaleX=v.scaleY=0,v.style.opacity=0,zt(v,c,s,a))}f&&this.childAt(0).stopAnimation(\"leave\")},e.prototype._updateCommon=function(t,a,n,i,o){var u,f,h,v,c,p,d,g,y,s=this.childAt(0),l=t.hostModel;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel(\"emphasis\");u=_.getModel(\"itemStyle\").getItemStyle(),h=m.getModel([\"select\",\"itemStyle\"]).getItemStyle(),f=m.getModel([\"blur\",\"itemStyle\"]).getItemStyle(),v=_.get(\"focus\"),c=_.get(\"blurScope\"),p=_.get(\"disabled\"),d=ae(m),g=_.getShallow(\"scale\"),y=m.getShallow(\"cursor\")}var S=t.getItemVisual(a,\"symbolRotate\");s.attr(\"rotation\",(S||0)*Math.PI/180||0);var b=Kn(t.getItemVisual(a,\"symbolOffset\"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr(\"cursor\",y);var x=t.getItemVisual(a,\"style\"),w=x.fill;if(s instanceof ue){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.useStyle(s.__isEmptyBrush?V({},x):x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,\"liftZ\"),M=this._z2;null!=C?null==M&&(this._z2=s.z2,s.z2+=C):null!=M&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;ve(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:function L(R){return D?t.getName(R):mo(t,R)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState(\"emphasis\");I.style=u,s.ensureState(\"select\").style=h,s.ensureState(\"blur\").style=f;var P=null==g||!0===g?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Ut(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&za(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();za(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return uo(t.getItemVisual(a,\"symbolSize\"))},e}(at);function _5(r,e){this.parent.drift(r,e)}const hl=m5;function tg(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&\"none\"!==r.getItemVisual(t,\"symbol\")}function DT(r){return null!=r&&!$(r)&&(r={isIgnore:r}),r||{}}function LT(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:ae(e),cursorStyle:e.get(\"cursor\")}}var S5=function(){function r(e){this.group=new at,this._SymbolCtor=e||hl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=DT(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=LT(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(tg(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(tg(e,p,h,t)){var d=e.getItemVisual(h,\"symbol\")||\"circle\",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),(c=new o(e,h,l,u)).setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Mt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}else a.remove(c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=LT(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){function n(l){l.isGroup||(l.incremental=!0,l.ensureState(\"emphasis\").hoverLayer=!0)}this._progressiveEls=[],a=DT(a);for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=\"x\"===s||\"radius\"===s?1:0,h=G(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo(\"stackResultDimension\");return da(e,h[0])&&(v=!0,h[0]=c),da(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo(\"stackedOverDimension\")}}function PT(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo(\"stackedOverDimension\"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var ja=Math.min,Ja=Math.max;function si(r,e){return isNaN(r)||isNaN(e)}function eg(r,e,t,a,n,i,o,s,l){for(var u,f,h,v,c,p,d=t,g=0;g=n||d<0)break;if(si(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?\"moveTo\":\"lineTo\"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[2*b],w=e[2*b+1];x===y&&w===m&&g=a||si(x,w))c=y,p=m;else{M=x-u,D=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,k=void 0,B=void 0;if(\"x\"===s){var F=M>0?1:-1;c=y-F*(k=Math.abs(P))*o,p=m,L=y+F*(B=Math.abs(R))*o,I=m}else if(\"y\"===s){var W=D>0?1:-1;c=y,p=m-W*(k=Math.abs(E))*o,L=y,I=m+W*(B=Math.abs(N))*o}else k=Math.sqrt(P*P+E*E),c=y-M*o*(1-(C=(B=Math.sqrt(R*R+N*N))/(B+k))),p=m-D*o*(1-C),I=m+D*o*C,L=ja(L=y+M*o*C,Ja(x,y)),I=ja(I,Ja(w,m)),L=Ja(L,ja(x,y)),p=m-(D=(I=Ja(I,ja(w,m)))-m)*k/B,c=ja(c=y-(M=L-y)*k/B,Ja(u,y)),p=ja(p,Ja(f,m)),L=y+(M=y-(c=Ja(c,ja(u,y))))*B/k,I=m+(D=m-(p=Ja(p,ja(f,m))))*B/k}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var RT=function r(){this.smooth=0,this.smoothConstraint=!0},T5=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"ec-polyline\",a}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new RT},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&si(n[2*o-2],n[2*o-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?fu(s,c,d,y,t,f):fu(l,p,g,m,t,f);if(b>0)for(var x=0;x=0)return S=u?re(l,p,g,m,w):re(s,c,d,y,w),u?[t,S]:[S,t]}s=y,l=m}}},e}(yt),C5=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e}(RT),ET=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"ec-polygon\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new C5},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&si(n[2*s-2],n[2*s-1]);s--);for(;oa)return!1;return!0}(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}(t,l,o),M=this._data;M&&M.eachItemGraphicEl(function(_t,dt){_t.__temp&&(s.remove(_t),M.setItemGraphicEl(dt,null))}),w||p.remove(),s.add(y);var L,D=!v&&t.get(\"step\");o&&o.getArea&&t.get(\"clip\",!0)&&(null!=(L=o.getArea()).width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=function D5(r,e,t){var a=r.getVisual(\"visualMeta\");if(a&&a.length&&r.count()&&\"cartesian2d\"===e.type){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(\"x\"===(n=s&&s.coordDim)||\"y\"===n){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=function M5(r,e){var n,i,t=[],a=r.length;function o(f,h,v){var c=f.coord;return{coord:v,color:Uv((v-c)/(h.coord-c),[f.color,h.color])}}for(var s=0;se){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}}return t}(u,\"x\"===n?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=v[0].coord-10,g=v[c-1].coord+10,y=g-d;if(y<.001)return\"transparent\";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||\"transparent\"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||\"transparent\"});var m=new ao(0,0,0,0,v,!0);return m[n]=d,m[n+\"2\"]=g,m}}}(l,o,n)||l.getVisual(\"style\")[l.getVisual(\"drawType\")];if(d&&c.type===o.type&&D===this._step){_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,zn(I));var P=y.getClipPath();P?zt(P,{shape:rg(this,o,!1,t).shape},t):y.setClipPath(rg(this,o,!0,t)),w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(_t){return[h[2*_t],h[2*_t+1]]}}),(!NT(this._stackedOnPoints,x)||!NT(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,D,S,T):(D&&(h=Qa(h,o,D,T),x&&(x=Qa(x,o,D,T))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}else w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(_t){return[h[2*_t],h[2*_t+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),D&&(h=Qa(h,o,D,T),x&&(x=Qa(x,o,D,T))),d=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,zn(I)),y.setClipPath(rg(this,o,!0,t));var E=t.getModel(\"emphasis\"),N=E.get(\"focus\"),k=E.get(\"blurScope\"),B=E.get(\"disabled\");d.useStyle(J(u.getLineStyle(),{fill:\"none\",stroke:I,lineJoin:\"bevel\"})),he(d,t,\"lineStyle\"),d.style.lineWidth>0&&\"bolder\"===t.get([\"emphasis\",\"lineStyle\",\"width\"])&&(d.getState(\"emphasis\").style.lineWidth=+d.style.lineWidth+1),it(d).seriesIndex=t.seriesIndex,Ut(d,N,k,B);var W=zT(t.get(\"smooth\")),q=t.get(\"smoothMonotone\");if(d.setShape({smooth:W,smoothMonotone:q,connectNulls:T}),g){var tt=l.getCalculationInfo(\"stackedOnSeries\"),Q=0;g.useStyle(J(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:\"bevel\",decal:l.getVisual(\"style\").decal})),tt&&(Q=zT(tt.get(\"smooth\"))),g.setShape({smooth:W,stackedOnSmooth:Q,smoothMonotone:q,connectNulls:T}),he(g,t,\"areaStyle\"),it(g).seriesIndex=t.seriesIndex,Ut(g,N,k,B)}var pt=function(_t){i._changePolyState(_t)};l.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get(\"triggerLineEvent\")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){it(a).eventData={componentType:\"series\",componentSubType:\"line\",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:\"line\"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=wn(o,i);if(this._changePolyState(\"emphasis\"),!(s instanceof Array)&&null!=s&&s>=0){var l=o.getLayout(\"points\"),u=o.getItemGraphicEl(s);if(!u){var f=l[2*s],h=l[2*s+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get(\"zlevel\")||0,c=t.get(\"z\")||0;(u=new hl(o,s)).x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=wn(o,i);if(this._changePolyState(\"normal\"),null!=s&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;zu(this._polyline,t),a&&zu(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new T5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ET({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;\"cartesian2d\"===a.type?(i=s.isHorizontal(),o=!1):\"polar\"===a.type&&(i=\"angle\"===s.dim,o=!0);var u=t.hostModel,f=u.get(\"animationDuration\");j(f)&&(f=f(null));var h=u.get(\"animationDelay\")||0,v=j(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord([c.x,c.y]);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else i?(y=n.x,m=n.x+n.width,_=c.x):(y=n.y+n.height,m=n.y,_=c.y);var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=j(h)?h(p):f*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel(\"endLabel\");if(FT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout(\"points\");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new bt({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=function R5(r){for(var e=r.length/2;e>0&&P5(r[2*e-2],r[2*e-1]);e--);return e-1}(l);f>=0&&(ve(s,ae(t,\"endLabel\"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return null!=c?MT(o,c):mo(o,h)},enableTextSetter:!0},function k5(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?\"right\":\"left\":\"center\",o=a?\"middle\":n?\"top\":\"bottom\";return{normal:{align:r.get(\"align\")||i,verticalAlign:r.get(\"verticalAlign\")||o}}}(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&null==i.originalX&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout(\"points\"),v=n.hostModel,c=v.get(\"connectNulls\"),p=s.get(\"precision\"),d=s.get(\"distance\")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?\"x\":\"y\",T=function E5(r,e,t){for(var i,o,a=r.length/2,n=\"x\"===t?0:1,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=GT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{(L=f.getPointOn(S,w))&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=M_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=1===t||i.lastFrameIndex>0?C[0]:0;L=GT(h,R),o&&(D=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var E=Wi(u);\"function\"==typeof E.setLabelText&&E.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=function w5(r,e,t,a,n,i,o,s){for(var l=function b5(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:\"+\",idx:a})}).update(function(a,n){t.push({cmd:\"=\",idx:n,idx1:a})}).remove(function(a){t.push({cmd:\"-\",idx:a})}).execute(),t}(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=IT(n,e,o),y=r.getLayout(\"points\")||[],m=e.getLayout(\"points\")||[],_=0;_3e3||f&&BT(p,g)>3e3)return u.stopAnimation(),u.setShape({points:d}),void(f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g})));u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++)if(\"=\"===_[S].cmd){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&\"cartesian2d\"===o.type&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){\"lttb\"===i&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=V5[i]:j(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,B5))}}}}}var WT=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Xr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(v,c){if(\"category\"===v.type&&null!=a){var p=v.getTicksCoords(),d=o[c],g=\"x1\"===a[c]||\"y1\"===a[c];if(g&&(d+=1),p.length<2)return;if(2===p.length)return void(s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]));for(var y=void 0,m=void 0,_=1,S=0;Sd){m=(b+y)/2;break}1===S&&(_=x-p[0].tickValue)}null==m&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout(\"offset\"),f=l.getLayout(\"size\"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type=\"series.__base_bar__\",e.defaultOption={z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\"mod\"},e}(Nt);Nt.registerClass(WT);const ah=WT;var G5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(){return Xr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\"realtimeSort\",!0)||null})},e.prototype.getProgressive=function(){return!!this.get(\"large\")&&this.get(\"progressive\")},e.prototype.getProgressiveThreshold=function(){var t=this.get(\"progressiveThreshold\"),a=this.get(\"largeThreshold\");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type=\"series.bar\",e.dependencies=[\"grid\",\"polar\"],e.defaultOption=Ga(ah.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:\"rgba(180, 180, 180, 0.2)\",borderColor:null,borderWidth:0,borderType:\"solid\",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:\"#212121\"}},realtimeSort:!1}),e}(ah);const F5=G5;var H5=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},W5=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"sausage\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new H5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=.5*(s-o),u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=2*Math.PI,p=v?h-fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:\"changeAxisOrder\",componentType:n.dim+\"Axis\",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:\"changeAxisOrder\",componentType:i.dim+\"Axis\",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off(\"rendered\",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){ws(i,t,it(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=\"bar\",e}(Et),UT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=ag(e.x,r.x),s=ng(e.x+e.width,n),l=ag(e.y,r.y),u=ng(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=ng(e.r,r.r),i=ag(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;return t<0&&(a=e.r,e.r=e.r0,e.r0=a),o}},YT={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new xt({shape:V({},a),z2:1});return u.__dataIndex=t,u.name=\"item\",i&&(u.shape[n?\"height\":\"width\"]=0),u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?nh:De,f=new u({shape:a,z2:1});f.name=\"item\";var h=KT(n);if(f.calculateTextPosition=function U5(r,e){var t=(e=e||{}).isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return wu(a,n,i);var s=r(o),l=null!=n.distance?n.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,p=(v+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(d),x=h+v*S(d),w=\"left\",T=\"top\";switch(s){case\"startArc\":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w=\"center\",T=\"top\";break;case\"insideStartArc\":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w=\"center\",T=\"bottom\";break;case\"startAngle\":b=f+p*_(d)+ih(d,l+m,!1),x=h+p*S(d)+oh(d,l+m,!1),w=\"right\",T=\"middle\";break;case\"insideStartAngle\":b=f+p*_(d)+ih(d,-l+m,!1),x=h+p*S(d)+oh(d,-l+m,!1),w=\"left\",T=\"middle\";break;case\"middle\":b=f+p*_(y),x=h+p*S(y),w=\"center\",T=\"middle\";break;case\"endArc\":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w=\"center\",T=\"bottom\";break;case\"insideEndArc\":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w=\"center\",T=\"top\";break;case\"endAngle\":b=f+p*_(g)+ih(g,l+m,!0),x=h+p*S(g)+oh(g,l+m,!0),w=\"left\",T=\"middle\";break;case\"insideEndAngle\":b=f+p*_(g)+ih(g,-l+m,!0),x=h+p*S(g)+oh(g,-l+m,!0),w=\"right\",T=\"middle\";break;default:return wu(a,n,i)}return(a=a||{}).x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}(h,{isRoundCap:u===nh}),i){var c=n?\"r\":\"endAngle\",p={};f.shape[c]=n?a.r0:a.startAngle,p[c]=a[c],(s?Mt:zt)(f,{shape:p},i)}return f}};function ZT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Mt:zt)(t,{shape:l},e,n,null),(o?Mt:zt)(t,{shape:u},e?r.baseAxis.model:null,n)}function XT(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function KT(r){return function(e){var t=e?\"Arc\":\"Angle\";return function(a){switch(a){case\"start\":case\"insideStart\":case\"end\":case\"insideEnd\":return a+t;default:return a}}}(r)}function jT(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,\"style\");if(s){if(!i.get(\"roundCap\")){var f=r.shape;V(f,ui(a.getModel(\"itemStyle\"),f,!0)),r.setShape(f)}}else{var u=a.get([\"itemStyle\",\"borderRadius\"])||0;r.setShape(\"r\",u)}r.useStyle(l);var v=a.getShallow(\"cursor\");v&&r.attr(\"cursor\",v);var c=s?o?n.r>=n.r0?\"endArc\":\"startArc\":n.endAngle>=n.startAngle?\"endAngle\":\"startAngle\":o?n.height>=0?\"bottom\":\"top\":n.width>=0?\"right\":\"left\",p=ae(a);ve(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:mo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=a.get([\"label\",\"position\"]);r.textConfig.inside=\"middle\"===g||null,function Y5(r,e,t,a){if(Tt(a))r.setTextConfig({rotation:a});else if(z(e))r.setTextConfig({rotation:0});else{var l,n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,u=t(e);switch(u){case\"startArc\":case\"insideStartArc\":case\"middle\":case\"insideEndArc\":case\"endArc\":l=s;break;case\"startAngle\":case\"insideStartAngle\":l=i;break;case\"endAngle\":case\"insideEndAngle\":l=o;break;default:return void r.setTextConfig({rotation:0})}var f=1.5*Math.PI-l;\"middle\"===u&&f>Math.PI/2&&f<1.5*Math.PI&&(f-=Math.PI),r.setTextConfig({rotation:f})}}(r,\"outside\"===g?c:g,KT(o),a.get([\"label\",\"rotate\"]))}kS(d,p,i.getRawValue(t),function(m){return MT(e,m)});var y=a.getModel([\"emphasis\"]);Ut(r,y.get(\"focus\"),y.get(\"blurScope\"),y.get(\"disabled\")),he(r,a),function J5(r){return null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle}(n)&&(r.style.fill=\"none\",r.style.stroke=\"none\",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke=\"none\")}))}var $5=function r(){},JT=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"largeBar\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new $5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}(this,r.offsetX,r.offsetY);it(this).dataIndex=t>=0?t:null},30,!1);function tC(r,e,t){if(li(t,\"cartesian2d\")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}return{cx:(n=t.getArea()).cx,cy:n.cy,r0:r?n.r0:e.r0,r:r?n.r:e.r,startAngle:r?e.startAngle:0,endAngle:r?e.endAngle:2*Math.PI}}const rG=X5;var lh=2*Math.PI,eC=Math.PI/180;function rC(r,e){return Qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function aC(r,e){var t=rC(r,e),a=r.get(\"center\"),n=r.get(\"radius\");z(n)||(n=[0,n]);var f,h,i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function nG(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension(\"value\"),o=rC(a,t),s=aC(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get(\"startAngle\")*eC,c=a.get(\"minAngle\")*eC,p=0;n.each(i,function(M){!isNaN(M)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get(\"clockwise\"),m=a.get(\"roseType\"),_=a.get(\"stillShowZeroSum\"),S=n.getDataExtent(i);S[0]=0;var b=lh,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(M,D){var L;if(isNaN(M))n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});else{(L=\"area\"!==m?0===d&&_?g:M*g:lh/p)t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null)}var d=a.getBoundingRect();i.width=d.width,i.height=d.height+((a.style.margin||0)+2.1),i.y-=(i.height-h)/2}}}function ig(r){return\"center\"===r.position}var lG=function(r){function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new bt;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return O(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel(\"emphasis\"),f=t.getItemLayout(a),h=V(ui(l.getModel(\"itemStyle\"),f,!0),f);if(isNaN(h.startAngle))o.setShape(h);else{if(i){o.setShape(h);var v=s.getShallow(\"animationType\");s.ecModel.ssr?(zt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):\"scale\"===v?(o.shape.r=f.r0,zt(o,{shape:{r:f.r}},s,a)):null!=n?(o.setShape({startAngle:n,endAngle:n}),zt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Mt(o,{shape:{endAngle:f.endAngle}},s,a))}else Tr(o),Mt(o,{shape:h},s,a);o.useStyle(t.getItemVisual(a,\"style\")),he(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get(\"selectedOffset\"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow(\"cursor\");y&&o.attr(\"cursor\",y),this._updateLabel(s,t,a),o.ensureState(\"emphasis\").shape=V({r:f.r+(u.get(\"scale\")&&u.get(\"scaleSize\")||0)},ui(u.getModel(\"itemStyle\"),f)),V(o.ensureState(\"select\"),{x:d,y:g,shape:ui(l.getModel([\"select\",\"itemStyle\"]),f)}),V(o.ensureState(\"blur\"),{shape:ui(l.getModel([\"blur\",\"itemStyle\"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&V(m.ensureState(\"select\"),{x:d,y:g}),V(_.ensureState(\"select\"),{x:d,y:g}),Ut(this,u.get(\"focus\"),u.get(\"blurScope\"),u.get(\"disabled\"))}},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel(\"labelLine\"),l=a.getItemVisual(n,\"style\"),u=l&&l.fill,f=l&&l.opacity;ve(i,ae(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,\"normal\")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get([\"label\",\"position\"]);if(\"outside\"!==v&&\"outer\"!==v)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ie,this.setTextGuideLine(c)),zd(this,Gd(o),{stroke:u,opacity:gr(s.get([\"lineStyle\",\"opacity\"]),f,1)})}},e}(De),uG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n,i){var u,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h0?\"right\":\"left\":q>0?\"left\":\"right\"}var qt=Math.PI,Yt=0,be=L.get(\"rotate\");if(Tt(be))Yt=be*(qt/180);else if(\"center\"===I)Yt=0;else if(\"radial\"===be||!0===be)Yt=q<0?-W+qt:-W;else if(\"tangential\"===be&&\"outside\"!==I&&\"outer\"!==I){var Ge=Math.atan2(q,tt);Ge<0&&(Ge=2*qt+Ge),tt>0&&(Ge=qt+Ge),Yt=Ge-qt}if(i=!!Yt,C.x=Q,C.y=pt,C.rotation=Yt,C.setStyle({verticalAlign:\"middle\"}),rt){C.setStyle({align:dt});var Um=C.states.select;Um&&(Um.x+=C.x,Um.y+=C.y)}else{var un=C.getBoundingRect().clone();un.applyTransform(C.getComputedTransform());var v2=(C.style.margin||0)+2.1;un.y-=v2/2,un.height+=v2,t.push({label:C,labelLine:M,position:I,len:B,len2:F,minTurnAngle:k.get(\"minTurnAngle\"),maxSurfaceAngle:k.get(\"maxSurfaceAngle\"),surfaceNormal:new lt(q,tt),linePoints:_t,textAlign:dt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:un,unconstrainedWidth:un.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get(\"avoidLabelOverlap\")&&function oG(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v=i.r0}},e.type=\"pie\",e}(Et);const fG=uG;function _o(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=co(a,e).dimensions,i=new xe(n,r);return i.initData(a,t),i}var hG=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},r.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},r.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},r}();const dl=hG;var vG=Ct(),cG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return _o(this,{coordDimensions:[\"value\"],encodeDefaulter:nt(gp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=vG(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension(\"value\"),function(l){o.push(l)}),i=n.seats=d_(o,a.hostModel.get(\"percentPrecision\"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push(\"percent\"),s},e.prototype._defaultLabelLine=function(t){bn(t,\"labelLine\",[\"show\"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.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,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}(Nt);const pG=cG;var yG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Xr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get(\"progressive\"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get(\"progressiveThreshold\"):t},e.prototype.brushSelector=function(t,a,n){return n.point(a.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}(Nt);const mG=yG;var _G=function r(){},SG=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.getDefaultShape=function(){return new _G},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var h,n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,f=this.softClipShape;if(l&&i[0]<4)this._ctx=l;else{for(this._ctx=null,h=this._off;h=0;u--){var f=2*u,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const bG=xG;var wG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=cl(\"\").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get(\"clip\",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,o=a.pipelineContext.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new bG:new vl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type=\"scatter\",e}(Et);const TG=wG;var CG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),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}(St);const AG=CG;var og=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents(\"grid\",Jt).models[0]},e.type=\"cartesian2dAxis\",e}(St);Zt(og,go);var sC={show:!0,z:0,inverse:!1,name:\"\",nameLocation:\"end\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\"...\",placeholder:\".\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:\"#6E7079\",width:1,type:\"solid\"},symbol:[\"none\",\"none\"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:[\"#E0E6F1\"],width:1,type:\"solid\"}},splitArea:{show:!1,areaStyle:{color:[\"rgba(250,250,250,0.2)\",\"rgba(210,219,238,0.2)\"]}}},MG=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\"auto\"},axisLabel:{interval:\"auto\"}},sC),sg=ot({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}}},sC);const lC={category:MG,value:sg,time:ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:\"bold\"}}},splitLine:{show:!1}},sg),log:J({logBase:10},sg)};var IG={value:1,category:1,time:1,log:1};function So(r,e,t,a){A(IG,function(n,i){var o=ot(ot({},lC[i],!0),a,!0),s=function(l){function u(){var f=null!==l&&l.apply(this,arguments)||this;return f.type=e+\"Axis.\"+i,f}return O(u,l),u.prototype.mergeDefaultAndTheme=function(f,h){var v=Ls(this),c=v?Xi(f):{};ot(f,h.getTheme().get(i+\"Axis\")),ot(f,this.getDefaultOption()),f.type=uC(f),v&&Fa(f,c,v)},u.prototype.optionUpdated=function(){\"category\"===this.option.type&&(this.__ordinalMeta=Ad.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(\"category\"===h.type)return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+\"Axis.\"+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+\"Axis\",uC)}function uC(r){return r.type||(r.data?\"category\":\"value\")}var PG=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 G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Lt(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}(),lg=[\"x\",\"y\"];function fC(r){return\"interval\"===r.type||\"time\"===r.type}var EG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=\"cartesian2d\",t.dimensions=lg,t}return O(e,r),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis(\"x\").scale,a=this.getAxis(\"y\").scale;if(fC(t)&&fC(a)){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(l&&u){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=this._transform=[f,0,0,h,o[0]-n[0]*f,o[1]-i[0]*h];this._invTransform=cn([],p)}}},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\"),n=this.getAxis(\"y\");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.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 n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ut(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return se(n,t,this._transform);var s=this.getAxis(\"x\"),l=this.getAxis(\"y\");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis(\"x\").scale,i=this.getAxis(\"y\").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return(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){var n=[];if(this._invTransform)return se(n,t,this._invTransform);var i=this.getAxis(\"x\"),o=this.getAxis(\"y\");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(\"x\"===t.dim?\"y\":\"x\")},e.prototype.getArea=function(){var t=this.getAxis(\"x\").getGlobalExtent(),a=this.getAxis(\"y\").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ut(n,i,o,s)},e}(PG);const kG=EG;var OG=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||\"value\",s.position=o||\"bottom\",s}return O(e,r),e.prototype.isHorizontal=function(){var t=this.position;return\"top\"===t||\"bottom\"===t},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[\"x\"===this.dim?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(\"category\"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(lr);const NG=OG;function ug(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?\"onZero\":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get(\"offset\")||0,p=\"x\"===u?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[\"y\"===u?p[v[l]]:h[0],\"x\"===u?p[v[l]]:h[3]],i.rotation=Math.PI/2*(\"x\"===u?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get([\"axisTick\",\"inside\"])&&(i.tickDirection=-i.tickDirection),ee(t.labelInside,e.get([\"axisLabel\",\"inside\"]))&&(i.labelDirection=-i.labelDirection);var y=e.get([\"axisLabel\",\"rotate\"]);return i.labelRotate=\"top\"===l?-y:y,i.z2=1,i}function hC(r){return\"cartesian2d\"===r.get(\"coordinateSystem\")}function vC(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,\"\"),i=r.getReferringComponents(n,Jt).models[0];e[a]=i}),e}var fg=Math.log;function cC(r,e,t){var a=Ka.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=Aw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(\"log\"===r.type){var v=fg(r.base);u=[fg(u[0])/v,fg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Dd(p),d=u[1]-p*o;else{r.getTicks().length-1>o&&(p=Dd(p));var m=p*o;(d=Wt((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(d=0,g=Wt(m)):g>0&&u[1]<=0&&(g=0,d=-Wt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var VG=function(){function r(e,t,a){this.type=\"grid\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lg,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;function n(o){var s,l=mt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=o[+l[h]],p=c.model,d=c.scale;Md(d)&&p.get(\"alignTicks\")&&null==p.get(\"interval\")?f.push(c):(ti(d,p),Md(d)&&(s=c))}f.length&&(s||ti((s=f.pop()).scale,s.model),A(f,function(g){cC(g.scale,g.model,s.scale)}))}}this._updateScale(e,this.model),n(a.x),n(a.y);var i={};A(a.x,function(o){pC(a,\"y\",o,i)}),A(a.y,function(o){pC(a,\"x\",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get(\"containLabel\"),o=Qt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),function BG(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=\"x\"===r.dim?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=\"x\"===r.dim?function(n){return n-e}:function(n){return a-n+e}}(u,f?o.x:o.y)})}l(),i&&(A(s,function(u){if(!u.model.get([\"axisLabel\",\"inside\"])){var f=function HB(r){var t=r.scale;if(r.model.get([\"axisLabel\",\"show\"])&&!t.isBlank()){var a,n,i=t.getExtent();n=t instanceof Ld?t.count():(a=t.getTicks()).length;var l,o=r.getLabelModel(),s=nl(r),u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f0&&a>0||t<0&&a<0)}(r)}const zG=VG;var $a=Math.PI,fi=function(){function r(e,t){this.group=new at,this.opt=t,this.axisModel=e,J(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new at({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!gC[e]},r.prototype.add=function(e){gC[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i,o,n=yc(t-e);return fs(n)?(o=a>0?\"top\":\"bottom\",i=\"center\"):fs(n-$a)?(o=a>0?\"bottom\":\"top\",i=\"center\"):(o=\"middle\",i=n>0&&n<$a?a>0?\"right\":\"left\":a>0?\"left\":\"right\"),{rotation:n,textAlign:i,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}(),gC={axisLine:function(r,e,t,a){var n=e.get([\"axisLine\",\"show\"]);if(\"auto\"===n&&r.handleAutoShown&&(n=r.handleAutoShown(\"axisLine\")),n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(se(s,s,o),se(l,l,o));var f=V({lineCap:\"round\"},e.getModel([\"axisLine\",\"lineStyle\"]).getLineStyle()),h=new ie({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});no(h.shape,h.style.lineWidth),h.anid=\"line\",t.add(h);var v=e.get([\"axisLine\",\"symbol\"]);if(null!=v){var c=e.get([\"axisLine\",\"symbolSize\"]);U(v)&&(v=[v,v]),(U(c)||Tt(c))&&(c=[c,c]);var p=Kn(e.get([\"axisLine\",\"symbolOffset\"])||0,c),d=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.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(y,m){if(\"none\"!==v[m]&&null!=v[m]){var _=Kt(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=function HG(r,e,t,a){var n=t.axis,i=t.getModel(\"axisTick\"),o=i.get(\"show\");if(\"auto\"===o&&a.handleAutoShown&&(o=a.handleAutoShown(\"axisTick\")),o&&!n.scale.isBlank()){for(var s=i.getModel(\"lineStyle\"),l=a.tickDirection*i.get(\"length\"),f=_C(n.getTicksCoords(),e.transform,l,J(s.getLineStyle(),{stroke:t.get([\"axisLine\",\"lineStyle\",\"color\"])}),\"ticks\"),h=0;hu[1]?-1:1,h=[\"start\"===i?u[0]-f*l:\"end\"===i?u[1]+f*l:(u[0]+u[1])/2,mC(i)?r.labelOffset+o*l:0],c=e.get(\"nameRotate\");null!=c&&(c=c*$a/180),mC(i)?v=fi.innerTextLayout(r.rotation,null!=c?c:r.rotation,o):(v=function GG(r,e,t,a){var i,o,n=yc(t-r),s=a[0]>a[1],l=\"start\"===e&&!s||\"start\"!==e&&s;return fs(n-$a/2)?(o=l?\"bottom\":\"top\",i=\"center\"):fs(n-1.5*$a)?(o=l?\"top\":\"bottom\",i=\"center\"):(o=\"middle\",i=n<1.5*$a&&n>$a/2?l?\"left\":\"right\":l?\"right\":\"left\"),{rotation:n,textAlign:i,textVerticalAlign:o}}(r.rotation,i,c||0,u),null!=(p=r.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get(\"nameTruncate\",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new bt({x:h[0],y:h[1],rotation:v.rotation,silent:fi.isLabelSilent(e),style:Ot(s,{text:n,font:d,overflow:\"truncate\",width:m,ellipsis:y,fill:s.getTextColor()||e.get([\"axisLine\",\"lineStyle\",\"color\"]),align:s.get(\"align\")||v.textAlign,verticalAlign:s.get(\"verticalAlign\")||v.textVerticalAlign}),z2:1});if(oo({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid=\"name\",e.get(\"triggerEvent\")){var S=fi.makeAxisEventDataBase(e);S.targetType=\"axisName\",S.name=n,it(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function ur(r){r&&(r.ignore=!0)}function yC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(t&&a){var n=Yo([]);return Da(n,n,-r.rotation),t.applyTransform(Or([],n,r.getLocalTransform())),a.applyTransform(Or([],n,e.getLocalTransform())),t.intersect(a)}}function mC(r){return\"middle\"===r||\"center\"===r}function _C(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function jG(r){var e=cg(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get(\"status\"),o=t.get(\"value\");null!=o&&(o=a.parse(o));var s=pg(t);null==i&&(n.status=s?\"show\":\"hide\");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=l;null!=p.color&&(d=J({color:p.color},l));var g=ot(et(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:\"end\",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(U(f)){var y=g.name;g.name=f.replace(\"{value}\",null!=y?y:\"\")}else j(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return Zt(m,go.prototype),m.mainType=\"radar\",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=\"radar\",e.defaultOption={z:0,center:[\"50%\",\"50%\"],radius:\"75%\",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:\"polygon\",axisLine:ot({lineStyle:{color:\"#bbb\"}},yl.axisLine),axisLabel:uh(yl.axisLabel,!1),axisTick:uh(yl.axisTick,!1),splitLine:uh(yl.splitLine,!0),splitArea:uh(yl.splitArea,!0),indicator:[]},e}(St);const vF=hF;var cF=[\"axisLine\",\"axisTickLabel\",\"axisName\"],pF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem;A(G(a.getIndicatorAxes(),function(o){var s=o.model.get(\"showName\")?o.name:\"\";return new ya(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(o){A(cF,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(n.length){var i=t.get(\"shape\"),o=t.getModel(\"splitLine\"),s=t.getModel(\"splitArea\"),l=o.getModel(\"lineStyle\"),u=s.getModel(\"areaStyle\"),f=o.get(\"show\"),h=s.get(\"show\"),v=l.get(\"color\"),c=u.get(\"color\"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];if(\"circle\"===i)for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++)f&&g[m(g,p,x)].push(new Ar({shape:{cx:S,cy:b,r:_[x].coord}})),h&&x<_.length-1&&y[m(y,d,x)].push(new zs({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}));else{var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=null==T?N.length-1:Math.min(N.length-1,T),G(N,function(k){return a.coordToPoint(k.coord,E)})}),M=[];for(x=0;x<=T;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1;yg(this,\"zoom\",\"zoomOnMouseWheel\",t,{scale:i>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i);yg(this,\"scrollMove\",\"moveOnMouseWheel\",t,{scrollDelta:(i>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){IC(this._zr,\"globalPan\")||yg(this,\"zoom\",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(je);function yg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(na(a.event),PC(r,e,t,a,n))}function PC(r,e,t,a,n){n.isAvailableBehavior=Y(fh,null,t,a),r.trigger(e,n)}function fh(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+\"Key\"])}const ml=TF;function mg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function _g(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0;o=Math.max(Math.min(i.max||1/0,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var CF={axisPointer:1,tooltip:1,brush:1};function hh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!CF.hasOwnProperty(a.mainType)&&n&&n.model!==t}function RC(r){U(r)&&(r=(new DOMParser).parseFromString(r,\"text/xml\"));var t=r;for(9===t.nodeType&&(t=t.firstChild);\"svg\"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Sg,vh={fill:\"fill\",stroke:\"stroke\",\"stroke-width\":\"lineWidth\",opacity:\"opacity\",\"fill-opacity\":\"fillOpacity\",\"stroke-opacity\":\"strokeOpacity\",\"stroke-dasharray\":\"lineDash\",\"stroke-dashoffset\":\"lineDashOffset\",\"stroke-linecap\":\"lineCap\",\"stroke-linejoin\":\"lineJoin\",\"stroke-miterlimit\":\"miterLimit\",\"font-family\":\"fontFamily\",\"font-size\":\"fontSize\",\"font-style\":\"fontStyle\",\"font-weight\":\"fontWeight\",\"text-anchor\":\"textAlign\",visibility:\"visibility\",display:\"display\"},EC=mt(vh),ch={\"alignment-baseline\":\"textBaseline\",\"stop-color\":\"stopColor\"},kC=mt(ch),AF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=RC(e);this._defsUsePending=[];var n=new at;this._root=n;var f,h,i=[],o=a.getAttribute(\"viewBox\")||\"\",s=parseFloat(a.getAttribute(\"width\")||t.width),l=parseFloat(a.getAttribute(\"height\")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xe(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(function LF(r,e){for(var t=0;t=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&null!=s&&null!=l&&(h=HC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;(n=new at).add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&null!=s&&null!=l&&n.setClipPath(new xt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l,s=e.nodeName.toLowerCase(),u=n;if(\"defs\"===s&&(i=!0),\"text\"===s&&(o=!0),\"defs\"===s||\"switch\"===s)l=t;else{if(!i){var f=Sg[s];if(f&&Z(Sg,s)){l=f.call(this,e,t);var h=e.getAttribute(\"name\");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),\"g\"===s&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=OC[s];if(c&&Z(OC,s)){var p=c.call(this,e),d=e.getAttribute(\"id\");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,l,a,u,i,o):3===g.nodeType&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new ys({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),function MF(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;a&&\"auto\"!==a&&\"baseline\"!==a?\"before-edge\"===a||\"text-before-edge\"===a?n=\"top\":\"after-edge\"===a||\"text-after-edge\"===a?n=\"bottom\":(\"central\"===a||\"mathematical\"===a)&&(n=\"middle\"):n=\"alphabetic\",r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(\"middle\"===o&&(s=\"center\"),r.style.textAlign=s)}}(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+\"px\",n.fontFamily||\"sans-serif\"].join(\" \");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=void(Sg={g:function(e,t){var a=new at;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new xt;return fr(t,a),Xe(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 Ar;return fr(t,a),Xe(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 ie;return fr(t,a),Xe(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 lf;return fr(t,a),Xe(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 n,a=e.getAttribute(\"points\");a&&(n=BC(a));var i=new Le({shape:{points:n||[]},silent:!0});return fr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,a=e.getAttribute(\"points\");a&&(n=BC(a));var i=new Ie({shape:{points:n||[]},silent:!0});return fr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new ue;return fr(t,a),Xe(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\",n=e.getAttribute(\"y\")||\"0\",i=e.getAttribute(\"dx\")||\"0\",o=e.getAttribute(\"dy\")||\"0\";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new at;return fr(t,s),Xe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute(\"x\"),n=e.getAttribute(\"y\");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute(\"dx\")||\"0\",o=e.getAttribute(\"dy\")||\"0\",s=new at;return fr(t,s),Xe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=gx(e.getAttribute(\"d\")||\"\");return fr(t,n),Xe(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),r}(),OC={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),n=parseInt(r.getAttribute(\"y2\")||\"0\",10),i=new ao(e,t,a,n);return NC(r,i),VC(r,i),i},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),n=new Wp(e,t,a);return NC(r,n),VC(r,n),n}};function NC(r,e){\"userSpaceOnUse\"===r.getAttribute(\"gradientUnits\")&&(e.global=!0)}function VC(r,e){for(var t=r.firstChild;t;){if(1===t.nodeType&&\"stop\"===t.nodeName.toLocaleLowerCase()){var n,a=t.getAttribute(\"offset\");n=a&&a.indexOf(\"%\")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};FC(t,i,i);var o=i.stopColor||t.getAttribute(\"stop-color\")||\"#000000\";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function fr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),J(e.__inheritedStyle,r.__inheritedStyle))}function BC(r){for(var e=ph(r),t=[],a=0;a0;i-=2){var s=a[i-1],l=ph(a[i]);switch(n=n||[1,0,0,1,0,0],s){case\"translate\":yr(n,n,[parseFloat(l[0]),parseFloat(l[1]||\"0\")]);break;case\"scale\":ru(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case\"rotate\":Da(n,n,-parseFloat(l[0])*xg);break;case\"skewX\":Or(n,[1,0,Math.tan(parseFloat(l[0])*xg),1,0,0],n);break;case\"skewY\":Or(n,[1,Math.tan(parseFloat(l[0])*xg),0,1,0,0],n);break;case\"matrix\":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5])}}e.setLocalTransform(n)}}(r,e),FC(r,o,s),a||function EF(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};\"geoJSON\"===l.resourceType?this._buildGeoJSON(g):\"geoSVG\"===l.resourceType&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),a=X(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:\"center\",verticalAlign:\"middle\"}}:null;ve(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(UC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+\"%\",(o[1]-d.y)/d.height*100+\"%\"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function qC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):it(e).eventData={componentType:\"geo\",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function KC(r,e,t,a,n){r.data||oo({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get(\"tooltip\")})}function jC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get(\"selectedMode\");var i=a.getModel(\"emphasis\"),o=i.get(\"focus\");return Ut(e,o,i.get(\"blurScope\"),i.get(\"disabled\")),r.isGeo&&function GE(r,e,t){var a=it(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}(e,n,t),o}function JC(r,e,t){var n,a=[];function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill=\"#fff\",n.style.lineWidth=2),n},e.type=\"series.map\",e.dependencies=[\"geo\"],e.layoutMode=\"box\",e.defaultOption={z:2,coordinateSystem:\"geo\",map:\"\",left:\"center\",top:\"center\",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:\"#000\"},itemStyle:{borderWidth:.5,borderColor:\"#444\",areaColor:\"#eee\"},emphasis:{label:{show:!0,color:\"rgb(100,0,0)\"},itemStyle:{areaColor:\"rgba(255,215,0,0.8)\"}},select:{label:{show:!0,color:\"rgb(100,0,0)\"},itemStyle:{color:\"rgba(255,215,0,0.8)\"}},nameProperty:\"name\"},e}(Nt);const e3=t3;function a3(r){var e={};r.eachSeriesByType(\"map\",function(t){var a=t.getHostGeoModel(),n=a?\"o\"+a.id:\"i\"+t.getMapType();(e[n]=e[n]||[]).push(t)}),A(e,function(t,a){for(var n=function r3(r,e){var t={};return A(r,function(a){a.each(a.mapDimension(\"value\"),function(n,i){var o=\"ec-\"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension(\"value\"),function(a,n){for(var i=\"ec-\"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Qt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get(\"center\"),e),this.setZoom(r.get(\"zoom\"))}var l3=function(){function r(){this.dimensions=eA}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get(\"nameProperty\"),aspectScale:o.get(\"aspectScale\"),projection:o.get(\"projection\")}}e.eachComponent(\"geo\",function(o,s){var l=o.get(\"map\"),u=new nA(l+s,l,V({nameMap:o.get(\"nameMap\")},n(o)));u.zoomLimit=o.get(\"scaleLimit\"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=iA,u.resize(o,t)}),e.eachSeries(function(o){if(\"geo\"===o.get(\"coordinateSystem\")){var l=o.get(\"geoIndex\")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType(\"map\",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get(\"nameMap\")}),u=new nA(s,s,V({nameMap:ql(l)},n(o[0])));u.zoomLimit=ee.apply(null,G(o,function(f){return f.get(\"scaleLimit\")})),a.push(u),u.resize=iA,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,function s3(r,e){A(e.get(\"geoCoord\"),function(t,a){r.addGeoCoord(a,t)})}(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=X(),s=0;s=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,a+=i.hierNode.shift+(n+=i.hierNode.change)}}(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=function x3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Cg(s),i=Ag(i),s&&i;){n=Cg(n),o=Ag(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(w3(b3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Cg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!Ag(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function m3(r){r.setLayout({x:r.hierNode.prelim+r.parentNode.hierNode.modifier},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function uA(r){return arguments.length?r:T3}function xl(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Cg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Ag(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function b3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function w3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function T3(r,e){return r.parentNode===e.parentNode?1:2}var C3=function r(){this.parentPoint=[],this.childPoints=[]},A3=function(r){function e(t){return r.call(this,t)||this}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new C3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(s[0],s[1]);var u=a.orient,f=\"TB\"===u||\"BT\"===u?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x)||(S-=Math.PI);var w=b?\"left\":\"right\",T=s.getModel(\"label\"),C=T.get(\"rotate\"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get(\"position\")||w,rotation:null==C?-S:M,origin:\"center\"}),D.setStyle(\"verticalAlign\",\"middle\"))}var L=s.get([\"emphasis\",\"focus\"]),I=\"relative\"===L?zo(o.getAncestorsIndices(),o.getDescendantIndices()):\"ancestor\"===L?o.getAncestorsIndices():\"descendant\"===L?o.getDescendantIndices():null;I&&(it(t).focus=I),function D3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get(\"edgeShape\"),f=r.get(\"layout\"),h=r.getOrient(),v=r.get([\"lineStyle\",\"curveness\"]),c=r.get(\"edgeForkPosition\"),p=l.getModel(\"lineStyle\").getLineStyle(),d=a.__edge;if(\"curve\"===u)e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Gs({shape:Mg(f,h,v,n,n)})),Mt(d,{shape:Mg(f,h,v,i,o)},r));else if(\"polyline\"===u&&\"orthogonal\"===f&&e!==t&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function yA(r){for(var e=[];r;)(r=r.parentNode)&&e.push(r);return e.reverse()}function Ig(r,e){return vt(yA(r),e)>=0}function gh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var G3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=new Rt(t.leaves||{},this,this.ecModel),o=Lg.createTree(a,this,function s(h){h.wrapMethod(\"getItemModel\",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}),l=0;o.eachNode(\"preorder\",function(h){h.depth>l&&(l=h.depth)});var f=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode(\"preorder\",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&null!=v.collapsed?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get(\"orient\");return\"horizontal\"===t?t=\"LR\":\"vertical\"===t&&(t=\"TB\"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+\".\"+u,s=s.parentNode;return ne(\"nameValue\",{name:u,value:l,noValue:isNaN(l)||null==l})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=gh(n,this),a.collapsed=!n.isExpand,a},e.type=\"series.tree\",e.layoutMode=\"box\",e.defaultOption={z:2,coordinateSystem:\"view\",left:\"12%\",top:\"12%\",right:\"12%\",bottom:\"12%\",layout:\"orthogonal\",edgeShape:\"curve\",edgeForkPosition:\"50%\",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:\"LR\",symbol:\"emptyCircle\",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:\"#ccc\",width:1.5,curveness:.5},itemStyle:{color:\"lightsteelblue\",borderWidth:1.5},label:{show:!0},animationEasing:\"linear\",animationDuration:700,animationDurationUpdate:500},e}(Nt);const F3=G3;function wl(r,e){for(var a,t=[r];a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function W3(r,e){r.eachSeriesByType(\"tree\",function(t){!function U3(r,e){var t=function _3(r,e){return Qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(r,e);r.layoutInfo=t;var a=r.get(\"layout\"),n=0,i=0,o=null;\"radial\"===a?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=uA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=uA());var s=r.getData().tree.root,l=s.children[0];if(l){(function g3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,t=[e];a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}})(s),function H3(r,e,t){for(var i,a=[r],n=[];i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(\"radial\"===a)p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),wl(l,function(_){var S=xl(g=(_.getLayout().x+c)*p,y=(_.depth-1)*d);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();\"RL\"===m||\"LR\"===m?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),wl(l,function(_){y=(_.getLayout().x+c)*d,_.setLayout({x:g=\"LR\"===m?(_.depth-1)*p:n-(_.depth-1)*p,y},!0)})):(\"TB\"===m||\"BT\"===m)&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),wl(l,function(_){g=(_.getLayout().x+c)*p,_.setLayout({x:g,y:y=\"TB\"===m?(_.depth-1)*d:i-(_.depth-1)*d},!0)}))}}}(t,e)})}function Y3(r){r.eachSeriesByType(\"tree\",function(e){var t=e.getData();t.tree.eachNode(function(n){var o=n.getModel().getModel(\"itemStyle\").getItemStyle();V(t.ensureUniqueItemVisual(n.dataIndex,\"style\"),o)})})}var mA=[\"treemapZoomToNode\",\"treemapRender\",\"treemapMove\"];function _A(r){var e=r.getData(),a={};e.tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Sp(r.ecModel,i.name||i.dataIndex+\"\",a);n.setVisual(\"decal\",o)})}var K3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};SA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=t.levels=function j3(r,e){var t=Pt(e.get(\"color\")),a=Pt(e.get([\"aria\",\"decal\",\"decals\"]));if(t){var n,i;A(r=r||[],function(s){var l=new Rt(s),u=l.get(\"color\"),f=l.get(\"decal\");(l.get([\"itemStyle\",\"color\"])||u&&\"none\"!==u)&&(n=!0),(l.get([\"itemStyle\",\"decal\"])||f&&\"none\"!==f)&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}(i,a);var l=G(i||[],function(h){return new Rt(h,s,a)},this),u=Lg.createTree(n,this,function f(h){h.wrapMethod(\"getItemModel\",function(v,c){var p=u.getNodeByDataIndex(c);return v.parentModel=(p?l[p.depth]:null)||s,v})});return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t);return ne(\"nameValue\",{name:i.getName(t),value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=gh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=X(),this._idIndexMapCount=0);var n=a.get(t);return null==n&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){_A(this)},e.type=\"series.treemap\",e.layoutMode=\"box\",e.defaultOption={progressive:0,left:\"center\",top:\"middle\",width:\"80%\",height:\"80%\",sort:!0,clipWindow:\"origin\",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:\"\\u25b6\",zoomToNodeRatio:.1024,roam:!0,nodeClick:\"zoomToNode\",animation:!0,animationDurationUpdate:900,animationEasing:\"quinticInOut\",breadcrumb:{show:!0,height:22,left:\"center\",top:\"bottom\",emptyItemWidth:25,itemStyle:{color:\"rgba(0,0,0,0.7)\",textStyle:{color:\"#fff\"}},emphasis:{itemStyle:{color:\"rgba(0,0,0,0.9)\"}}},label:{show:!0,distance:0,padding:5,position:\"inside\",color:\"#fff\",overflow:\"truncate\"},upperLabel:{show:!1,position:[0,\"50%\"],height:20,overflow:\"truncate\",verticalAlign:\"middle\"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:\"#fff\",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,\"50%\"],overflow:\"truncate\",verticalAlign:\"middle\"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:\"index\",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Nt);function SA(r){var e=0;A(r.children,function(a){SA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const J3=K3;var $3=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel(\"breadcrumb\"),o=this.group;if(o.removeAll(),i.get(\"show\")&&a){var s=i.getModel(\"itemStyle\"),l=i.getModel(\"emphasis\"),u=s.getModel(\"textStyle\"),f=l.getModel([\"itemStyle\",\"textStyle\"]),h={pos:{left:i.get(\"left\"),right:i.get(\"right\"),top:i.get(\"top\"),bottom:i.get(\"bottom\")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get(\"emptyItemWidth\"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Ju(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=te(n.getModel().get(\"name\"),\"\"),o=a.getTextRect(i),s=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=s+8,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get([\"breadcrumb\",\"height\"]),h=function ck(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Bn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel(\"itemStyle\").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Le({shape:{points:tH(l,0,m,f,d===c.length-1,0===d)},style:J(a.getItemStyle(),{lineJoin:\"bevel\"}),textContent:new bt({style:Ot(i,{text:_})}),textConfig:{position:\"inside\"},z2:1e5,onclick:nt(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState(\"emphasis\").style=Ot(o,{text:_}),S.ensureState(\"emphasis\").style=p,Ut(S,n.get(\"focus\"),n.get(\"blurScope\"),n.get(\"disabled\")),this.group.add(S),eH(S,e,y),l+=m+8}},r.prototype.remove=function(){this.group.removeAll()},r}();function tH(r,e,t,a,n,i){var o=[[n?r:r-5,e],[r+t,e],[r+t,e+a],[n?r:r-5,e+a]];return!i&&o.splice(2,0,[r+t+5,e+a/2]),!n&&o.push([r,e+a/2]),o}function eH(r,e,t){it(r).eventData={componentType:\"series\",componentSubType:\"treemap\",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:\"treemap\",selfType:\"breadcrumb\",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&gh(t,e)}}const rH=$3;var aH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n3||Math.abs(t.dy)>3)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:\"treemapMove\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(\"animating\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ut(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo,u=[1,0,0,1,0,0];yr(u,u,[-(a-=l.x),-(n-=l.y)]),ru(u,u,[t.scale,t.scale]),yr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:\"treemapRender\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on(\"click\",function(n){if(\"ready\"===a._state){var i=a.seriesModel.get(\"nodeClick\",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(\"zoomToNode\"===i)a._zoomToNode(o);else if(\"link\"===i){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get(\"link\",!0),f=l.get(\"target\",!0)||\"blank\";u&&Ku(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=null!=t.get(\"leafDepth\",!0)?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new rH(this.group))).render(t,a,n.node,function(o){\"animating\"!==i._state&&(Ig(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state=\"ready\",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:\"treemapZoomToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:\"treemapRootToNode\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n;return this.seriesModel.getViewRoot().eachNode({attr:\"viewChildren\",order:\"preorder\"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(!(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height))return!1;n={node:o,offsetX:l[0],offsetY:l[1]}}},this),n},e.type=\"treemap\",e}(Et);const hH=lH;var Cl=A,vH=$,Eg=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=et(e);this.type=a,this.mappingMethod=t,this._normalizeData=dH[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],\"piecewise\"===t?(kg(n),function cH(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,null!=t.visual&&(r.hasSpecialVisual=!0)})}(n)):\"category\"===t?n.categories?function pH(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Cl(e,function(o,s){t[o]=s}),!z(a)){var n=[];$(a)?Cl(a,function(o,s){var l=t[s];n[null!=l?l:-1]=o}):n[-1]=a,a=DA(r,n)}for(var i=e.length-1;i>=0;i--)null==a[i]&&(delete t[e[i]],e.pop())}(n):kg(n,!0):(de(\"linear\"!==t||n.dataExtent),kg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return mt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){$(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:$(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var a,t={};return e&&Cl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else{if(!vH(e))return[];var t=[];Cl(e,function(a,n){t.push(n)}),e=t}return e.sort(function(a,n){return\"color\"===n&&\"color\"!==a&&0===a.indexOf(\"color\")?1:-1}),e},r.dependsOn=function(e,t){return\"color\"===t?!(!e||0!==e.indexOf(t)):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;ou[1]&&(u[1]=l);var f=e.get(\"colorMappingBy\"),h={type:o.name,dataExtent:u,visual:o.range};\"color\"!==h.type||\"index\"!==f&&\"id\"!==f?h.mappingMethod=\"linear\":(h.mappingMethod=\"category\",h.loop=!0);var v=new pe(h);return LA(v).drColorMappingBy=f,v}}}(0,n,i,0,l,c);A(c,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=function xH(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l=\"color\"===s&&LA(n).drColorMappingBy,u=\"index\"===l?a:\"id\"===l?i.mapIdToIndex(t.getId()):t.getValue(r.get(\"visualDimension\"));o[s]=n.mapValueToVisual(u)}return o}(n,l,d,g,p,a);IA(d,y,t,a)}})}else v=PA(l),u.fill=v}}function PA(r){var e=Vg(r,\"color\");if(e){var t=Vg(r,\"colorAlpha\"),a=Vg(r,\"colorSaturation\");return a&&(e=Ri(e,null,null,a)),t&&(e=es(e,t)),e}}function Vg(r,e){var t=r[e];if(null!=t&&\"none\"!==t)return t}function Bg(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}var Dl=Math.max,xh=Math.min,RA=ee,zg=A,EA=[\"itemStyle\",\"borderWidth\"],bH=[\"itemStyle\",\"gapWidth\"],wH=[\"upperLabel\",\"show\"],TH=[\"upperLabel\",\"height\"];const CH={seriesType:\"treemap\",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Qt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(RA(s.width,l[0]),n),f=H(RA(s.height,l[1]),i),h=a&&a.type,c=bl(a,[\"treemapZoomToNode\",\"treemapRootToNode\"],r),p=\"treemapRender\"===h||\"treemapMove\"===h?a.rootRect:null,d=r.getViewRoot(),g=yA(d);if(\"treemapMove\"!==h){var y=\"treemapZoomToNode\"===h?function PH(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,h=s.children,v=0,c=h.length;vgc&&(u=gc),i=s}us[1]&&(s[1]=u)})):s=[NaN,NaN],{sum:a,dataExtent:s}}(e,o,s);if(0===u.sum)return r.viewChildren=[];if(u.sum=function MH(r,e,t,a,n){if(!a)return t;for(var i=r.get(\"visibleMin\"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[\"asc\"===a?o-l-1:l].getValue();u/t*ea&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Dl(u*a/l,l/(u*n)):1/0}function OA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=[\"x\",\"y\"],l=[\"width\",\"height\"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;ha&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(\"start\"!==i.__position&&\"end\"!==i.__position){var T=-Math.atan2(S[1],S[0]);h[0].8?\"left\":v[0]<-.8?\"right\":\"center\",d=v[1]>.8?\"top\":v[1]<-.8?\"bottom\":\"middle\";break;case\"start\":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=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\":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?\"right\":\"left\",i.originX=-y*w,i.originY=-C;break;case\"insideMiddleTop\":case\"insideMiddle\":case\"insideMiddleBottom\":case\"middle\":i.x=x[0],i.y=x[1]+C,p=\"center\",i.originY=-C;break;case\"insideEndTop\":case\"insideEnd\":case\"insideEndBottom\":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?\"right\":\"left\",i.originX=y*w,i.originY=-C}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function c(M,D){var L=M.__specifiedRotation;if(null==L){var I=l.tangentAt(D);M.attr(\"rotation\",(1===D?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr(\"rotation\",L)}},e}(at);const jg=JH;var QH=function(){function r(e){this.group=new at,this._LineCtor=e||jg}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=qA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.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=qA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!function $H(r){return r.animators&&r.animators.length>0}(s)&&(s.incremental=!0,s.ensureState(\"emphasis\").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n=0?s+=u:s-=u:p>=0?s-=u:s+=u}return s}function ay(r,e){var t=[],a=Jo,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual(\"fromSymbol\"),h=s.getVisual(\"toSymbol\");u.__original||(u.__original=[kr(u[0]),kr(u[1])],u[2]&&u.__original.push(kr(u[2])));var v=u.__original;if(null!=u[2]){if(ge(n[0],v[0]),ge(n[1],v[2]),ge(n[2],v[1]),f&&\"none\"!==f){var c=Pl(s.node1),p=JA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}h&&\"none\"!==h&&(c=Pl(s.node2),p=JA(n,v[1],c*e),a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]),ge(u[0],n[0]),ge(u[1],n[2]),ge(u[2],n[1])}else ge(i[0],v[0]),ge(i[1],v[1]),Aa(o,i[1],i[0]),vn(o,o),f&&\"none\"!==f&&(c=Pl(s.node1),$l(i[0],i[0],o,c*e)),h&&\"none\"!==h&&(c=Pl(s.node2),$l(i[1],i[1],o,-c*e)),ge(u[0],i[0]),ge(u[1],i[1])})}function QA(r){return\"view\"===r.type}var t4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){var n=new vl,i=new Qg,o=this.group;this._controller=new ml(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}ay(t.getGraph(),Il(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get([\"force\",\"layoutAnimation\"]);c&&this._startForceLayoutIteration(c,p);var d=t.get(\"layout\");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off(\"drag\").off(\"dragend\");var w=x.get(\"draggable\");w&&b.on(\"drag\",function(C){switch(d){case\"force\":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case\"circular\":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),Yg(t,\"symbolSize\",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(S,[b.x,b.y]),Wg(t.getGraph(),t),i.updateLayout(t)}}).on(\"dragend\",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get(\"cursor\")),\"adjacency\"===x.get([\"emphasis\",\"focus\"])&&(it(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get([\"emphasis\",\"focus\"]);!S||\"adjacency\"===b&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=\"circular\"===t.get(\"layout\")&&t.get([\"circular\",\"rotateLabel\"]),y=h.getLayout(\"cx\"),m=h.getLayout(\"cy\");h.graph.eachNode(function(_){HA(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;!function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!hh(u,n,t)}),QA(t.coordinateSystem)?(o.enable(t.get(\"roam\")),s.zoomLimit=t.get(\"scaleLimit\"),s.zoom=t.coordinateSystem.getZoom(),o.off(\"pan\").off(\"zoom\").on(\"pan\",function(u){mg(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:\"graphRoam\",dx:u.dx,dy:u.dy})}).on(\"zoom\",function(u){_g(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:\"graphRoam\",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),ay(t.getGraph(),Il(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):o.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Il(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){ay(t.getGraph(),Il(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type=\"graph\",e}(Et);const e4=t4;function To(r){return\"_EC_\"+r}var r4=function(){function r(e){this.type=\"graph\",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){var a=this._nodesMap;if(!a[To(e=null==e?\"\"+t:\"\"+e)]){var n=new gi(e,t);return n.hostGraph=this,this.nodes.push(n),a[To(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[To(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Tt(e)&&(e=this.nodes[e]),Tt(t)&&(t=this.nodes[t]),e instanceof gi||(e=n[To(e)]),t instanceof gi||(t=n[To(t)]),e&&t){var o=e.id+\"-\"+t.id,s=new $A(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof gi&&(e=e.id),t instanceof gi&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+\"-\"+t]:a[e+\"-\"+t]||a[t+\"-\"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof gi||(t=this._nodesMap[To(t)]),t){for(var i=\"out\"===a?\"outEdges\":\"in\"===a?\"inEdges\":\"edges\",o=0;o=0&&l.node2.dataIndex>=0}),i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Zt(gi,tM(\"hostGraph\",\"data\")),Zt($A,tM(\"hostGraph\",\"edgeData\"));const a4=r4;function eM(r,e,t,a,n){for(var i=new a4(a),o=0;o \"+v)),u++)}var p,c=t.get(\"coordinateSystem\");if(\"cartesian2d\"===c||\"polar\"===c)p=Xr(r,t);else{var d=Ji.get(c),g=d&&d.dimensions||[];vt(g,\"value\")<0&&g.concat([\"value\"]);var y=co(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;(p=new xe(y,t)).initData(r)}var m=new xe([\"value\"],t);return m.initData(l,s),n&&n(p,m),gA({mainData:p,struct:i,structAttr:\"graph\",datas:{node:p,edge:m},datasAttr:{node:\"data\",edge:\"edgeData\"}}),i.update(),i}var n4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new dl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),bn(t,\"edgeLabel\",[\"show\"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){!function zH(r){!wh(r)||(r.__curvenessList=[],r.__edgeMap={},BA(r))}(this);var s=eM(i,n,this,!0,function l(u,f){u.wrapMethod(\"getItemModel\",function(p){var y=o._categoriesModels[p.getShallow(\"category\")];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Rt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}function c(p){if(p&&(\"label\"===p[0]||\"label\"===p[1])){var d=p.slice();return\"label\"===p[0]?d[0]=\"edgeLabel\":\"label\"===p[1]&&(d[1]=\"edgeLabel\"),d}return p}f.wrapMethod(\"getItemModel\",function(p){return p.resolveParentPath=c,p.getModel=v,p})});return A(s.edges,function(u){!function GH(r,e,t,a){if(wh(t)){var n=Ll(r,e,t),i=t.__edgeMap,o=i[zA(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}(u.node1,u.node2,this,u.dataIndex)},this),s.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(\"edge\"===n){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),ne(\"nameValue\",{name:f.join(\" > \"),value:o.value,noValue:null==o.value})}return ix({series:this,dataIndex:t,multipleSeries:a})},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return null!=n.value?n:V({value:0},n)}),a=new xe([\"value\"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(\"force\"===this.get(\"layout\")&&this.get([\"force\",\"layoutAnimation\"]))},e.type=\"series.graph\",e.dependencies=[\"grid\",\"polar\",\"geo\",\"singleAxis\",\"calendar\"],e.defaultOption={z:2,coordinateSystem:\"view\",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:\"center\",top:\"center\",symbol:\"circle\",symbolSize:10,edgeSymbol:[\"none\",\"none\"],edgeSymbolSize:10,edgeLabel:{position:\"middle\",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:\"{b}\"},itemStyle:{},lineStyle:{color:\"#aaa\",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:\"#212121\"}}},e}(Nt);const i4=n4;var o4={type:\"graphRoam\",event:\"graphRoam\",update:\"none\"},l4=function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},u4=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"pointer\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new l4},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(yt);const f4=u4;function Th(r,e){var t=null==r?\"\":r+\"\";return e&&(U(e)?t=e.replace(\"{value}\",t):j(e)&&(t=e(r))),t}var v4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get([\"axisLine\",\"lineStyle\",\"color\"]),o=function h4(r,e){var t=r.get(\"center\"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n);return{cx:H(t[0],e.getWidth()),cy:H(t[1],e.getHeight()),r:H(r.get(\"radius\"),i/2)}}(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get(\"clockwise\"),u=-t.get(\"startAngle\")/180*Math.PI,f=-t.get(\"endAngle\")/180*Math.PI,h=t.getModel(\"axisLine\"),c=h.get(\"roundCap\")?nh:De,p=h.get(\"show\"),d=h.getModel(\"lineStyle\"),g=d.get(\"width\"),y=[u,f];G_(y,!l);for(var m=(f=y[1])-(u=y[0]),_=u,S=[],b=0;p&&b=C&&(0===M?0:i[M-1][0])Math.PI/2&&(Q+=Math.PI):\"tangential\"===tt?Q=-T-Math.PI/2:Tt(tt)&&(Q=tt*Math.PI/180),h.add(new bt(0===Q?{style:Ot(_,{text:B,x:W,y:q,verticalAlign:R<-.8?\"top\":R>.8?\"bottom\":\"middle\",align:P<-.4?\"left\":P>.4?\"right\":\"center\"},{inheritColor:F}),silent:!0}:{style:Ot(_,{text:B,x:W,y:q,verticalAlign:\"middle\",align:\"center\"},{inheritColor:F}),silent:!0,originX:W,originY:q,rotation:Q}))}if(m.get(\"show\")&&E!==S){N=(N=m.get(\"distance\"))?N+f:f;for(var pt=0;pt<=b;pt++){P=Math.cos(T),R=Math.sin(T);var _t=new ie({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});\"auto\"===L.stroke&&_t.setStyle({stroke:i((E+pt/b)/S)}),h.add(_t),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get([\"pointer\",\"show\"]),g=t.getModel(\"progress\"),y=g.get(\"show\"),m=t.getData(),_=m.mapDimension(\"value\"),S=+t.get(\"min\"),b=+t.get(\"max\"),x=[S,b],w=[s,l];function T(M,D){var W,I=m.getItemModel(M).getModel(\"pointer\"),P=H(I.get(\"width\"),o.r),R=H(I.get(\"length\"),o.r),E=t.get([\"pointer\",\"icon\"]),N=I.get(\"offsetCenter\"),k=H(N[0],o.r),B=H(N[1],o.r),F=I.get(\"keepAspect\");return(W=E?Kt(E,k-P/2,B-R,P,R,null,F):new f4({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:B}})).rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var I=g.get(\"roundCap\")?nh:De,P=g.get(\"overlap\"),R=P?g.get(\"width\"):f/m.count(),k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P?o.r-R:o.r-(M+1)*R,r:P?o.r:o.r-M*R}});return P&&(k.z2=b-m.get(_,M)%b),k}(y||d)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(d){var L=T(M,s);zt(L,{rotation:-((isNaN(+D)?w[0]:It(D,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=g.get(\"clip\");zt(I,{shape:{endAngle:It(D,x,w,P)}},t),h.add(I),Fc(t.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,Mt(R,{rotation:-((isNaN(+L)?w[0]:It(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],k=C(M,E?E.shape.endAngle:s),B=g.get(\"clip\");Mt(k,{shape:{endAngle:It(L,x,w,B)}},t),h.add(k),Fc(t.seriesIndex,m.dataType,M,k),p[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel(\"emphasis\"),I=L.get(\"focus\"),P=L.get(\"blurScope\"),R=L.get(\"disabled\");if(d){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,\"style\"),k=N.fill;if(E instanceof ue){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),\"pointer\"!==E.type&&E.setColor(k);E.setStyle(D.getModel([\"pointer\",\"itemStyle\"]).getItemStyle()),\"auto\"===E.style.fill&&E.setStyle(\"fill\",i(It(m.get(_,M),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,D),Ut(E,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,\"style\")),F.setStyle(D.getModel([\"progress\",\"itemStyle\"]).getItemStyle()),F.z2EmphasisLift=0,he(F,D),Ut(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel(\"anchor\");if(n.get(\"show\")){var o=n.get(\"size\"),s=n.get(\"icon\"),l=n.get(\"offsetCenter\"),u=n.get(\"keepAspect\"),f=Kt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get(\"showAbove\")?1:0,f.setStyle(n.getModel(\"itemStyle\").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension(\"value\"),f=+t.get(\"min\"),h=+t.get(\"max\"),v=new at,c=[],p=[],d=t.isAnimationEnabled(),g=t.get([\"pointer\",\"showAbove\"]);l.diff(this._data).add(function(y){c[y]=new bt({silent:!0}),p[y]=new bt({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=i(It(_,[f,h],[0,1],!0)),x=m.getModel(\"title\");if(x.get(\"show\")){var w=x.get(\"offsetCenter\"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r);(M=c[y]).attr({z2:g?0:2,style:Ot(x,{x:T,y:C,text:l.getName(y),align:\"center\",verticalAlign:\"middle\"},{inheritColor:b})}),S.add(M)}var D=m.getModel(\"detail\");if(D.get(\"show\")){var L=D.get(\"offsetCenter\"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(D.get(\"width\"),o.r),E=H(D.get(\"height\"),o.r),N=t.get([\"progress\",\"show\"])?l.getItemVisual(y,\"style\").fill:b,M=p[y],k=D.get(\"formatter\");M.attr({z2:g?0:2,style:Ot(D,{x:I,y:P,text:Th(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:\"center\",verticalAlign:\"middle\"},{inheritColor:N})}),kS(M,{normal:D},_,function(F){return Th(F,k)}),d&&OS(M,y,l,t,{getFormattedLabel:function(F,W,q,tt,Q,pt){return Th(pt?pt.interpolatedValue:_,k)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type=\"gauge\",e}(Et);const c4=v4;var p4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath=\"itemStyle\",t}return O(e,r),e.prototype.getInitialData=function(t,a){return _o(this,[\"value\"])},e.type=\"series.gauge\",e.defaultOption={z:2,colorBy:\"data\",center:[\"50%\",\"50%\"],legendHoverLink:!0,radius:\"75%\",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,\"#E6EBF8\"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:\"#63677A\",width:3,type:\"solid\"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:\"#63677A\",width:1,type:\"solid\"}},axisLabel:{show:!0,distance:15,color:\"#464646\",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:\"60%\",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:\"circle\",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:\"#fff\",borderWidth:0,borderColor:\"#5470c6\"}},title:{show:!0,offsetCenter:[0,\"20%\"],color:\"#464646\",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:\"rgba(0,0,0,0)\",borderWidth:0,borderColor:\"#ccc\",width:100,height:null,padding:[5,10],offsetCenter:[0,\"40%\"],color:\"#464646\",fontSize:30,fontWeight:\"bold\",lineHeight:30,valueAnimation:!1}},e}(Nt);const d4=p4;var y4=[\"itemStyle\",\"opacity\"],m4=function(r){function e(t,a){var n=r.call(this)||this,i=n,o=new Ie,s=new bt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return O(e,r),e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel(\"emphasis\"),f=s.get(y4);f=null==f?1:f,n||Tr(i),i.useStyle(t.getItemVisual(a,\"style\")),i.style.lineJoin=\"round\",n?(i.setShape({points:l.points}),i.style.opacity=0,zt(i,{style:{opacity:f}},o,a)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Ut(this,u.get(\"focus\"),u.get(\"blurScope\"),u.get(\"disabled\"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),f=t.getItemLayout(a).label,h=t.getItemVisual(a,\"style\"),v=h.fill;ve(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new lt(c[0][0],c[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),zd(n,Gd(l),{stroke:v})},e}(Le),_4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new m4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){ws(o.getItemGraphicEl(l),t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=\"funnel\",e}(Et);const S4=_4;var x4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return _o(this,{coordDimensions:[\"value\"],encodeDefaulter:nt(gp,this)})},e.prototype._defaultLabelLine=function(t){bn(t,\"labelLine\",[\"show\"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension(\"value\"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push(\"percent\"),n},e.type=\"series.funnel\",e.defaultOption={z:2,legendHoverLink:!0,colorBy:\"data\",left:80,top:60,right:80,bottom:60,minSize:\"0%\",maxSize:\"100%\",sort:\"descending\",orient:\"vertical\",gap:0,funnelAlign:\"center\",label:{show:!0,position:\"outer\"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:\"#fff\",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:\"#212121\"}}},e}(Nt);const b4=x4;function A4(r,e){r.eachSeriesByType(\"funnel\",function(t){var a=t.getData(),n=a.mapDimension(\"value\"),i=t.get(\"sort\"),o=function w4(r,e){return Qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),s=t.get(\"orient\"),l=o.width,u=o.height,f=function T4(r,e){for(var t=r.mapDimension(\"value\"),a=r.mapArray(t,function(l){return l}),n=[],i=\"ascending\"===e,o=0,s=r.count();o5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);\"none\"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!this._mouseDownPoint&&iy(this,\"mousemove\")){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;\"jump\"===a&&this._throttledDispatchExpand.debounceNextCall(e.get(\"axisExpandDebounce\")),this._throttledDispatchExpand(\"none\"===a?null:{axisExpandWindow:t.axisExpandWindow,animation:\"jump\"===a?null:{duration:0}})}}};function iy(r,e){var t=r._model;return t.get(\"axisExpandable\")&&t.get(\"axisExpandTriggerOn\")===e}const Z4=U4;var X4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&ot(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get(\"parallelIndex\");return null!=n&&a.getComponent(\"parallel\",n)===this},e.prototype.setAxisExpand=function(t){A([\"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=[];A(Lt(this.ecModel.queryComponents({mainType:\"parallelAxis\"}),function(i){return(i.get(\"parallelIndex\")||0)===this.componentIndex},this),function(i){t.push(\"dim\"+i.get(\"dim\")),a.push(i.componentIndex)})},e.type=\"parallel\",e.dependencies=[\"parallelAxis\"],e.layoutMode=\"box\",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:\"horizontal\",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:\"click\",parallelAxisDefault:null},e}(St);const q4=X4;var K4=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||\"value\",s.axisIndex=o,s}return O(e,r),e.prototype.isHorizontal=function(){return\"horizontal\"!==this.coordinateSystem.getModel().get(\"layout\")},e}(lr);const j4=K4;function yi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(null!=n&&(n=Co(n,[0,o])),null!=i&&(i=Math.max(i,null!=n?n:0)),\"all\"===a){var s=Math.abs(e[1]-e[0]);s=Co(s,[0,o]),n=i=Co(s,[n,i]),a=0}e[0]=Co(e[0],t),e[1]=Co(e[1],t);var l=oy(e,a);e[a]+=r;var h,u=n||0,f=t.slice();return l.sign<0?f[0]+=u:f[1]-=u,e[a]=Co(e[a],f),h=oy(e,a),null!=n&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function oy(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 Co(r,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,r))}var sy=A,iM=Math.min,oM=Math.max,sM=Math.floor,J4=Math.ceil,lM=Wt,Q4=Math.PI,$4=function(){function r(e,t,a){this.type=\"parallel\",this._axesMap=X(),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.parallelAxisIndex;sy(e.dimensions,function(o,s){var l=i[s],u=t.getComponent(\"parallelAxis\",l),f=this._axesMap.set(o,new j4(o,al(u),[0,0],u.get(\"type\"),l));f.onBand=\"category\"===f.type&&u.get(\"boundaryGap\"),f.inverse=u.get(\"inverse\"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();sy(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ti(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Qt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var p,e=this._model,t=this._rect,a=[\"x\",\"y\"],n=[\"width\",\"height\"],i=e.get(\"layout\"),o=\"horizontal\"===i?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Ch(e.get(\"axisExpandWidth\"),l),h=Ch(e.get(\"axisExpandCount\")||0,[0,u]),v=e.get(\"axisExpandable\")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get(\"axisExpandWindow\");c?(p=Ch(c[1]-c[0],l),c[1]=c[0]+p):(p=Ch(f*(h-1),l),(c=[f*(e.get(\"axisExpandCenter\")||sM(u/2))-p/2])[1]=c[0]+p);var g=(s-p)/(u-h);g<3&&(g=0);var y=[sM(lM(c[0]/f,1))+1,J4(lM(c[1]/f,1))-1];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:g/f*c[0]}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),sy(a,function(o,s){var l=(n.axisExpandable?eW:tW)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},h=[u[i].x+e.x,u[i].y+e.y],v={horizontal:Q4/2,vertical:0}[i],c=[1,0,0,1,0,0];Da(c,c,v),yr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,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,n){null==a&&(a=0),null==n&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u=\"jump\",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),(l*=t.axisExpandWidth/f)?yi(l,n,o,\"all\"):u=\"none\";else{var c=n[1]-n[0];(n=[oM(0,o[1]*s/c-c/2)])[1]=iM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Ch(r,e){return iM(oM(r,e[0]),e[1])}function tW(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function eW(r,e){var s,f,a=e.axisExpandWidth,i=e.axisCollapseWidth,o=e.winInnerIndices,l=i,u=!1;return r=0;n--)Ue(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return\"normal\";if(null==t||isNaN(+t))return\"inactive\";if(1===a.length){var n=a[0];if(n[0]<=t&&t<=n[1])return\"active\"}else for(var i=0,o=a.length;i6}(r)||n){if(i&&!n){\"single\"===o.brushMode&&hy(r);var l=et(o);l.brushType=CM(l.brushType,i),l.panelId=i===mi?null:i.panelId,n=r._creatingCover=cM(r,l),r._covers.push(n)}if(n){var u=Ah[CM(r._brushType,i)];n.__brushOption.range=u.getCreatingRange(dy(r,n,r._track)),a&&(pM(r,n),u.updateCommon(r,n)),dM(r,n),s={isEnd:a}}}else a&&\"single\"===o.brushMode&&o.removeOnClick&&fy(r,e,t)&&hy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function CM(r,e){return\"auto\"===r?e.defaultBrushType:r}var SW={mousedown:function(r){if(this._dragging)AM(this,r);else if(!r.target||!r.target.draggable){gy(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null,(this._creatingPanel=fy(this,r,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var a=this.group.transformCoordToLocal(r.offsetX,r.offsetY);if(function _W(r,e,t){if(r._brushType&&!function xW(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}(r,e.offsetX,e.offsetY)){var a=r._zr,n=r._covers,i=fy(r,e,t);if(!r._dragging)for(var o=0;o=0&&(s[o[l].depth]=new Rt(o[l],this,a));if(i&&n)return eM(i,n,this,!0,function f(h,v){h.wrapMethod(\"getItemModel\",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var m=d.levelModels[g.depth];m&&(c.parentModel=m)}return c}),v.wrapMethod(\"getItemModel\",function(c,p){var d=c.parentModel,y=d.getGraph().getEdgeByIndex(p).node1.getLayout();if(y){var _=d.levelModels[y.depth];_&&(c.parentModel=_)}return c})}).data},e.prototype.setNodePosition=function(t,a){var i=(this.option.data||this.option.nodes)[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||null==c}if(\"edge\"===n){var o=this.getDataParams(t,n),s=o.data,l=o.value;return ne(\"nameValue\",{name:s.source+\" -- \"+s.target,value:l,noValue:i(l)})}var h=this.getGraph().getNodeByIndex(t).getLayout().value,v=this.getDataParams(t,n).data.name;return ne(\"nameValue\",{name:null!=v?v+\"\":null,value:h,noValue:i(h)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(null==n.value&&\"node\"===a){var o=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=o}return n},e.type=\"series.sankey\",e.defaultOption={z:2,coordinateSystem:\"view\",left:\"5%\",top:\"5%\",right:\"20%\",bottom:\"5%\",orient:\"horizontal\",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:\"right\",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:\"justify\",lineStyle:{color:\"#314656\",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:\"#212121\"}},animationEasing:\"linear\",animationDuration:1e3},e}(Nt);const BW=VW;function zW(r,e){r.eachSeriesByType(\"sankey\",function(t){var a=t.get(\"nodeWidth\"),n=t.get(\"nodeGap\"),i=function GW(r,e){return Qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;!function HW(r){A(r,function(e){var t=en(e.outEdges,Mh),a=en(e.inEdges,Mh),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}(u),function FW(r,e,t,a,n,i,o,s,l){(function WW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),d.setLayout(\"vertical\"===i?{dy:t}:{dx:t},!0);for(var m=0;mh-1?c:h-1;o&&\"left\"!==o&&function UW(r,e,t,a){if(\"right\"===e){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)jW(s,l*=.99,o),Sy(s,n,t,a,o),e6(s,l,o),Sy(s,n,t,a,o)}(r,e,i,n,a,o,s),function r6(r,e){var t=\"vertical\"===e?\"x\":\"y\";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}(r,s)}(u,f,a,n,o,s,0!==Lt(u,function(d){return 0===d.getLayout().value}).length?0:t.get(\"layoutIterations\"),t.get(\"orient\"),t.get(\"nodeAlign\"))})}function EM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return null!=e.depth&&e.depth>=0}function Sy(r,e,t,a,n){var i=\"vertical\"===n?\"x\":\"y\";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,h=o.length,v=\"vertical\"===n?\"dx\":\"dy\",c=0;c0&&(s=l.getLayout()[i]+u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;if((u=f-e-(\"vertical\"===n?a:t))>0)for(s=l.getLayout()[i]-u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0),f=s,c=h-2;c>=0;--c)(u=(l=o[c]).getLayout()[i]+l.getLayout()[v]+e-f)>0&&(s=l.getLayout()[i]-u,l.setLayout(\"vertical\"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]})}function jW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=en(n.outEdges,JW,t)/en(n.outEdges,Mh);if(isNaN(i)){var o=n.outEdges.length;i=o?en(n.outEdges,QW,t)/o:0}if(\"vertical\"===t){var s=n.getLayout().x+(i-tn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-tn(n,t))*e;n.setLayout({y:l},!0)}}})})}function JW(r,e){return tn(r.node2,e)*r.getValue()}function QW(r,e){return tn(r.node2,e)}function $W(r,e){return tn(r.node1,e)*r.getValue()}function t6(r,e){return tn(r.node1,e)}function tn(r,e){return\"vertical\"===e?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Mh(r){return r.getValue()}function en(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),A(a,function(s){var u=new pe({type:\"color\",mappingMethod:\"linear\",dataExtent:[i,o],visual:e.get(\"color\")}).mapValueToVisual(s.getLayout().value),f=s.getModel().get([\"itemStyle\",\"color\"]);null!=f?(s.setVisual(\"color\",f),s.setVisual(\"style\",{fill:f})):(s.setVisual(\"color\",u),s.setVisual(\"style\",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get(\"lineStyle\");s.setVisual(\"style\",l)})})}var kM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,l,n=t.getComponent(\"xAxis\",this.get(\"xAxisIndex\")),i=t.getComponent(\"yAxis\",this.get(\"yAxisIndex\")),o=n.get(\"type\"),s=i.get(\"type\");\"category\"===o?(e.layout=\"horizontal\",a=n.getOrdinalMeta(),l=!0):\"category\"===s?(e.layout=\"vertical\",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||\"horizontal\";var u=[\"x\",\"y\"],f=\"horizontal\"===e.layout?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get(\"type\"),d=c[1-f].get(\"type\"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?((x=V({},S)).value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Vf(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:[\"base\"]},{name:v,type:Vf(d),dimsDef:m.slice()}];return _o(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:nt(n1,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+\"Axis\",this.get(e+\"AxisIndex\")).axis},r}(),OM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:\"min\",defaultTooltip:!0},{name:\"Q1\",defaultTooltip:!0},{name:\"median\",defaultTooltip:!0},{name:\"Q3\",defaultTooltip:!0},{name:\"max\",defaultTooltip:!0}],t.visualDrawType=\"stroke\",t}return O(e,r),e.type=\"series.boxplot\",e.dependencies=[\"xAxis\",\"yAxis\",\"grid\"],e.defaultOption={z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:\"#fff\",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:\"rgba(0,0,0,0.2)\"}},animationDuration:800},e}(Nt);Zt(OM,kM,!0);const i6=OM;var o6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=\"horizontal\"===t.get(\"layout\")?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var h=NM(i.getItemLayout(u),i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(i.hasValue(u)){var v=i.getItemLayout(u);h?(Tr(h),VM(v,h,i,u)):h=NM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}else o.remove(h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type=\"boxplot\",e}(Et),s6=function r(){},l6=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"boxplotBoxPath\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new s6},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id)&&a.push([y,_])}}return{boxData:t,outliers:a}}(t.getRawData(),e.config);return[{dimensions:[\"ItemName\",\"Low\",\"Q1\",\"Q2\",\"Q3\",\"High\"],data:n.boxData},{data:n.outliers}]}},m6=[\"color\",\"borderColor\"],_6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout(\"isSimpleBox\"),s=t.get(\"clip\",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&BM(u,h))return;var v=xy(h,0,!0);zt(v,{shape:{points:h.ends}},t,f),by(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(a.hasValue(f)){var c=a.getItemLayout(f);s&&BM(u,c)?i.remove(v):(v?(Mt(v,{shape:{points:c.ends}},t,f),Tr(v)):v=xy(c),by(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v))}else i.remove(v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),zM(t,this.group);var a=t.get(\"clip\",!0)?rh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var o,n=a.getData(),i=n.getLayout(\"isSimpleBox\");null!=(o=t.next());){var l=xy(n.getItemLayout(o));by(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){zM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type=\"candlestick\",e}(Et),S6=function r(){},x6=function(r){function e(t){var a=r.call(this,t)||this;return a.type=\"normalCandlestickBox\",a}return O(e,r),e.prototype.getDefaultShape=function(){return new S6},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(yt);function xy(r,e,t){var a=r.ends;return new x6({shape:{points:t?b6(a,r):a},z2:100})}function BM(r,e){for(var t=!0,a=0;a0?\"borderColor\":\"borderColor0\"])||t.get([\"itemStyle\",r>0?\"color\":\"color0\"]);0===r&&(n=t.get([\"itemStyle\",\"borderColorDoji\"]));var i=t.getModel(\"itemStyle\").getItemStyle(m6);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const T6=_6;var GM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:\"open\",defaultTooltip:!0},{name:\"close\",defaultTooltip:!0},{name:\"lowest\",defaultTooltip:!0},{name:\"highest\",defaultTooltip:!0}],t}return O(e,r),e.prototype.getShadowDim=function(){return\"open\"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type=\"series.candlestick\",e.dependencies=[\"xAxis\",\"yAxis\",\"grid\"],e.defaultOption={z:2,coordinateSystem:\"cartesian2d\",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:\"#eb5454\",color0:\"#47b262\",borderColor:\"#eb5454\",borderColor0:\"#47b262\",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:\"mod\",animationEasing:\"linear\",animationDuration:300},e}(Nt);Zt(GM,kM,!0);const C6=GM;function A6(r){!r||!z(r.series)||A(r.series,function(e){$(e)&&\"k\"===e.type&&(e.type=\"candlestick\")})}var M6=[\"itemStyle\",\"borderColor\"],D6=[\"itemStyle\",\"borderColor0\"],L6=[\"itemStyle\",\"borderColorDoji\"],I6=[\"itemStyle\",\"color\"],P6=[\"itemStyle\",\"color0\"],R6={seriesType:\"candlestick\",plan:to(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?I6:P6)}function a(i,o){return o.get(0===i?L6:i>0?M6:D6)}if(!e.isSeriesFiltered(r))return!r.pipelineContext.large&&{progress:function(i,o){for(var s;null!=(s=i.next());){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill,V(o.ensureUniqueItemVisual(s,\"style\"),f)}}}}};const E6=R6;var k6={seriesType:\"candlestick\",plan:to(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=function O6(r,e){var a,t=r.getBaseAxis(),n=\"category\"===t.type?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(st(r.get(\"barMaxWidth\"),n),n),o=H(st(r.get(\"barMinWidth\"),1),n),s=r.get(\"barWidth\");return null!=s?H(s,n):Math.max(Math.min(n/2,i),o)}(r,t),o=[\"x\",\"y\"],s=t.getDimensionIndex(t.mapDimension(o[0])),l=G(t.mapDimensionsAll(o[1]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(s<0||l.length<4))return{progress:r.pipelineContext.large?function p(d,g){for(var _,x,y=qr(4*d.count),m=0,S=[],b=[],w=g.getStore(),T=!!r.get([\"itemStyle\",\"borderColorDoji\"]);null!=(x=d.next());){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),L=w.get(h,x),I=w.get(v,x);isNaN(C)||isNaN(L)||isNaN(I)?(y[m++]=NaN,m+=3):(y[m++]=FM(w,x,M,D,f,T),S[0]=C,S[1]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[1]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN)}g.setLayout(\"largePoints\",y)}:function c(d,g){for(var y,m=g.getStore();null!=(y=d.next());){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),M=N(T,_),D=N(C,_),L=N(x,_),I=N(w,_),P=[];k(P,D,0),k(P,M,1),P.push(F(I),F(D),F(L),F(M));var E=!!g.getItemModel(y).get([\"itemStyle\",\"borderColorDoji\"]);g.setItemLayout(y,{sign:FM(m,y,S,b,f,E),initBaseline:S>b?D[1]:M[1],ends:P,brushRect:(W=x,q=w,tt=_,Q=void 0,pt=void 0,Q=N(W,tt),pt=N(q,tt),Q[0]-=a/2,pt[0]-=a/2,{x:Q[0],y:Q[1],width:a,height:pt[1]-Q[1]})})}var W,q,tt,Q,pt;function N(W,q){var tt=[];return tt[0]=q,tt[1]=W,isNaN(q)||isNaN(W)?[NaN,NaN]:e.dataToPoint(tt)}function k(W,q,tt){var Q=q.slice(),pt=q.slice();Q[0]=mf(Q[0]+a/2,1,!1),pt[0]=mf(pt[0]-a/2,1,!0),tt?W.push(Q,pt):W.push(pt,Q)}function F(W){return W[0]=mf(W[0],1),W}}}}};function FM(r,e,t,a,n,i){return t>a?-1:t0?r.get(n,e-1)<=a?1:-1:1}const N6=k6;function HM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:\"stroke\"===e.brushType?t:null,fill:\"fill\"===e.brushType?t:null}})})}var B6=function(r){function e(t,a){var n=r.call(this)||this,i=new hl(t,a),o=new at;return n.add(i),n.add(o),n.updateData(t,a),n}return O(e,r),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;v=j(h)?h(n):h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate(\"\",i).when(o?2*a:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ea(t.__p1,t.__cp1)+ea(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=le,f=Bv;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(\"line\"===this._symbolType||\"rect\"===this._symbolType||\"roundRect\"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1],t.rotation=-Math.atan2(t.__t<1?v[1]-h[1]:h[1]-v[1],t.__t<1?v[0]-h[0]:h[0]-v[0])-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(WM);const q6=X6;var K6=function r(){this.polyline=!1,this.curveness=0,this.segs=[]},j6=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:\"#000\",fill:null}},e.prototype.getDefaultShape=function(){return new K6},e.prototype.buildPath=function(t,a){var o,n=a.segs,i=a.curveness;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0?t.quadraticCurveTo((u+h)/2-(f-v)*i,(f+v)/2-(h-u)*i,h,v):t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u