@perses-dev/status-history-chart-plugin 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/StatusHistoryChart.5b8469b5.js +6 -0
- package/__mf/js/async/{964.69ec877e.js → 121.17e95c0f.js} +2 -2
- package/__mf/js/async/153.a05b947a.js +2 -0
- package/__mf/js/async/{488.f8727193.js → 177.8e51631b.js} +1 -1
- package/__mf/js/async/{882.d579a0a9.js → 189.fb5828be.js} +2 -2
- package/__mf/js/async/192.8fa94a82.js +1 -0
- package/__mf/js/async/2.7f4594b1.js +1 -0
- package/__mf/js/async/235.59e4cd91.js +1 -0
- package/__mf/js/async/274.6a9f4c88.js +2 -0
- package/__mf/js/async/283.94f964e7.js +1 -0
- package/__mf/js/async/356.dfb4c773.js +1 -0
- package/__mf/js/async/392.0b29b077.js +2 -0
- package/__mf/js/async/470.a6095e83.js +2 -0
- package/__mf/js/async/490.74645007.js +39 -0
- package/__mf/js/async/501.1e94e650.js +22 -0
- package/__mf/js/async/525.9b8b1f1d.js +2 -0
- package/__mf/js/async/{62.bfb773d9.js → 558.df5de61b.js} +1 -1
- package/__mf/js/async/{214.b0f929ef.js → 587.4f01f05a.js} +1 -1
- package/__mf/js/async/588.3d58e41b.js +1 -0
- package/__mf/js/async/616.1c080169.js +1 -0
- package/__mf/js/async/623.a8ebcf5c.js +1 -0
- package/__mf/js/async/644.cbae4105.js +110 -0
- package/__mf/js/async/71.a42c00bc.js +1 -0
- package/__mf/js/async/790.6a647c6c.js +7 -0
- package/__mf/js/async/873.937a61ba.js +1 -0
- package/__mf/js/async/941.2e8dd304.js +2 -0
- package/__mf/js/async/{738.4ab65b65.js → 968.c21f2475.js} +1 -1
- package/__mf/js/async/978.563a3078.js +1 -0
- package/__mf/js/async/__federation_expose_StatusHistoryChart.8d3d006b.js +23 -0
- package/__mf/js/async/lib-router.9ccc993b.js +2 -0
- package/__mf/js/main.e25dd75c.js +6 -0
- package/lib/StatusHistoryChartBase.d.ts.map +1 -1
- package/lib/StatusHistoryChartBase.js +13 -4
- package/lib/StatusHistoryChartBase.js.map +1 -1
- package/lib/StatusHistoryChartOptionsEditorSettings.js +1 -1
- package/lib/StatusHistoryChartOptionsEditorSettings.js.map +1 -1
- package/lib/StatusHistoryPanel.d.ts.map +1 -1
- package/lib/StatusHistoryPanel.js +2 -5
- package/lib/StatusHistoryPanel.js.map +1 -1
- package/lib/bootstrap.js +1 -1
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/StatusHistoryChartBase.js +11 -2
- package/lib/cjs/StatusHistoryPanel.js +1 -4
- package/lib/cjs/index-federation.js +12 -12
- package/lib/cjs/utils/get-color.js +6 -6
- package/mf-manifest.json +34 -34
- package/mf-stats.json +34 -34
- package/package.json +4 -4
- package/__mf/js/StatusHistoryChart.fe2d194a.js +0 -5
- package/__mf/js/async/168.acdd5953.js +0 -2
- package/__mf/js/async/173.2ad23420.js +0 -2
- package/__mf/js/async/178.f17e88a4.js +0 -22
- package/__mf/js/async/224.e11df4e6.js +0 -1
- package/__mf/js/async/238.9bd2d0b1.js +0 -1
- package/__mf/js/async/292.e14321fa.js +0 -1
- package/__mf/js/async/409.ada82acc.js +0 -1
- package/__mf/js/async/47.1ab6c914.js +0 -39
- package/__mf/js/async/491.a1482b95.js +0 -110
- package/__mf/js/async/651.2ea2eabf.js +0 -1
- package/__mf/js/async/679.04e9e73d.js +0 -1
- package/__mf/js/async/694.901f7598.js +0 -1
- package/__mf/js/async/740.d6f90a72.js +0 -1
- package/__mf/js/async/75.f12728d5.js +0 -1
- package/__mf/js/async/750.03619521.js +0 -2
- package/__mf/js/async/770.2717fe6a.js +0 -1
- package/__mf/js/async/85.752697a3.js +0 -7
- package/__mf/js/async/863.a96e3b8c.js +0 -2
- package/__mf/js/async/960.fb944311.js +0 -2
- package/__mf/js/async/980.d85dbf86.js +0 -1
- package/__mf/js/async/981.f9bb8f5d.js +0 -2
- package/__mf/js/async/__federation_expose_StatusHistoryChart.ed6afeef.js +0 -23
- package/__mf/js/async/lib-router.c60b631c.js +0 -2
- package/__mf/js/main.a792e1da.js +0 -5
- /package/__mf/css/async/{263.d3010b86.css → 442.d3010b86.css} +0 -0
- /package/__mf/css/async/{341.d3010b86.css → 61.d3010b86.css} +0 -0
- /package/__mf/css/async/{759.d3010b86.css → 823.d3010b86.css} +0 -0
- /package/__mf/js/async/{964.69ec877e.js.LICENSE.txt → 121.17e95c0f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{168.acdd5953.js.LICENSE.txt → 153.a05b947a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{882.d579a0a9.js.LICENSE.txt → 189.fb5828be.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{960.fb944311.js.LICENSE.txt → 274.6a9f4c88.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{981.f9bb8f5d.js.LICENSE.txt → 392.0b29b077.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{173.2ad23420.js.LICENSE.txt → 470.a6095e83.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{47.1ab6c914.js.LICENSE.txt → 490.74645007.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{178.f17e88a4.js.LICENSE.txt → 501.1e94e650.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{750.03619521.js.LICENSE.txt → 525.9b8b1f1d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{491.a1482b95.js.LICENSE.txt → 644.cbae4105.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{85.752697a3.js.LICENSE.txt → 790.6a647c6c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{863.a96e3b8c.js.LICENSE.txt → 941.2e8dd304.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.c60b631c.js.LICENSE.txt → lib-router.9ccc993b.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.chunk_StatusHistoryChart=self.chunk_StatusHistoryChart||[]).push([["623"],{39952:function(e,t,n){n.d(t,{$:()=>l,L:()=>function e(t,n,l){if(l.isAnimationEnabled()&&n){if((0,i.isArray)(n))return void(0,i.each)(n,function(n){e(t,n,l)});var u=n.keyframes,c=n.duration;if(l&&null==c){var h=(0,r.Jw)("enter",l,0);c=h&&h.duration}if(u&&c){var d=a(t);(0,i.each)(o.rd,function(e){var o;e&&!t[e]||(u.sort(function(e,t){return e.percent-t.percent}),(0,i.each)(u,function(r){var a=t.animators,l=e?r[e]:r;if(l){var u=(0,i.keys)(l);if(e||(u=(0,i.filter)(u,function(e){return 0>(0,i.indexOf)(s,e)})),u.length){o||((o=t.animate(e,n.loop,!0)).scope="keyframe");for(var h=0;h<a.length;h++)a[h]!==o&&a[h].targetName===o.targetName&&a[h].stopTracks(u);e&&(d[e]=d[e]||{});var p=e?d[e]:d;(0,i.each)(u,function(n){p[n]=((e?t[e]:t)||{})[n]}),o.whenWithKeys(c*r.percent,l,u,r.easing)}}}),o&&o.delay(n.delay||0).duration(c).start(n.easing))})}}}});var i=n(4884),o=n(24707),r=n(68532),a=(0,n(84124).$r)(),s=["percent","easing","shape","style","extra"];function l(e){e.stopAnimation("keyframe"),e.attr(a(e))}},24707:function(e,t,n){n.d(t,{aB:()=>m,h8:()=>y,ho:()=>v,rd:()=>d,rh:()=>f});var i=n(84124),o=n(4884),r=n(83390),a=n(38513),s=n(68532),l=n(30070),u=n(5486),c={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},h=(0,o.keys)(c);(0,o.reduce)(u.Wx,function(e,t){return e[t]=1,e},{}),u.Wx.join(", ");var d=["","style","shape","extra"],p=(0,i.$r)();function g(e,t,n,i,r){var a=e+"Animation",l=(0,s.Jw)(e,i,r)||{},u=p(t).userDuring;return l.duration>0&&(l.during=u?(0,o.bind)(S,{el:t,userDuring:u}):null,l.setToFinal=!0,l.scope=e),(0,o.extend)(l,n[a]),l}function f(e,t,n,r){var s,f,y=(r=r||{}).dataIndex,x=r.isInit,b=r.clearStyle,S=n.isAnimationEnabled(),w=p(e),M=t.style;w.userDuring=t.during;var I={},C={};if(function(e,t,n){for(var i=0;i<h.length;i++){var o=h[i],r=c[o],a=t[o];a&&(n[r[0]]=a[0],n[r[1]]=a[1])}for(var i=0;i<u.Wx.length;i++){var s=u.Wx[i];null!=t[s]&&(n[s]=t[s])}}(0,t,C),_("shape",t,C),_("extra",t,C),!x&&S&&(function(e,t,n){for(var o=t.transition,r=v(o)?u.Wx:(0,i.qB)(o||[]),a=0;a<r.length;a++){var s=r[a];if("style"!==s&&"shape"!==s&&"extra"!==s){var l=e[s];n[s]=l}}}(e,t,I),A("shape",e,t,I),A("extra",e,t,I),function(e,t,n,r){if(n){var a,s=e.style;if(s){var l=n.transition,u=t.transition;if(l&&!v(l)){var c=(0,i.qB)(l);a||(a=r.style={});for(var h=0;h<c.length;h++){var d=c[h],p=s[d];a[d]=p}}else if(e.getAnimationStyleProps&&(v(u)||v(l)||(0,o.indexOf)(u,"style")>=0)){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){a||(a=r.style={});for(var m=(0,o.keys)(n),h=0;h<m.length;h++){var d=m[h];if(f[d]){var p=s[d];a[d]=p}}}}}}}(e,t,M,I)),C.style=M,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var o=e.animators,r=0;r<o.length;r++){var a=o[r];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,C,b),s=e,f=t,(0,o.hasOwn)(f,"silent")&&(s.silent=f.silent),(0,o.hasOwn)(f,"ignore")&&(s.ignore=f.ignore),s instanceof a.Ay&&(0,o.hasOwn)(f,"invisible")&&(s.invisible=f.invisible),s instanceof l.Ay&&(0,o.hasOwn)(f,"autoBatch")&&(s.autoBatch=f.autoBatch),S)if(x){var D={};(0,o.each)(d,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(D[e]=D[e]||{}),(0,o.extend)(e?D[e]:D,n.enterFrom))});var O=g("enter",e,t,n,y);O.duration>0&&e.animateFrom(D,O)}else{var L=e,T=t,k=y||0,P=n,N=I;if(N){var R=g("update",L,T,P,k);R.duration>0&&L.animateFrom(N,R)}}m(e,t),M?e.dirty():e.markRedraw()}function m(e,t){for(var n=p(e).leaveToProps,i=0;i<d.length;i++){var r=d[i],a=r?t[r]:t;a&&a.leaveTo&&(n||(n=p(e).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,o.extend)(r?n[r]:n,a.leaveTo))}}function y(e,t,n,i){if(e){var o=e.parent,r=p(e).leaveToProps;if(r){var a=g("update",e,t,n,0);a.done=function(){o.remove(e),i&&i()},e.animateTo(r,a)}else o.remove(e),i&&i()}}function v(e){return"all"===e}var x={},b={setTransform:function(e,t){return x.el[e]=t,this},getTransform:function(e){return x.el[e]},setShape:function(e,t){var n=x.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=x.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=x.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=x.el.style;if(t)return t[e]},setExtra:function(e,t){return(x.el.extra||(x.el.extra={}))[e]=t,this},getExtra:function(e){var t=x.el.extra;if(t)return t[e]}};function S(){var e=this.el;if(e){var t=p(e).userDuring,n=this.userDuring;if(t!==n){this.el=this.userDuring=null;return}x.el=e,n(b)}}function A(e,t,n,r){var a,s=n[e];if(s){var l=t[e];if(l){var u=n.transition,c=s.transition;if(c)if(a||(a=r[e]={}),v(c))(0,o.extend)(a,l);else for(var h=(0,i.qB)(c),d=0;d<h.length;d++){var p=h[d],g=l[p];a[p]=g}else if(v(u)||(0,o.indexOf)(u,e)>=0){a||(a=r[e]={});for(var f=(0,o.keys)(l),d=0;d<f.length;d++){var m,y,p=f[d],g=l[p];m=s[p],y=g,((0,o.isArrayLike)(m)?m!==y:null!=m&&isFinite(m))&&(a[p]=g)}}}}}function _(e,t,n){var i=t[e];if(i)for(var a=n[e]={},s=(0,o.keys)(i),l=0;l<s.length;l++){var u=s[l];a[u]=(0,r.F)(i[u])}}},77774:function(e,t,n){n.d(t,{A:()=>l});var i=n(31831),o=n(55785),r=n(43059),a=n(4884),s=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.getInitialData=function(e,t){return(0,r.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),r=i.dataToPoint(o);if(n)(0,a.each)(i.getAxes(),function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),!(i.length<2)){if(2===i.length){r[n]=e.toGlobalCoord(e.getExtent()[+!!l]);return}for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,g=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(g===s){c=p;break}if(g<s)u=p;else if(null!=u&&g>s){c=(p+u)/2;break}1===d&&(h=g-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),r[n]=e.toGlobalCoord(c)}}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=+!i.getBaseAxis().isHorizontal();r[c]+=l+u/2}return r}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(o.A);o.A.registerClass(s);let l=s},31373:function(e,t,n){n.d(t,{a:()=>q});var i=n(4884),o=n(30730),r=n(50821),a=n(31831),s=n(77774),l=n(43059),u=n(3818),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,a.C6)(t,e),t.prototype.getInitialData=function(){return(0,l.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,u.G_)(s.A.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}),t}(s.A),h=n(30070),d=n(79620),p=n(59033),g=n(68532),f=n(63811),m=n(23917),y=n(35032),v=n(72059),x=n(73394),b=n(89425),S=n(55037),A=n(88556),_=n(31440),w=n(43139),M=n(18538),I=n(23960);function C(e,t,n){return t*Math.sin(e)*(n?-1:1)}function D(e,t,n){return t*Math.cos(e)*(n?1:-1)}var O=n(27108),L=Math.max,T=Math.min,k=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return(0,a.C6)(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){(0,p.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var o,r=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?o=u.isHorizontal():"polar"===l.type&&(o="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);h&&this._enableRealtimeSort(h,a,n);var p=e.get("clip",!0)||h,y=function(e,t){var n=e.getArea&&e.getArea();if((0,w.g)(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var o=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(l,a);r.removeClipPath();var v=e.get("roundCap",!0),b=e.get("showBackground",!0),S=e.getModel("backgroundStyle"),A=S.get("borderRadius")||0,_=[],M=this._backgroundEls,I=i&&i.isInitSort,C=i&&"changeAxisOrder"===i.type;function D(e){var t,n,i,r=G[l.type](a,e),s=(t=l,n=o,i=r,new("polar"===t.type?m.A:f.A)({shape:U(n,i,t),silent:!0,z2:0}));return s.useStyle(S.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",A):s.setShape("cornerRadius",A),_[e]=s,s}a.diff(s).add(function(t){var n=a.getItemModel(t),i=G[l.type](a,t,n);if(b&&D(t),a.hasValue(t)&&B[l.type](i)){var s=!1;p&&(s=P[l.type](y,i));var d=N[l.type](e,a,t,i,o,c,u.model,!1,v);h&&(d.forceLabelAnimation=!0),F(d,a,t,n,i,e,o,"polar"===l.type),I?d.attr({shape:i}):h?R(h,c,d,i,t,o,!1,!1):(0,g.LW)(d,{shape:i},e,t),a.setItemGraphicEl(t,d),r.add(d),d.ignore=s}}).update(function(t,n){var i=a.getItemModel(t),d=G[l.type](a,t,i);if(b){var f=void 0;0===M.length?f=D(n):((f=M[n]).useStyle(S.getItemStyle()),"cartesian2d"===l.type?f.setShape("r",A):f.setShape("cornerRadius",A),_[t]=f);var m=G[l.type](a,t),w=U(o,m,l);(0,g.oi)(f,{shape:w},c,t)}var O=s.getItemGraphicEl(n);if(!a.hasValue(t)||!B[l.type](d))return void r.remove(O);var L=!1;if(p&&(L=P[l.type](y,d))&&r.remove(O),O?(0,g.ap)(O):O=N[l.type](e,a,t,d,o,c,u.model,!!O,v),h&&(O.forceLabelAnimation=!0),C){var T=O.getTextContent();if(T){var k=(0,x.Lu)(T);null!=k.prevValue&&(k.prevValue=k.value)}}else F(O,a,t,i,d,e,o,"polar"===l.type);I?O.attr({shape:d}):h?R(h,c,O,d,t,o,!0,C):(0,g.oi)(O,{shape:d},e,t,null),a.setItemGraphicEl(t,O),O.ignore=L,r.add(O)}).remove(function(t){var n=s.getItemGraphicEl(t);n&&(0,g.t5)(n,e,t)}).execute();var O=this._backgroundGroup||(this._backgroundGroup=new d.A);O.removeAll();for(var L=0;L<_.length;++L)O.add(_[L]);r.add(O),this._backgroundEls=_,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Y(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Y(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&(0,S.Ip)(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var r=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,r,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var o=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i=null==i?NaN:i,o.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),o.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:(0,i.map)(o,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,o=e.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(o,i.getRawOrdinalNumber(a)),u=l<0?5e-324:t(e.indexOfRawIndex(l));if(u>r)return!0;r=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=r;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,o=this._dataSort(e,i,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){(0,g.t5)(t,e,(0,y.z)(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(_.A),P={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,r=e.y+e.height,a=L(t.x,e.x),s=T(t.x+t.width,o),l=L(t.y,e.y),u=T(t.y+t.height,r),c=s<a,h=u<l;return t.x=c&&a>o?s:a,t.y=h&&l>r?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var o=T(t.r,e.r),r=L(t.r0,e.r0);t.r=o,t.r0=r;var a=o-r<0;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}return a}},N={cartesian2d:function(e,t,n,o,r,a,s,l,u){var c=new f.A({shape:(0,i.extend)({},o),z2:1});return c.__dataIndex=n,c.name="item",a&&(c.shape[r?"height":"width"]=0),c},polar:function(e,t,n,i,o,r,a,s,l){var u,c,h=!o&&l?A.A:m.A,d=new h({shape:i,z2:1});if(d.name="item",u=W(o),c=({isRoundCap:h===A.A}).isRoundCap,d.calculateTextPosition=function(e,t,n){var i=t.position;if(!i||i instanceof Array)return(0,I.X4)(e,t,n);var o=u(i),r=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,h=a.r,d=a.r0,p=(h+d)/2,g=a.startAngle,f=a.endAngle,m=(g+f)/2,y=c?Math.abs(h-d)/2:0,v=Math.cos,x=Math.sin,b=s+h*v(g),S=l+h*x(g),A="left",_="top";switch(o){case"startArc":b=s+(d-r)*v(m),S=l+(d-r)*x(m),A="center",_="top";break;case"insideStartArc":b=s+(d+r)*v(m),S=l+(d+r)*x(m),A="center",_="bottom";break;case"startAngle":b=s+p*v(g)+C(g,r+y,!1),S=l+p*x(g)+D(g,r+y,!1),A="right",_="middle";break;case"insideStartAngle":b=s+p*v(g)+C(g,-r+y,!1),S=l+p*x(g)+D(g,-r+y,!1),A="left",_="middle";break;case"middle":b=s+p*v(m),S=l+p*x(m),A="center",_="middle";break;case"endArc":b=s+(h+r)*v(m),S=l+(h+r)*x(m),A="center",_="bottom";break;case"insideEndArc":b=s+(h-r)*v(m),S=l+(h-r)*x(m),A="center",_="top";break;case"endAngle":b=s+p*v(f)+C(f,r+y,!0),S=l+p*x(f)+D(f,r+y,!0),A="left",_="middle";break;case"insideEndAngle":b=s+p*v(f)+C(f,-r+y,!0),S=l+p*x(f)+D(f,-r+y,!0),A="right",_="middle";break;default:return(0,I.X4)(e,t,n)}return(e=e||{}).x=b,e.y=S,e.align=A,e.verticalAlign=_,e},r){var p=d.shape,f=o?"r":"endAngle",y={};p[f]=o?i.r0:i.startAngle,y[f]=i[f],(s?g.oi:g.LW)(d,{shape:y},r)}return d}};function R(e,t,n,i,o,r,a,s){r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?g.oi:g.LW)(n,{shape:l},t,o,null);var l,u,c=t?e.baseAxis.model:null;(a?g.oi:g.LW)(n,{shape:u},c,o)}function z(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var E=["x","y","width","height"],V=["cx","cy","r","startAngle","endAngle"],B={cartesian2d:function(e){return!z(e,E)},polar:function(e){return!z(e,V)}},G={cartesian2d:function(e,t,n){var i,o,r,a=e.getItemLayout(t),s=n?(i=n,o=a,(r=i.get(["itemStyle","borderColor"]))&&"none"!==r?Math.min(i.get(["itemStyle","borderWidth"])||0,isNaN(o.width)?Number.MAX_VALUE:Math.abs(o.width),isNaN(o.height)?Number.MAX_VALUE:Math.abs(o.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function W(e){var t;return t=e?"Arc":"Angle",function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}function F(e,t,n,o,r,a,s,l){var u=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var c=e.shape,h=(0,O.i)(o.getModel("itemStyle"),c,!0);(0,i.extend)(c,h),e.setShape(c)}}else{var d=o.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(u);var p=o.getShallow("cursor");p&&e.attr("cursor",p);var g=l?s?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":s?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=(0,x.lx)(o);(0,x.qM)(e,f,{labelFetcher:a,labelDataIndex:n,defaultText:(0,M.i)(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:g});var m=e.getTextContent();if(l&&m){var y=o.get(["label","position"]);e.textConfig.inside="middle"===y||null,function(e,t,n,o){if((0,i.isNumber)(o))return e.setTextConfig({rotation:o});if((0,i.isArray)(t))return e.setTextConfig({rotation:0});var r,a=e.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(s+l)/2;break;case"startAngle":case"insideStartAngle":r=s;break;case"endAngle":case"insideEndAngle":r=l;break;default:e.setTextConfig({rotation:0});return}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}(e,"outside"===y?g:y,W(s),o.get(["label","rotate"]))}(0,x.Oh)(m,f,a.getRawValue(n),function(e){return(0,M.T)(t,e)});var b=o.getModel(["emphasis"]);(0,v.Lm)(e,b.get("focus"),b.get("blurScope"),b.get("disabled")),(0,v.Mx)(e,o),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(e.style.fill="none",e.style.stroke="none",(0,i.each)(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var H=function(){},Z=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return(0,a.C6)(t,e),t.prototype.getDefaultShape=function(){return new H},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],e.rect(r[0],r[1],a[0],a[1])},t}(h.Ay);function Y(e,t,n,i){var o=e.getData(),r=+!!o.getLayout("valueAxisHorizontal"),a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=e.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new Z({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var h=new Z({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(o.getVisual("style")),(0,y.z)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",X),h.on("mousemove",X)),n&&n.push(h)}var X=(0,b.nF)(function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,o=1-i,r=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=r.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return -1}(this,e.offsetX,e.offsetY);(0,y.z)(this).dataIndex=t>=0?t:null},30,!1);function U(e,t,n){if((0,w.g)(n,"cartesian2d")){var i=n.getArea();return{x:e?t.x:i.x,y:e?i.y:t.y,width:e?t.width:i.width,height:e?i.height:t.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:e?i.r0:t.r0,r:e?i.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}}function q(e){e.registerChartView(k),e.registerSeriesModel(c),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,i.curry(o.Zp,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,o.KF)("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,r.A)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}},23670:function(e,t,n){n.d(t,{a:()=>es});var i=n(31831),o=n(43059),r=n(84124),a=n(55785),s={color:"fill",borderColor:"stroke"},l={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,r.$r)(),c=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.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return(0,o.A)(null,this)},t.prototype.getDataParams=function(t,n,i){var o=e.prototype.getDataParams.call(this,t,n);return i&&(o.info=u(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(a.A),h=n(4884),d=n(30070),p=n(59033),g=n(64586),f=n(52384),m=n(79620),y=n(72059),v=n(73394),x=n(18538),b=n(30730),S=n(31393),A=n(31440),_=n(55037);function w(e,t){return t=t||[0,0],h.map(["x","y"],function(n,i){var o=this.getAxis(n),r=t[i],a=e[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}function M(e,t){return t=t||[0,0],h.map([0,1],function(n){var i=t[n],o=e[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])},this)}function I(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function C(e,t){return t=t||[0,0],h.map(["Radius","Angle"],function(n,i){var o=this["get"+n+"Axis"](),r=t[i],a=e[i]/2,s="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}var D=n(38513),O=n(45106),L=n(58391),T=n(34780),k=n(24707),P=n(39952),N="emphasis",R="normal",z="blur",E="select",V=[R,N,z,E],B={normal:["itemStyle"],emphasis:[N,"itemStyle"],blur:[z,"itemStyle"],select:[E,"itemStyle"]},G={normal:["label"],emphasis:[N,"label"],blur:[z,"label"],select:[E,"label"]},W=["x","y"],F={normal:{},emphasis:{},blur:{},select:{}},H={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(w,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(M,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,h.bind)(I,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=e.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a},size:h.bind(C,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function Z(e){return e instanceof d.Ay}function Y(e){return e instanceof D.Ay}var X=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,i){this._progressiveEls=null;var o=this._data,r=e.getData(),a=this.group,s=$(e,r,t,n);o||a.removeAll(),r.diff(o).add(function(t){J(n,null,t,s(t,i),e,a,r)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&(0,k.h8)(n,u(n).option,e)}).update(function(t,l){J(n,o.getItemGraphicEl(l),t,s(t,i),e,a,r)}).execute();var l=e.get("clip",!0)?(0,_.Ip)(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,o){var r=t.getData(),a=$(t,r,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=J(null,null,u,a(u,o),t,this.group,r);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){p.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var o=t.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(A.A);function U(e){var t,n=e.type;if("path"===n){var i=e.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=ea(i);u(t=p.makePath(r,null,o,i.layout||"center")).customPathData=r}else if("image"===n)u(t=new g.Ay({})).customImagePath=e.style.image;else if("text"===n)t=new f.Ay({});else if("group"===n)t=new m.A;else if("compoundPath"===n)throw Error('"compoundPath" is not supported yet.');else{var a=p.getShapeClass(n);a||(0,L.$8)(""),t=new a}return u(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function q(e,t,n,i,o,r,a){(0,P.$)(t);var s=o&&o.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=W);var l=i&&i.style;if(l){"text"===t.type&&((0,h.hasOwn)(l,"textFill")&&(l.fill=l.textFill),(0,h.hasOwn)(l,"textStroke")&&(l.stroke=l.textStroke));var u=void 0,c=Z(t)?l.decal:null;e&&c&&(c.dirty=!0,u=(0,T.w)(c,e)),l.__decalPattern=u}if(Y(t)&&l){var u=l.__decalPattern;u&&(l.decal=u)}(0,k.rh)(t,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),(0,P.L)(t,i.keyframeAnimation,r)}function K(e,t,n,i,o){var r=t.isGroup?null:t,a=o&&o[e].cfg;if(r){var s=r.ensureState(e);if(!1===i){var l=r.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,y.DW)(r)}}function $(e,t,n,i){var o,r,a,u,c=e.get("renderItem"),d=e.coordinateSystem,p={};d&&(p=d.prepareCustoms?d.prepareCustoms(d):H[d.type](d));for(var g=(0,h.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=a),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){null==i&&(i=a);var o=t.getItemVisual(i,"style"),r=o&&o.fill,s=o&&o.opacity,l=I(i,R).getItemStyle();null!=r&&(l.fill=r),null!=s&&(l.opacity=s);var u={inheritColor:(0,h.isString)(r)?r:"#000"},c=C(i,R),d=v.VB(c,null,u,!1,!0);d.text=c.getShallow("show")?(0,h.retrieve2)(e.getFormattedLabel(i,R),(0,x.i)(t,i)):null;var p=v.sD(c,u,!1);return L(n,l),l=(0,O.Fs)(l,d,p),n&&D(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=a),e=e||0;var i=t.getDimensionInfo(e);if(!i){var o=t.getDimensionIndex(e);return o>=0?t.getStore().get(o,n):void 0}var r=t.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[r]:r},styleEmphasis:function(n,i){null==i&&(i=a);var o=I(i,N).getItemStyle(),r=C(i,N),s=v.VB(r,null,null,!0,!0);s.text=r.getShallow("show")?(0,h.retrieve3)(e.getFormattedLabel(i,N),e.getFormattedLabel(i,R),(0,x.i)(t,i)):null;var l=v.sD(r,null,!0);return L(n,o),o=(0,O.Fs)(o,s,l),n&&D(o,n),o.legacy=!0,o},visual:function(e,n){if(null==n&&(n=a),(0,h.hasOwn)(s,e)){var i=t.getItemVisual(n,"style");return i?i[s[e]]:null}if((0,h.hasOwn)(l,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===d.type){var t=d.getBaseAxis();return(0,b.DL)((0,h.defaults)({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return v.c8(e,n)}},p.api||{}),f={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:p.coordSys,dataInsideLength:t.count(),encode:(o=e.getData(),r={},(0,h.each)(o.dimensions,function(e){var t=o.getDimensionInfo(e);if(!t.isExtraCoord){var n=t.coordDim;(r[n]=r[n]||[])[t.coordDimIndex]=o.getDimensionIndex(e)}}),r)},m={},y={},S={},A={},_=0;_<V.length;_++){var w=V[_];S[w]=e.getModel(B[w]),A[w]=e.getModel(G[w])}function M(e){return e===a?u||(u=t.getItemModel(e)):t.getItemModel(e)}function I(e,n){return t.hasItemOption?e===a?m[n]||(m[n]=M(e).getModel(B[n])):M(e).getModel(B[n]):S[n]}function C(e,n){return t.hasItemOption?e===a?y[n]||(y[n]=M(e).getModel(G[n])):M(e).getModel(G[n]):A[n]}return function(e,n){return a=e,u=null,m={},y={},c&&c((0,h.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},f),g)};function D(e,t){for(var n in t)(0,h.hasOwn)(t,n)&&(e[n]=t[n])}function L(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function J(e,t,n,i,o,r,a){if(!i)return void r.remove(t);var s=j(e,t,n,i,o,r);return s&&a.setItemGraphicEl(n,s),s&&(0,y.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}function j(e,t,n,i,o,r){var a,s=-1,l=t;t&&Q(t,i,o)&&(s=(0,h.indexOf)(r.childrenRef(),t),t=null);var c=!t,d=t;d?d.clearStates():(d=U(i),l&&((a=d).copyTransform(l),Y(a)&&Y(l)&&(a.setStyle(l.style),a.z=l.z,a.z2=l.z2,a.zlevel=l.zlevel,a.invisible=l.invisible,a.ignore=l.ignore,Z(a)&&Z(l)&&a.setShape(l.shape)))),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),F.normal.cfg=F.normal.conOpt=F.emphasis.cfg=F.emphasis.conOpt=F.blur.cfg=F.blur.conOpt=F.select.cfg=F.select.conOpt=null,F.isLegacy=!1,function(e,t,n,i,o,r){if(!e.isGroup){ee(n,null,r),ee(n,N,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=U(a),e.setTextContent(c)),q(null,c,t,a,null,i,o);for(var h=a&&a.style,d=0;d<V.length;d++){var p=V[d];if(p!==R){var g=r[p].conOpt;K(p,c,g,en(a,g,p),null)}}h?c.dirty():c.markRedraw()}}}}(d,n,i,o,c,F),function(e,t,n,i,o){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var a=e.getClipPath();a&&Q(a,r,i)&&(a=null),a||(a=U(r),e.setClipPath(a)),q(null,a,t,r,null,i,o)}}(d,n,i,o,c),q(e,d,n,i,F,o,c),(0,h.hasOwn)(i,"info")&&(u(d).info=i.info);for(var p=0;p<V.length;p++){var g=V[p];if(g!==R){var f=et(i,g),m=en(i,f,g);K(g,d,f,m,F)}}var y=d;if(!y.isGroup){var v=o.currentZ,x=o.currentZLevel;y.z=v,y.zlevel=x;var b=i.z2;null!=b&&(y.z2=b||0);for(var A=0;A<V.length;A++)!function(e,t,n){var i=n===R,o=i?t:et(t,n),r=o?o.z2:null;null!=r&&((i?e:e.ensureState(n)).z2=r||0)}(y,i,V[A])}return"group"===i.type&&function(e,t,n,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(a||l||c){if(l){return f={api:e,oldChildren:t.children()||[],newChildren:r||[],dataIndex:n,seriesModel:o,group:t},new S.A(f.oldChildren,f.newChildren,ei,ei,f).add(eo).update(eo).remove(er).execute()}c&&t.removeAll();for(var h=0;h<a;h++){var d=r[h],p=t.childAt(h);d?(null==d.ignore&&(d.ignore=!1),j(e,p,n,d,o,t)):p.ignore=!0}for(var g=t.childCount()-1;g>=h;g--){var f,m,y,v,x=t.childAt(g);m=t,y=x,v=o,y&&(0,k.h8)(y,u(m).option,v)}}}(e,d,n,i,o),s>=0?r.replaceAt(d,s):r.add(d),d}function Q(e,t,n){var i,o=u(e),r=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==o.customGraphicType||"path"===r&&(i=a)&&((0,h.hasOwn)(i,"pathData")||(0,h.hasOwn)(i,"d"))&&ea(a)!==o.customPathData||"image"===r&&(0,h.hasOwn)(s,"image")&&s.image!==o.customImagePath}function ee(e,t,n){var i=t?et(e,t):e,o=t?en(e,i,N):e.style,r=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?et(s,t):s:null;if(o&&(n.isLegacy||(0,O.ex)(o,r,!!a,!!l))){n.isLegacy=!0;var u=(0,O.lH)(o,r,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;c.type||(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function et(e,t){return t?e?e[t]:null:e}function en(e,t,n){var i=t&&t.style;return null==i&&n===N&&e&&(i=e.styleEmphasis),i}function ei(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function eo(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;j(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function er(e){var t=this.context,n=t.oldChildren[e];n&&(0,k.h8)(n,u(n).option,t.seriesModel)}function ea(e){return e&&(e.pathData||e.d)}function es(e){e.registerChartView(X),e.registerSeriesModel(c)}},49828:function(e,t,n){n.d(t,{a:()=>I});var i=n(31831),o=n(30070),r=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},a=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return(0,i.C6)(t,e),t.prototype.getDefaultShape=function(){return new r},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,o=t.r,r=t.width,a=t.angle,s=t.x-n(a)*r*(r>=o/3?1:2),l=t.y-i(a)*r*(r>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*r,t.y+i(a)*r),e.lineTo(t.x+n(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-n(a)*r,t.y-i(a)*r),e.lineTo(s,l)},t}(o.Ay),s=n(23917),l=n(28887),u=n(52384),c=n(68532),h=n(79620),d=n(72059),p=n(73394),g=n(31440),f=n(21916),m=n(88556),y=n(60253),v=n(64586),x=n(4884),b=n(35032),S=n(40843);function A(e,t){var n=null==e?"":e+"";return t&&((0,x.isString)(t)?n=t.replace("{value}",n):(0,x.isFunction)(t)&&(n=t(e))),n}var _=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){this.group.removeAll();var i,o,r=e.get(["axisLine","lineStyle","color"]),a=(i=e.get("center"),o=Math.min(n.getWidth(),n.getHeight()),{cx:(0,f.lo)(i[0],n.getWidth()),cy:(0,f.lo)(i[1],n.getHeight()),r:(0,f.lo)(e.get("radius"),o/2)});this._renderMain(e,t,n,r,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,o){var r=this.group,a=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap")?m.A:s.A,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[l,u];(0,S.q)(f,!a),l=f[0];for(var y=(u=f[1])-l,v=l,b=[],A=0;d&&A<i.length;A++){var _=new h({shape:{startAngle:v,endAngle:u=l+y*Math.min(Math.max(i[A][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-g,r:o.r},silent:!0});_.setStyle({fill:i[A][1]}),_.setStyle(p.getLineStyle(["color","width"])),b.push(_),v=u}b.reverse(),(0,x.each)(b,function(e){return r.add(e)});var w=function(e){var t;if(e<=0)return i[0][1];for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,w,o,l,u,a,g),this._renderTitleAndDetail(e,t,n,w,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,w,o,l,u,a,g)},t.prototype._renderTicks=function(e,t,n,i,o,r,a,s,c){for(var h,d,g=this.group,m=o.cx,y=o.cy,v=o.r,b=+e.get("min"),S=+e.get("max"),_=e.getModel("splitLine"),w=e.getModel("axisTick"),M=e.getModel("axisLabel"),I=e.get("splitNumber"),C=w.get("splitNumber"),D=(0,f.lo)(_.get("length"),v),O=(0,f.lo)(w.get("length"),v),L=r,T=(a-r)/I,k=T/C,P=_.getModel("lineStyle").getLineStyle(),N=w.getModel("lineStyle").getLineStyle(),R=_.get("distance"),z=0;z<=I;z++){if(h=Math.cos(L),d=Math.sin(L),_.get("show")){var E=R?R+c:c,V=new l.A({shape:{x1:h*(v-E)+m,y1:d*(v-E)+y,x2:h*(v-D-E)+m,y2:d*(v-D-E)+y},style:P,silent:!0});"auto"===P.stroke&&V.setStyle({stroke:i(z/I)}),g.add(V)}if(M.get("show")){var E=M.get("distance")+R,B=A((0,f.LI)(z/I*(S-b)+b),M.get("formatter")),G=i(z/I),W=h*(v-D-E)+m,F=d*(v-D-E)+y,H=M.get("rotate"),Z=0;"radial"===H?(Z=-L+2*Math.PI)>Math.PI/2&&(Z+=Math.PI):"tangential"===H?Z=-L-Math.PI/2:(0,x.isNumber)(H)&&(Z=H*Math.PI/180),0===Z?g.add(new u.Ay({style:(0,p.VB)(M,{text:B,x:W,y:F,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):g.add(new u.Ay({style:(0,p.VB)(M,{text:B,x:W,y:F,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:W,originY:F,rotation:Z}))}if(w.get("show")&&z!==I){var E=w.get("distance");E=E?E+c:c;for(var Y=0;Y<=C;Y++){h=Math.cos(L),d=Math.sin(L);var X=new l.A({shape:{x1:h*(v-E)+m,y1:d*(v-E)+y,x2:h*(v-O-E)+m,y2:d*(v-O-E)+y},silent:!0,style:N});"auto"===N.stroke&&X.setStyle({stroke:i((z+Y/C)/I)}),g.add(X),L+=k}L-=k}else L+=T}},t.prototype._renderPointer=function(e,t,n,i,o,r,l,u,h){var p=this.group,g=this._data,S=this._progressEls,A=[],_=e.get(["pointer","show"]),w=e.getModel("progress"),M=w.get("show"),I=e.getData(),C=I.mapDimension("value"),D=+e.get("min"),O=+e.get("max"),L=[D,O],T=[r,l];function k(t,n){var i,r=I.getItemModel(t).getModel("pointer"),s=(0,f.lo)(r.get("width"),o.r),l=(0,f.lo)(r.get("length"),o.r),u=e.get(["pointer","icon"]),c=r.get("offsetCenter"),h=(0,f.lo)(c[0],o.r),d=(0,f.lo)(c[1],o.r),p=r.get("keepAspect");return(i=u?(0,y.v5)(u,h-s/2,d-l,s,l,null,p):new a({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}})).rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function P(e,t){var n=w.get("roundCap")?m.A:s.A,i=w.get("overlap"),a=i?w.get("width"):h/I.count(),l=i?o.r-a:o.r-(e+1)*a,c=i?o.r:o.r-e*a,d=new n({shape:{startAngle:r,endAngle:t,cx:o.cx,cy:o.cy,clockwise:u,r0:l,r:c}});return i&&(d.z2=O-I.get(C,e)%O),d}(M||_)&&(I.diff(g).add(function(t){var n=I.get(C,t);if(_){var i=k(t,r);c.LW(i,{rotation:-((isNaN(+n)?T[0]:(0,f.Cb)(n,L,T,!0))+Math.PI/2)},e),p.add(i),I.setItemGraphicEl(t,i)}if(M){var o=P(t,r),a=w.get("clip");c.LW(o,{shape:{endAngle:(0,f.Cb)(n,L,T,a)}},e),p.add(o),(0,b.a)(e.seriesIndex,I.dataType,t,o),A[t]=o}}).update(function(t,n){var i=I.get(C,t);if(_){var o=g.getItemGraphicEl(n),a=o?o.rotation:r,s=k(t,a);s.rotation=a,c.oi(s,{rotation:-((isNaN(+i)?T[0]:(0,f.Cb)(i,L,T,!0))+Math.PI/2)},e),p.add(s),I.setItemGraphicEl(t,s)}if(M){var l=S[n],u=P(t,l?l.shape.endAngle:r),h=w.get("clip");c.oi(u,{shape:{endAngle:(0,f.Cb)(i,L,T,h)}},e),p.add(u),(0,b.a)(e.seriesIndex,I.dataType,t,u),A[t]=u}}).execute(),I.each(function(e){var t=I.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),r=n.get("blurScope"),a=n.get("disabled");if(_){var s=I.getItemGraphicEl(e),l=I.getItemVisual(e,"style"),u=l.fill;if(s instanceof v.Ay){var c=s.style;s.useStyle((0,x.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,f.Cb)(I.get(C,e),L,[0,1],!0))),s.z2EmphasisLift=0,(0,d.Mx)(s,t),(0,d.Lm)(s,o,r,a)}if(M){var h=A[e];h.useStyle(I.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,d.Mx)(h,t),(0,d.Lm)(h,o,r,a)}}),this._progressEls=A)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),o=n.get("icon"),r=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,y.v5)(o,t.cx-i/2+(0,f.lo)(r[0],t.r),t.cy-i/2+(0,f.lo)(r[1],t.r),i,i,null,a);s.z2=+!!n.get("showAbove"),s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,o){var r=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),d=new h.A,g=[],m=[],y=e.isAnimationEnabled(),v=e.get(["pointer","showAbove"]);a.diff(this._data).add(function(e){g[e]=new u.Ay({silent:!0}),m[e]=new u.Ay({silent:!0})}).update(function(e,t){g[e]=r._titleEls[t],m[e]=r._detailEls[t]}).execute(),a.each(function(t){var n=a.getItemModel(t),r=a.get(s,t),u=new h.A,x=i((0,f.Cb)(r,[l,c],[0,1],!0)),b=n.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),_=o.cx+(0,f.lo)(S[0],o.r),w=o.cy+(0,f.lo)(S[1],o.r),M=g[t];M.attr({z2:2*!v,style:(0,p.VB)(b,{x:_,y:w,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:x})}),u.add(M)}var I=n.getModel("detail");if(I.get("show")){var C=I.get("offsetCenter"),D=o.cx+(0,f.lo)(C[0],o.r),O=o.cy+(0,f.lo)(C[1],o.r),L=(0,f.lo)(I.get("width"),o.r),T=(0,f.lo)(I.get("height"),o.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:x,M=m[t],P=I.get("formatter");M.attr({z2:2*!v,style:(0,p.VB)(I,{x:D,y:O,text:A(r,P),width:isNaN(L)?null:L,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:k})}),(0,p.Oh)(M,{normal:I},r,function(e){return A(e,P)}),y&&(0,p.xb)(M,t,a,e,{getFormattedLabel:function(e,t,n,i,o,a){return A(a?a.interpolatedValue:r,P)}}),u.add(M)}d.add(u)}),this.group.add(d),this._titleEls=g,this._detailEls=m},t.type="gauge",t}(g.A),w=n(29605),M=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return(0,i.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,w.A)(this,["value"])},t.type="series.gauge",t.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}},t}(n(55785).A);function I(e){e.registerChartView(_),e.registerSeriesModel(M)}},25591:function(e,t,n){n.d(t,{A:()=>M});var i=n(31831),o=n(4884),r=n(28535),a=n(60253),s=n(28887),l=n(95163),u=n(30070),c=s.A.prototype,h=l.A.prototype,d=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function p(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}(0,i.C6)(function(){return null!==d&&d.apply(this,arguments)||this},d);var g=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return(0,i.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d},t.prototype.buildPath=function(e,t){p(t)?c.buildPath.call(this,e,t):h.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return p(this.shape)?c.pointAt.call(this,e):h.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=p(t)?[t.x2-t.x1,t.y2-t.y1]:h.tangentAt.call(this,e);return r.normalize(n,n)},t}(u.Ay),f=n(68532),m=n(79620),y=n(72059),v=n(73394),x=n(21916),b=["fromSymbol","toSymbol"];function S(e){return"_"+e+"Type"}function A(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),s=t.getItemVisual(n,e+"Offset"),l=t.getItemVisual(n,e+"KeepAspect"),u=a.xU(o),c=a.hV(s||0,u);return i+u+c+(r||"")+(l||"")}function _(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),s=t.getItemVisual(n,e+"Offset"),l=t.getItemVisual(n,e+"KeepAspect"),u=a.xU(o),c=a.hV(s||0,u),h=a.v5(i,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,l);return h.__specifiedRotation=null==r||isNaN(r)?void 0:r*Math.PI/180||0,h.name=e,h}}function w(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}let M=function(e){function t(t,n,i){var o=e.call(this)||this;return o._createLine(t,n,i),o}return(0,i.C6)(t,e),t.prototype._createLine=function(e,t,n){var i,r,a=e.hostModel,s=(i=e.getItemLayout(t),w((r=new g({name:"line",subPixelOptimize:!0})).shape,i),r);s.shape.percent=0,f.LW(s,{shape:{percent:1}},a,t),this.add(s),(0,o.each)(b,function(n){var i=_(n,e,t);this.add(i),this[S(n)]=A(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),a=e.getItemLayout(t),s={shape:{}};w(s.shape,a),f.oi(r,s,i,t),(0,o.each)(b,function(n){var i=A(n,e,t),o=S(n);if(this[o]!==i){this.remove(this.childOfName(n));var r=_(n,e,t);this.add(r)}this[o]=i},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),a=n&&n.emphasisLineStyle,s=n&&n.blurLineStyle,l=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(t),g=p.getModel("emphasis");a=g.getModel("lineStyle").getLineStyle(),s=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),h=g.get("focus"),d=g.get("blurScope"),u=(0,v.lx)(p)}var f=e.getItemVisual(t,"style"),m=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,r.ensureState("blur").style=s,r.ensureState("select").style=l,(0,o.each)(b,function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=f.opacity;for(var n=0;n<y.BV.length;n++){var i=y.BV[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}},this);var S=i.getRawValue(t);(0,v.qM)(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:m||"#000",defaultOpacity:f.opacity,defaultText:(null==S?e.getName(t):isFinite(S)?(0,x.LI)(S):S)+""});var A=this.getTextContent();if(A){var _=u.normal;A.__align=A.style.align,A.__verticalAlign=A.style.verticalAlign,A.__position=_.get("position")||"middle";var w=_.get("distance");(0,o.isArray)(w)||(w=[w,w]),A.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),(0,y.Lm)(this,h,d,c)},t.prototype.highlight=function(){(0,y.HY)(this)},t.prototype.downplay=function(){(0,y.SD)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");w(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.getTextContent();if(e||t||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=r.sub([],u,l);if(r.normalize(c,c),e&&(e.setPosition(l),_(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),t&&(t.setPosition(u),_(t,1),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,d=void 0,p=n.__labelDistance,g=p[0]*i,f=p[1]*i,m=s/2,y=a.tangentAt(m),v=[y[1],-y[0]],x=a.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var b=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var S=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(S=Math.PI+S),n.rotation=S}var A=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-f,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=f,d="top";break;default:A=0,d="middle"}switch(n.__position){case"end":n.x=c[0]*g+u[0],n.y=c[1]*f+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+l[0],n.y=-c[1]*f+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*b+l[0],n.y=l[1]+A,h=y[0]<0?"right":"left",n.originX=-g*b,n.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=x[0],n.y=x[1]+A,h="center",n.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*b+u[0],n.y=u[1]+A,h=y[0]>=0?"right":"left",n.originX=g*b,n.originY=-A}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}}}function _(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(m.A)},87274:function(e,t,n){n.d(t,{A:()=>c});var i=n(79620),o=n(59033),r=n(25591),a=n(73394);function s(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,a.lx)(t)}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return e&&!l(e[0])&&!l(e[1])}let c=function(){function e(e){this.group=new i.A,this._LineCtor=e||r.A}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=e,i||n.removeAll();var o=s(e);e.diff(i).add(function(n){t._doAdd(e,n,o)}).update(function(n,r){t._doUpdate(i,e,r,n,o)}).remove(function(e){n.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){var t;e.isGroup||(t=e).animators&&t.animators.length>0||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++)if(u(t.getItemLayout(i))){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){o.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(u(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,o){var r=e.getItemGraphicEl(n);u(t.getItemLayout(i))?(r?r.updateData(t,i,o):r=new this._LineCtor(t,i,o),t.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},e}()},17182:function(e,t,n){n.d(t,{A:()=>g});var i=n(31831),o=n(60253),r=n(79620),a=n(68532),s=n(35032),l=n(72059),u=n(18538),c=n(4884),h=n(73394),d=n(64586);function p(e,t){this.parent.drift(e,t)}let g=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.updateData(t,n,i,o),r}return(0,i.C6)(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var a=(0,o.v5)(e,-1,-1,2,2,null,r);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=p,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){(0,l.HY)(this.childAt(0))},t.prototype.downplay=function(){(0,l.SD)(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,o){this.silent=!1;var r=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=r!==this._symbolType,c=o&&o.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,e,n,l,h)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):a.oi(d,p,s,n),(0,a.ap)(d)}if(this._updateCommon(e,n,l,i,o),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,a.LW(d,p,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var a,s,p,g,f,m,y,v,x,b=this.childAt(0),S=e.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,p=i.selectItemStyle,g=i.focus,f=i.blurScope,y=i.labelStatesModels,v=i.hoverScale,x=i.cursorStyle,m=i.emphasisDisabled),!i||e.hasItemOption){var A=i&&i.itemModel?i.itemModel:e.getItemModel(t),_=A.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),p=A.getModel(["select","itemStyle"]).getItemStyle(),s=A.getModel(["blur","itemStyle"]).getItemStyle(),g=_.get("focus"),f=_.get("blurScope"),m=_.get("disabled"),y=(0,h.lx)(A),v=_.getShallow("scale"),x=A.getShallow("cursor")}var w=e.getItemVisual(t,"symbolRotate");b.attr("rotation",(w||0)*Math.PI/180||0);var M=(0,o.hV)(e.getItemVisual(t,"symbolOffset"),n);M&&(b.x=M[0],b.y=M[1]),x&&b.attr("cursor",x);var I=e.getItemVisual(t,"style"),C=I.fill;if(b instanceof d.Ay){var D=b.style;b.useStyle((0,c.extend)({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},I))}else b.__isEmptyBrush?b.useStyle((0,c.extend)({},I)):b.useStyle(I),b.style.decal=null,b.setColor(C,r&&r.symbolInnerColor),b.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),L=this._z2;null!=O?null==L&&(this._z2=b.z2,b.z2+=O):null!=L&&(b.z2=L,this._z2=null);var T=r&&r.useNameLabel;(0,h.qM)(b,y,{labelFetcher:S,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):(0,u.i)(e,t)},inheritColor:C,defaultOpacity:I.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=b.ensureState("emphasis");k.style=a,b.ensureState("select").style=p,b.ensureState("blur").style=s;var P=null==v||!0===v?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P,this.setSymbolScale(1),(0,l.Lm)(this,g,f,m)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),o=(0,s.z)(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&a.Nz(l,{style:{opacity:0}},t,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();a.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:r})},t.getSymbolSize=function(e,t){return(0,o.xU)(e.getItemVisual(t,"symbolSize"))},t}(r.A)},22448:function(e,t,n){n.d(t,{A:()=>d});var i=n(79620),o=n(68532),r=n(59033),a=n(17182),s=n(4884),l=n(73394);function u(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function c(e){return null==e||(0,s.isObject)(e)||(e={isIgnore:e}),e||{}}function h(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,l.lx)(t),cursorStyle:t.get("cursor")}}let d=function(){function e(e){this.group=new i.A,this._SymbolCtor=e||a.A}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=c(t);var n=this.group,i=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=h(e),d={disableAnimation:s},p=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add(function(i){var o=p(i);if(u(e,o,i,t)){var r=new a(e,i,l,d);r.setPosition(o),e.setItemGraphicEl(i,r),n.add(r)}}).update(function(c,h){var g=r.getItemGraphicEl(h),f=p(c);if(!u(e,f,c,t))return void n.remove(g);var m=e.getItemVisual(c,"symbol")||"circle",y=g&&g.getSymbolType&&g.getSymbolType();if(!g||y&&y!==m)n.remove(g),(g=new a(e,c,l,d)).setPosition(f);else{g.updateData(e,c,l,d);var v={x:f[0],y:f[1]};s?g.attr(v):o.oi(g,v,i)}n.add(g),e.setItemGraphicEl(c,g)}).remove(function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},i)}).execute(),this._getSymbolPoint=p,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(u(t,r,o,n)){var a=new this._SymbolCtor(t,o,this._seriesScope);a.traverse(i),a.setPosition(r),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){r.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}()},55037:function(e,t,n){n.d(t,{Ip:()=>c,Mi:()=>u,SM:()=>l});var i=n(63811),o=n(68532),r=n(23917),a=n(21916),s=n(4884);function l(e,t,n,r,a){var l=e.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,p=n.get(["lineStyle","width"])||2;u-=p/2,c-=p/2,h+=p,d+=p,h=Math.ceil(h),u!==Math.floor(u)&&(u=Math.floor(u),h++);var g=new i.A({shape:{x:u,y:c,width:h,height:d}});if(t){var f=e.getBaseAxis(),m=f.isHorizontal(),y=f.inverse;m?(y&&(g.shape.x+=h),g.shape.width=0):(y||(g.shape.y+=d),g.shape.height=0);var v=(0,s.isFunction)(a)?function(e){a(e,g)}:null;o.LW(g,{shape:{width:h,height:d,x:u,y:c}},n,null,r,v)}return g}function u(e,t,n){var i=e.getArea(),s=(0,a.LI)(i.r0,1),l=(0,a.LI)(i.r,1),u=new r.A({shape:{cx:(0,a.LI)(e.cx,1),cy:(0,a.LI)(e.cy,1),r0:s,r:l,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&("angle"===e.getBaseAxis().dim?u.shape.endAngle=i.startAngle:u.shape.r=s,o.LW(u,{shape:{endAngle:i.endAngle,r:l}},n)),u}function c(e,t,n,i,o){if(e){if("polar"===e.type)return u(e,t,n);else if("cartesian2d"===e.type)return l(e,t,n,i,o)}return null}},29605:function(e,t,n){n.d(t,{A:()=>a});var i=n(85337),o=n(15764),r=n(4884);function a(e,t,n){t=(0,r.isArray)(t)&&{coordDimensions:t}||(0,r.extend)({encodeDefine:e.getEncode()},t);var a=e.getSource(),s=(0,i.A)(a,t).dimensions,l=new o.A(s,e);return l.initData(a,n),l}},18538:function(e,t,n){n.d(t,{T:()=>a,i:()=>r});var i=n(98609),o=n(4884);function r(e,t){var n=e.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o){var r=(0,i.QE)(e,t,n[0]);return null!=r?r+"":null}if(o){for(var a=[],s=0;s<n.length;s++)a.push((0,i.QE)(e,t,n[s]));return a.join(" ")}}function a(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!(0,o.isArray)(t))return t+"";for(var i=[],r=0;r<n.length;r++){var a=e.getDimensionIndex(n[r]);a>=0&&i.push(t[a])}return i.join(" ")}},27108:function(e,t,n){n.d(t,{i:()=>r});var i=n(4884),o=n(23960);function r(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;(0,i.isArray)(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:(0,i.map)(r,function(e){return(0,o.lo)(e,a)})}}},62707:function(e,t,n){n.d(t,{a:()=>W});var i=n(31831),o=n(43059),r=n(55785),a=n(60253),s=n(79620),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){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new s.A,n=(0,a.v5)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,l=.8*e.itemHeight,u=(0,a.v5)(r,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);return t.add(u),u.setStyle(e.itemStyle),u.rotation=("inherit"===e.iconRotate?o:e.iconRotate||0)*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.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}(r.A),u=n(4884),c=n(22448),h=n(17182),d=n(41402);function p(e,t,n){var i,o,r,a,s=e.getBaseAxis(),l=e.getOtherAxis(s),c=(i=l,o=n,r=0,a=i.scale.getExtent(),"start"===o?r=a[0]:"end"===o?r=a[1]:(0,u.isNumber)(o)&&!isNaN(o)?r=o:a[0]>0?r=a[0]:a[1]<0&&(r=a[1]),r),h=s.dim,p=l.dim,g=t.mapDimension(p),f=t.mapDimension(h),m=+("x"===p||"radius"===p),y=(0,u.map)(e.dimensions,function(e){return t.mapDimension(e)}),v=!1,x=t.getCalculationInfo("stackResultDimension");return(0,d.sJ)(t,y[0])&&(v=!0,y[0]=x),(0,d.sJ)(t,y[1])&&(v=!0,y[1]=x),{dataDimsForPoint:y,valueStart:c,valueAxisDim:p,baseAxisDim:h,stacked:!!v,valueDim:g,baseDim:f,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function g(e,t,n,i){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=e.valueStart);var r=e.baseDataOffset,a=[];return a[r]=n.get(e.baseDim,i),a[1-r]=o,t.dataToPoint(a)}var f=n(30095),m=n(87142),y=n(68532),v=n(52384),x=n(84124),b=n(25970),S=n(31440),A=n(55037),_=n(43139),w=n(72059),M=n(73394),I=n(18538),C=n(35032),D=n(3306),O=n(34196);function L(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function T(e){for(var t=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<e.length;){var a=e[r++],s=e[r++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[t,n],[i,o]]}function k(e,t){var n=T(e),i=n[0],o=n[1],r=T(t),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function P(e){return u.isNumber(e)?e:.5*!!e}function N(e,t,n,i){var o=t.getBaseAxis(),r=+("x"!==o.dim&&"radius"!==o.dim),a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var d=(u[r]+c[r])/2,p=[];l[r]=p[r]=d,l[1-r]=u[1-r],p[1-r]=c[1-r],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function R(e,t){return[e[2*t],e[2*t+1]]}function z(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<w.BV.length;t++)if(e.get([w.BV[t],"endLabel","show"]))return!0;return!1}function E(e,t,n,i){if(!(0,_.g)(t,"cartesian2d"))return(0,A.Mi)(t,n,i);var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=z(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,r,o,t)}:null,u=t.getBaseAxis().isHorizontal(),c=(0,A.SM)(t,n,i,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.init=function(){var e=new s.A,t=new c.A;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i,o=this,r=e.coordinateSystem,a=this.group,s=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),d=s.getLayout("points")||[],v="polar"===r.type,x=this._coordSys,b=this._symbolDraw,S=this._polyline,A=this._polygon,_=this._lineGroup,M=!t.ssr&&e.get("animation"),I=!c.isEmpty(),T=c.get("origin"),k=p(r,s,T),R=I&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),o=(0,f.J)(2*i),r=0;r<i;r++){var a=g(n,e,t,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(r,s,k),z=e.get("showSymbol"),V=e.get("connectNulls"),B=z&&!v&&function(e,t,n){var i=e.get("showAllSymbol"),o="auto"===i;if(!i||o){var r=n.getAxesByScale("ordinal")[0];if(r&&!(o&&function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var o=t.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*h.A.getSymbolSize(t,a)[+!!e.isHorizontal()]>i)return!1;return!0}(r,t))){var a=t.mapDimension(r.dim),s={};return u.each(r.getViewLabels(),function(e){s[r.scale.getRawOrdinalNumber(e.tickValue)]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}(e,s,r),G=this._data;G&&G.eachItemGraphicEl(function(e,t){e.__temp&&(a.remove(e),G.setItemGraphicEl(t,null))}),z||b.remove(),a.add(_);var W=!v&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(i=r.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i;var F=function(e,t,n){var i,o,r=e.getVisual("visualMeta");if(r&&r.length&&e.count()){if("cartesian2d"!==t.type)return;for(var a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(!o)return;var l=t.getAxis(i),c=u.map(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),h=c.length,d=o.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=function(e,t){var n,i,o=[],r=e.length;function a(e,t,n){var i=e.coord,o=(n-i)/(t.coord-i);return{coord:n,color:(0,O.lerp)(o,[e.color,t.color])}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)n=l;else if(u>t){i?o.push(a(i,l,t)):n&&o.push(a(n,l,0),a(n,l,t));break}else n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}return o}(c,"x"===i?n.getWidth():n.getHeight()),g=p.length;if(!g&&h)return c[0].coord<0?d[1]?d[1]:c[h-1].color:d[0]?d[0]:c[0].color;var f=p[0].coord-10,y=p[g-1].coord+10,v=y-f;if(v<.001)return"transparent";u.each(p,function(e){e.offset=(e.coord-f)/v}),p.push({offset:g?p[g-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:d[0]||"transparent"});var x=new m.A(0,0,0,0,p,!0);return x[i]=f,x[i+"2"]=y,x}}(s,r,n)||s.getVisual("style")[s.getVisual("drawType")];if(S&&x.type===r.type&&W===this._step){I&&!A?A=this._newPolygon(d,R):A&&!I&&(_.remove(A),A=this._polygon=null),v||this._initOrUpdateEndLabel(e,r,(0,D.he)(F));var H=_.getClipPath();if(H){var Z=E(this,r,!1,e);y.LW(H,{shape:Z.shape},e)}else _.setClipPath(E(this,r,!0,e));z&&b.updateData(s,{isIgnore:B,clipShape:i,disableAnimation:!0,getSymbolPoint:function(e){return[d[2*e],d[2*e+1]]}}),L(this._stackedOnPoints,R)&&L(this._points,d)||(M?this._doUpdateAnimation(s,R,r,n,W,T,V):(W&&(d=N(d,r,W,V),R&&(R=N(R,r,W,V))),S.setShape({points:d}),A&&A.setShape({points:d,stackedOnPoints:R})))}else z&&b.updateData(s,{isIgnore:B,clipShape:i,disableAnimation:!0,getSymbolPoint:function(e){return[d[2*e],d[2*e+1]]}}),M&&this._initSymbolLabelAnimation(s,r,i),W&&(d=N(d,r,W,V),R&&(R=N(R,r,W,V))),S=this._newPolyline(d),I?A=this._newPolygon(d,R):A&&(_.remove(A),A=this._polygon=null),v||this._initOrUpdateEndLabel(e,r,(0,D.he)(F)),_.setClipPath(E(this,r,!0,e));var Y=e.getModel("emphasis"),X=Y.get("focus"),U=Y.get("blurScope"),q=Y.get("disabled");S.useStyle(u.defaults(l.getLineStyle(),{fill:"none",stroke:F,lineJoin:"bevel"})),(0,w.Mx)(S,e,"lineStyle"),S.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(S.getState("emphasis").style.lineWidth=+S.style.lineWidth+1),(0,C.z)(S).seriesIndex=e.seriesIndex,(0,w.Lm)(S,X,U,q);var K=P(e.get("smooth")),$=e.get("smoothMonotone");if(S.setShape({smooth:K,smoothMonotone:$,connectNulls:V}),A){var J=s.getCalculationInfo("stackedOnSeries"),j=0;A.useStyle(u.defaults(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(j=P(J.get("smooth"))),A.setShape({smooth:K,stackedOnSmooth:j,smoothMonotone:$,connectNulls:V}),(0,w.Mx)(A,e,"areaStyle"),(0,C.z)(A).seriesIndex=e.seriesIndex,(0,w.Lm)(A,X,U,q)}var Q=function(e){o._changePolyState(e)};s.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=s,this._coordSys=r,this._stackedOnPoints=R,this._points=d,this._step=W,this._valueOrigin=T,e.get("triggerLineEvent")&&(this.packEventData(e,S),A&&this.packEventData(e,A))},t.prototype.packEventData=function(e,t){(0,C.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,i){var o=e.getData(),r=x.le(o,i);if(this._changePolyState("emphasis"),r instanceof Array||null==r||!(r>=0))S.A.prototype.highlight.call(this,e,t,n,i);else{var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],u=a[2*r+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new h.A(o,r)).x=l,s.y=u,s.setZ(c,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},t.prototype.downplay=function(e,t,n,i){var o=e.getData(),r=x.le(o,i);if(this._changePolyState("normal"),null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else S.A.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,w.Pk)(this._polyline,e),t&&(0,w.Pk)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new b.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 b.z({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,o,r=t.getBaseAxis(),a=r.inverse;"cartesian2d"===t.type?(i=r.isHorizontal(),o=!1):"polar"===t.type&&(i="angle"===r.dim,o=!0);var s=e.hostModel,l=s.get("animationDuration");u.isFunction(l)&&(l=l(null));var c=s.get("animationDelay")||0,h=u.isFunction(c)?c(null):c;e.eachItemGraphicEl(function(e,r){if(e){var s=[e.x,e.y],d=void 0,p=void 0,g=void 0;if(n)if(o){var f=t.pointToCoord(s);i?(d=n.startAngle,p=n.endAngle,g=-f[1]/180*Math.PI):(d=n.r0,p=n.r,g=f[0])}else i?(d=n.x,p=n.x+n.width,g=e.x):(d=n.y+n.height,p=n.y,g=e.y);var m=p===d?0:(g-d)/(p-d);a&&(m=1-m);var y=u.isFunction(c)?c(r):l*m+h,v=e.getSymbolPath(),x=v.getTextContent();e.attr({scaleX:0,scaleY:0}),e.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),v.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(z(e)){var o,r,a,s=e.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||((c=this._endLabel=new v.Ay({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=function(e){for(var t,n,i=e.length/2;i>0&&(t=e[2*i-2],n=e[2*i-1],isNaN(t)||isNaN(n));i--);return i-1}(u);h>=0&&((0,M.qM)(l,(0,M.lx)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:h,defaultText:function(e,t,n){return null!=n?(0,I.T)(s,n):(0,I.i)(s,e)},enableTextSetter:!0},(r=(o=t.getBaseAxis()).isHorizontal(),a=o.inverse,{normal:{align:i.get("align")||(r?a?"right":"left":"center"),verticalAlign:i.get("verticalAlign")||(r?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,o,r,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=r.get("precision"),p=r.get("distance")||0,g=a.getBaseAxis(),f=g.isHorizontal(),m=g.inverse,y=t.shape,v=m?f?y.x:y.y+y.height:f?y.x+y.width:y.y,b=(f?p:0)*(m?-1:1),S=(f?0:-p)*(m?-1:1),A=f?"x":"y",_=function(e,t,n){for(var i,o,r=e.length/2,a=+("x"!==n),s=0,l=-1,u=0;u<r;u++)if(!(isNaN(o=e[2*u+a])||isNaN(e[2*u+1-a]))){if(0===u){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}(u,v,A),w=_.range,I=w[1]-w[0],C=void 0;if(I>=1){if(I>1&&!h){var D=R(u,w[0]);s.attr({x:D[0]+b,y:D[1]+S}),o&&(C=c.getRawValue(w[0]))}else{var D=l.getPointOn(v,A);D&&s.attr({x:D[0]+b,y:D[1]+S});var O=c.getRawValue(w[0]),L=c.getRawValue(w[1]);o&&(C=x.Il(n,d,O,L,_.t))}i.lastFrameIndex=w[0]}else{var T=1===e||i.lastFrameIndex>0?w[0]:0,D=R(u,T);o&&(C=c.getRawValue(T)),s.attr({x:D[0]+b,y:D[1]+S})}if(o){var k=(0,M.Lu)(s);"function"==typeof k.setLabelText&&k.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,i,o,r,a,s){for(var l,u=(l=[],t.diff(e).add(function(e){l.push({cmd:"+",idx:e})}).update(function(e,t){l.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){l.push({cmd:"-",idx:e})}).execute(),l),c=[],h=[],d=[],m=[],y=[],v=[],x=[],b=p(o,t,a),S=e.getLayout("points")||[],A=t.getLayout("points")||[],_=0;_<u.length;_++){var w=u[_],M=!0,I=void 0,C=void 0;switch(w.cmd){case"=":I=2*w.idx,C=2*w.idx1;var D=S[I],O=S[I+1],L=A[C],T=A[C+1];(isNaN(D)||isNaN(O))&&(D=L,O=T),c.push(D,O),h.push(L,T),d.push(n[I],n[I+1]),m.push(i[C],i[C+1]),x.push(t.getRawIndex(w.idx1));break;case"+":var k=w.idx,P=b.dataDimsForPoint,N=o.dataToPoint([t.get(P[0],k),t.get(P[1],k)]);C=2*k,c.push(N[0],N[1]),h.push(A[C],A[C+1]);var R=g(b,o,t,k);d.push(R[0],R[1]),m.push(i[C],i[C+1]),x.push(t.getRawIndex(k));break;case"-":M=!1}M&&(y.push(w),v.push(v.length))}v.sort(function(e,t){return x[e]-x[t]});for(var z=c.length,E=(0,f.J)(z),V=(0,f.J)(z),B=(0,f.J)(z),G=(0,f.J)(z),W=[],_=0;_<v.length;_++){var F=v[_],H=2*_,Z=2*F;E[H]=c[Z],E[H+1]=c[Z+1],V[H]=h[Z],V[H+1]=h[Z+1],B[H]=d[Z],B[H+1]=d[Z+1],G[H]=m[Z],G[H+1]=m[Z+1],W[_]=y[F]}return{current:E,next:V,stackedOnCurrent:B,stackedOnNext:G,status:W}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin,0),h=c.current,d=c.stackedOnCurrent,m=c.next,v=c.stackedOnNext;if(o&&(h=N(c.current,n,o,a),d=N(c.stackedOnCurrent,n,o,a),m=N(c.next,n,o,a),v=N(c.stackedOnNext,n,o,a)),k(h,m)>3e3||l&&k(d,v)>3e3){s.stopAnimation(),s.setShape({points:m}),l&&(l.stopAnimation(),l.setShape({points:m,stackedOnPoints:v}));return}s.shape.__points=c.current,s.shape.points=h;var x={shape:{points:m}};c.current!==h&&(x.shape.__points=c.next),s.stopAnimation(),y.oi(s,x,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),y.oi(l,{shape:{stackedOnPoints:v}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var b=[],S=c.status,A=0;A<S.length;A++)if("="===S[A].cmd){var _=e.getItemGraphicEl(S[A].idx1);_&&b.push({el:_,ptIdx:A})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<b.length;t++){var n=b[t].el,i=2*b[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(S.A),B=n(97548),G=n(50821);function W(e){e.registerChartView(V),e.registerSeriesModel(l),e.registerLayout((0,B.A)("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,G.A)("line"))}},25970:function(e,t,n){n.d(t,{N:()=>d,z:()=>g});var i=n(31831),o=n(30070),r=n(40843),a=n(26989),s=Math.min,l=Math.max;function u(e,t){return isNaN(e)||isNaN(t)}function c(e,t,n,i,o,r,a,c,h){for(var d,p,g,f,m,y,v=n,x=0;x<i;x++){var b=t[2*v],S=t[2*v+1];if(v>=o||v<0)break;if(u(b,S)){if(h){v+=r;continue}break}if(v===n)e[r>0?"moveTo":"lineTo"](b,S),g=b,f=S;else{var A=b-d,_=S-p;if(A*A+_*_<.5){v+=r;continue}if(a>0){for(var w=v+r,M=t[2*w],I=t[2*w+1];M===b&&I===S&&x<i;)x++,w+=r,v+=r,M=t[2*w],I=t[2*w+1],b=t[2*v],S=t[2*v+1],A=b-d,_=S-p;var C=x+1;if(h)for(;u(M,I)&&C<i;)C++,w+=r,M=t[2*w],I=t[2*w+1];var D=.5,O=0,L=0,T=void 0,k=void 0;if(C>=i||u(M,I))m=b,y=S;else{O=M-d,L=I-p;var P=b-d,N=M-b,R=S-p,z=I-S,E=void 0,V=void 0;if("x"===c){E=Math.abs(P),V=Math.abs(N);var B=O>0?1:-1;m=b-B*E*a,y=S,T=b+B*V*a,k=S}else if("y"===c){E=Math.abs(R),V=Math.abs(z);var G=L>0?1:-1;m=b,y=S-G*E*a,T=b,k=S+G*V*a}else E=Math.sqrt(P*P+R*R),m=b-O*a*(1-(D=(V=Math.sqrt(N*N+z*z))/(V+E))),y=S-L*a*(1-D),T=b+O*a*D,k=S+L*a*D,T=s(T,l(M,b)),k=s(k,l(I,S)),T=l(T,s(M,b)),k=l(k,s(I,S)),O=T-b,L=k-S,m=b-O*E/V,y=S-L*E/V,m=s(m,l(d,b)),y=s(y,l(p,S)),m=l(m,s(d,b)),y=l(y,s(p,S)),O=b-m,L=S-y,T=b+O*V/E,k=S+L*V/E}e.bezierCurveTo(g,f,m,y,b,S),g=T,f=k}else e.lineTo(b,S)}d=b,p=S,v+=r}return x}var h=function(){this.smooth=0,this.smoothConstraint=!0},d=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return(0,i.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,i=0,o=n.length/2;if(t.connectNulls){for(;o>0&&u(n[2*o-2],n[2*o-1]);o--);for(;i<o&&u(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=c(e,n,i,o,o,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,s=r.A.CMD,l="x"===t,u=[],c=0;c<o.length;){var h=o[c++],d=void 0,p=void 0,g=void 0,f=void 0,m=void 0,y=void 0,v=void 0;switch(h){case s.M:n=o[c++],i=o[c++];break;case s.L:if(d=o[c++],p=o[c++],(v=l?(e-n)/(d-n):(e-i)/(p-i))<=1&&v>=0){var x=l?(p-i)*v+i:(d-n)*v+n;return l?[e,x]:[x,e]}n=d,i=p;break;case s.C:d=o[c++],p=o[c++],g=o[c++],f=o[c++],m=o[c++],y=o[c++];var b=l?(0,a._E)(n,d,g,m,e,u):(0,a._E)(i,p,f,y,e,u);if(b>0)for(var S=0;S<b;S++){var A=u[S];if(A<=1&&A>=0){var x=l?(0,a.Yb)(i,p,f,y,A):(0,a.Yb)(n,d,g,m,A);return l?[e,x]:[x,e]}}n=m,i=y}}},t}(o.Ay),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.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,i.C6)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,o=0,r=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;r>0&&u(n[2*r-2],n[2*r-1]);r--);for(;o<r&&u(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=c(e,n,o,r,r,1,t.smooth,a,t.connectNulls);c(e,i,o+s-1,s,r,-1,t.stackedOnSmooth,a,t.connectNulls),o+=s+1,e.closePath()}},t}(o.Ay)},76545:function(e,t,n){n.d(t,{a:()=>B});var i=n(1514),o=n(21916),r=n(10675),a=n(4884),s=n(40843),l=2*Math.PI,u=Math.PI/180;function c(e,t){return r.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t){var n,i,r=c(e,t),s=e.get("center"),l=e.get("radius");a.isArray(l)||(l=[0,l]);var u=(0,o.lo)(r.width,t.getWidth()),h=(0,o.lo)(r.height,t.getHeight()),d=Math.min(u,h),p=(0,o.lo)(l[0],d/2),g=(0,o.lo)(l[1],d/2),f=e.coordinateSystem;if(f){var m=f.dataToPoint(s);n=m[0]||0,i=m[1]||0}else a.isArray(s)||(s=[s,s]),n=(0,o.lo)(s[0],u)+r.x,i=(0,o.lo)(s[1],h)+r.y;return{cx:n,cy:i,r0:p,r:g}}function d(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),i=t.mapDimension("value"),r=c(e,n),a=h(e,n),d=a.cx,p=a.cy,g=a.r,f=a.r0,m=-e.get("startAngle")*u,y=e.get("endAngle"),v=e.get("padAngle")*u;y="auto"===y?m-l:-y*u;var x=e.get("minAngle")*u+v,b=0;t.each(i,function(e){!isNaN(e)&&b++});var S=t.getSum(i),A=Math.PI/(S||b)*2,_=e.get("clockwise"),w=e.get("roseType"),M=e.get("stillShowZeroSum"),I=t.getDataExtent(i);I[0]=0;var C=_?1:-1,D=[m,y],O=C*v/2;(0,s.q)(D,!_),m=D[0];var L=Math.abs((y=D[1])-m),T=L,k=0,P=m;if(t.setLayout({viewRect:r,r:g}),t.each(i,function(e,n){if(isNaN(e))return void t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:d,cy:p,r0:f,r:w?NaN:g});(i="area"!==w?0===S&&M?A:e*A:L/b)<x?(i=x,T-=x):k+=e;var i,r=P+C*i,a=0,s=0;v>i?s=a=P+C*i/2:(a=P+O,s=r-O),t.setItemLayout(n,{angle:i,startAngle:a,endAngle:s,clockwise:_,cx:d,cy:p,r0:f,r:w?(0,o.Cb)(e,I,[f,g]):g}),P=r}),T<l&&b)if(T<=.001){var N=L/b;t.each(i,function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=N;var o=0,r=0;N<v?r=o=m+C*(n+.5)*N:(o=m+C*n*N+O,r=m+C*(n+1)*N-O),i.startAngle=o,i.endAngle=r}})}else A=T/k,P=m,t.each(i,function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),o=i.angle===x?x:e*A,r=0,a=0;o<v?a=r=P+C*o/2:(r=P+O,a=P+C*o-O),i.startAngle=r,i.endAngle=a,P+=C*o}})})}var p=n(53450),g=n(31831),f=n(52384),m=n(68532),y=n(88297),v=n(23917),x=n(72059),b=n(31440),S=n(45400),A=n(82883),_=n(6417),w=Math.PI/180;function M(e,t,n,i,o,r,a,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}(0,_.Xe)(e,l,l+a)&&function(e){for(var r={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:r,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-t-l.len2*o,d=i+l.len;u.rB=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d,u.maxY=c}u.list.push(l)}p(r),p(a)}(e)}function p(e){for(var r=e.rB,a=r*r,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=t+(Math.sqrt(c*c*(1-Math.abs(u*u/a)))+l.len2)*o,d=h-l.label.x,p=l.targetTextWidth-d*o;I(l,p,!0),l.label.x=h}}}function I(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,o=i.style,r=e.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=r.width+(a?0:l);if(t<c||n){var h=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,g=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",g)}var f=i.getBoundingRect();r.width=f.width;var m=(i.style.margin||0)+2.1;r.height=f.height+m,r.y-=(r.height-h)/2}}}function C(e){return"center"===e.position}var D=n(73394),O=n(27108),L=function(e){function t(t,n,i){var o=e.call(this)||this;o.z2=2;var r=new f.Ay;return o.setTextContent(r),o.updateData(t,n,i,!0),o}return(0,g.C6)(t,e),t.prototype.updateData=function(e,t,n,i){var o=e.hostModel,r=e.getItemModel(t),s=r.getModel("emphasis"),l=e.getItemLayout(t),u=(0,a.extend)((0,O.i)(r.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))return void this.setShape(u);if(i){this.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(m.LW(this,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=l.r0,m.LW(this,{shape:{r:l.r}},o,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),m.LW(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(this.shape.endAngle=l.startAngle,m.oi(this,{shape:{endAngle:l.endAngle}},o,t))}else(0,m.ap)(this),m.oi(this,{shape:u},o,t);this.useStyle(e.getItemVisual(t,"style")),(0,x.Mx)(this,r);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,f=r.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(o,e,t),this.ensureState("emphasis").shape=(0,a.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},(0,O.i)(s.getModel("itemStyle"),l)),(0,a.extend)(this.ensureState("select"),{x:p,y:g,shape:(0,O.i)(r.getModel(["select","itemStyle"]),l)}),(0,a.extend)(this.ensureState("blur"),{shape:(0,O.i)(r.getModel(["blur","itemStyle"]),l)});var y=this.getTextGuideLine(),v=this.getTextContent();y&&(0,a.extend)(y.ensureState("select"),{x:p,y:g}),(0,a.extend)(v.ensureState("select"),{x:p,y:g}),(0,x.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t,n){var i=t.getItemModel(n),o=i.getModel("labelLine"),r=t.getItemVisual(n,"style"),s=r&&r.fill,l=r&&r.opacity;(0,D.qM)(this,(0,D.lx)(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new y.A,this.setTextGuideLine(h)),(0,A.eR)(this,(0,A.rv)(i),{stroke:s,opacity:(0,a.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},t}(v.A),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return(0,g.C6)(t,e),t.prototype.render=function(e,t,n,i){var r,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var c=s.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<s.count();++d)c=s.getItemLayout(d);c&&(r=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===s.count()&&e.get("showEmptyCircle")){var p=new v.A({shape:h(e,n)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,u.add(p)}s.diff(l).add(function(e){var t=new L(s,e,r);s.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var n=l.getItemGraphicEl(t);n.updateData(s,e,r),n.off("click"),u.add(n),s.setItemGraphicEl(e,n)}).remove(function(t){var n=l.getItemGraphicEl(t);m.t5(n,e,t)}).execute(),function(e){var t,n,i=e.getData(),r=[],s=!1,l=(e.get("minShowLabelAngle")||0)*w,u=i.getLayout("viewRect"),c=i.getLayout("r"),h=u.width,d=u.x,p=u.y,g=u.height;function f(e){e.ignore=!0}i.each(function(e){var u,p,g,m,y=i.getItemGraphicEl(e),v=y.shape,x=y.getTextContent(),b=y.getTextGuideLine(),A=i.getItemModel(e),_=A.getModel("label"),w=_.get("position")||A.get(["emphasis","label","position"]),M=_.get("distanceToLabelLine"),I=_.get("alignTo"),C=(0,o.lo)(_.get("edgeDistance"),h),D=_.get("bleedMargin"),O=A.getModel("labelLine"),L=O.get("length");L=(0,o.lo)(L,h);var T=O.get("length2");if(T=(0,o.lo)(T,h),Math.abs(v.endAngle-v.startAngle)<l){(0,a.each)(x.states,f),x.ignore=!0,b&&((0,a.each)(b.states,f),b.ignore=!0);return}if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(x)){var k=(v.startAngle+v.endAngle)/2,P=Math.cos(k),N=Math.sin(k);t=v.cx,n=v.cy;var R="inside"===w||"inner"===w;if("center"===w)u=v.cx,p=v.cy,m="center";else{var z=(R?(v.r+v.r0)/2*P:v.r*P)+t,E=(R?(v.r+v.r0)/2*N:v.r*N)+n;if(u=z+3*P,p=E+3*N,!R){var V=z+P*(L+c-v.r),B=E+N*(L+c-v.r),G=V+(P<0?-1:1)*T;u="edge"===I?P<0?d+C:d+h-C:G+(P<0?-M:M),p=B,g=[[z,E],[V,B],[G,B]]}m=R?"center":"edge"===I?P>0?"right":"left":P>0?"left":"right"}var W=Math.PI,F=0,H=_.get("rotate");if((0,a.isNumber)(H))F=W/180*H;else if("center"===w)F=0;else if("radial"===H||!0===H)F=P<0?-k+W:-k;else if("tangential"===H&&"outside"!==w&&"outer"!==w){var Z=Math.atan2(P,N);Z<0&&(Z=2*W+Z),N>0&&(Z=W+Z),F=Z-W}if(s=!!F,x.x=u,x.y=p,x.rotation=F,x.setStyle({verticalAlign:"middle"}),R){x.setStyle({align:m});var Y=x.states.select;Y&&(Y.x+=x.x,Y.y+=x.y)}else{var X=x.getBoundingRect().clone();X.applyTransform(x.getComputedTransform());var U=(x.style.margin||0)+2.1;X.y-=U/2,X.height+=U,r.push({label:x,labelLine:b,position:w,len:L,len2:T,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new S.A(P,N),linePoints:g,textAlign:m,labelDistance:M,labelAlignTo:I,edgeDistance:C,bleedMargin:D,rect:X,unconstrainedWidth:X.width,labelStyleWidth:x.style.width})}y.setTextConfig({inside:R})}}),!s&&e.get("avoidLabelOverlap")&&function(e,t,n,i,o,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;C(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var g=e[d];if(!C(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;var p=g.label,f=g.linePoints,m=void 0;m="edge"===g.labelAlignTo?p.x<t?f[2][0]-g.labelDistance-a-g.edgeDistance:a+o-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?c-a-g.bleedMargin:a+o-h-g.bleedMargin:p.x<t?p.x-a-g.bleedMargin:a+o-p.x-g.bleedMargin,g.targetTextWidth=m,I(g,m)}}M(u,t,n,i,1,o,r,a,s,h),M(l,t,n,i,-1,o,r,a,s,c);for(var d=0;d<e.length;d++){var g=e[d];if(!C(g)&&g.linePoints){var p=g.label,f=g.linePoints,y="edge"===g.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:x,S=g.rect.width+b,A=f[1][0]-f[2][0];y?p.x<t?f[2][0]=a+g.edgeDistance+S+g.labelDistance:f[2][0]=a+o-g.edgeDistance-S-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+A),f[1][1]=f[2][1]=p.y}}}(r,t,n,c,h,g,d,p);for(var m=0;m<r.length;m++){var y=r[m],v=y.label,x=y.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),b&&((0,a.each)(v.states,f),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(x){var D=y.linePoints;b||!D?((0,a.each)(x.states,f),x.ignore=!0):((0,A.YI)(D,y.minTurnAngle),(0,A.QK)(D,y.surfaceNormal,y.maxSurfaceAngle),x.setShape({points:D}),v.__hostTarget.textGuideLineConfig={anchor:new S.A(D[0][0],D[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="pie",t}(b.A),k=n(29605),P=n(84124),N=n(88569),R=n(96457),z=n(55785),E=P.$r(),V=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 R.A(a.bind(this.getData,this),a.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,k.A)(this,{coordDimensions:["value"],encodeDefaulter:a.curry(N.ln,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=E(n),r=i.seats;if(!r){var a=[];n.each(n.mapDimension("value"),function(e){a.push(e)}),r=i.seats=(0,o.kM)(a,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){P.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);function B(e){e.registerChartView(T),e.registerSeriesModel(V),(0,i.I)("pie",e.registerAction),e.registerLayout((0,a.curry)(d,"pie")),e.registerProcessor((0,p.A)("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(0,a.isNumber)(i)||!!isNaN(i)||!(i<0)})}})}},32741:function(e,t,n){n.d(t,{a:()=>x});var i=n(74653),o=n(31831),r=n(43059),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,o.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,r.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}(n(55785).A),s=n(22448),l=n(51690),u=n(30070),c=n(79620),h=n(60253),d=n(35032),p=function(){},g=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,o.C6)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,o=t.size,r=this.symbolProxy,a=r.shape,s=e.getContext?e.getContext():e,l=s&&o[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];!(isNaN(c)||isNaN(h))&&(!u||u.contain(c,h))&&(a.x=c-o[0]/2,a.y=h-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(e,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,o=this._ctx,r=this.softClipShape;if(o){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];!(isNaN(a)||isNaN(s))&&(!r||r.contain(a,s))&&o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-r/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+r&&t<=c+a)return s}return -1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return(e=n[0],t=n[1],i.contain(e,t))?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,o=i[0],r=i[1],a=1/0,s=1/0,u=-1/0,c=-1/0,h=0;h<n.length;){var d=n[h++],p=n[h++];a=Math.min(d,a),u=Math.max(d,u),s=Math.min(p,s),c=Math.max(p,c)}e=this._rect=new l.A(a-o/2,s-r/2,u-a+o,c-s+r)}return e},t}(u.Ay),f=function(){function e(){this.group=new c.A}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var n=(e.endIndex-e.startIndex)*2,i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],o=t.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new g({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=(0,h.v5)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=(0,d.z)(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),m=n(97548),y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),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 i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=(0,m.A)("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new f:new s.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}(n(31440).A),v=n(50926);function x(e){(0,i.Y)(v.a),e.registerSeriesModel(a),e.registerChartView(y),e.registerLayout((0,m.A)("scatter"))}},44878:function(e,t,n){n.d(t,{A:()=>c});var i=n(31831),o=n(4884),r=n(36805),a=n(27016),s=n(84124),l=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function u(e){var t={};return(0,o.each)(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}let c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){var i=u(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=u(e);(0,o.merge)(this.option,e,!0),(0,o.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;(0,o.each)([["start","startValue"],["end","endValue"]],function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,o.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return(0,o.each)(a.$5,function(n){var i=this.getReferringComponents((0,a.dX)(n),s.UW);if(i.specified){t=!0;var r=new l;(0,o.each)(i.models,function(e){r.add(e.componentIndex)}),e.set(n,r)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0,r="vertical"===t?"y":"x",u=n.findComponents({mainType:r+"Axis"});if(c(u,r),i){var u=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});c(u,"single")}function c(t,n){var r=t[0];if(r){var a=new l;if(a.add(r.componentIndex),e.set(n,a),i=!1,"x"===n||"y"===n){var u=r.getReferringComponents("grid",s.US).models[0];u&&(0,o.each)(t,function(e){r.componentIndex!==e.componentIndex&&u===e.getReferringComponents("grid",s.US).models[0]&&a.add(e.componentIndex)})}}}i&&(0,o.each)(a.$5,function(t){if(i){var o=n.findComponents({mainType:(0,a.dX)(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var r=new l;r.add(o[0].componentIndex),e.set(t,r),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e||(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");(0,o.each)([["start","startValue"],["end","endValue"]],function(i,o){var r=null!=e[i[0]],a=null!=e[i[1]];r&&!a?t[o]="percent":!r&&a?t[o]="value":n?t[o]=n[o]:r&&(t[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){null==e&&(e=this.ecModel.getComponent((0,a.dX)(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,i){(0,o.each)(n.indexList,function(n){e.call(t,i,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent((0,a.dX)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;(0,o.each)([["start","startValue"],["end","endValue"]],function(i){(null!=e[i[0]]||null!=e[i[1]])&&(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,o.each)(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(r.A)},59730:function(e,t,n){n.d(t,{A:()=>o});var i=n(31831);let o=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,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(n(43583).A)},27016:function(e,t,n){n.d(t,{$5:()=>o,CN:()=>l,_u:()=>a,dX:()=>s,es:()=>u});var i=n(4884),o=["x","y","radius","angle","single"],r=["cartesian2d","polar","singleAxis"];function a(e){var t=e.get("coordinateSystem");return(0,i.indexOf)(r,t)>=0}function s(e){return e+"Axis"}function l(e,t){var n,o=(0,i.createHashMap)(),r=[],a=(0,i.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},function(e){a.get(e.uid)||l(e)});do n=!1,e.eachComponent("dataZoom",s);while(n);function s(e){var t;!a.get(e.uid)&&(t=!1,e.eachTargetAxis(function(e,n){var i=o.get(e);i&&i[n]&&(t=!0)}),t)&&(l(e),n=!0)}function l(e){a.set(e.uid,!0),r.push(e),e.eachTargetAxis(function(e,t){(o.get(e)||o.set(e,[]))[t]=!0})}return r}function u(e){var t=e.ecModel,n={infoList:[],infoMap:(0,i.createHashMap)()};return e.eachTargetAxis(function(e,i){var o=t.getComponent(s(e),i);if(o){var r=o.getCoordSysModel();if(r){var a=r.uid,l=n.infoMap.get(a);l||(l={model:r,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(o)}}}),n}},61305:function(e,t,n){n.d(t,{a:()=>a});var i=n(74653),o=n(49747),r=n(5920);function a(e){(0,i.Y)(o.a),(0,i.Y)(r.a)}},97019:function(e,t,n){n.d(t,{A:()=>f});var i=n(4884),o=n(27016),r=n(21916),a=n(91365),s=n(93530),l=n(89972),u=n(84124),c=i.each,h=r.Y6,d=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if((0,o._u)(t)){var n=(0,o.dX)(this._dimName),i=t.getReferringComponents(n,u.US).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return i.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];c(["start","end"],function(a,c){var h=e[a],d=e[a+"Value"];"percent"===o[c]?(null==h&&(h=s[c]),d=i.parse(r.Cb(h,s,n))):(t=!0,d=null==d?n[c]:i.parse(d),h=r.Cb(d,n,s)),u[c]=null==d||isNaN(d)?n[c]:d,l[c]=null==h||isNaN(h)?s[c]:h}),h(u),h(l);var d=this._minMaxSpan;function p(e,t,n,o,s){var l=s?"Span":"ValueSpan";(0,a.A)(0,e,n,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)t[u]=r.Cb(e[u],n,o,!0),s&&(t[u]=i.parse(t[u]))}return t?p(u,l,n,s,!1):p(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t,n,i,o,r,a=this.getTargetSeriesModels();this._dataExtent=(t=this,n=this._dimName,i=[1/0,-1/0],c(a,function(e){(0,s.PN)(i,e.getData(),n)}),o=t.getAxisModel(),[(r=(0,l.Tc)(o.axis.scale,o,i).calculate()).min,r.max]),this._updateMinMaxSpan();var u=this.calculateDataWindow(e.settledOption);this._valueWindow=u.valueWindow,this._percentWindow=u.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,o=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;"none"!==r&&c(o,function(e){var t=e.getData(),o=t.mapDimensionsAll(n);if(o.length){if("weakFilter"===r){var s=t.getStore(),l=i.map(o,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,r=0;r<o.length;r++){var u=s.get(l[r],e),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(t=!0),d&&(n=!0)}return i&&t&&n})}else c(o,function(n){if("empty"===r)e.setData(t=t.map(n,function(e){var t;return(t=e)>=a[0]&&t<=a[1]?e:NaN}));else{var i={};i[n]=a,t.selectRange(i)}});c(o,function(e){t.setApproximateExtent(a,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;c(["min","max"],function(i){var o=t.get(i+"Span"),a=t.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=r.Cb(n[0]+a,n,[0,100],!0):null!=o&&(a=r.Cb(o,[0,100],n,!0)-n[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=r.hb(n,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},e}();let p={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var a=e.getComponent((0,o.dX)(i),r);t(i,r,a,n)})})}t(function(e,t,n,i){n.__dzAxisProxy=null});var n=[];t(function(t,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new d(t,i,r,e),n.push(o.__dzAxisProxy))});var r=(0,i.createHashMap)();return(0,i.each)(n,function(e){(0,i.each)(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var g=!1;function f(e){g||(g=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,p),e.registerAction("dataZoom",function(e,t){var n=(0,o.CN)(t,e);(0,i.each)(n,function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}},49747:function(e,t,n){n.d(t,{a:()=>_});var i=n(31831),o=n(44878),r=n(3818),a=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.type="dataZoom.inside",t.defaultOption=(0,r.G_)(o.A.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(o.A),s=n(59730),l=n(91365),u=n(96120),c=n(89425),h=n(84124),d=n(4884),p=n(27016),g=(0,h.$r)();function f(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function m(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function y(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,i.C6)(t,e),t.prototype.render=function(t,n,i){var o;(e.prototype.render.apply(this,arguments),t.noTarget())?this._clear():(this.range=t.getPercentRange(),o={pan:(0,d.bind)(x.pan,this),zoom:(0,d.bind)(x.zoom,this),scrollMove:(0,d.bind)(x.scrollMove,this)},g(i).coordSysRecordMap.each(function(e){var n=e.dataZoomInfoMap.get(t.uid);n&&(n.getRange=o)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=g(e).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||f(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(s.A),x={zoom:function(e,t,n,i){var o=this.range,r=o.slice(),a=e.axisModels[0];if(a){var s=S[t](null,[i.originX,i.originY],a,n,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],c=Math.max(1/i.scale,0);r[0]=(r[0]-u)*c+u,r[1]=(r[1]-u)*c+u;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if((0,l.A)(0,r,[0,100],0,h.minSpan,h.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:b(function(e,t,n,i,o,r){var a=S[i]([r.oldX,r.oldY],[r.newX,r.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:b(function(e,t,n,i,o,r){return S[i]([0,0],[r.scrollDelta,r.scrollDelta],t,o,n).signal*(e[1]-e[0])*r.scrollDelta})};function b(e){return function(t,n,i,o){var r=this.range,a=r.slice(),s=t.axisModels[0];if(s){var u=e(a,s,t,n,i,o);if((0,l.A)(u,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var S={grid:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}},A=n(97019);function _(e){(0,A.A)(e),e.registerComponentModel(a),e.registerComponentView(v),e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=g(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,d.createHashMap)());i.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){var n=(0,p.es)(e);(0,d.each)(n.infoList,function(n){var o,r,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(r={model:o=n.model,containsPoint:(0,d.curry)(y,o),dispatchAction:(0,d.curry)(m,t),dataZoomInfoMap:null,controller:null}).controller=new u.A(t.getZr()),(0,d.each)(["pan","zoom","scrollMove"],function(e){a.on(e,function(t){var n=[];r.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,r.model.mainType,r.controller,t);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&r.dispatchAction(n)})}),r));(l.dataZoomInfoMap||(l.dataZoomInfoMap=(0,d.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),i.each(function(e){var t,n,o,r,a,s=e.controller,l=e.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(a=l.get(u))}if(!a)return void f(i,e);var h=(n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,l.each(function(e){var i=e.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");o[n+a]>o[n+t]&&(t=a),r=r&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}});s.enable(h.controlType,h.opt),s.setPointerChecker(e.containsPoint),c.N(e,"dispatchAction",a.model.get("throttle",!0),"fixRate")})})}},5920:function(e,t,n){n.d(t,{a:()=>P});var i=n(31831),o=n(44878),r=n(3818),a=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.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,r.G_)(o.A.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(o.A),s=n(4884),l=n(77250),u=n(63811),c=n(79620),h=n(97451),d=n(88297),p=n(52384),g=n(59033),f=n(45400),m=n(89425),y=n(59730),v=n(21916),x=n(10675),b=n(91365),S=n(27016),A=n(72059),_=n(60253),w=n(73394),M=u.A,I="horizontal",C="vertical",D=["line","bar","candlestick","scatter"],O={easing:"cubicOut",duration:100,delay:0},L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return(0,i.C6)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,s.bind)(this._onBrush,this),this._onBrushEnd=(0,s.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,o){if(e.prototype.render.apply(this,arguments),m.N(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show"))return void this.group.removeAll();if(t.noTarget()){this._clear(),this.group.removeAll();return}o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){m.IU(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new c.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===I?{right:o.width-i.x-i.width,top:o.height-30-7-7*!!n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=x.vs(e.option);(0,s.each)(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=r[e])});var l=x.dV(a,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===C&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==I||o?n===I&&o?{scaleY:a?1:-1,scaleX:-1}:n!==C||o?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([r]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new M({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new M({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,s.bind)(this._onClickPanel,this)}),r=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),a=r&&o.getDimensionInfo(r)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u,p=o.getDataExtent(a),g=(p[1]-p[0])*.3;p=[p[0]-g,p[1]+g];var f=[0,t[1]],m=[0,t[0]],y=[[t[0],0],[0,0]],x=[],b=m[1]/(o.count()-1),S=0,A=Math.round(o.count()/t[0]);o.each([a],function(e,t){if(A>0&&t%A){S+=b;return}var n=null==e||isNaN(e)||""===e,i=n?0:(0,v.Cb)(e,p,f,!0);n&&!u&&t?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!n&&u&&(y.push([S,0]),x.push([S,0])),y.push([S,i]),x.push([S,i]),S+=b,u=n}),s=this._shadowPolygonPts=y,l=this._shadowPolylinePts=x}this._shadowData=o,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var _=this.dataZoomModel,w=0;w<3;w++){var M=function(e){var t=_.getModel(e?"selectedDataBackground":"dataBackground"),n=new c.A,i=new h.A({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new d.A({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}(1===w);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},t.prototype._prepareDataShadowInfo=function(){var e,t=this.dataZoomModel,n=t.get("showDataShadow");if(!1!==n){var i=this.ecModel;return t.eachTargetAxis(function(o,r){var a=t.getAxisProxy(o,r).getTargetSeriesModels();(0,s.each)(a,function(t){if(!e&&!(!0!==n&&0>(0,s.indexOf)(D,t.get("type")))){var a,l=i.getComponent((0,S.dX)(o),r).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[o],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),e={thisAxis:l,series:t,thisDim:o,otherDim:u,otherAxisInverse:a}}},this)},this),e}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],o=this._displayables.sliderGroup,r=this._size,a=this.dataZoomModel,l=this.api,c=a.get("borderRadius")||0,h=a.get("brushSelect"),d=t.filler=new M({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new M({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:c},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,s.each)([0,1],function(t){var r=a.get("handleIcon");!_.$V[r]&&0>r.indexOf("path://")&&0>r.indexOf("image://")&&(r="path://"+r);var l=(0,_.v5)(r,-1,0,2,2,null,!0);l.attr({cursor:T(this._orient),draggable:!0,drift:(0,s.bind)(this._onDragMove,this,t),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=(0,v.lo)(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,A.iJ)(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),o.add(n[t]=l);var d=a.getModel("textStyle");e.add(i[t]=new p.Ay({silent:!0,invisible:!0,style:(0,w.VB)(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var g=d;if(h){var f=(0,v.lo)(a.get("moveHandleSize"),r[1]),m=t.moveHandle=new u.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:f}}),y=.8*f,x=t.moveHandleIcon=(0,_.v5)(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);x.silent=!0,x.y=r[1]+f/2-.5,m.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(r[1]/2,Math.max(f,10));(g=t.moveZone=new u.A({invisible:!0,shape:{y:r[1]-b,height:f+b}})).on("mouseover",function(){l.enterEmphasis(m)}).on("mouseout",function(){l.leaveEmphasis(m)}),o.add(m),o.add(x),o.add(g)}g.attr({draggable:!0,cursor:T(this._orient),drift:(0,s.bind)(this._onDragMove,this,"all"),ondragstart:(0,s.bind)(this._showDataInfo,this,!0),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,v.Cb)(e[0],[0,100],t,!0),(0,v.Cb)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,b.A)(t,i,o,n.get("zoomLock")?"all":e,null!=r.minSpan?(0,v.Cb)(r.minSpan,a,o,!0):null,null!=r.maxSpan?(0,v.Cb)(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=(0,v.Y6)([(0,v.Cb)(i[0],o,a,!0),(0,v.Cb)(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=(0,v.Y6)(n.slice()),o=this._size;(0,s.each)([0,1],function(e){var i=t.handles[e],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[e]+(e?-1:1),y:o[1]/2-r/2})},this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var r={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(r),t.moveZone.setShape(r),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",r.x+r.width/2));for(var a=t.dataShadowSegs,l=[0,i[0],i[1],o[0]],c=0;c<a.length;c++){var h=a[c],d=h.getClipPath();d||(d=new u.A,h.setClipPath(d)),d.setShape({x:l[c],y:0,width:l[c+1]-l[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,r=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();r=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,v.Y6)(this._handleEnds.slice());function h(e){var t=g.getTransform(n.handles[e].parent,this.group),a=g.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,l=g.applyTransform([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:o===I?"middle":a,align:o===I?a:"center",text:r[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(null==o||"auto"===o)&&(o=t.getPixelPrecision());var r=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return(0,s.isFunction)(i)?i(e,r):(0,s.isString)(i)?i.replace("{value}",r):r},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,l.ds(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),r=g.applyTransform([t,n],o,!0),a=this._updateInterval(e,r[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0)&&!(n[0]>t[0])&&!(n[1]<0)&&!(n[1]>t[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new f.A(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),o=[0,100];this._range=(0,v.Y6)([(0,v.Cb)(n.x,i,o,!0),(0,v.Cb)(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(l.ds(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new M({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(r.x,r.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?O:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=(0,S.es)(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return e},t.type="dataZoom.slider",t}(y.A);function T(e){return"vertical"===e?"ns-resize":"ew-resize"}var k=n(97019);function P(e){e.registerComponentModel(a),e.registerComponentView(L),(0,k.A)(e)}},88593:function(e,t,n){n.d(t,{A:()=>j});var i=n(31831),o=n(4884),r=n(16419),a=n(79620),s=n(63811),l=n(59033),u=n(88297),c=n(97451),h=n(67614),d=n(31393),p=Math.min,g=Math.max,f=Math.pow,m="globalPan",y={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},v={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},x={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0,S=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new a.A,n._uid="brushController_"+b++,(0,o.each)(q,function(e,t){this._handlers[t]=(0,o.bind)(e,this)},n),n}return(0,i.C6)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||h.s(t,m,this._uid),(0,o.each)(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=(0,o.merge)((0,o.clone)(x),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;h._r(e,m,this._uid),(0,o.each)(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,o.each)(e,function(e){t[e.panelId]=(0,o.clone)(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=(0,o.map)(e,function(e){return(0,o.merge)((0,o.clone)(x),e,!0)});var t=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new d.A(t,e,function(e,t){return a(e.__brushOption,t)},a).add(s).update(s).remove(function(e){t[e]!==r&&i.group.remove(t[e])}).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function s(o,a){var s=e[o];if(null!=a&&t[a]===r)n[o]=t[a];else{var l=n[o]=null!=a?(t[a].__brushOption=s,t[a]):_(i,A(i,s));I(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),L(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(r.A);function A(e,t){var n=$[t.brushType].createCover(e,t);return n.__brushOption=t,M(n,t),e.group.add(n),n}function _(e,t){var n=C(t);return n.endCreating&&(n.endCreating(e,t),M(t,t.__brushOption)),t}function w(e,t){var n=t.__brushOption;C(t).updateCoverShape(e,t,n.range,n)}function M(e,t){var n=t.z;null==n&&(n=1e4),e.traverse(function(e){e.z=n,e.z2=n})}function I(e,t){C(t).updateCommon(e,t),w(e,t)}function C(e){return $[e.__brushOption.brushType]}function D(e,t,n){var i,r=e._panels;if(!r)return!0;var a=e._transform;return(0,o.each)(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function O(e,t){var n=e._panels;if(!n)return!0;var i=t.__brushOption.panelId;return null==i||n[i]}function L(e){var t=e._covers,n=t.length;return(0,o.each)(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function T(e,t){var n=(0,o.map)(e._covers,function(e){var t=e.__brushOption,n=(0,o.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function k(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function P(e,t,n,i){var r=new a.A;return r.add(new s.A({name:"main",style:E(n),silent:!0,draggable:!0,cursor:"move",drift:(0,o.curry)(G,e,t,r,["n","s","w","e"]),ondragend:(0,o.curry)(T,t,{isEnd:!0})})),(0,o.each)(i,function(n){r.add(new s.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,o.curry)(G,e,t,r,n),ondragend:(0,o.curry)(T,t,{isEnd:!0})}))}),r}function N(e,t,n,i){var o=i.brushStyle.lineWidth||0,r=g(o,6),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],h=n[1][1],d=c-r+o/2,p=h-r+o/2,f=c-a,m=h-s,y=f+o,v=m+o;z(e,t,"main",a,s,f,m),i.transformable&&(z(e,t,"w",l,u,r,v),z(e,t,"e",d,u,r,v),z(e,t,"n",l,u,y,r),z(e,t,"s",l,p,y,r),z(e,t,"nw",l,u,r,r),z(e,t,"ne",d,u,r,r),z(e,t,"sw",l,p,r,r),z(e,t,"se",d,p,r,r))}function R(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(E(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,o.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o,r,a,s=t.childOfName(n.join("")),l=1===n.length?B(e,n[0]):(("e"===(a=[B(o=e,(r=n)[0]),B(o,r[1])])[0]||"w"===a[0])&&a.reverse(),a.join(""));s&&s.attr({silent:!i,invisible:!i,cursor:i?v[l]+"-resize":null})})}function z(e,t,n,i,o,r,a){var s,l,u,c=t.childOfName(n);c&&c.setShape((l=p((s=H(e,t,[[i,o],[i+r,o+a]]))[0][0],s[1][0]),{x:l,y:u=p(s[0][1],s[1][1]),width:g(s[0][0],s[1][0])-l,height:g(s[0][1],s[1][1])-u}))}function E(e){return(0,o.defaults)({strokeNoScale:!0},e.brushStyle)}function V(e,t,n,i){var o=[p(e,n),p(t,i)],r=[g(e,n),g(t,i)];return[[o[0],r[0]],[o[1],r[1]]]}function B(e,t){return({left:"w",right:"e",top:"n",bottom:"s"})[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],l.getTransform(e.group))]}function G(e,t,n,i,r,a){var s=n.__brushOption,l=e.toRectRange(s.range),u=F(t,r,a);(0,o.each)(i,function(e){var t=y[e];l[t[0]][t[1]]+=u[t[0]]}),s.range=e.fromRectRange(V(l[0][0],l[1][0],l[0][1],l[1][1])),I(t,n),T(t,{isEnd:!1})}function W(e,t,n,i){var r=t.__brushOption.range,a=F(e,n,i);(0,o.each)(r,function(e){e[0]+=a[0],e[1]+=a[1]}),I(e,t),T(e,{isEnd:!1})}function F(e,t,n){var i=e.group,o=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function H(e,t,n){var i=O(e,t);return i&&!0!==i?i.clipPath(n,e._transform):(0,o.clone)(n)}function Z(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Y(e,t,n){return e.childOfName("main").contain(t,n)}function X(e,t,n,i){var r,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],o=n[0]-i[0],r=n[1]-i[1];return f(o*o+r*r,.5)>6}(e)||a){if(s&&!a){"single"===l.brushMode&&L(e);var u=(0,o.clone)(l);u.brushType=U(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=A(e,u),e._covers.push(a)}if(a){var c=$[U(e._brushType,s)];a.__brushOption.range=c.getCreatingRange(H(e,a,e._track)),i&&(_(e,a),c.updateCommon(e,a)),w(e,a),r={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&D(e,t,n)&&L(e)&&(r={isEnd:i,removeOnClick:!0});return r}function U(e,t){return"auto"===e?t.defaultBrushType:e}var q={mousedown:function(e){if(this._dragging)K(this,e);else if(!e.target||!e.target.draggable){Z(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=D(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(!function(e,t,n){if(!(!e._brushType||(i=e,o=t.offsetX,r=t.offsetY,a=i._zr,o<0||o>a.getWidth()||r<0||r>a.getHeight()))){var i,o,r,a,s=e._zr,l=e._covers,u=D(e,t,n);if(!e._dragging)for(var c=0;c<l.length;c++){var h=l[c].__brushOption;if(u&&(!0===u||h.panelId===u.panelId)&&$[h.brushType].contain(l[c],n[0],n[1]))return}u&&s.setCursorStyle("crosshair")}}(this,e,i),this._dragging){Z(e);var o=X(this,e,i,!1);o&&T(this,o)}},mouseup:function(e){K(this,e)}};function K(e,t){if(e._dragging){Z(t);var n=t.offsetX,i=t.offsetY,o=e.group.transformCoordToLocal(n,i),r=X(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&T(e,r)}}var $={lineX:J(0),lineY:J(1),rect:{createCover:function(e,t){function n(e){return e}return P({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=k(e);return V(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){N(e,t,n,i)},updateCommon:R,contain:Y},polygon:{createCover:function(e,t){var n=new a.A;return n.add(new u.A({name:"main",style:E(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new c.A({name:"main",draggable:!0,drift:(0,o.curry)(W,e,t),ondragend:(0,o.curry)(T,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:H(e,t,n)})},updateCommon:R,contain:Y}};function J(e){return{createCover:function(t,n){return P({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=k(t);return[p(n[0][e],n[1][e]),g(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,o){var r,a=O(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),N(t,n,l,o)},updateCommon:R,contain:Y}}let j=S},63785:function(e,t,n){n.d(t,{A:()=>x});var i=n(4884),o=n(59033),r=n(28709),a=n(84124),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function e(e,t,n){var o=this;this._targetInfoList=[];var r=c(t,e);(0,i.each)(h,function(e,t){(!n||!n.include||(0,i.indexOf)(n.include,t)>=0)&&e(r,o._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=g[e.brushType](0,n,t);e.__rangeOffset={offset:m[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){(0,i.each)(e,function(e){var o=this.findTargetInfo(e,t);o&&!0!==o&&(0,i.each)(o.coordSyses,function(i){var o=g[e.brushType](1,i,e.range,!0);n(e,o.values,i,t)})},this)},e.prototype.setInputRanges=function(e,t){(0,i.each)(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i,o,r,a,s,l=g[e.brushType](0,n.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?m[e.brushType](l.values,u.offset,(i=l.xyMinMax,o=u.xyMinMax,r=v(i),a=v(o),isNaN((s=[r[0]/a[0],r[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return(0,i.map)(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:r.wd(i),isTargetByCursor:r.x$(i,e,n.coordSysModel),getLinearBrushOtherExtent:r.wx(i)}})},e.prototype.controlSeries=function(e,t,n){var o=this.findTargetInfo(e,n);return!0===o||o&&(0,i.indexOf)(o.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=c(t,e),o=0;o<n.length;o++){var r=n[o],a=e.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<d.length;s++)if(d[s](i,r))return r}return!0},e}();function u(e){return e[0]>e[1]&&e.reverse(),e}function c(e,t){return(0,a._e)(e,t,{includeMainTypes:s})}var h={grid:function(e,t){var n=e.xAxisModels,o=e.yAxisModels,r=e.gridModels,a=(0,i.createHashMap)(),s={},l={};(n||o||r)&&((0,i.each)(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),(0,i.each)(o,function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0}),(0,i.each)(r,function(e){a.set(e.id,e),s[e.id]=!0,l[e.id]=!0}),a.each(function(e){var r=e.coordinateSystem,a=[];(0,i.each)(r.getCartesians(),function(e,t){((0,i.indexOf)(n,e.getAxis("x").model)>=0||(0,i.indexOf)(o,e.getAxis("y").model)>=0)&&a.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:p.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})}))},geo:function(e,t){(0,i.each)(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:p.geo})})}},d=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],p={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(o.getTransform(e)),t}},g={lineX:(0,i.curry)(f,0),lineY:(0,i.curry)(f,1),rect:function(e,t,n,i){var o=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[u([o[0],r[0]]),u([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,o){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,i.map)(n,function(n){var i=e?t.pointToData(n,o):t.dataToPoint(n,o);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i}),xyMinMax:r}}};function f(e,t,n,o){var r=n.getAxis(["x","y"][e]),a=u((0,i.map)([0,1],function(e){return t?r.coordToData(r.toLocalCoord(o[e]),!0):r.toGlobalCoord(r.dataToCoord(o[e]))})),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var m={lineX:(0,i.curry)(y,0),lineY:(0,i.curry)(y,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,i.map)(e,function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]})}};function y(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function v(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}let x=l},96120:function(e,t,n){n.d(t,{A:()=>h});var i=n(31831),o=n(16419),r=n(77250),a=n(67614),s=n(4884);function l(e,t,n,i,o){e.pointerChecker&&e.pointerChecker(i,o.originX,o.originY)&&(r.ds(i.event),u(e,t,n,i,o))}function u(e,t,n,i,o){o.isAvailableBehavior=(0,s.bind)(c,null,n,i),e.trigger(t,o)}function c(e,t,n){var i=n[e];return!e||i&&(!(0,s.isString)(i)||t.event[i+"Key"])}let h=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=(0,s.bind)(n._mousedownHandler,n),o=(0,s.bind)(n._mousemoveHandler,n),r=(0,s.bind)(n._mouseupHandler,n),a=(0,s.bind)(n._mousewheelHandler,n),l=(0,s.bind)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=(0,s.defaults)((0,s.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(!0===e||"move"===e||"pan"===e)&&(t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",r)),(!0===e||"scale"===e||"zoom"===e)&&(t.on("mousewheel",a),t.on("pinch",l))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",o),t.off("mouseup",r),t.off("mousewheel",a),t.off("pinch",l)},n}return(0,i.C6)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!r.W5(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!c("moveOnMouseMove",e,this._opt)||"pinch"===e.gestureEvent||a.Ck(this._zr,"globalPan"))){var t=e.offsetX,n=e.offsetY,i=this._x,o=this._y;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&r.ds(e.event),u(this,"pan","moveOnMouseMove",e,{dx:t-i,dy:n-o,oldX:i,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){r.W5(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=c("zoomOnMouseWheel",e,this._opt),n=c("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),r=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=o>3?1.4:o>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:r,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i);l(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:r,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!a.Ck(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;l(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(o.A)},28709:function(e,t,n){n.d(t,{wd:()=>a,wx:()=>s,x$:()=>l});var i=n(51690),o=n(10099),r=n(59033);function a(e){return e=u(e),function(t){return r.clipPointsByRect(t,e)}}function s(e,t){return e=u(e),function(n){var i=null!=t?t:n,o=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(o||0)]}}function l(e,t,n){var i=u(e);return function(e,r){return i.contain(r[0],r[1])&&!(0,o.I)(e,t,n)}}function u(e){return i.A.create(e)}},10099:function(e,t,n){n.d(t,{I:()=>o});var i={axisPointer:1,tooltip:1,brush:1};function o(e,t,n){var o=t.getComponentByElement(e.topTarget),r=o&&o.coordinateSystem;return o&&o!==n&&!i.hasOwnProperty(o.mainType)&&r&&r.model!==n}},67614:function(e,t,n){n.d(t,{Ck:()=>l,_r:()=>s,s:()=>a});var i=n(31950),o=n(4884),r="\0_ec_interaction_mutex";function a(e,t,n){u(e)[t]=n}function s(e,t,n){var i=u(e);i[t]===n&&(i[t]=null)}function l(e,t){return!!u(e)[t]}function u(e){return e[r]||(e[r]={})}i.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},o.noop)},7474:function(e,t,n){n.d(t,{P:()=>s,Z:()=>a});var i=n(10675),o=n(3306),r=n(63811);function a(e,t,n){var o=t.getBoxLayoutParams(),r=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=(0,i.dV)(o,a,r);(0,i.aP)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,i.m$)(e,o,a,r)}function s(e,t){var n=o.QX(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new r.A({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}},50944:function(e,t,n){n.d(t,{a:()=>F});var i=n(74653),o=n(31831),r=n(4884),a=n(25744),s=n(84124),l=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),r.isArray(t)&&r.each(t,function(e,i){var o;r.isString(e)&&(e={type:e}),t[i]=r.merge(e,"all"===(o=e.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===o?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}t||this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):o=!0}else o=!0;o&&(0,s.O0)(i)&&t.push(i.name)}),this._availableNames=n;var i=this.get("data")||t,o=r.createHashMap(),l=r.map(i,function(e){return((r.isString(e)||r.isNumber(e))&&(e={name:e}),o.get(e.name))?null:(o.set(e.name,!0),new a.A(e,this,this.ecModel))},this);this._data=r.filter(l,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;r.each(n,function(e){t[e.get("name")]=!1})}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;r.each(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;r.each(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&r.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(n(36805).A),u=n(34196),c=n(79620),h=n(52384),d=n(63811),p=n(59033),g=n(72059),f=n(73394),m=n(7474),y=n(10675),v=n(43583),x=n(60253),b=n(34780),S=n(35032),A=r.curry,_=r.each,w=c.A,M=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,o.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new w),this.group.add(this._selectorGroup=new w),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),a=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||"auto"===l)&&(l="horizontal"===a?"end":"start"),this.renderInner(o,e,t,n,s,a,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),d=y.dV(u,c,h),p=this.layoutInner(e,o,d,i,s,l),g=y.dV(r.defaults({width:p.width,height:p.height},u),c,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.P)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,o,a,s){var l=this.getContentGroup(),c=r.createHashMap(),h=t.get("selectedMode"),d=[];n.eachRawSeries(function(e){e.get("legendHoverLink")||d.push(e.id)}),_(t.getData(),function(o,a){var s=o.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new w;p.newline=!0,l.add(p);return}var g=n.getSeriesByName(s)[0];if(!c.get(s))if(g){var f=g.getData(),m=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),x=this._createItem(g,s,a,o,t,e,m,v,y,h,i);x.on("click",A(I,s,null,i,d)).on("mouseover",A(D,g.name,null,i,d)).on("mouseout",A(O,g.name,null,i,d)),n.ssr&&x.eachChild(function(e){var t=(0,S.z)(e);t.seriesIndex=g.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),c.set(s,!0)}else n.eachRawSeries(function(l){if(!c.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(p.containName(s)){var g=p.indexOfName(s),f=p.getItemVisual(g,"style"),m=p.getItemVisual(g,"legendIcon"),y=(0,u.parse)(f.fill);y&&0===y[3]&&(y[3]=.2,f=r.extend(r.extend({},f),{fill:(0,u.stringify)(y,"rgba")}));var v=this._createItem(l,s,a,o,t,e,{},f,m,h,i);v.on("click",A(I,null,s,i,d)).on("mouseover",A(D,null,s,i,d)).on("mouseout",A(O,null,s,i,d)),n.ssr&&v.eachChild(function(e){var t=(0,S.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),c.set(s,!0)}}},this)},this),o&&this._createSelector(o,t,i,a,s)},t.prototype._createSelector=function(e,t,n,i,o){var r=this.getSelectorGroup();_(e,function(e){var i=e.type,o=new h.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,f.qM)(o,{normal:a,emphasis:s},{defaultText:e.title}),(0,g.iJ)(o)})},t.prototype._createItem=function(e,t,n,i,o,a,s,l,u,c,m){var y=e.visualDrawType,v=o.get("itemWidth"),S=o.get("itemHeight"),A=o.isSelected(t),M=i.get("symbolRotate"),I=i.get("symbolKeepAspect"),C=i.get("icon"),D=function(e,t,n,i,o,r,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=2*(t.lineWidth>0)),_(e,function(n,i){"inherit"===e[i]&&(e[i]=t[i])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,b.w)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity),s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!r){var g=t.get("inactiveBorderWidth"),f=u[c];u.lineWidth="auto"===g?i.lineWidth>0&&f?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=C||u||"roundRect",i,s,l,y,A,m),O=new w,L=i.getModel("textStyle");if(r.isFunction(e.getLegendIcon)&&(!C||"inherit"===C))O.add(e.getLegendIcon({itemWidth:v,itemHeight:S,icon:u,iconRotate:M,itemStyle:D.itemStyle,lineStyle:D.lineStyle,symbolKeepAspect:I}));else{var T,k,P,N="inherit"===C&&e.getData().getVisual("symbol")?"inherit"===M?e.getData().getVisual("symbolRotate"):M:0;O.add((k=(T={itemWidth:v,itemHeight:S,icon:u,iconRotate:N,itemStyle:D.itemStyle,lineStyle:D.lineStyle,symbolKeepAspect:I}).icon||"roundRect",(P=(0,x.v5)(k,0,0,T.itemWidth,T.itemHeight,T.itemStyle.fill,T.symbolKeepAspect)).setStyle(T.itemStyle),P.rotation=(T.iconRotate||0)*Math.PI/180,P.setOrigin([T.itemWidth/2,T.itemHeight/2]),k.indexOf("empty")>-1&&(P.style.stroke=P.style.fill,P.style.fill="#fff",P.style.lineWidth=2),P))}var R=o.get("formatter"),z=t;r.isString(R)&&R?z=R.replace("{name}",null!=t?t:""):r.isFunction(R)&&(z=R(t));var E=A?L.getTextColor():i.get("inactiveColor");O.add(new h.Ay({style:(0,f.VB)(L,{text:z,x:"left"===a?v+5:-5,y:S/2,fill:E,align:a,verticalAlign:"middle"},{inheritColor:E})}));var V=new d.A({shape:O.getBoundingRect(),style:{fill:"transparent"}}),B=i.getModel("tooltip");return B.get("show")&&p.setTooltipConfig({el:V,componentModel:o,itemName:t,itemTooltipOption:B.option}),O.add(V),O.eachChild(function(e){e.silent=!0}),V.silent=!c,this.getContentGroup().add(O),(0,g.iJ)(O),O.__legendDataIndex=n,O},t.prototype.layoutInner=function(e,t,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();y.aP(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!o)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();y.aP("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",m=0===p?"y":"x";"end"===r?h[p]+=l[g]+d:u[p]+=c[g]+d,h[1-p]+=l[f]/2-c[f]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[g]=l[g]+d+c[g],v[f]=Math.max(l[f],c[f]),v[m]=Math.min(0,c[m]+h[1-p]),v},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(v.A);function I(e,t,n,i){O(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),D(e,t,n,i)}function C(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function D(e,t,n,i){C(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function O(e,t,n,i){C(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function L(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function T(e,t,n){var i,o={},a="toggleSelected"===e;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var s=n.getData();(0,r.each)(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&i:o[t]=i}})}),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function k(e){e.registerComponentModel(l),e.registerComponentView(M),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,L),e.registerSubTypeDefaulter("legend",function(){return"plain"}),e.registerAction("legendToggleSelect","legendselectchanged",(0,r.curry)(T,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,r.curry)(T,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,r.curry)(T,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,r.curry)(T,"select")),e.registerAction("legendUnSelect","legendunselected",(0,r.curry)(T,"unSelect"))}var P=n(3818),N=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var o=(0,y.vs)(t);e.prototype.init.call(this,t,n,i),R(this,t,o)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),R(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,P.G_)(l.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(l);function R(e,t,n){var i=e.getOrient(),o=[1,1];o[i.index]=0,(0,y.YA)(t,n,{type:"box",ignoreSize:!!o})}var z=n(68532),E=c.A,V=["width","height"],B=["x","y"],G=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,o.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new E),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new E)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,o,a,s,l){var u=this;e.prototype.renderInner.call(this,t,n,i,o,a,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),g=r.isArray(d)?d:[d,d];m("pagePrev",0);var f=n.getModel("pageTextStyle");function m(e,t){var i=p.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:r.bind(u._pageGo,u,e+"DataIndex",n,o)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});i.name=e,c.add(i)}c.add(new h.Ay({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,o,a){var s=this.getSelectorGroup(),l=e.getOrient().index,u=V[l],c=B[l],h=V[1-l],d=B[1-l];o&&y.aP("horizontal",s,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),g=s.getBoundingRect(),f=[-g.x,-g.y],m=r.clone(n);o&&(m[u]=n[u]-g[u]-p);var v=this._layoutContentAndController(e,i,m,l,u,h,d,c);if(o){if("end"===a)f[l]+=v[u]+p;else{var x=g[u]+p;f[l]-=x,v[c]-=x}v[u]+=g[u]+p,f[1-l]+=v[d]+v[h]/2-g[h]/2,v[h]=Math.max(v[h],g[h]),v[d]=Math.min(v[d],g[d]+f[1-l]),s.x=f[0],s.y=f[1],s.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,i,o,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;y.aP(e.get("orient"),u,e.get("itemGap"),i?n.width:null,i?null:n.height),y.aP("horizontal",h,e.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),g=h.getBoundingRect(),f=this._showController=p[o]>n[o],m=[-p.x,-p.y];t||(m[i]=u[l]);var v=[0,0],x=[-g.x,-g.y],b=r.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?x[i]+=n[o]-g[o]:v[i]+=g[o]+b),x[1-i]+=p[a]/2-g[a]/2,u.setPosition(m),c.setPosition(v),h.setPosition(x);var S={x:0,y:0};if(S[o]=f?n[o]:p[o],S[a]=Math.max(p[a],g[a]),S[s]=Math.min(0,g[s]+x[1-i]),c.__rectSize=n[o],f){var A={x:0,y:0};A[o]=Math.max(n[o]-g[o]-b,0),A[a]=S[a],c.setClipPath(new d.A({shape:A})),c.__rectSize=A[o]}else h.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(e);return null!=_.pageIndex&&z.oi(u,{x:_.contentPosition[0],y:_.contentPosition[1]},f?e:null),this._updatePageInfoView(e,_),S},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;r.each(["pagePrev","pageNext"],function(i){var o=null!=t[i+"DataIndex"],r=n.childOfName(i);r&&(r.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;i&&o&&i.setStyle("text",r.isString(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):o({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,r=V[o],a=B[o],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=+!!c,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[o]=-p.s;for(var g=s+1,f=p,m=p,y=null;g<=c;++g)(!(y=v(l[g]))&&m.e>f.s+i||y&&!x(y,f.s))&&(f=m.i>f.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount),m=y;for(var g=s-1,f=p,m=p,y=null;g>=-1;--g)(!(y=v(l[g]))||!x(m,y.s))&&f.i<m.i&&(m=f,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=f.i),++d.pageCount,++d.pageIndex),f=y;return d;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[r],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){var t,n;return this._showController?(this.getContentGroup().eachChild(function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===e&&(t=o)}),null!=t?t:n):0},t.type="legend.scroll",t}(M);function W(e){(0,i.Y)(k),e.registerComponentModel(N),e.registerComponentView(G),e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}function F(e){(0,i.Y)(k),(0,i.Y)(W)}},8412:function(e,t,n){n.d(t,{A:()=>p});var i=n(31831),o=n(4884),r=n(35209),a=n(42345),s=n(36805),l=n(84124),u=n(56803);function c(e){(0,l.M5)(e,"label",["show"])}var h=(0,l.$r)(),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(r.A.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=h(e)[r];if(!n||!n.data){h(e)[r]=null;return}a?a._mergeOption(n,t,!0):(i&&c(n),o.each(n.data,function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)}),a=this.createMarkerModelFromSeries(n,this,t),o.extend(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),h(e)[r]=a},this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e),r=i.getName(e);return(0,u.Qx)("section",{header:this.name,blocks:[(0,u.Qx)("nameValue",{name:r,value:o,noName:!r,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return h(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(s.A);o.mixin(d,a.J.prototype);let p=d},49112:function(e,t,n){n.d(t,{A:()=>c});var i=n(31831),o=n(43583),r=n(4884),a=n(8412),s=n(84124),l=n(72059),u=(0,s.$r)();let c=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.init=function(){this.markerGroupMap=(0,r.createHashMap)()},t.prototype.render=function(e,t,n){var i=this,o=this.markerGroupMap;o.each(function(e){u(e).keep=!1}),t.eachSeries(function(e){var o=a.A.getMarkerModelFromSeries(e,i.type);o&&i.renderSeries(e,o,t,n)}),o.each(function(e){u(e).keep||i.group.remove(e.group)})},t.prototype.markKeep=function(e){u(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;(0,r.each)(e,function(e){var i=a.A.getMarkerModelFromSeries(e,n.type);i&&i.getData().eachItemGraphicEl(function(e){e&&(t?(0,l.QX)(e):(0,l.JC)(e))})})},t.type="marker",t}(o.A)},3415:function(e,t,n){n.d(t,{A:()=>o});var i=n(4884);function o(e,t){if(!e)return!1;for(var n=(0,i.isArray)(e)?e:[e],o=0;o<n.length;o++)if(n[o]&&n[o][t])return!0;return!1}},64404:function(e,t,n){n.d(t,{a:()=>T});var i=n(3415),o=n(31831),r=n(8412),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(r.A),s=n(34196),l=n(15764),u=n(21916),c=n(79620),h=n(97451),d=n(68532),p=n(72059),g=n(89945),f=n(49112),m=n(4884),y=n(43139),v=n(84124),x=n(80153),b=n(73394),S=n(35032),A=n(47163),_=(0,v.$r)(),w=function(e,t,n,i){var o=i[0],r=i[1];if(o&&r){var a=g.xx(e,o),s=g.xx(e,r),l=a.coord,u=s.coord;l[0]=(0,m.retrieve)(l[0],-1/0),l[1]=(0,m.retrieve)(l[1],-1/0),u[0]=(0,m.retrieve)(u[0],1/0),u[1]=(0,m.retrieve)(u[1],1/0);var c=(0,m.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function M(e){return!isNaN(e)&&!isFinite(e)}function I(e,t,n,i){var o=1-e;return M(t[o])&&M(n[o])}function C(e,t){var n=t.coord[0],i=t.coord[1],o={coord:n,x:t.x0,y:t.y0},r={coord:i,x:t.x1,y:t.y1};return(0,y.g)(e,"cartesian2d")?!!(n&&i&&(I(1,n,i,e)||I(0,n,i,e)))||g.PN(e,o,r):g.Lq(e,o)||g.Lq(e,r)}function D(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),l=u.lo(s.get(n[0]),o.getWidth()),c=u.lo(s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var h=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=a.clampData(h),g=a.clampData(d),f=[];"x0"===n[0]?f[0]=p[0]>g[0]?d[0]:h[0]:f[0]=p[0]>g[0]?h[0]:d[0],"y0"===n[1]?f[1]=p[1]>g[1]?d[1]:h[1]:f[1]=p[1]>g[1]?h[1]:d[1],r=i.getMarkerPosition(f,n,!0)}else{var m=e.get(n[0],t),v=e.get(n[1],t),x=[m,v];a.clampData&&a.clampData(x,x),r=a.dataToPoint(x,!0)}if((0,y.g)(a,"cartesian2d")){var b=a.getAxis("x"),S=a.getAxis("y"),m=e.get(n[0],t),v=e.get(n[1],t);M(m)?r[0]=b.toGlobalCoord(b.getExtent()[+("x0"!==n[0])]):M(v)&&(r[1]=S.toGlobalCoord(S.getExtent()[+("y0"!==n[1])]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var O=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=r.A.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each(function(t){var o=(0,m.map)(O,function(o){return D(i,t,o,e,n)});i.setItemLayout(t,o),i.getItemGraphicEl(t).setShape("points",o)})}},this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),g=this.markerGroupMap,f=g.get(r)||g.set(r,{group:new c.A});this.group.add(f.group),this.markKeep(f);var y=function(e,t,n){if(e){var i,o,r=(0,m.map)(e&&e.dimensions,function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return(0,m.extend)((0,m.extend)({},i),{name:e,ordinalMeta:null})});o=(0,m.map)(["x0","y0","x1","y1"],function(e,t){return{name:e,type:r[t%2].type}}),i=new l.A(o,n)}else o=[{name:"value",type:"float"}],i=new l.A(o,n);var a=(0,m.map)(n.get("data"),(0,m.curry)(w,t,e,n));e&&(a=(0,m.filter)(a,(0,m.curry)(C,e)));var s=e?function(e,t,n,i){var r=e.coord[Math.floor(i/2)][i%2];return(0,A.Pn)(r,o[i])}:function(e,t,n,i){return(0,A.Pn)(e.value,o[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(o,e,t);t.setData(y),y.each(function(t){var n=(0,m.map)(O,function(n){return D(y,t,n,e,i)}),r=o.getAxis("x").scale,l=o.getAxis("y").scale,c=r.getExtent(),h=l.getExtent(),d=[r.parse(y.get("x0",t)),r.parse(y.get("x1",t))],p=[l.parse(y.get("y0",t)),l.parse(y.get("y1",t))];u.Y6(d),u.Y6(p);var g=!(c[0]>d[1]||c[1]<d[0]||h[0]>p[1]||h[1]<p[0]);y.setItemLayout(t,{points:n,allClipped:!g});var f=y.getItemModel(t).getModel("itemStyle").getItemStyle(),v=(0,x.rI)(a,"color");!f.fill&&(f.fill=v,(0,m.isString)(f.fill)&&(f.fill=s.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=v),y.setItemVisual(t,"style",f)}),y.diff(_(f).data).add(function(e){var t=y.getItemLayout(e);if(!t.allClipped){var n=new h.A({shape:{points:t.points}});y.setItemGraphicEl(e,n),f.group.add(n)}}).update(function(e,n){var i=_(f).data.getItemGraphicEl(n),o=y.getItemLayout(e);o.allClipped?i&&f.group.remove(i):(i?d.oi(i,{shape:{points:o.points}},t,e):i=new h.A({shape:{points:o.points}}),y.setItemGraphicEl(e,i),f.group.add(i))}).remove(function(e){var t=_(f).data.getItemGraphicEl(e);f.group.remove(t)}).execute(),y.eachItemGraphicEl(function(e,n){var i=y.getItemModel(n),o=y.getItemVisual(n,"style");e.useStyle(y.getItemVisual(n,"style")),(0,b.qM)(e,(0,b.lx)(i),{labelFetcher:t,labelDataIndex:n,defaultText:y.getName(n)||"",inheritColor:(0,m.isString)(o.fill)?s.modifyAlpha(o.fill,1):"#000"}),(0,p.Mx)(e,i),(0,p.Lm)(e,null,null,i.get(["emphasis","disabled"])),(0,S.z)(e).dataModel=t}),_(f).data=y,f.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(f.A);function T(e){e.registerComponentModel(a),e.registerComponentView(L),e.registerPreprocessor(function(e){(0,i.A)(e.series,"markArea")&&(e.markArea=e.markArea||{})})}},28502:function(e,t,n){n.d(t,{a:()=>M});var i=n(3415),o=n(31831),r=n(8412),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(r.A),s=n(15764),l=n(21916),u=n(89945),c=n(87274),h=n(49112),d=n(41402),p=n(43139),g=n(35032),f=n(4884),m=n(84124),y=n(80153),v=(0,m.$r)(),x=function(e,t,n,i){var o,r=e.getData();if((0,f.isArray)(i))o=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=(0,f.retrieve)(i.yAxis,i.xAxis);else{var c=u.Yc(i,r,t,e);s=c.valueAxis;var h=(0,d.me)(r,c.valueDataDim);l=u.vz(r,h,a)}var p=+("x"!==s.dim),g=1-p,m=(0,f.clone)(i),y={coord:[]};m.type=null,m.coord=[],m.coord[g]=-1/0,y.coord[g]=1/0;var v=n.get("precision");v>=0&&(0,f.isNumber)(l)&&(l=+l.toFixed(Math.min(v,20))),m.coord[p]=y.coord[p]=l,o=[m,y,{type:a,valueIndex:i.valueIndex,value:l}]}else o=[]}var x=[u.xx(e,o[0]),u.xx(e,o[1]),(0,f.extend)({},o[2])];return x[2].type=x[2].type||null,(0,f.merge)(x[2],x[0]),(0,f.merge)(x[2],x[1]),x};function b(e){return!isNaN(e)&&!isFinite(e)}function S(e,t,n,i){var o=1-e,r=i.dimensions[e];return b(t[o])&&b(n[o])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function A(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(S(1,n,i,e)||S(0,n,i,e)))return!0}return u.Lq(e,t[0])&&u.Lq(e,t[1])}function _(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),u=l.lo(s.get("x"),o.getWidth()),c=l.lo(s.get("y"),o.getHeight());if(isNaN(u)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=a.dimensions,d=e.get(h[0],t),g=e.get(h[1],t);r=a.dataToPoint([d,g])}if((0,p.g)(a,"cartesian2d")){var f=a.getAxis("x"),m=a.getAxis("y"),h=a.dimensions;b(e.get(h[0],t))?r[0]=f.toGlobalCoord(f.getExtent()[+!n]):b(e.get(h[1],t))&&(r[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(u)||(r[0]=u),isNaN(c)||(r[1]=c)}else r=[u,c];e.setItemLayout(t,r)}var w=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=r.A.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),o=v(t).from,a=v(t).to;o.each(function(t){_(o,t,!0,e,n),_(a,t,!1,e,n)}),i.each(function(e){i.setItemLayout(e,[o.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,i){var o,r,a,l,h,d,p,m,b,S=e.coordinateSystem,w=e.id,M=e.getData(),I=this.markerGroupMap,C=I.get(w)||I.set(w,new c.A);this.group.add(C.group);var D=(o=S,r=e,a=t,l=o?(0,f.map)(o&&o.dimensions,function(e){var t=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new s.A(l,a),d=new s.A(l,a),p=new s.A([],a),m=(0,f.map)(a.get("data"),(0,f.curry)(x,r,o,a)),o&&(m=(0,f.filter)(m,(0,f.curry)(A,o))),b=u.fY(!!o,l),h.initData((0,f.map)(m,function(e){return e[0]}),null,b),d.initData((0,f.map)(m,function(e){return e[1]}),null,b),p.initData((0,f.map)(m,function(e){return e[2]})),p.hasItemOption=!0,{from:h,to:d,line:p}),O=D.from,L=D.to,T=D.line;v(t).from=O,v(t).to=L,t.setData(T);var k=t.get("symbol"),P=t.get("symbolSize"),N=t.get("symbolRotate"),R=t.get("symbolOffset");function z(t,n,o){var r=t.getItemModel(n);_(t,n,o,e,i);var a=r.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=(0,y.rI)(M,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:(0,f.retrieve2)(r.get("symbolOffset",!0),R[+!o]),symbolRotate:(0,f.retrieve2)(r.get("symbolRotate",!0),N[+!o]),symbolSize:(0,f.retrieve2)(r.get("symbolSize"),P[+!o]),symbol:(0,f.retrieve2)(r.get("symbol",!0),k[+!o]),style:a})}(0,f.isArray)(k)||(k=[k,k]),(0,f.isArray)(P)||(P=[P,P]),(0,f.isArray)(N)||(N=[N,N]),(0,f.isArray)(R)||(R=[R,R]),D.from.each(function(e){z(O,e,!0),z(L,e,!1)}),T.each(function(e){var t=T.getItemModel(e).getModel("lineStyle").getLineStyle();T.setItemLayout(e,[O.getItemLayout(e),L.getItemLayout(e)]),null==t.stroke&&(t.stroke=O.getItemVisual(e,"style").fill),T.setItemVisual(e,{fromSymbolKeepAspect:O.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:O.getItemVisual(e,"symbolOffset"),fromSymbolRotate:O.getItemVisual(e,"symbolRotate"),fromSymbolSize:O.getItemVisual(e,"symbolSize"),fromSymbol:O.getItemVisual(e,"symbol"),toSymbolKeepAspect:L.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:L.getItemVisual(e,"symbolOffset"),toSymbolRotate:L.getItemVisual(e,"symbolRotate"),toSymbolSize:L.getItemVisual(e,"symbolSize"),toSymbol:L.getItemVisual(e,"symbol"),style:t})}),C.updateData(T),D.line.eachItemGraphicEl(function(e){(0,g.z)(e).dataModel=t,e.traverse(function(e){(0,g.z)(e).dataModel=t})}),this.markKeep(C),C.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(h.A);function M(e){e.registerComponentModel(a),e.registerComponentView(w),e.registerPreprocessor(function(e){(0,i.A)(e.series,"markLine")&&(e.markLine=e.markLine||{})})}},48683:function(e,t,n){n.d(t,{a:()=>y});var i=n(3415),o=n(31831),r=n(8412),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(r.A),s=n(22448),l=n(21916),u=n(15764),c=n(89945),h=n(49112),d=n(4884),p=n(35032),g=n(80153);function f(e,t,n){var i=t.coordinateSystem;e.each(function(o){var r,a=e.getItemModel(o),s=l.lo(a.get("x"),n.getWidth()),u=l.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(u)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var c=e.get(i.dimensions[0],o),h=e.get(i.dimensions[1],o);r=i.dataToPoint([c,h])}}else r=[s,u];isNaN(s)||(r[0]=s),isNaN(u)||(r[1]=u),e.setItemLayout(o,r)})}var m=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=r.A.getMarkerModelFromSeries(e,"markPoint");t&&(f(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,i){var o,r,a,l,h,m,y,v=e.coordinateSystem,x=e.id,b=e.getData(),S=this.markerGroupMap,A=S.get(x)||S.set(x,new s.A),_=(o=v,r=e,a=t,l=o?(0,d.map)(o&&o.dimensions,function(e){var t=r.getData().getDimensionInfo(r.getData().mapDimension(e))||{};return(0,d.extend)((0,d.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new u.A(l,a),m=(0,d.map)(a.get("data"),(0,d.curry)(c.xx,r)),o&&(m=(0,d.filter)(m,(0,d.curry)(c.Lq,o))),y=c.fY(!!o,l),h.initData(m,null,y),h);t.setData(_),f(t.getData(),e,i),_.each(function(e){var n=_.getItemModel(e),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if((0,d.isFunction)(i)||(0,d.isFunction)(o)||(0,d.isFunction)(r)||(0,d.isFunction)(a)){var l=t.getRawValue(e),u=t.getDataParams(e);(0,d.isFunction)(i)&&(i=i(l,u)),(0,d.isFunction)(o)&&(o=o(l,u)),(0,d.isFunction)(r)&&(r=r(l,u)),(0,d.isFunction)(a)&&(a=a(l,u))}var c=n.getModel("itemStyle").getItemStyle(),h=(0,g.rI)(b,"color");c.fill||(c.fill=h),_.setItemVisual(e,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:a,symbolKeepAspect:s,style:c})}),A.updateData(_),this.group.add(A.group),_.eachItemGraphicEl(function(e){e.traverse(function(e){(0,p.z)(e).dataModel=t})}),this.markKeep(A),A.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(h.A);function y(e){e.registerComponentModel(a),e.registerComponentView(m),e.registerPreprocessor(function(e){(0,i.A)(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}},89945:function(e,t,n){n.d(t,{Lq:()=>d,PN:()=>p,Yc:()=>h,fY:()=>g,vz:()=>f,xx:()=>c});var i=n(21916),o=n(41402),r=n(4884),a=n(47163);function s(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function l(e,t,n,r,a,s){var l=[],u=(0,o.sJ)(t,r)?t.getCalculationInfo("stackResultDimension"):r,c=f(t,u,e),h=t.indicesOfNearest(u,c)[0];l[a]=t.get(n,h),l[s]=t.get(u,h);var d=t.get(r,h),p=i.XV(t.get(r,h));return(p=Math.min(p,20))>=0&&(l[s]=+l[s].toFixed(p)),[l,d]}var u={min:(0,r.curry)(l,"min"),max:(0,r.curry)(l,"max"),average:(0,r.curry)(l,"average"),median:(0,r.curry)(l,"median")};function c(e,t){if(t){var n,i=e.getData(),o=e.coordinateSystem,a=o&&o.dimensions;if(!(!isNaN(parseFloat((n=t).x))&&!isNaN(parseFloat(n.y)))&&!(0,r.isArray)(t.coord)&&(0,r.isArray)(a)){var s=h(t,i,o,e);if((t=(0,r.clone)(t)).type&&u[t.type]&&s.baseAxis&&s.valueAxis){var l=(0,r.indexOf)(a,s.baseAxis.dim),c=(0,r.indexOf)(a,s.valueAxis.dim),d=u[t.type](i,s.baseDataDim,s.valueDataDim,l,c);t.coord=d[0],t.value=d[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,r.isArray)(a))for(var p=t.coord,g=0;g<2;g++)u[p[g]]&&(p[g]=f(i,i.mapDimension(a[g]),p[g]));else t.coord=[];return t}}function h(e,t,n,i){var o,r,a,s={};return null!=e.valueIndex||null!=e.valueDim?(s.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,s.valueAxis=n.getAxis((o=i,r=s.valueDataDim,(a=o.getData().getDimensionInfo(r))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim),s.valueDataDim=t.mapDimension(s.valueAxis.dim)),s}function d(e,t){return!e||!e.containData||!t.coord||!!s(t)||e.containData(t.coord)}function p(e,t,n){return!e||!e.containZone||!t.coord||!n.coord||!!s(t)||!!s(n)||e.containZone(t.coord,n.coord)}function g(e,t){return e?function(e,n,i,o){var r=o<2?e.coord&&e.coord[o]:e.value;return(0,a.Pn)(r,t[o])}:function(e,n,i,o){return(0,a.Pn)(e.value,t[o])}}function f(e,t,n){if("average"===n){var i=0,o=0;return e.each(t,function(e,t){!isNaN(e)&&(i+=e,o++)}),i/o}return"median"===n?e.getMedian(t):e.getDataExtent(t)[+("max"===n)]}},91523:function(e,t,n){n.d(t,{M_:()=>r,Ms:()=>i,x$:()=>a});var i=function(){},o={};function r(e,t){o[e]=t}function a(e){return o[e]}},40988:function(e,t,n){n.d(t,{a:()=>K});var i=n(74653),o=n(31831),r=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="dataZoom.select",t}(n(44878).A),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="dataZoom.select",t}(n(59730).A),s=n(97019);function l(e){e.registerComponentModel(r),e.registerComponentView(a),(0,s.A)(e)}var u=n(4884),c=n(91523),h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;u.each(this.option.feature,function(e,n){var i=c.x$(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),u.merge(e,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(n(36805).A),d=n(23960),p=n(59033),g=n(72059),f=n(25744),m=n(31393),y=n(7474),v=n(43583),x=n(3818),b=n(52384),S=n(73394),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n,i){var o=this.group;if(o.removeAll(),e.get("show")){var r=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),h=[];u.each(s,function(e,t){h.push(t)}),new m.A(this._featureNames||[],h).add(v).update(v).remove(u.curry(v,null)).execute(),this._featureNames=h,y.Z(o,e,n),o.add(y.P(o.getBoundingRect(),e)),a||o.eachChild(function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!u.isFunction(l)&&t){var c=l.style||(l.style={}),h=d.NO(t,b.Ay.makeFont(c)),p=e.x+o.x,g=e.y+o.y+r,f=!1;g+h.height>n.getHeight()&&(a.position="top",f=!0);var m=f?-5-h.height:r+10;p+h.width/2>n.getWidth()?(a.position=["100%",m],c.align="right"):p-h.width/2<0&&(a.position=[0,m],c.align="left")}})}function v(d,m){var y,v,A,_,w,M,I,C,D,O,L,T=h[d],k=h[m],P=s[T],N=new f.A(P,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===T&&(P.title=i.newTitle),T&&!k){if(0===T.indexOf("my"))L={onclick:N.option.onclick,featureName:T};else{var R=(0,c.x$)(T);if(!R)return;L=new R}l[T]=L}else if(!(L=l[k]))return;L.uid=(0,x.$Q)("toolbox-feature"),L.model=N,L.ecModel=t,L.api=n;var z=L instanceof c.Ms;if(!T&&k){z&&L.dispose&&L.dispose(t,n);return}if(!N.get("show")||z&&L.unusable){z&&L.remove&&L.remove(t,n);return}y=N,v=L,A=T,M=y.getModel("iconStyle"),I=y.getModel(["emphasis","iconStyle"]),C=v instanceof c.Ms&&v.getIcons?v.getIcons():y.get("icon"),D=y.get("title")||{},u.isString(C)?(_={})[A]=C:_=C,u.isString(D)?(w={})[A]=D:w=D,O=y.iconPaths={},u.each(_,function(i,s){var l=p.createIcon(i,{},{x:-r/2,y:-r/2,width:r,height:r});l.setStyle(M.getItemStyle()),l.ensureState("emphasis").style=I.getItemStyle();var c=new b.Ay({style:{text:w[s],align:I.get("textAlign"),borderRadius:I.get("textBorderRadius"),padding:I.get("textPadding"),fill:null,font:(0,S.c8)({fontStyle:I.get("textFontStyle"),fontFamily:I.get("textFontFamily"),fontSize:I.get("textFontSize"),fontWeight:I.get("textFontWeight")},t)},ignore:!0});l.setTextContent(c),p.setTooltipConfig({el:l,componentModel:e,itemName:s,formatterParamsExtra:{title:w[s]}}),l.__title=w[s],l.on("mouseover",function(){var t=I.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";c.setStyle({fill:I.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:I.get("textBackgroundColor")}),l.setTextConfig({position:I.get("textPosition")||i}),c.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==y.get(["iconStatus",s])&&n.leaveEmphasis(this),c.hide()}),("emphasis"===y.get(["iconStatus",s])?g.HY:g.SD)(l),o.add(l),l.on("click",u.bind(v.onclick,v,t,n,s)),O[s]=l}),N.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?g.HY:g.SD)(i[e])},L instanceof c.Ms&&L.render&&L.render(N,t,n,i)}},t.prototype.updateView=function(e,t,n,i){u.each(this._features,function(e){e instanceof c.Ms&&e.updateView&&e.updateView(e.model,t,n,i)})},t.prototype.remove=function(e,t){u.each(this._features,function(n){n instanceof c.Ms&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){u.each(this._features,function(n){n instanceof c.Ms&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(v.A),_=n(35209),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=_.A.browser;if((0,u.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+r,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=a.split(","),d=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];d&&(p=window.atob(p));var g=i+"."+r;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,m=new Uint8Array(f);f--;)m[f]=p.charCodeAt(f);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var v=document.createElement("iframe");document.body.appendChild(v);var x=v.contentWindow,b=x.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),x.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(v)}}else{var S=n.get("lang"),A='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',w=window.open();w.document.write(A),w.document.title=i}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(c.Ms),M=n(31950),I=n(84124),C="__ec_magicType_stack__",D=[["line","bar"],["stack"]],O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return u.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i,o=this.model,r=o.get(["seriesIndex",n]);if(L[n]){var a={series:[]};u.each(D,function(e){u.indexOf(e,n)>=0&&u.each(e,function(e){o.setIconStatus(e,"normal")})}),o.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var t=e.subType,i=e.id,r=L[n](t,i,e,o);r&&(u.defaults(r,e.option),a.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",h=e.getReferringComponents(c,I.US).models[0].componentIndex;a[c]=a[c]||[];for(var d=0;d<=h;d++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(i=u.merge({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),"emphasis"!==o.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:i,featureName:"magicType"})}},t}(c.Ms),L={line:function(e,t,n,i){if("bar"===e)return u.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return u.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var o=n.get("stack")===C;if("line"===e||"bar"===e)return i.setIconStatus("stack",o?"normal":"emphasis"),u.merge({id:t,stack:o?"":C},i.get(["option","stack"])||{},!0)}};M.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var T=n(77250),k=Array(60).join("-");function P(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var N=RegExp("[ ]+","g"),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var n,i,o,r,a,s,l,c=t.getDom(),h=this.model;this._dom&&c.removeChild(this._dom);var d=document.createElement("div");d.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",d.style.backgroundColor=h.get("backgroundColor")||"#fff";var p=document.createElement("h4"),g=h.get("lang")||[];p.innerHTML=g[0]||h.get("title"),p.style.cssText="margin:10px 20px",p.style.color=h.get("textColor");var f=document.createElement("div"),m=document.createElement("textarea");f.style.cssText="overflow:auto";var y=h.get("optionToContent"),v=h.get("contentToOption"),x=(l=(n={},i=[],o=[],e.eachRawSeries(function(e){var t=e.coordinateSystem;if(t&&("cartesian2d"===t.type||"polar"===t.type)){var r=t.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;n[a]||(n[a]={categoryAxis:r,valueAxis:t.getOtherAxis(r),series:[]},o.push({axisDim:r.dim,axisIndex:r.index})),n[a].series.push(e)}else i.push(e)}else i.push(e)}),{seriesGroupByCategoryAxis:n,other:i,meta:o}),{value:u.filter([(r=l.seriesGroupByCategoryAxis,a=[],u.each(r,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(u.map(e.series,function(e){return e.name})),r=[n.model.getCategories()];u.each(e.series,function(e){var t=e.getRawData();r.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[o.join(" ")],l=0;l<r[0].length;l++){for(var c=[],h=0;h<r.length;h++)c.push(r[h][l]);s.push(c.join(" "))}a.push(s.join("\n"))}),a.join("\n\n"+k+"\n\n")),(s=l.other,u.map(s,function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,function(){for(var e=arguments.length,o=arguments[e-1],r=t.getName(o),a=0;a<e-1;a++)i[a]=arguments[a];n.push((r?r+" ":"")+i.join(" "))}),n.join("\n")}).join("\n\n"+k+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+k+"\n\n"),meta:l.meta});if(u.isFunction(y)){var b=y(t.getOption());u.isString(b)?f.innerHTML=b:u.isDom(b)&&f.appendChild(b)}else{m.readOnly=h.get("readOnly");var S=m.style;S.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",S.color=h.get("textColor"),S.borderColor=h.get("textareaBorderColor"),S.backgroundColor=h.get("textareaColor"),m.value=x.value,f.appendChild(m)}var A=x.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",M=document.createElement("div"),I=document.createElement("div");w+=";background-color:"+h.get("buttonColor")+";color:"+h.get("buttonTextColor");var C=this;function D(){c.removeChild(d),C._dom=null}(0,T.q2)(M,"click",D),(0,T.q2)(I,"click",function(){var e,n,i,o;if(null==v&&null!=y||null!=v&&null==y)return void D();try{u.isFunction(v)?e=v(f,t.getOption()):(n=m.value,i=n.split(RegExp("\n*"+k+"\n*","g")),o={series:[]},u.each(i,function(e,t){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(" ")>=0)return!0}(e)){var n=function(e){for(var t=e.split(/\n+/g),n=P(t.shift()).split(N),i=[],o=u.map(n,function(e){return{name:e,data:[]}}),r=0;r<t.length;r++){var a=P(t[r]).split(N);i.push(a.shift());for(var s=0;s<a.length;s++)o[s]&&(o[s].data[r]=a[s])}return{series:o,categories:i}}(e),i=A[t],r=i.axisDim+"Axis";i&&(o[r]=o[r]||[],o[r][i.axisIndex]={data:n.categories},o.series=o.series.concat(n.series))}else{var n=function(e){for(var t=e.split(/\n+/g),n=P(t.shift()),i=[],o=0;o<t.length;o++){var r=P(t[o]);if(r){var a=r.split(N),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[o].value=l[0]:i[o]=l[0])}}return{name:n,data:i}}(e);o.series.push(n)}}),e=o)}catch(e){throw D(),Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),D()}),M.innerHTML=g[1],I.innerHTML=g[2],I.style.cssText=M.style.cssText=w,h.get("readOnly")||_.appendChild(I),_.appendChild(M),d.appendChild(p),d.appendChild(f),d.appendChild(_),f.style.height=c.clientHeight-80+"px",c.appendChild(d),this._dom=d},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(c.Ms);M.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];u.each(e.newOption.series,function(e){var i=t.getSeriesByName(e.name)[0];if(i){var o,r=i.get("data");n.push({name:e.name,data:(o=e.data,u.map(o,function(e,t){var n=r&&r[t];if(!u.isObject(n)||u.isArray(n))return e;u.isObject(e)&&!u.isArray(e)||(e={value:e});var i=null!=n.name&&null==e.name;return e=u.defaults(e,n),i&&delete e.name,e}))})}else n.push(u.extend({type:"scatter"},e))}),t.mergeOption(u.defaults({series:n},e.newOption))});var z=u.each,E=(0,I.$r)();function V(e){var t=E(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.onclick=function(e,t){E(e).snapshots=null,t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(c.Ms);M.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var G=n(88593),W=n(63785),F=n(91365),H=n(20020),Z=u.each,Y=(0,I.S_)("toolbox-dataZoom_"),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n,i){var o,r,a,s,l,c,h,d,p;this._brushController||(this._brushController=new G.A(n.getZr()),this._brushController.on("brush",u.bind(this._onBrush,this)).mount()),o=e,r=t,a=this,s=i,l=n,c=a._isZoomActive,s&&"takeGlobalCursor"===s.type&&(c="dataZoomSelect"===s.key&&s.dataZoomSelectActive),a._isZoomActive=c,o.setIconStatus("zoom",c?"emphasis":"normal"),h=new W.A(q(o),r,{include:["grid"]}).makePanelOpts(l,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(h).enableBrush(!!c&&!!h.length&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),d=e,p=t,d.setIconStatus("back",V(p).length>1?"emphasis":"normal")},t.prototype.onclick=function(e,t,n){U[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n,i,o,r={},a=this.ecModel;this._brushController.updateCovers([]),new W.A(q(this.model),a,{include:["grid"]}).matchOutputRanges(t,a,function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(s("x",n,t[0]),s("y",n,t[1])):s({lineX:"x",lineY:"y"}[i],n,t)}}),n=a,i=r,o=V(n),z(i,function(e,t){for(var i=o.length-1;i>=0&&!o[i][t];i--);if(i<0){var r=n.queryComponents({mainType:"dataZoom",subType:"select",id:t})[0];if(r){var a=r.getPercentRange();o[0][t]={dataZoomId:t,start:a[0],end:a[1]}}}}),o.push(i),this._dispatchZoomAction(r)}function s(e,t,n){var i,o,s,l=t.getAxis(e),u=l.model,c=(i=e,o=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(e){e.getAxisModel(i,o.componentIndex)&&(s=e)}),s),h=c.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=h.minValueSpan||null!=h.maxValueSpan)&&(n=(0,F.A)(0,n.slice(),l.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),c&&(r[c.id]={dataZoomId:c.id,startValue:n[0],endValue:n[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];Z(e,function(e,n){t.push(u.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(c.Ms),U={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){var e,t,n;this._dispatchZoomAction((t=(e=V(this.ecModel))[e.length-1],e.length>1&&e.pop(),n={},z(t,function(t,i){for(var o=e.length-1;o>=0;o--)if(t=e[o][i]){n[i]=t;break}}),n))}};function q(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function K(e){e.registerComponentModel(h),e.registerComponentView(A),(0,c.M_)("saveAsImage",w),(0,c.M_)("magicType",O),(0,c.M_)("dataView",R),(0,c.M_)("dataZoom",X),(0,c.M_)("restore",B),(0,i.Y)(l)}(0,H.S)("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),o=[],r=q(i),a=(0,I._e)(e,r);return Z(a.xAxisModels,function(e){return s(e,"xAxis","xAxisIndex")}),Z(a.yAxisModels,function(e){return s(e,"yAxis","yAxisIndex")}),o}function s(e,t,n){var r=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Y+t+r};a[n]=r,o.push(a)}})},82883:function(e,t,n){n.d(t,{QK:()=>D,YI:()=>C,eR:()=>T,lB:()=>w,rv:()=>k});var i=n(45400),o=n(30070),r=n(88297),a=n(40843),s=n(50391),l=n(26989),u=n(4884),c=n(37817),h=n(28535),d=n(72059),p=2*Math.PI,g=a.A.CMD,f=["top","right","bottom","left"];function m(e,t,n,i,o,r,a,s){var l=n-e,u=i-t,c=Math.sqrt(l*l+u*u),h=((o-e)*(l/=c)+(r-t)*(u/=c))/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=a[0]=e+h*l,p=a[1]=t+h*u;return Math.sqrt((d-o)*(d-o)+(p-r)*(p-r))}function y(e,t,n,i,o,r,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(o,e),s),c=a[1]=Math.min(Math.max(r,t),l);return Math.sqrt((u-o)*(u-o)+(c-r)*(c-r))}var v=[],x=new i.A,b=new i.A,S=new i.A,A=new i.A,_=new i.A;function w(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var a=e.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],h=a.candidates||f,d=r.getBoundingRect().clone();d.applyTransform(r.getComputedTransform());var _=1/0,w=a.anchor,M=e.getComputedTransform(),I=M&&(0,c.invert)([],M),D=t.get("length2")||0;w&&S.copy(w);for(var O=0;O<h.length;O++){!function(e,t,n,i,o){var r=n.width,a=n.height;switch(e){case"top":i.set(n.x+r/2,n.y-0),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+0),o.set(0,1);break;case"left":i.set(n.x-0,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+0,n.y+a/2),o.set(1,0)}}(h[O],0,d,x,A),i.A.scaleAndAdd(b,x,A,D),b.transform(I);var L=e.getBoundingRect(),T=w?w.distance(b):e instanceof o.Ay?function(e,t,n){for(var i,o,r=0,a=0,u=0,c=0,h=1/0,d=t.data,f=e.x,x=e.y,b=0;b<d.length;){var S=d[b++];1===b&&(r=d[b],a=d[b+1],u=r,c=a);var A=h;switch(S){case g.M:u=d[b++],c=d[b++],r=u,a=c;break;case g.L:A=m(r,a,d[b],d[b+1],f,x,v,!0),r=d[b++],a=d[b++];break;case g.C:A=(0,l.Et)(r,a,d[b++],d[b++],d[b++],d[b++],d[b],d[b+1],f,x,v),r=d[b++],a=d[b++];break;case g.Q:A=(0,l.kh)(r,a,d[b++],d[b++],d[b],d[b+1],f,x,v),r=d[b++],a=d[b++];break;case g.A:var _=d[b++],w=d[b++],M=d[b++],I=d[b++],C=d[b++],D=d[b++];b+=1;var O=!!(1-d[b++]);i=Math.cos(C)*M+_,o=Math.sin(C)*I+w,b<=1&&(u=i,c=o);var L=(f-_)*I/M+_;A=function(e,t,n,i,o,r,a,l,u){var c=Math.sqrt((a-=e)*a+(l-=t)*l),h=(a/=c)*n+e,d=(l/=c)*n+t;if(Math.abs(i-o)%p<1e-4)return u[0]=h,u[1]=d,c-n;if(r){var g=i;i=(0,s.n)(o),o=(0,s.n)(g)}else i=(0,s.n)(i),o=(0,s.n)(o);i>o&&(o+=p);var f=Math.atan2(l,a);if(f<0&&(f+=p),f>=i&&f<=o||f+p>=i&&f+p<=o)return u[0]=h,u[1]=d,c-n;var m=n*Math.cos(i)+e,y=n*Math.sin(i)+t,v=n*Math.cos(o)+e,x=n*Math.sin(o)+t,b=(m-a)*(m-a)+(y-l)*(y-l),S=(v-a)*(v-a)+(x-l)*(x-l);return b<S?(u[0]=m,u[1]=y,Math.sqrt(b)):(u[0]=v,u[1]=x,Math.sqrt(S))}(_,w,I,C,C+D,O,L,x,v),r=Math.cos(C+D)*M+_,a=Math.sin(C+D)*I+w;break;case g.R:A=y(u=r=d[b++],c=a=d[b++],d[b++],d[b++],f,x,v);break;case g.Z:A=m(r,a,u,c,f,x,v,!0),r=u,a=c}A<h&&(h=A,n.set(v[0],v[1]))}return h}(b,e.path,S):function(e,t,n){var i=y(t.x,t.y,t.width,t.height,e.x,e.y,v);return n.set(v[0],v[1]),i}(b,L,S);T<_&&(_=T,b.transform(M),S.transform(M),S.toArray(u[0]),b.toArray(u[1]),x.toArray(u[2]))}C(u,t.get("minTurnAngle")),n.setShape({points:u})}}}var M=[],I=new i.A;function C(e,t){if(t<=180&&t>0){t=t/180*Math.PI,x.fromArray(e[0]),b.fromArray(e[1]),S.fromArray(e[2]),i.A.sub(A,x,b),i.A.sub(_,S,b);var n=A.len(),o=_.len();if(!(n<.001)&&!(o<.001)&&(A.scale(1/n),_.scale(1/o),Math.cos(t)<A.dot(_))){var r=m(b.x,b.y,S.x,S.y,x.x,x.y,M,!1);I.fromArray(M),I.scaleAndAdd(_,r/Math.tan(Math.PI-t));var a=S.x!==b.x?(I.x-b.x)/(S.x-b.x):(I.y-b.y)/(S.y-b.y);if(isNaN(a))return;a<0?i.A.copy(I,b):a>1&&i.A.copy(I,S),I.toArray(e[1])}}}function D(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,x.fromArray(e[0]),b.fromArray(e[1]),S.fromArray(e[2]),i.A.sub(A,b,x),i.A.sub(_,S,b);var o=A.len(),r=_.len();if(!(o<.001)&&!(r<.001)&&(A.scale(1/o),_.scale(1/r),A.dot(t)<Math.cos(n))){var a=m(b.x,b.y,S.x,S.y,x.x,x.y,M,!1);I.fromArray(M);var s=Math.PI/2,l=s+Math.acos(_.dot(t))-n;if(l>=s)i.A.copy(I,S);else{I.scaleAndAdd(_,a/Math.tan(Math.PI/2-l));var u=S.x!==b.x?(I.x-b.x)/(S.x-b.x):(I.y-b.y)/(S.y-b.y);if(isNaN(u))return;u<0?i.A.copy(I,b):u>1&&i.A.copy(I,S)}I.toArray(e[1])}}}function O(e,t,n,i){var o="normal"===n,r=o?e:e.ensureState(n);r.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?e.useStyle(s):r.style=s}function L(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var o=h.dist(i[0],i[1]),r=h.dist(i[1],i[2]);if(!o||!r){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*n,s=h.lerp([],i[1],i[0],a/o),l=h.lerp([],i[1],i[2],a/r),u=h.lerp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function T(e,t,n){var i=e.getTextGuideLine(),o=e.getTextContent();if(!o){i&&e.removeTextGuideLine();return}for(var a=t.normal,s=a.get("show"),l=o.ignore,c=0;c<d.wV.length;c++){var h=d.wV[c],p=t[h],g="normal"===h;if(p){var f=p.get("show");if((g?l:(0,u.retrieve2)(o.states[h]&&o.states[h].ignore,l))||!(0,u.retrieve2)(f,s)){var m=g?i:i&&i.states[h];m&&(m.ignore=!0),i&&O(i,!0,h,p);continue}!i&&(i=new r.A,e.setTextGuideLine(i),g||!l&&s||O(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),O(i,!1,h,p)}}if(i){(0,u.defaults)(i.style,n),i.style.fill=null;var y=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=y||!1,i.buildPath=L}}function k(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<d.BV.length;i++){var o=d.BV[i];n[o]=e.getModel([o,t])}return n}},97548:function(e,t,n){n.d(t,{A:()=>s});var i=n(4884),o=n(65132),r=n(41402),a=n(30095);function s(e,t){return{seriesType:e,plan:(0,o.A)(),reset:function(e){var n=e.getData(),o=e.coordinateSystem,s=e.pipelineContext,l=t||s.large;if(o){var u=(0,i.map)(o.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),c=u.length,h=n.getCalculationInfo("stackResultDimension");(0,r.sJ)(n,u[0])&&(u[0]=h),(0,r.sJ)(n,u[1])&&(u[1]=h);var d=n.getStore(),p=n.getDimensionIndex(u[0]),g=n.getDimensionIndex(u[1]);return c&&{progress:function(e,t){for(var n=e.end-e.start,i=l&&(0,a.J)(n*c),r=[],s=[],u=e.start,h=0;u<e.end;u++){var f=void 0;if(1===c){var m=d.get(p,u);f=o.dataToPoint(m,null,s)}else r[0]=d.get(p,u),r[1]=d.get(g,u),f=o.dataToPoint(r,null,s);l?(i[h++]=f[0],i[h++]=f[1]):t.setItemLayout(u,f.slice())}l&&t.setLayout("points",i)}}}}}}},53450:function(e,t,n){n.d(t,{A:()=>i});function i(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf(function(e){for(var t=i.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0})}}}}},50821:function(e,t,n){n.d(t,{A:()=>a});var i=n(4884),o={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)!isNaN(e[i])&&(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,i=0;i<e.length;i++){var o=e[i],r=Math.abs(o);r>t&&(t=r,n=o)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},r=function(e){return Math.round(e.length/2)};function a(e){return{seriesType:e,reset:function(e,t,n){var a=e.getData(),s=e.get("sampling"),l=e.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),p=n.getDevicePixelRatio(),g=Math.round(u/(Math.abs(d[1]-d[0])*(p||1)));if(isFinite(g)&&g>1){"lttb"===s&&e.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g));var f=void 0;(0,i.isString)(s)?f=o[s]:(0,i.isFunction)(s)&&(f=s),f&&e.setData(a.downSample(a.mapDimension(h.dim),1/g,f,r))}}}}}},88556:function(e,t,n){n.d(t,{A:()=>a});var i=n(31831),o=n(30070),r=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};let a=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return(0,i.C6)(t,e),t.prototype.getDefaultShape=function(){return new r},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=(r-o)*.5,s=o+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),g=Math.sin(l),f=Math.cos(u),m=Math.sin(u);d?(e.moveTo(p*o+n,g*o+i),e.arc(p*s+n,g*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*r+n,g*r+i),e.arc(n,i,r,l,u,!c),e.arc(f*s+n,m*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==o&&e.arc(n,i,o,u,l,c)},t}(o.Ay)},45106:function(e,t,n){n.d(t,{Fs:()=>s,ex:()=>o,lH:()=>r});var i=n(4884);function o(e,t,n,o){return e&&(e.legacy||!1!==e.legacy&&!n&&!o&&"tspan"!==t&&("text"===t||(0,i.hasOwn)(e,"text")))}function r(e,t,n){var o,r,s;if("text"===t)s=e;else{s={},(0,i.hasOwn)(e,"text")&&(s.text=e.text),(0,i.hasOwn)(e,"rich")&&(s.rich=e.rich),(0,i.hasOwn)(e,"textFill")&&(s.fill=e.textFill),(0,i.hasOwn)(e,"textStroke")&&(s.stroke=e.textStroke),(0,i.hasOwn)(e,"fontFamily")&&(s.fontFamily=e.fontFamily),(0,i.hasOwn)(e,"fontSize")&&(s.fontSize=e.fontSize),(0,i.hasOwn)(e,"fontStyle")&&(s.fontStyle=e.fontStyle),(0,i.hasOwn)(e,"fontWeight")&&(s.fontWeight=e.fontWeight),r={type:"text",style:s,silent:!0},o={};var l=(0,i.hasOwn)(e,"textPosition");n?o.position=l?e.textPosition:"inside":l&&(o.position=e.textPosition),(0,i.hasOwn)(e,"textPosition")&&(o.position=e.textPosition),(0,i.hasOwn)(e,"textOffset")&&(o.offset=e.textOffset),(0,i.hasOwn)(e,"textRotation")&&(o.rotation=e.textRotation),(0,i.hasOwn)(e,"textDistance")&&(o.distance=e.textDistance)}return a(s,e),(0,i.each)(s.rich,function(e){a(e,e)}),{textConfig:o,textContent:r}}function a(e,t){t&&(t.font=t.textFont||t.font,(0,i.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,i.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,i.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,i.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,i.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,i.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,i.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,i.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,i.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,i.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,i.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,i.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,i.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,i.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,i.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function s(e,t,n){e.textPosition=e.textPosition||n.position||"inside",null!=n.offset&&(e.textOffset=n.offset),null!=n.rotation&&(e.textRotation=n.rotation),null!=n.distance&&(e.textDistance=n.distance);var o=e.textPosition.indexOf("inside")>=0,r=e.fill||"#000";l(e,t);var a=null==e.textFill;return o?a&&(e.textFill=n.insideFill||"#fff",!e.textStroke&&n.insideStroke&&(e.textStroke=n.insideStroke),e.textStroke||(e.textStroke=r),null==e.textStrokeWidth&&(e.textStrokeWidth=2)):(a&&(e.textFill=e.fill||n.outsideFill||"#000"),!e.textStroke&&n.outsideStroke&&(e.textStroke=n.outsideStroke)),e.text=t.text,e.rich=t.rich,(0,i.each)(t.rich,function(e){l(e,e)}),e}function l(e,t){t&&((0,i.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,i.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,i.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,i.hasOwn)(t,"font")&&(e.font=t.font),(0,i.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,i.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,i.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,i.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,i.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,i.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,i.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,i.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,i.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,i.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,i.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,i.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,i.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,i.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,i.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,i.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,i.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,i.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,i.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,i.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,i.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,i.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}},96457:function(e,t,n){n.d(t,{A:()=>i});let i=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}()}}]);
|