/*! * build: Vue Admin Plus * copyright: vue-admin-beautiful.com * time: 2024-06-17 18:02:30 */ "use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[380],{63487:function(e,t,n){n.d(t,{a:function(){return te}});var a=n(15215),i=n(13637),o=n(47355),r=n(62103),l=n(43870),s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,a.C6)(t,e),t.prototype.getInitialData=function(e){return(0,i.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new l.A,n=(0,r.v5)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===a?"circle":a,s=.8*e.itemHeight,u=(0,r.v5)(o,(e.itemWidth-s)/2,(e.itemHeight-s)/2,s,s,e.itemStyle.fill);t.add(u),u.setStyle(e.itemStyle);var d="inherit"===e.iconRotate?i:e.iconRotate||0;return u.rotation=d*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(o.A),u=s,d=n(98026),h=n(18386),c=n(10128),p=n(65008);function g(e,t,n){var a=e.getBaseAxis(),i=e.getOtherAxis(a),o=f(i,n),r=a.dim,l=i.dim,s=t.mapDimension(l),u=t.mapDimension(r),h="x"===l||"radius"===l?1:0,c=(0,d.Tj)(e.dimensions,(function(e){return t.mapDimension(e)})),g=!1,y=t.getCalculationInfo("stackResultDimension");return(0,p.sJ)(t,c[0])&&(g=!0,c[0]=y),(0,p.sJ)(t,c[1])&&(g=!0,c[1]=y),{dataDimsForPoint:c,valueStart:o,valueAxisDim:l,baseAxisDim:r,stacked:!!g,valueDim:s,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function f(e,t){var n=0,a=e.scale.getExtent();return"start"===t?n=a[0]:"end"===t?n=a[1]:(0,d.Et)(t)&&!isNaN(t)?n=t:a[0]>0?n=a[0]:a[1]<0&&(n=a[1]),n}function y(e,t,n,a){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,r=[];return r[o]=n.get(e.baseDim,a),r[1-o]=i,t.dataToPoint(r)}var v=n(8957);function m(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function x(e,t,n,a,i,o,r,l){for(var s=m(e,t),u=[],d=[],h=[],c=[],p=[],f=[],x=[],_=g(i,t,r),w=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;St){a?i.push(r(a,s,t)):n&&i.push(r(n,s,0),r(n,s,t));break}n&&(i.push(r(n,s,0)),n=null),i.push(s),a=s}}return i}function W(e,t,n){var a=e.getVisual("visualMeta");if(a&&a.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,r=a.length-1;r>=0;r--){var l=e.getDimensionInfo(a[r].dimension);if(i=l&&l.coordDim,"x"===i||"y"===i){o=a[r];break}}if(o){var s=t.getAxis(i),u=d.Tj(o.stops,(function(e){return{coord:s.toGlobalCoord(s.dataToCoord(e.value)),color:e.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=B(u,"x"===i?n.getWidth():n.getHeight()),g=p.length;if(!g&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,y=p[0].coord-f,v=p[g-1].coord+f,m=v-y;if(m<.001)return"transparent";d.__(p,(function(e){e.offset=(e.coord-y)/m})),p.push({offset:g?p[g-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:c[0]||"transparent"});var x=new _.A(0,0,0,0,p,!0);return x[i]=y,x[i+"2"]=v,x}}}function X(e,t,n){var a=e.get("showAllSymbol"),i="auto"===a;if(!a||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!F(o,t))){var r=t.mapDimension(o.dim),l={};return d.__(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(r,e))}}}}function F(e,t){var n=e.getExtent(),a=Math.abs(n[1]-n[0])/e.scale.count();isNaN(a)&&(a=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),r=0;ra)return!1;return!0}function Y(e,t){return isNaN(e)||isNaN(t)}function H(e){for(var t=e.length/2;t>0;t--)if(!Y(e[2*t-2],e[2*t-1]))break;return t-1}function U(e,t){return[e[2*t],e[2*t+1]]}function q(e,t,n){for(var a,i,o=e.length/2,r="x"===n?0:1,l=0,s=-1,u=0;u=t||a>=t&&i<=t){s=u;break}l=u,a=i}else a=i;return{range:[l,s],t:(t-a)/(i-a)}}function Z(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var U=f.getState("emphasis").style;U.lineWidth=+f.style.lineWidth+1}(0,T.z)(f).seriesIndex=e.seriesIndex,(0,D.Lm)(f,F,Y,H);var q=O(e.get("smooth")),Z=e.get("smoothMonotone");if(f.setShape({smooth:q,smoothMonotone:Z,connectNulls:A}),y){var $=r.getCalculationInfo("stackedOnSeries"),J=0;y.useStyle(d.NT(s.getAreaStyle(),{fill:V,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),$&&(J=O($.get("smooth"))),y.setShape({smooth:q,stackedOnSmooth:J,smoothMonotone:Z,connectNulls:A}),(0,D.Mx)(y,e,"areaStyle"),(0,T.z)(y).seriesIndex=e.seriesIndex,(0,D.Lm)(y,F,Y,H)}var Q=function(e){a._changePolyState(e)};r.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=Q)})),this._polyline.onHoverStateChange=Q,this._data=r,this._coordSys=i,this._stackedOnPoints=S,this._points=u,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,f),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,t){(0,T.z)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,a){var i=e.getData(),o=S.le(i,a);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var r=i.getLayout("points"),l=i.getItemGraphicEl(o);if(!l){var s=r[2*o],u=r[2*o+1];if(isNaN(s)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,u))return;var d=e.get("zlevel")||0,h=e.get("z")||0;l=new c.A(i,o),l.x=s,l.y=u,l.setZ(d,h);var p=l.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else A.A.prototype.highlight.call(this,e,t,n,a)},t.prototype.downplay=function(e,t,n,a){var i=e.getData(),o=S.le(i,a);if(this._changePolyState("normal"),null!=o&&o>=0){var r=i.getItemGraphicEl(o);r&&(r.__temp?(i.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else A.A.prototype.downplay.call(this,e,t,n,a)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,D.Pk)(this._polyline,e),t&&(0,D.Pk)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new I.N({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new I.z({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var a,i,o=t.getBaseAxis(),r=o.inverse;"cartesian2d"===t.type?(a=o.isHorizontal(),i=!1):"polar"===t.type&&(a="angle"===o.dim,i=!0);var l=e.hostModel,s=l.get("animationDuration");d.Tn(s)&&(s=s(null));var u=l.get("animationDelay")||0,h=d.Tn(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var l=e;if(l){var c=[e.x,e.y],p=void 0,g=void 0,f=void 0;if(n)if(i){var y=n,v=t.pointToCoord(c);a?(p=y.startAngle,g=y.endAngle,f=-v[1]/180*Math.PI):(p=y.r0,g=y.r,f=v[0])}else{var m=n;a?(p=m.x,g=m.x+m.width,f=e.x):(p=m.y+m.height,g=m.y,f=e.y)}var x=g===p?0:(f-p)/(g-p);r&&(x=1-x);var _=d.Tn(u)?u(o):s*x+h,w=l.getSymbolPath(),b=w.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var a=e.getModel("endLabel");if(Z(e)){var i=e.getData(),o=this._polyline,r=i.getLayout("points");if(!r)return o.removeTextContent(),void(this._endLabel=null);var l=this._endLabel;l||(l=this._endLabel=new b.Ay({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=H(r);s>=0&&((0,N.qM)(o,(0,N.lx)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?(0,C.T)(i,n):(0,C.i)(i,e)},enableTextSetter:!0},$(a,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,a,i,o,r){var l=this._endLabel,s=this._polyline;if(l){e<1&&null==a.originalX&&(a.originalX=l.x,a.originalY=l.y);var u=n.getLayout("points"),d=n.hostModel,h=d.get("connectNulls"),c=o.get("precision"),p=o.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,v=t.shape,m=y?f?v.x:v.y+v.height:f?v.x+v.width:v.y,x=(f?p:0)*(y?-1:1),_=(f?0:-p)*(y?-1:1),w=f?"x":"y",b=q(u,m,w),I=b.range,A=I[1]-I[0],L=void 0;if(A>=1){if(A>1&&!h){var M=U(u,I[0]);l.attr({x:M[0]+x,y:M[1]+_}),i&&(L=d.getRawValue(I[0]))}else{M=s.getPointOn(m,w);M&&l.attr({x:M[0]+x,y:M[1]+_});var D=d.getRawValue(I[0]),C=d.getRawValue(I[1]);i&&(L=S.Il(n,c,D,C,b.t))}a.lastFrameIndex=I[0]}else{var T=1===e||a.lastFrameIndex>0?I[0]:0;M=U(u,T);i&&(L=d.getRawValue(T)),l.attr({x:M[0]+x,y:M[1]+_})}if(i){var P=(0,N.Lu)(l);"function"===typeof P.setLabelText&&P.setLabelText(L)}}},t.prototype._doUpdateAnimation=function(e,t,n,a,i,o,r){var l=this._polyline,s=this._polygon,u=e.hostModel,d=x(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=d.current,c=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(i&&(h=z(d.current,n,i,r),c=z(d.stackedOnCurrent,n,i,r),p=z(d.next,n,i,r),g=z(d.stackedOnNext,n,i,r)),k(h,p)>3e3||s&&k(c,g)>3e3)return l.stopAnimation(),l.setShape({points:p}),void(s&&(s.stopAnimation(),s.setShape({points:p,stackedOnPoints:g})));l.shape.__points=d.current,l.shape.points=h;var f={shape:{points:p}};d.current!==h&&(f.shape.__points=d.next),l.stopAnimation(),w.oi(l,f,u),s&&(s.setShape({points:h,stackedOnPoints:c}),s.stopAnimation(),w.oi(s,{shape:{stackedOnPoints:g}},u),l.shape.points!==s.shape.points&&(s.shape.points=l.shape.points));for(var y=[],v=d.status,m=0;m=i||m<0)break;if(u(_,w)){if(h){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](_,w),g=_,f=w;else{var b=_-c,S=w-p;if(b*b+S*S<.5){m+=o;continue}if(r>0){var I=m+o,A=t[2*I],L=t[2*I+1];while(A===_&&L===w&&x=a||u(A,L))y=_,v=w;else{N=A-c,C=L-p;var V=_-c,R=A-_,E=w-p,k=L-w,O=void 0,G=void 0;if("x"===d){O=Math.abs(V),G=Math.abs(R);var z=N>0?1:-1;y=_-z*O*r,v=w,T=_+z*G*r,P=w}else if("y"===d){O=Math.abs(E),G=Math.abs(k);var B=C>0?1:-1;y=_,v=w-B*O*r,T=_,P=w+B*G*r}else O=Math.sqrt(V*V+E*E),G=Math.sqrt(R*R+k*k),D=G/(G+O),y=_-N*r*(1-D),v=w-C*r*(1-D),T=_+N*r*D,P=w+C*r*D,T=l(T,s(A,_)),P=l(P,s(L,w)),T=s(T,l(A,_)),P=s(P,l(L,w)),N=T-_,C=P-w,y=_-N*O/G,v=w-C*O/G,y=l(y,s(c,_)),v=l(v,s(p,w)),y=s(y,l(c,_)),v=s(v,l(p,w)),N=_-y,C=w-v,T=_+N*G/O,P=w+C*G/O}e.bezierCurveTo(g,f,y,v,_,w),g=T,f=P}else e.lineTo(_,w)}c=_,p=w,m+=o}return x}var h=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),c=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return(0,a.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){var n=t.points,a=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!u(n[2*i-2],n[2*i-1]))break;for(;a=0){var _=u?(g-a)*x+a:(p-n)*x+n;return u?[e,_]:[_,e]}n=p,a=g;break;case s.C:p=l[h++],g=l[h++],f=l[h++],y=l[h++],v=l[h++],m=l[h++];var w=u?(0,r._E)(n,p,f,v,e,d):(0,r._E)(a,g,y,m,e,d);if(w>0)for(var b=0;b=0){_=u?(0,r.Yb)(a,g,y,m,S):(0,r.Yb)(n,p,f,v,S);return u?[e,_]:[_,e]}}n=v,a=m;break}}},t}(i.Ay),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.C6)(t,e),t}(h),g=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return(0,a.C6)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var n=t.points,a=t.stackedOnPoints,i=0,o=n.length/2,r=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!u(n[2*o-2],n[2*o-1]))break;for(;i0&&(s||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),i.updateData(a);var u=e.get("clip",!0)&&(0,p.Ip)(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var a=e.getData(),i=this._updateLineDraw(a,e);i.incrementalPrepareUpdate(a),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var a=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=c.reset(e,t,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,a=this._showEffect(t),d=!!t.get("polyline"),h=t.pipelineContext,c=h.large;return n&&a===this._hasEffet&&d===this._isPolyline&&c===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=c?new u.A:new i.A(d?a?s.A:l.A:a?o.A:r.A),this._hasEffet=a,this._isPolyline=d,this._isLargeDraw=c),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(g.A),y=f,v=n(47355),m=n(6006),x=n(98026),_=n(3961),w="undefined"===typeof Uint32Array?Array:Uint32Array,b="undefined"===typeof Float64Array?Array:Float64Array;function S(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=(0,x.Tj)(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),(0,x.Um)([n,e[0],e[1]])})))}var I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,a.C6)(t,e),t.prototype.init=function(t){t.data=t.data||[],S(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(S(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=(0,x.yB)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=(0,x.yB)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],a=this._flatCoordsOffset[2*e+1],i=0;i ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(v.A),A=I;function L(e){return e instanceof Array||(e=[e,e]),e}var M={seriesType:"lines",reset:function(e){var t=L(e.get("symbol")),n=L(e.get("symbolSize")),a=e.getData();function i(e,t){var n=e.getItemModel(t),a=L(n.getShallow("symbol",!0)),i=L(n.getShallow("symbolSize",!0));a[0]&&e.setItemVisual(t,"fromSymbol",a[0]),a[1]&&e.setItemVisual(t,"toSymbol",a[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",n&&n[0]),a.setVisual("toSymbolSize",n&&n[1]),{dataEach:a.hasItemOption?i:null}}},D=M;function N(e){e.registerChartView(y),e.registerSeriesModel(A),e.registerLayout(c),e.registerVisual(D)}},51906:function(e,t,n){n.d(t,{a:function(){return L}});var a=n(3087),i=n(15215),o=n(31571),r=n(8027),l=n(6666),s=n(89632),u=n(34833),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n,a){if(!a||"mapToggleSelect"!==a.type||a.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&"geoRoam"===a.type&&this._mapDraw.resetForLabelLayout(),a&&"geoRoam"===a.type&&"series"===a.componentType&&a.seriesId===e.id){o=this._mapDraw;o&&i.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new r.A(n);i.add(o.group),o.draw(e,t,n,this,a),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var a=e.originalData,i=this.group;a.each(a.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=a.getItemLayout(n);if(r&&r.point){var l=r.point,d=r.offset,h=new o.A({style:{fill:e.getData().getVisual("style").fill},shape:{cx:l[0]+9*d,cy:l[1],r:3},silent:!0,z2:8+(d?0:u.CA+1)});if(!d){var c=e.mainSeries.getData(),p=a.getName(n),g=c.indexOfName(p),f=a.getItemModel(n),y=f.getModel("label"),v=c.getItemGraphicEl(g);(0,s.qM)(h,(0,s.lx)(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(g,n)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),v.onHoverStateChange=function(e){(0,u.Pk)(h,e)}}i.add(h)}}}))},t.type="map",t}(l.A),h=d,c=n(98026),p=n(72731),g=n(47355),f=n(59458),y=n(23071),v=n(3961),m=n(62103),x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,a=n.getRegion(t);return a&&n.dataToPoint(a.getCenter())}},n}return(0,i.C6)(t,e),t.prototype.getInitialData=function(e){for(var t=(0,p.A)(this,{coordDimensions:["value"],encodeDefaulter:c.cF(y.ln,this)}),n=c.nt(),a=[],i=0,o=t.count();i-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(g.A),_=x;function w(e,t){var n={};return c.__(e,(function(e){e.each(e.mapDimension("value"),(function(t,a){var i="ec-"+e.getName(a);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(a,i){for(var o,r="ec-"+e[0].getName(i),l=0,s=1/0,u=-1/0,d=n[r].length,h=0;ha?(r=R+D*a/2,l=r):(r=R+C,l=o-C),t.setItemLayout(n,{angle:a,startAngle:r,endAngle:l,clockwise:I,cx:c,cy:p,r0:f,r:A?(0,i.Cb)(e,M,[f,g]):g}),R=o}})),Pn?r:o,d=Math.abs(s.label.y-n);if(d>=u.maxY){var h=s.label.x-t-s.len2*i,c=a+s.len,g=Math.abs(h)e.unconstrainedWidth?null:p:null;a.setStyle("width",g)}var f=a.getBoundingRect();o.width=f.width;var y=(a.style.margin||0)+2.1;o.height=f.height+y,o.y-=(o.height-h)/2}}}function D(e){return"center"===e.position}function N(e){var t,n,a=e.getData(),o=[],l=!1,s=(e.get("minShowLabelAngle")||0)*I,u=a.getLayout("viewRect"),d=a.getLayout("r"),h=u.width,c=u.x,p=u.y,g=u.height;function f(e){e.ignore=!0}function y(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}a.each((function(e){var u=a.getItemGraphicEl(e),p=u.shape,g=u.getTextContent(),v=u.getTextGuideLine(),m=a.getItemModel(e),x=m.getModel("label"),_=x.get("position")||m.get(["emphasis","label","position"]),b=x.get("distanceToLabelLine"),S=x.get("alignTo"),I=(0,i.lo)(x.get("edgeDistance"),h),A=x.get("bleedMargin"),L=m.getModel("labelLine"),M=L.get("length");M=(0,i.lo)(M,h);var D=L.get("length2");if(D=(0,i.lo)(D,h),Math.abs(p.endAngle-p.startAngle)0?"right":"left":R>0?"left":"right"}var F=Math.PI,Y=0,H=x.get("rotate");if((0,r.Et)(H))Y=H*(F/180);else if("center"===_)Y=0;else if("radial"===H||!0===H){var U=R<0?-V+F:-V;Y=U}else if("tangential"===H&&"outside"!==_&&"outer"!==_){var q=Math.atan2(R,E);q<0&&(q=2*F+q);var Z=E>0;Z&&(q=F+q),Y=q-F}if(l=!!Y,g.x=N,g.y=C,g.rotation=Y,g.setStyle({verticalAlign:"middle"}),k){g.setStyle({align:P});var j=g.states.select;j&&(j.x+=g.x,j.y+=g.y)}else{var $=g.getBoundingRect().clone();$.applyTransform(g.getComputedTransform());var J=(g.style.margin||0)+2.1;$.y-=J/2,$.height+=J,o.push({label:g,labelLine:v,position:_,len:M,len2:D,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new w.A(R,E),linePoints:T,textAlign:P,labelDistance:b,labelAlignTo:S,edgeDistance:I,bleedMargin:A,rect:$,unconstrainedWidth:$.width,labelStyleWidth:g.style.width})}u.setTextConfig({inside:k})}})),!l&&e.get("avoidLabelOverlap")&&L(o,t,n,d,h,g,c,p);for(var v=0;v0){for(var s=o.getItemLayout(0),u=1;isNaN(s&&s.startAngle)&&u=a.r0}},t.type="pie",t}(_.A),R=V,E=n(72731),k=n(48170),O=n(23071),G=n(58239),z=n(47355),B=k.$r(),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,g.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new G.A(r.oI(this.getData,this),r.oI(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,E.A)(this,{coordDimensions:["value"],encodeDefaulter:r.cF(O.ln,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),a=B(n),o=a.seats;if(!o){var r=[];n.each(n.mapDimension("value"),(function(e){r.push(e)})),o=a.seats=(0,i.kM)(r,n.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,t);return l.percent=o[t]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(e){k.M5(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(z.A),X=W,F=n(82796);function Y(e){e.registerChartView(R),e.registerSeriesModel(X),(0,a.I)("pie",e.registerAction),e.registerLayout((0,r.cF)(c,"pie")),e.registerProcessor((0,p.A)("pie")),e.registerProcessor((0,F.A)("pie"))}},59923:function(e,t,n){n.d(t,{a:function(){return C}});var a=n(3087),i=n(98026);function o(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var o=a.getIndicatorAxes();i.__(o,(function(e,i){t.each(t.mapDimension(o[i].dim),(function(e,t){n[t]=n[t]||[];var o=a.dataToPoint(e,i);n[t][i]=r(o)?o:l(a)}))})),t.each((function(e){var o=i.I6(n[e],(function(e){return r(e)}))||l(a);n[e].push(o.slice()),t.setItemLayout(e,n[e])}))}}))}function r(e){return!isNaN(e[0])&&!isNaN(e[1])}function l(e){return[e.cx,e.cy]}var s=n(78587);function u(e){var t=e.polar;if(t){i.cy(t)||(t=[t]);var n=[];i.__(t,(function(t,a){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],i.cy(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}i.__(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var d=n(15215),h=n(43199),c=n(52505),p=n(39195),g=n(5638),f=n(43870),y=n(34833),v=n(62103),m=n(6666),x=n(89632),_=n(90540),w=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,d.C6)(t,e),t.prototype.render=function(e,t,n){var a=e.coordinateSystem,o=this.group,r=e.getData(),l=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var a=v.xU(e.getItemVisual(t,"symbolSize")),i=v.v5(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:a[0]/2,scaleY:a[1]/2,rotation:o*Math.PI/180||0}),i}}function u(t,n,a,i,o,r){a.removeAll();for(var l=0;l=0&&(o[i[r].depth]=new w.A(i[r],this,t));if(a&&n){var l=(0,_.A)(a,n,this,!0,s);return l.data}function s(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,a=n.getData().getItemLayout(t);if(a){var i=a.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,a=n.getGraph().getEdgeByIndex(t),i=a.node1.getLayout();if(i){var o=i.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,a=n[e];a.localX=t[0],a.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function a(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,r=i.value,l=o.source+" -- "+o.target;return(0,b.Qx)("nameValue",{name:l,value:r,noValue:a(r)})}var s=this.getGraph().getNodeByIndex(e),u=s.getLayout().value,d=this.getDataParams(e,n).data.name;return(0,b.Qx)("nameValue",{name:null!=d?d+"":null,value:u,noValue:a(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var a=e.prototype.getDataParams.call(this,t,n);if(null==a.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(x.A),I=S,A=n(34253),L=n(48170);function M(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=D(e,t);e.layoutInfo=i;var o=i.width,r=i.height,l=e.getGraph(),s=l.nodes,u=l.edges;C(s);var d=c.pb(s,(function(e){return 0===e.getLayout().value})),h=0!==d.length?0:e.get("layoutIterations"),p=e.get("orient"),g=e.get("nodeAlign");N(s,u,n,a,o,r,h,p,g)}))}function D(e,t){return A.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function N(e,t,n,a,i,o,r,l,s){T(e,t,n,i,o,l,s),k(e,t,o,i,a,r,l),j(e,l)}function C(e){c.__(e,(function(e){var t=q(e.outEdges,U),n=q(e.inEdges,U),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)}))}function T(e,t,n,a,i,o,r){for(var l=[],s=[],u=[],d=[],h=0,c=0;c=0;v&&y.depth>p&&(p=y.depth),f.setLayout({depth:v?y.depth:h},!0),"vertical"===o?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var m=0;mh-1?p:h-1;r&&"left"!==r&&V(e,r,o,S);var I="vertical"===o?(i-n)/S:(a-n)/S;E(e,I,o)}function P(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function V(e,t,n,a){if("right"===t){var i=[],o=e,r=0;while(o.length){for(var l=0;l0;o--)s*=.99,B(l,s,r),z(l,i,n,a,r),Z(l,s,r),z(l,i,n,a,r)}function O(e,t){var n=[],a="vertical"===t?"y":"x",i=(0,L.Sq)(e,(function(e){return e.getLayout()[a]}));return i.keys.sort((function(e,t){return e-t})),c.__(i.keys,(function(e){n.push(i.buckets.get(e))})),n}function G(e,t,n,a,i,o){var r=1/0;c.__(e,(function(e){var t=e.length,l=0;c.__(e,(function(e){l+=e.getLayout().value}));var s="vertical"===o?(a-(t-1)*i)/l:(n-(t-1)*i)/l;s0&&(r=l.getLayout()[o]+s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),u=l.getLayout()[o]+l.getLayout()[h]+t;var p="vertical"===i?a:n;if(s=u-t-p,s>0){r=l.getLayout()[o]-s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0),u=r;for(c=d-2;c>=0;--c)l=e[c],s=l.getLayout()[o]+l.getLayout()[h]+t-u,s>0&&(r=l.getLayout()[o]-s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),u=l.getLayout()[o]}}))}function B(e,t,n){c.__(e.slice().reverse(),(function(e){c.__(e,(function(e){if(e.outEdges.length){var a=q(e.outEdges,W,n)/q(e.outEdges,U);if(isNaN(a)){var i=e.outEdges.length;a=i?q(e.outEdges,X,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(a-H(e,n))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(a-H(e,n))*t;e.setLayout({y:r},!0)}}}))}))}function W(e,t){return H(e.node2,t)*e.getValue()}function X(e,t){return H(e.node2,t)}function F(e,t){return H(e.node1,t)*e.getValue()}function Y(e,t){return H(e.node1,t)}function H(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function U(e){return e.getValue()}function q(e,t,n){var a=0,i=e.length,o=-1;while(++oo&&(o=t)})),c.__(n,(function(t){var n=new $.A({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),a=n.mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",a),t.setVisual("style",{fill:a}))}))}a.length&&c.__(a,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function Q(e){e.registerChartView(m),e.registerSeriesModel(I),e.registerLayout(M),e.registerVisual(J),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}},3789:function(e,t,n){n.d(t,{a:function(){return y}});var a=n(3087),i=n(15215),o=n(13637),r=n(47355),l=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,i.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(r.A),s=l,u=n(18386),d=n(94583),h=n(30682),c=n(6666),p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n){var a=e.getData(),i=this._updateSymbolDraw(a,e);i.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var a=e.getData(),i=this._updateSymbolDraw(a,e);i.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var i=(0,h.A)("").reset(e,t,n);i.progress&&i.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,a=t.pipelineContext,i=a.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new d.A:new u.A,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(c.A),g=p,f=n(69446);function y(e){(0,a.Y)(f.a),e.registerSeriesModel(s),e.registerChartView(g),e.registerLayout((0,h.A)("scatter"))}},90727:function(e,t,n){n.d(t,{a:function(){return F}});var a=n(15215),i=n(98026),o=n(6666),r=n(82980),l=n(5638),s=n(59975),u=n(34833),d=n(89632),h=n(69622),c=n(79446),p=n(23538),g=n(41589),f=n(24326),y=2,v=4,m=function(e){function t(t,n,a,i){var o=e.call(this)||this;o.z2=y,o.textConfig={inside:!0},(0,h.z)(o).seriesIndex=n.seriesIndex;var l=new r.Ay({z2:v,silent:t.getModel().get(["label","silent"])});return o.setTextContent(l),o.updateData(!0,t,n,a,i),o}return(0,a.C6)(t,e),t.prototype.updateData=function(e,t,n,a,o){this.node=t,t.piece=this,n=n||this._seriesModel,a=a||this._ecModel;var r=this;(0,h.z)(r).dataIndex=t.dataIndex;var s=t.getModel(),d=s.getModel("emphasis"),g=t.getLayout(),f=i.X$({},g);f.label=null;var y=t.getVisual("style");y.lineJoin="bevel";var v=t.getVisual("decal");v&&(y.decal=(0,p.w)(v,o));var m=(0,c.i)(s.getModel("itemStyle"),f,!0);i.X$(f,m),i.__(u.BV,(function(e){var t=r.ensureState(e),n=s.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var a=(0,c.i)(n,f);a&&(t.shape=a)})),e?(r.setShape(f),r.shape.r=g.r0,l.LW(r,{shape:{r:g.r}},n,t.dataIndex)):(l.oi(r,{shape:f},n),(0,l.ap)(r)),r.useStyle(y),this._updateLabel(n);var x=s.getShallow("cursor");x&&r.attr("cursor",x),this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel;var _=d.get("focus"),w="ancestor"===_?t.getAncestorsIndices():"descendant"===_?t.getDescendantIndices():_;(0,u.Lm)(this,w,d.get("blurScope"),d.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),a=n.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,s=Math.cos(l),h=Math.sin(l),c=this,p=c.getTextContent(),y=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,m=a.get("show")&&!(null!=v&&Math.abs(r)N&&!(0,f.dh)(T-N)&&T0?(o.virtualPiece?o.virtualPiece.updateData(!1,a,e,t,n):(o.virtualPiece=new x(a,e,t,n),u.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(u.remove(o.virtualPiece),o.virtualPiece=null)}p(h,c),y(l,s),this._initEvents(),this._oldChildren=h},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,a=e.seriesModel.getViewRoot();a.eachNode((function(a){if(!n&&a.piece&&a.piece===t.target){var i=a.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(a);else if("link"===i){var o=a.getModel(),r=o.get("link");if(r){var l=o.get("target",!0)||"_blank";(0,L.JW)(r,l)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:b,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),a=n.getItemLayout(0);if(a){var i=e[0]-a.cx,o=e[1]-a.cy,r=Math.sqrt(i*i+o*o);return r<=a.r&&r>=a.r0}},t.type="sunburst",t}(o.A),D=M,N=n(47355),C=n(15719),T=n(5202),P=n(68866),V=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return(0,a.C6)(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};R(n);var a=this._levelModels=i.Tj(e.levels||[],(function(e){return new T.A(e,this,t)}),this),o=C.A.createTree(n,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t),i=a[n.depth];return i&&(e.parentModel=i),e}))}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=(0,w.ev)(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){(0,P.A)(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(N.A);function R(e){var t=0;i.__(e.children,(function(e){R(e);var n=e.value;i.cy(n)&&(n=n[0]),t+=n}));var n=e.value;i.cy(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),i.cy(e.value)?e.value[0]=n:e.value=n}var E=V,k=Math.PI/180;function O(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),a=e.get("radius");i.cy(a)||(a=[0,a]),i.cy(t)||(t=[t,t]);var o=n.getWidth(),r=n.getHeight(),l=Math.min(o,r),s=(0,f.lo)(t[0],o),u=(0,f.lo)(t[1],r),d=(0,f.lo)(a[0],l/2),h=(0,f.lo)(a[1],l/2),c=-e.get("startAngle")*k,p=e.get("minAngle")*k,g=e.getData().tree.root,y=e.getViewRoot(),v=y.depth,m=e.get("sort");null!=m&&G(y,m);var x=0;i.__(y.children,(function(e){!isNaN(e.getValue())&&x++}));var _=y.getValue(),w=Math.PI/(_||x)*2,b=y.depth>0,S=y.height-(b?-1:1),I=(h-d)/(S||1),A=e.get("clockwise"),L=e.get("stillShowZeroSum"),M=A?1:-1,D=function(t,n){if(t){var a=n;if(t!==g){var o=t.getValue(),r=0===_&&L?w:o*w;r1)o=o.parentNode;var r=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&(0,i.Kg)(r)&&(r=(0,B.yY)(r,(e.depth-1)/(a-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),a=t.tree;a.eachNode((function(o){var r=o.getModel(),l=r.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,e,a.root.height));var s=t.ensureUniqueItemVisual(o.dataIndex,"style");(0,i.X$)(s,l)}))}))}var X=n(78587);function F(e){e.registerChartView(D),e.registerSeriesModel(E),e.registerLayout((0,i.cF)(O,"sunburst")),e.registerProcessor((0,i.cF)(X.A,"sunburst")),e.registerVisual(W),A(e)}},62722:function(e,t,n){n.d(t,{a:function(){return T}});var a=n(15215),i=n(53364),o=n(43870),r=n(5638),l=n(10992),s=n(34833),u=n(89632),d=n(98026),h=n(16563),c=n(6666),p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return(0,a.C6)(t,e),t.prototype.render=function(e,t,n){var a=e.getData(),l=this,c=this.group,p=e.getLayerSeries(),f=a.getLayout("layoutInfo"),y=f.rect,v=f.boundaryGap;function m(e){return e.name}c.x=0,c.y=y.y+v[0];var x=new h.A(this._layersSeries||[],p,m,m),_=[];function w(t,n,d){var h=l._layers;if("remove"!==t){for(var f,y,v=[],m=[],x=p[n].indices,w=0;wo&&(o=l),a.push(l)}for(var u=0;uo&&(o=h)}return{y0:i,max:o}}var C=n(78587);function T(e){e.registerChartView(f),e.registerSeriesModel(A),e.registerLayout(M),e.registerProcessor((0,C.A)("themeRiver"))}},96900:function(e,t,n){n.d(t,{a:function(){return ie}});var a=n(15215),i=n(98026),o=n(43870),r=n(5638),l=n(53849),s=n(69622),u=n(10128),d=n(34253);function h(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,a,i=[t];while(n=i.pop())if(a=n.children,n.isExpand&&a.length)for(var o=a.length,r=o-1;r>=0;r--){var l=a[r];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(l)}}function c(e,t){var n=e.isExpand?e.children:[],a=e.parentNode.children,i=e.hierNode.i?a[e.hierNode.i-1]:null;if(n.length){v(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=m(e,i,e.parentNode.hierNode.defaultAncestor||a[0],t)}function p(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function g(e){return arguments.length?e:S}function f(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function y(e,t){return d.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v(e){var t=e.children,n=t.length,a=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=a,o.hierNode.modifier+=a,i+=o.hierNode.change,a+=o.hierNode.shift+i}}function m(e,t,n,a){if(t){var i=e,o=e,r=o.parentNode.children[0],l=t,s=i.hierNode.modifier,u=o.hierNode.modifier,d=r.hierNode.modifier,h=l.hierNode.modifier;while(l=x(l),o=_(o),l&&o){i=x(i),r=_(r),i.hierNode.ancestor=e;var c=l.hierNode.prelim+h-o.hierNode.prelim-u+a(l,o);c>0&&(b(w(l,e,n),e,c),u+=c,s+=c),h+=l.hierNode.modifier,u+=o.hierNode.modifier,s+=i.hierNode.modifier,d+=r.hierNode.modifier}l&&!x(i)&&(i.hierNode.thread=l,i.hierNode.modifier+=h-s),o&&!_(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=u-d,n=e)}return n}function x(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function _(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function w(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function b(e,t,n){var a=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=a}function S(e,t){return e.parentNode===t.parentNode?1:2}var I=n(48813),A=n(56219),L=n(56366),M=n(81722),D=n(72589),N=n(24326),C=n(6666),T=n(5070),P=n(34833),V=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),R=function(e){function t(t){return e.call(this,t)||this}return(0,a.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new V},t.prototype.buildPath=function(e,t){var n=t.childPoints,a=n.length,i=t.parentPoint,o=n[0],r=n[a-1];if(1===a)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var l=t.orient,s="TB"===l||"BT"===l?0:1,u=1-s,d=(0,N.lo)(t.forkPosition,1),h=[];h[s]=i[s],h[u]=i[u]+(r[u]-i[u])*d,e.moveTo(i[0],i[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[s]=o[s],e.lineTo(h[0],h[1]),h[s]=r[s],e.lineTo(h[0],h[1]),e.lineTo(r[0],r[1]);for(var c=1;cb.x,A||(I-=Math.PI));var M=A?"left":"right",D=h.getModel("label"),N=D.get("rotate"),C=N*(Math.PI/180),T=_.getTextContent();T&&(_.setTextConfig({position:D.get("position")||M,rotation:null==N?-I:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var V=h.get(["emphasis","focus"]),R="relative"===V?i.yB(d.getAncestorsIndices(),d.getDescendantIndices()):"ancestor"===V?d.getAncestorsIndices():"descendant"===V?d.getDescendantIndices():null;R&&((0,s.z)(n).focus=R),G(o,d,g,n,m,v,x,a),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var a=d.parentNode&&e.getItemGraphicEl(d.parentNode.dataIndex);a&&a.hoverState===P.zX||(0,P.Pk)(n.__edge,t)}})}function G(e,t,n,a,o,s,u,d){var h=t.getModel(),c=e.get("edgeShape"),p=e.get("layout"),g=e.getOrient(),f=e.get(["lineStyle","curveness"]),y=e.get("edgeForkPosition"),v=h.getModel("lineStyle").getLineStyle(),m=a.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(m||(m=a.__edge=new l.A({shape:X(p,g,f,o,o)})),r.oi(m,{shape:X(p,g,f,s,u)},e));else if("polyline"===c)if("orthogonal"===p){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var x=t.children,_=[],w=0;wr&&(r=e.depth)}));var l=e.expandAndCollapse,s=l&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=s})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var a=this.getData().tree,i=a.root.children[0],o=a.getNodeByDataIndex(e),r=o.getValue(),l=o.name;while(o&&o!==i)l=o.parentNode.name+"."+l,o=o.parentNode;return(0,q.Qx)("nameValue",{name:l,value:r,noValue:isNaN(r)||null==r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=(0,Z.ev)(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Y.A),$=j;function J(e,t,n){var a,i=[e],o=[];while(a=i.pop())if(o.push(a),a.isExpand){var r=a.children;if(r.length)for(var l=0;l=0;o--)a.push(i[o])}}function K(e,t){e.eachSeriesByType("tree",(function(e){ee(e,t)}))}function ee(e,t){var n=y(e,t);e.layoutInfo=n;var a=e.get("layout"),i=0,o=0,r=null;"radial"===a?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,r=g((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,r=g());var l=e.getData().tree.root,s=l.children[0];if(s){h(l),J(s,c,r),l.hierNode.modifier=-s.hierNode.prelim,Q(s,p);var u=s,d=s,v=s;Q(s,(function(e){var t=e.getLayout().x;td.getLayout().x&&(d=e),e.depth>v.depth&&(v=e)}));var m=u===d?1:r(u,d)/2,x=m-u.getLayout().x,_=0,w=0,b=0,S=0;if("radial"===a)_=i/(d.getLayout().x+m+x),w=o/(v.depth-1||1),Q(s,(function(e){b=(e.getLayout().x+x)*_,S=(e.depth-1)*w;var t=f(b,S);e.setLayout({x:t.x,y:t.y,rawX:b,rawY:S},!0)}));else{var I=e.getOrient();"RL"===I||"LR"===I?(w=o/(d.getLayout().x+m+x),_=i/(v.depth-1||1),Q(s,(function(e){S=(e.getLayout().x+x)*w,b="LR"===I?(e.depth-1)*_:i-(e.depth-1)*_,e.setLayout({x:b,y:S},!0)}))):"TB"!==I&&"BT"!==I||(_=i/(d.getLayout().x+m+x),w=o/(v.depth-1||1),Q(s,(function(e){b=(e.getLayout().x+x)*_,S="TB"===I?(e.depth-1)*w:o-(e.depth-1)*w,e.setLayout({x:b,y:S},!0)})))}}}function te(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),a=n.getModel("itemStyle").getItemStyle(),o=t.ensureUniqueItemVisual(e.dataIndex,"style");(0,i.X$)(o,a)}))}))}var ne=n(78536);function ae(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,a=t.getData().tree,i=a.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var a=t.coordinateSystem,i=(0,ne.f)(a,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function ie(e){e.registerChartView(F),e.registerSeriesModel($),e.registerLayout(K),e.registerVisual(te),ae(e)}},84510:function(e,t,n){n.d(t,{a:function(){return Ge}});var a=n(41616),i=n(98026),o=["treemapZoomToNode","treemapRender","treemapMove"];function r(e){for(var t=0;t=0;f--){var y=p[f],v=y.node,m=y.width,x=y.text;c>h.width&&(c-=m-u,m=u,x=null);var _=new S.A({shape:{points:T(s,0,m,d,f===p.length-1,0===f)},style:(0,i.NT)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new I.Ay({style:(0,L.VB)(o,{text:x})}),textConfig:{position:"inside"},z2:1e4*w.CA,onclick:(0,i.cF)(l,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=(0,L.VB)(r,{text:x}),_.ensureState("emphasis").style=g,(0,w.Lm)(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),P(_,e,v),s+=m+D}},e.prototype.remove=function(){this.group.removeAll()},e}();function T(e,t,n,a,i,o){var r=[[i?e:e-N,t],[e+n,t],[e+n,t+a],[i?e:e-N,t+a]];return!o&&r.splice(2,0,[e+n+N,t+a/2]),!i&&r.push([e,t+a/2]),r}function P(e,t,n){(0,_.z)(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&(0,a.ev)(n,t)}}var V=C,R=n(81722),E=n(29308),k=n(45587),O=n(63253),G=n(32944),z=n(6666),B=n(71519),W=n(83412),X=m.A,F=x.A,Y=3,H="label",U="upperLabel",q=10*w.CA,Z=2*w.CA,j=3*w.CA,$=(0,G.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),J=function(e){var t=$(e);return t.stroke=t.fill=t.lineWidth=null,t},Q=(0,h.$r)(),K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=ee(),n}return(0,l.C6)(t,e),t.prototype.render=function(e,t,n,o){var r=t.findComponents({mainType:"series",subType:"treemap",query:o});if(!((0,i.qh)(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var l=["treemapZoomToNode","treemapRootToNode"],s=a.mw(o,l,e),u=o&&o.type,d=e.layoutInfo,h=!this._oldTree,c=this._storage,p="treemapRootToNode"===u&&s&&c?{rootNodeGroup:c.nodeGroup[s.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(d),f=e.get("animation"),y=this._doRender(g,e,p);!f||h||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?y.renderFinally():this._doAnimation(g,y,e,p),this._resetController(n),this._renderBreadcrumb(e,n,s)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new X,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var a=t.getData().tree,o=this._oldTree,r=ee(),l=ee(),s=this._storage,u=[];function d(e,a,i,o){return te(t,l,s,n,r,u,e,a,i,o)}c(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var h=p(s);return this._oldTree=a,this._storage=l,{lastsForAnimation:r,willDeleteEls:h,renderFinally:g};function c(e,t,n,a,o){function r(e){return e.getId()}function l(i,r){var l=null!=i?e[i]:null,s=null!=r?t[r]:null,u=d(l,s,n,o);u&&c(l&&l.viewChildren||[],s&&s.viewChildren||[],u,a,o+1)}a?(t=e,(0,i.__)(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new b.A(t,e,r,r).add(l).update(l).remove((0,i.cF)(l,null)).execute()}function p(e){var t=ee();return e&&(0,i.__)(e,(function(e,n){var a=t[n];(0,i.__)(e,(function(e){e&&(a.push(e),Q(e).willDelete=!0)}))})),t}function g(){(0,i.__)(h,(function(e){(0,i.__)(e,(function(e){e.parent&&e.parent.remove(e)}))})),(0,i.__)(u,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,a){var o=n.get("animationDurationUpdate"),r=n.get("animationEasing"),l=((0,i.Tn)(o)?0:o)||0,s=((0,i.Tn)(r)?null:r)||"cubicOut",u=O.x();(0,i.__)(t.willDeleteEls,(function(e,t){(0,i.__)(e,(function(e,n){if(!e.invisible){var i,o=e.parent,r=Q(o);if(a&&"drillDown"===a.direction)i=o===a.rootNodeGroup?{shape:{x:0,y:0,width:r.nodeWidth,height:r.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,h=0;r.willDelete||(d=r.nodeWidth/2,h=r.nodeHeight/2),i="nodeGroup"===t?{x:d,y:h,style:{opacity:0}}:{shape:{x:d,y:h,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,l,0,s)}}))})),(0,i.__)(this._storage,(function(e,n){(0,i.__)(e,(function(e,a){var o=t.lastsForAnimation[n][a],r={};o&&(e instanceof m.A?null!=o.oldX&&(r.x=e.x,r.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(r.shape=(0,i.X$)({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),u.add(e,r,l,0,s))}))}),this),this._state="animating",u.finished((0,i.oI)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new R.A(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",(0,i.oI)(this._onPan,this)),t.on("zoom",(0,i.oI)(this._onZoom,this)));var n=new E.A(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,a){return n.contain(t,a)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>Y||Math.abs(e.dy)>Y)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;var o=new E.A(i.x,i.y,i.width,i.height),r=this.seriesModel.layoutInfo;t-=r.x,n-=r.y;var l=k.vt();k.Tl(l,l,[-t,-n]),k.hs(l,l,[e.scale,e.scale]),k.Tl(l,l,[t,n]),o.applyTransform(l),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var a=t.findTarget(e.offsetX,e.offsetY);if(a){var i=a.node;if(i.getLayout().isLeafRoot)t._rootToNode(a);else if("zoomToNode"===n)t._zoomToNode(a);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),r=o.get("link",!0),l=o.get("target",!0)||"blank";r&&(0,W.JW)(r,l)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new V(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(a.x5(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ee(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},(function(a){var i=this._storage.background[a.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),r=i.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;n={node:a,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(z.A);function ee(){return{nodeGroup:[],background:[],content:[]}}function te(e,t,n,a,o,r,l,s,u,d){if(l){var c=l.getLayout(),p=e.getData(),g=l.getModel();if(p.setItemGraphicEl(l.dataIndex,null),c&&c.isInView){var f=c.width,y=c.height,v=c.borderWidth,x=c.invisible,b=l.getRawIndex(),S=s&&s.getRawIndex(),I=l.viewChildren,A=c.upperHeight,M=I&&I.length,D=g.getModel("itemStyle"),N=g.getModel(["emphasis","itemStyle"]),C=g.getModel(["blur","itemStyle"]),T=g.getModel(["select","itemStyle"]),P=D.get("borderRadius")||0,V=ae("nodeGroup",X);if(V){if(u.add(V),V.x=c.x||0,V.y=c.y||0,V.markRedraw(),Q(V).nodeWidth=f,Q(V).nodeHeight=y,c.isAboveViewRoot)return V;var R=ae("background",F,d,Z);R&&Y(V,R,M&&c.upperLabelHeight);var E=g.getModel("emphasis"),k=E.get("focus"),O=E.get("blurScope"),G=E.get("disabled"),z="ancestor"===k?l.getAncestorsIndices():"descendant"===k?l.getDescendantIndices():k;if(M)(0,w.u6)(V)&&(0,w.ix)(V,!1),R&&((0,w.ix)(R,!G),p.setItemGraphicEl(l.dataIndex,R),(0,w.gR)(R,z,O));else{var W=ae("content",F,d,j);W&&q(V,W),R.disableMorphing=!0,R&&(0,w.u6)(R)&&(0,w.ix)(R,!1),(0,w.ix)(V,!G),p.setItemGraphicEl(l.dataIndex,V),(0,w.gR)(V,z,O)}return V}}}function Y(t,n,a){var i=(0,_.z)(n);if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:y,r:P}),x)K(n);else{n.invisible=!1;var o=l.getVisual("style"),r=o.stroke,s=J(D);s.fill=r;var u=$(N);u.fill=N.get("borderColor");var d=$(C);d.fill=C.get("borderColor");var h=$(T);if(h.fill=T.get("borderColor"),a){var c=f-2*v;ee(n,r,o.opacity,{x:v,y:0,width:c,height:A})}else n.removeTextContent();n.setStyle(s),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=h,(0,w.DW)(n)}t.add(n)}function q(t,n){var a=(0,_.z)(n);a.dataIndex=l.dataIndex,a.seriesIndex=e.seriesIndex;var i=Math.max(f-2*v,0),o=Math.max(y-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:i,height:o,r:P}),x)K(n);else{n.invisible=!1;var r=l.getVisual("style"),s=r.fill,u=J(D);u.fill=s,u.decal=r.decal;var d=$(N),h=$(C),c=$(T);ee(n,s,r.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=d,n.ensureState("blur").style=h,n.ensureState("select").style=c,(0,w.DW)(n)}t.add(n)}function K(e){!e.invisible&&r.push(e)}function ee(t,n,a,o){var r=g.getModel(o?U:H),s=(0,h.vS)(g.get("name"),null),u=r.getShallow("show");(0,L.qM)(t,(0,L.lx)(g,o?U:H),{defaultText:u?s:null,inheritColor:n,defaultOpacity:a,labelFetcher:e,labelDataIndex:l.dataIndex});var d=t.getTextContent();if(d){var p=d.style,f=(0,i.QX)(p.padding||0);o&&(t.setTextConfig({layoutRect:o}),d.disableLabelLayout=!0),d.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-f[1]-f[3],0),n=Math.max((o?o.height:t.shape.height)-f[0]-f[2],0);p.width===e&&p.height===n||d.setStyle({width:e,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",te(p,o,c);var y=d.getState("emphasis");te(y?y.style:null,o,c)}}function te(t,n,a){var i=t?t.text:null;if(!n&&a.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function ae(e,a,i,r){var l=null!=S&&n[e][S],s=o[e];return l?(n[e][S]=null,ie(s,l)):x||(l=new a,l instanceof B.Ay&&(l.z2=ne(i,r)),oe(s,l)),t[e][b]=l}function ie(e,t){var n=e[b]={};t instanceof X?(n.oldX=t.x,n.oldY=t.y):n.oldShape=(0,i.X$)({},t.shape)}function oe(e,t){var n=e[b]={},i=l.parentNode,r=t instanceof m.A;if(i&&(!a||"drillDown"===a.direction)){var s=0,u=0,d=o.background[i.getRawIndex()];!a&&d&&d.oldShape&&(s=d.oldShape.width,u=d.oldShape.height),r?(n.oldX=0,n.oldY=u):n.oldShape={x:s,y:u,width:0,height:0}}n.fadein=!r}}function ne(e,t){return e*q+t}var ae=K,ie=n(7857),oe=n(47698),re="itemStyle",le=(0,h.$r)(),se={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||ue(n,{},e.getViewRoot().getAncestors(),e)}};function ue(e,t,n,a){var o=e.getModel(),r=e.getLayout(),l=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,u=o.getModel(re),d=de(u,t,a),h=l.ensureUniqueItemVisual(e.dataIndex,"style"),c=u.get("borderColor"),p=u.get("borderColorSaturation");null!=p&&(s=he(d),c=ce(p,s)),h.stroke=c;var g=e.viewChildren;if(g&&g.length){var f=ge(e,o,r,u,d,g);(0,i.__)(g,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var i=ye(o,d,e,t,f,a);ue(e,i,n,a)}}))}else s=he(d),h.fill=s}}function de(e,t,n){var a=(0,i.X$)({},t),o=n.designatedVisualItemStyle;return(0,i.__)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var i=e.get(n);o[n]=null,null!=i&&(a[n]=i)})),a}function he(e){var t=pe(e,"color");if(t){var n=pe(e,"colorAlpha"),a=pe(e,"colorSaturation");return a&&(t=(0,oe.Yu)(t,null,null,a)),n&&(t=(0,oe.hm)(t,n)),t}}function ce(e,t){return null!=t?(0,oe.Yu)(t,null,null,e):null}function pe(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function ge(e,t,n,a,i,o){if(o&&o.length){var r=fe(t,"color")||null!=i.color&&"none"!==i.color&&(fe(t,"colorAlpha")||fe(t,"colorSaturation"));if(r){var l=t.get("visualMin"),s=t.get("visualMax"),u=n.dataExtent.slice();null!=l&&lu[1]&&(u[1]=s);var d=t.get("colorMappingBy"),h={type:r.name,dataExtent:u,visual:r.range};"color"!==h.type||"index"!==d&&"id"!==d?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var c=new ie.A(h);return le(c).drColorMappingBy=d,c}}}function fe(e,t){var n=e.get(t);return(0,i.cy)(n)&&n.length?{name:t,range:n}:null}function ye(e,t,n,a,o,r){var l=(0,i.X$)({},t);if(o){var s=o.type,u="color"===s&&le(o).drColorMappingBy,d="index"===u?a:"id"===u?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));l[s]=o.mapValueToVisual(d)}return l}var ve=n(24326),me=Math.max,xe=Math.min,_e=i.Je,we=i.__,be=["itemStyle","borderWidth"],Se=["itemStyle","gapWidth"],Ie=["upperLabel","show"],Ae=["upperLabel","height"],Le={seriesType:"treemap",reset:function(e,t,n,o){var r=n.getWidth(),l=n.getHeight(),s=e.option,u=A.dV(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),d=s.size||[],h=(0,ve.lo)(_e(u.width,d[0]),r),c=(0,ve.lo)(_e(u.height,d[1]),l),p=o&&o.type,g=["treemapZoomToNode","treemapRootToNode"],f=a.mw(o,g,e),y="treemapRender"===p||"treemapMove"===p?o.rootRect:null,v=e.getViewRoot(),m=a.bl(v);if("treemapMove"!==p){var x="treemapZoomToNode"===p?Re(e,f,v,h,c):y?[y.width,y.height]:[h,c],_=s.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var w={squareRatio:s.squareRatio,sort:_,leafDepth:s.leafDepth};v.hostTree.clearLayouts();var b={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};v.setLayout(b),Me(v,w,!1,0),b=v.getLayout(),we(m,(function(e,t){var n=(m[t+1]||v).getValue();e.setLayout(i.X$({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var S=e.getData().tree.root;S.setLayout(Ee(u,y,f),!0),e.setLayoutInfo(u),ke(S,new E.A(-u.x,-u.y,r,l),m,v,0)}};function Me(e,t,n,a){var i,o;if(!e.isRemoved()){var r=e.getLayout();i=r.width,o=r.height;var l=e.getModel(),s=l.get(be),u=l.get(Se)/2,d=Oe(l),h=Math.max(s,d),c=s-u,p=h-u;e.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:d},!0),i=me(i-2*c,0),o=me(o-c-p,0);var g=i*o,f=De(e,l,g,t,n,a);if(f.length){var y={x:c,y:p,width:i,height:o},v=xe(i,o),m=1/0,x=[];x.area=0;for(var _=0,w=f.length;_=0;s--){var u=i["asc"===a?r-s-1:s].getValue();u/n*tr[1]&&(r[1]=t)}))):r=[NaN,NaN],{sum:a,dataExtent:r}}function Pe(e,t,n){for(var a=0,i=1/0,o=0,r=void 0,l=e.length;oa&&(a=r));var s=e.area*e.area,u=t*t*n;return s?me(u*a/s,s/(u*i)):1/0}function Ve(e,t,n,a,i){var o=t===n.width?0:1,r=1-o,l=["x","y"],s=["width","height"],u=n[l[o]],d=t?e.area/t:0;(i||d>n[s[r]])&&(d=n[s[r]]);for(var h=0,c=e.length;hve.Is&&(u=ve.Is),r=o}u