@weapp-vite/dashboard 7.0.4 → 7.1.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/dist/assets/echarts.js
CHANGED
|
@@ -14,4 +14,4 @@ yyyy`);var r=hc(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r
|
|
|
14
14
|
|
|
15
15
|
`],ib=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Ov({color:t,type:e,renderMode:n,markerId:r});return L(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};F(t)?A(t,function(e){return C(n,e)}):C(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function ob(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=F(s),l=$y(t,n),u,d,f,p;if(o>1||c&&!o){var m=sb(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=fh(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=dl(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return By(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[By(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!he(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function sb(e,t,n,r,i){var a=t.getData(),o=ee(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?A(r,function(e){u(fh(a,n,e),e)}):A(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(By(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var cb=t((()=>{W(),ab(),Dh(),X()}));function lb(e,t){return e.getName(t)||e.getId(t)}function ub(e){var t=e.name;dl(e)||(e.name=db(e)||t)}function db(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return A(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function fb(e){return e.model.getRawData().count()}function pb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),mb}function mb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hb(e,t){A(ye(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,P(gb,t))})}function gb(e,t){var n=_b(e);return n&&n.setOutputEnd((t||this).count()),t}function _b(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var vb,yb,bb=t((()=>{o(),W(),Ke(),X(),ty(),ly(),py(),Zv(),_y(),st(),Py(),cb(),vb=Y(),yb=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=my({count:fb,reset:pb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(vb(this).sourceManager=new Ny(this)).prepareSource();var r=this.getInitialData(e,n);hb(r,this),this.dataTask.context.data=r,vb(this).dataBeforeProcessed=r,ub(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Hv(this),r=n?Wv(e):{},i=this.subType;ey.hasClass(i)&&(i+=`Series`),x(e,t.getTheme().get(this.subType)),x(e,this.getDefaultOption()),Qc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Uv(e,r,n)},t.prototype.mergeOption=function(e,t){e=x(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Hv(this);n&&Uv(this.option,e,n);var r=vb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);hb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,vb(this).dataBeforeProcessed=i,ub(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!oe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Qc(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=_b(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return vb(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=_b(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}vb(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return H(e)},t.prototype.getSourceManager=function(){return vb(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return vb(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ob({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(G.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=cy.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=lb(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=N(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[lb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){R(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=lb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=lb(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return ey.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(ey),O(yb,fy),O(yb,cy),Qe(yb,ey)}));function xb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Sb(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?hp(e.slice(8),new q(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?mp(e.slice(7),{},new q(t,n,r,i),o?`center`:`cover`):new jb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=xb,a&&c.setColor(a),c}function Cb(e,t){if(e!=null)return F(e)||(e=[e,e]),[Bc(e[0],t[0])||0,Bc(V(e[1],e[0]),t[1])||0]}var wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb=t((()=>{W(),rm(),Pn(),Yn(),J(),Ly(),wb=ps.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Tb=ps.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),Eb=ps.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),Db=ps.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),Ob={line:Sf,rect:Ms,roundRect:Ms,square:Ms,circle:Id,diamond:Tb,pin:Eb,arrow:Db,triangle:wb},kb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Ab={},A(Ob,function(e,t){Ab[t]=new e}),jb=ps.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Gn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Ab[r];i||=(r=`rect`,Ab[r]),kb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function Nb(){var e=Y();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Pb=t((()=>{X()}));function Fb(e,t,n){e&&Gu(e)&&(t===`emphasis`?Cu:wu)(e,n)}function Ib(e,t,n){var r=gl(e,t),i=t&&t.highlightKey!=null?Ku(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Fb(e,n,i)}):A(Zc(r),function(t){Fb(e.getItemGraphicEl(t),n,i)})}function Lb(e){return Bb(e.model)}function Rb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&zb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Hb[c]}var zb,Bb,Vb,Hb,Ub=t((()=>{W(),Pd(),t_(),st(),X(),cd(),_y(),Pb(),rm(),zb=Y(),Bb=Nb(),Vb=function(){function e(){this.group=new Nd,this.uid=Xg(`viewChart`),this.renderTask=my({plan:Lb,reset:Rb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ib(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ib(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Lp(this.group,e)},e.markUpdateMethod=function(e,t){zb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),Xe(Vb,[`dispose`]),nt(Vb),Hb={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}}})),Wb,Gb=t((()=>{st(),Wb=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),nt(Wb)}));function Kb(e){return R(e)&&e.value!=null?e.value:e+``}var qb,Jb,Yb=t((()=>{W(),qb=0,Jb=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qb,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&j(r,Kb);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!L(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=H(this.categories)},e}()}));function Xb(e,t,n){var r;e||={};var i=N_();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(A(ax,function(t){a[t]&&(e[t]=U(a[t],a))}),r=a)}return r??rx(e,n),{brk:r,mapper:e}}function Zb(e,t){A(ax,function(n){e[n]=t[n]})}function Qb(e,t){e.freeze=Ce}function $b(e){return e.getExtentUnsafe(0,2)}function ex(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function tx(e){var t=ex(e,3);return t[1]-t[0]}function nx(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function rx(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Tl(),C(n,ox),n}function ix(e,t,n,r){kl(n,r)&&(e[t][0]=n,e[t][1]=r)}var ax,ox,sx=t((()=>{W(),X(),R_(),ax=N({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1}),ox={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=ex(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){ix(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),ix(r,e,t,n)},freeze:function(){}}}));function cx(e){return e.type===`interval`}function lx(e){return e.type===`time`}function ux(e){return e.type===`log`}function dx(e){return e.type===`ordinal`}function fx(e){return sc(e)+2}function px(e,t){return Ic(e)/Ic(t)}function mx(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Fc(t,e)}function hx(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=jc(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Ol(r[0])||!Ol(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function gx(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function _x(e,t){return e||=t,Mc(Ac(e,1))}function vx(e,t,n){var r=$b(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var yx=t((()=>{J(),X(),sx()})),bx,xx=t((()=>{o(),Gb(),Yb(),W(),J(),sx(),yx(),bx=function(e){i(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Zb(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Jb({}),F(i)&&(i=new Jb({categories:j(i,function(e){return R(e)?e.value:e})})),r._ordinalMeta=i;var a=Xb(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Qb(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:L(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Mc(e),e},t.prototype.getTicks=function(){var e=[];return vx(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=kc(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=$b(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Mc(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(Wb),Wb.registerClass(bx)}));function Sx(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=fx(f);u<t-1;){var m=ic(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=N_();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Cx=t((()=>{J(),R_(),yx()})),Tx,Ex=t((()=>{o(),J(),Iv(),Gb(),yx(),R_(),W(),Cx(),sx(),Tx=function(e){i(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Xb(r,P_(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return b(this._cfg)},t.prototype.setConfig=function(e){var t=$b(this);this._cfg=e=b(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=fx(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=$b(this),i=t.niceExtent,a=t.intervalPrecision,o=N_(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?ic(i[0]-n,a):r[0]});for(var d=function(e,t){return Mc((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=kc(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=ic(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=ic(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?ic(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Sx(this,e,F_(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=sc(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),wv(ic(e.value,n,!0))},t.type=`interval`,t}(Wb),Wb.registerClass(Tx)}));function Dx(e,t,n,r){return J_(new Date(t),e,r).getTime()===J_(new Date(n),e,r).getTime()}function Ox(e,t){return e/=fv,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function kx(e){var t=30*fv;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ax(e){return e/=dv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function jx(e,t){return e/=t?uv:lv,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Mx(e){return Ac(vc(e,!0),1)}function Nx(e,t,n){var r=Math.max(0,E(yv,t)-1);return J_(new Date(e),yv[r],n).getTime()}function Px(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Fx(e,t,n,r,i,a){var o=bv,s=0;function c(e,t,n,i,o,c,l){for(var u=Px(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Dx(H_(e),r[0],r[1],n)){s&&(i=[{value:Nx(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/fv/365)),p=Y_(n),m=nv(n);break;case`half-year`:case`quarter`:case`month`:f=kx(t),p=X_(n),m=rv(n);break;case`week`:case`half-week`:case`day`:f=Ox(t,31),p=Z_(n),m=iv(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Ax(t),p=Q_(n),m=av(n);break;case`minute`:f=jx(t,!0),p=$_(n),m=ov(n);break;case`second`:f=jx(t,!1),p=ev(n),m=sv(n);break;case`millisecond`:f=Mx(t),p=tv(n),m=cv(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=H_(o[m]);if(U_(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?H_(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=M(j(u,function(e){return M(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=q_(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Nl(S,Pl,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=q_(r[0],n),k=q_(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var Ix,Lx,Rx,zx,Bx=t((()=>{o(),J(),xv(),yx(),Gb(),W(),R_(),Cx(),sx(),X(),Ix=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Lx=function(e){i(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=Xb(r,P_(r,n),null).brk,r}return t.prototype.getLabel=function(e){return G_(e.value,vv[W_(H_(this._minLevelUnit))]||vv.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return K_(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=$b(this),r=N_(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return N_().addBreaksToTicks(o,i.breaks,n),o;o=Fx(this._minLevelUnit,this._approxInterval,s,n,nx(this),i);var c=yv.length-1,l=0;return A(o,function(e){e.time&&(c=Math.min(c,E(yv,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&N_().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&N_().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(E(yv,q_(e.vmin,s)),E(yv,q_(e.vmax,s))),n=0,r=0;r<yv.length;r++)if(!Dx(yv[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:yv[Math.max(i,t)],upperTimeUnit:yv[i]}}),o},t.prototype.getMinorTicks=function(e){return Sx(this,e,F_(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return ie(e)?Math.round(e):+hc(e)},t.type=`time`,t}(Wb),Rx=[[`second`,lv],[`minute`,uv],[`hour`,dv],[`quarter-day`,dv*6],[`half-day`,dv*12],[`day`,fv*1.2],[`half-week`,fv*3.5],[`week`,fv*7],[`month`,fv*31],[`quarter`,fv*95],[`half-year`,pv/2],[`year`,pv]],zx=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=fv,n[1]+=fv),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-fv}e.setExtent(n[0],n[1]);var i=_x(t.splitNumber,10),a=nx(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Rx.length,l=Math.min(Ix(Rx,a,0,c),c-1),u=Rx[l][1],d=Rx[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})},Wb.registerClass(Lx)})),Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx=t((()=>{o(),Gb(),Ex(),yx(),R_(),Cx(),sx(),W(),X(),J(),Vx=0,Hx=1,Ux=2,Wx=function(e){i(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Tx.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Vx]=i[Hx]=a[Vx]=a[Hx]=NaN,Zb(r,t.mapperMethods);var s=N_(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Ux,l),r.powStub=new Tx({breakParsed:l.original}),r.intervalStub=new Tx({breakParsed:l.transformed}),Qb(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=N_(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return j(i.getTicks(e||{}),function(e){var i=e.value,o=mx(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,F_(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Sx(this,e,F_(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(px(e,this.base))},scale:function(e){return mx(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=px(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Gx.depth=n,Kx.lookup=this._lookup,mx(n===2?e:this.intervalStub.transformOut(e,Gx),this.base,Kx)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!kl(t,n)||t<=0||n<=0)){var r=qx,i=qx;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Vx]=t,r[Hx]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Vx]=px(t,o),i[Hx]=px(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return kl(t[0],t[1])&&Ec(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Wb),Wb.registerClass(Wx),Gx={},Kx={},qx=[]})),Yx,Xx=t((()=>{Yx={value:1,category:1,time:1,log:1}}));function Zx(e){var t=e.get(`type`);return(t==null||!Se(Yx,t)&&!Wb.getClass(t))&&(t=`value`),t}function Qx(e,t,n){var r=N_(),i;switch(r&&(i=aS(e,t,n)),t){case`category`:return new bx({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Tl()});case`time`:return new Lx({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Wx({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Tx({breakOption:i});default:return new((Wb.getClass(t))||Tx)({})}}function $x(e){lS(e).noOnMyZero=!0}function eS(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=z_(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(L(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(I(t)){if(e.type===`category`)return function(n,r){return t(tS(e,n),n.value-e.scale.getExtent()[0],null)};var r=N_();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(tS(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function tS(e,t){var n=e.scale;return dx(n)?n.getLabel(t):t.value}function nS(e){return e.get(`interval`)??`auto`}function rS(e){return e.type===`category`&&nS(e.getLabelModel())===0}function iS(e){return e===`middle`||e===`center`}function aS(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!N_()||!n||!oS(t)?void 0:r}function oS(e){return e!==`category`}function sS(e,t,n,r,i,a){var o=ux(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=gx(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function cS(e,t){return dx(e)?e.getRawOrdinalNumber(t.value):t.value}var lS,uS=t((()=>{W(),xx(),Ex(),Gb(),Bx(),Jx(),Xx(),xv(),R_(),yx(),X(),sx(),lS=Y()}));function dS(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function fS(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:j(mS(n,r),function(t,n){return{formattedLabel:eS(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?hS(e,t):vS(e)}function pS(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:mS(i,r)}:e.type===`category`?_S(e,t):{ticks:r.getTicks(n)}}function mS(e,t){var n=t.getExtent(),r=[];return A(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Nl(r,Fl,null),oc(r),j(r,function(e){return{value:e}})}function hS(e,t){var n=e.getLabelModel(),r=gS(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function gS(e,t,n){var r=MS(e),i=nS(t),a=n.kind===AS.estimate;if(!a){var o=bS(r,i);if(o)return o}var s,c;I(i)?s=DS(e,i,!1):(c=i===`auto`?SS(e,n):i,s=DS(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return xS(r,i,l),!0}):xS(r,i,l),l}function _S(e,t){var n=jS(e),r=nS(t),i=bS(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),I(r))a=DS(e,r,!0);else if(r===`auto`){var s=gS(e,e.getLabelModel(),dS(AS.determine));o=s.labelCategoryInterval,a=j(s.labels,function(e){return e.tick})}else o=r,a=DS(e,o,!0);return xS(n,r,{ticks:a,tickCategoryInterval:o})}function vS(e){var t=e.scale.getTicks(),n=eS(e);return{labels:j(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}function yS(e){return function(t){return kS(t)[e]||(kS(t)[e]={list:[]})}}function bS(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function xS(e,t,n){return e.list.push({key:t,value:n}),n}function SS(e,t){if(t.kind===AS.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return kS(e).autoInterval=n,!0}),n}return kS(e).autoInterval??(kS(e).autoInterval=e.calculateCategoryInterval(t))}function CS(e,t){var n=t.kind,r=ES(e),i=eS(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Bn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===AS.estimate?(t.out.noPxChangeTryDetermine.push(U(wS,null,e,S,c)),S):TS(e,S,c)??S}function wS(e,t,n){return TS(e,t,n)==null}function TS(e,t,n){var r=OS(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function ES(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function DS(e,t,n){var r=eS(e),i=e.scale,a=[],o=I(t);return vx(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var OS,kS,AS,jS,MS,NS=t((()=>{W(),Yn(),X(),uS(),J(),yx(),OS=Y(),kS=Y(),AS={estimate:1,determine:2},jS=yS(`axisTick`),MS=yS(`axisLabel`)}));function PS(e){LS(e).prepare={}}function FS(e){LS(e).fullUpdate={}}function IS(e){return LS(e).fullUpdate}var LS,RS=t((()=>{X(),LS=Y()}));function zS(e,t){var n=e.model,r=GS(IS(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function BS(e,t){return US(zS(e,t))}function VS(e,t){var n=[];return HS(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(US(e))}),n}function HS(e,t){var n=GS(IS(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function US(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function WS(e,t){var n=e.model,r=GS(IS(n.ecModel)).keys;r&&A(r.get(n.uid),function(e){t(e)})}var GS,KS=t((()=>{W(),X(),RS(),Ml(),GS=Y(),Y(),H()}));function qS(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=tx(r);Ec(o)||(o=NaN);var s=e.getExtent(),c=jc(s[1]-s[0]);return dx(r)?JS(n,e,o,c):i&&YS(n,e,o,c,i),a!=null&&(n.w=Ec(n.w)?Ac(a,n.w):a),n}function JS(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function YS(e,t,n,r,i){var a=!1,o=-1/0;A(i.key?[BS(t,i.key)]:VS(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Ec(n)&&n>0&&Ec(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*XS,e.w2=e.w*n/r)}var XS,ZS=t((()=>{W(),yx(),J(),KS(),sx(),XS=.8}));function QS(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function $S(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=qS(e).w;if(!i)return!1;A(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var eC,tC,nC=t((()=>{W(),J(),NS(),yx(),ZS(),uS(),eC=[0,1],tC=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ec(e,eC,QS(this),t)},e.prototype.coordToData=function(e,t){var n=ec(e,QS(this),eC,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=j(pS(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(cS(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=$S(this,n,r);return j(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(dx(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),j(this.scale.getMinorTicks(e),function(e){return j(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=dS(AS.determine),fS(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return qS(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=dS(AS.determine),CS(this,e)},e}()}));function rC(e,t,n){n||=vC,t?e.dirty|=n:e.dirty&=~n}function iC(e,t){return t||=vC,e.dirty==null||!!(e.dirty&t)}function aC(e){if(e)return iC(e)&&oC(e,e.label,e),e}function oC(e,t,n){var r=t.getComputedTransform();e.transform=Bp(e.transform,r);var i=e.localRect=zp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=bm.textMargin);for(var d=0;d<4;d++)yC[d]=u===bm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===bm.textMargin&&Np(i,yC,!1,!1);var f=e.rect=zp(e.rect,i);return r&&f.applyTransform(r),u===bm.minMargin&&Np(f,yC,!1,!1),e.axisAligned=Rp(r),(e.label=e.label||{}).ignore=t.ignore,rC(e,!1),rC(e,!0,_C),e}function sC(e,t,n){return e.transform=Bp(e.transform,n),e.localRect=zp(e.localRect,t),e.rect=zp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Rp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function cC(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function lC(e,t){for(var n=0;n<hC.length;n++){var r=hC[n];e[r]??(e[r]=t[r])}return aC(e)}function uC(e){var t=e.obb;return(!t||iC(e,_C))&&(e.obb=t||=new Jf,t.fromBoundingRect(e.localRect,e.transform),rC(e,!1,_C)),t}function dC(e,t,n,r,i){var a=e.length,o=Yp[t],s=Xp[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function fC(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function pC(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=aC(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(mC(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function mC(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:uC(e).intersect(uC(t),n,r)}var hC,gC,_C,vC,yC,bC=t((()=>{rm(),xm(),hC=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],gC=1,_C=2,vC=gC|_C,yC=[0,0,0,0]}));bb(),Mb(),Ub(),bC();var xC=null;function SC(){return xC}var CC=`expandAxisBreak`;W(),rm(),Gl(),xm(),Im(),J(),Pt(),cn(),uS(),X(),R_(),Pn(),ln(),Mr(),NS(),yx();var wC=Math.PI,TC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],EC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],DC=Y(),OC=Y(),kC=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function AC(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=ew(e.axisName)&&iS(e.nameLocation);A(r,function(e){var t=aC(e);if(t&&!t.label.ignore){o.push(t);var n=a.transGroup;c&&(n.transform?Mt(jC,n.transform):Et(jC),t.transform&&Ot(jC,jC,t.transform),q.copy(MC,t.localRect),MC.applyTransform(jC),s?s.union(MC):q.copy(s=new q(0,0,0,0),MC))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new q(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var jC=Tt(),MC=new q(0,0,0,0),NC=function(e,t,n,r,i,a){if(iS(e.nameLocation)){var o=a.stOccupiedRect;o&&PC(sC({},o,a.transGroup.transform),r,i)}else FC(a.labelInfoList,a.dirVec,r,i)};function PC(e,t,n){var r=new K;mC(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&cC(t,r)}function FC(e,t,n,r){for(var i=K.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||PC(s,n,r)}}var IC=function(){function e(e,t,n,r){this.group=new Nd,this._axisModel=e,this._api=t,this._local={},this._shared=r||new kC(NC),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=V(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=V(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:V(e.nameDirection,1),tickDirection:V(e.tickDirection,1),labelDirection:V(e.labelDirection,1),labelOffset:V(e.labelOffset,0),silent:V(e.silent,!0),axisName:r,nameLocation:de(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:ew(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Nd({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new K(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},A(LC,function(r){e[r]&&RC[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=pc(t-e),i,a;return mc(r)?(a=n>0?`top`:`bottom`,i=`center`):mc(r-wC)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<wC?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),LC=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],RC={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(en(u,u,l),en(d,d,l));var p=C({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&I_(r.axis.scale))SC().buildAxisBreakLine(r,i,a,m);else{var h=new Sf(C({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));vp(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);L(g)&&(g=[g,g]),(L(_)||ie(_))&&(_=[_,_]);var v=Cb(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];A([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Sb(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){qC(t,i,s)&&zC(e,t,n,r,i,a,o,AS.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){qC(t,i,s)&&zC(e,t,n,r,i,a,o,AS.determine);var c=GC(e,i,a,r);HC(e,t.labelLayoutList,c),KC(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(ew(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new K(0,0),_=new K(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Tt();_.transform(At(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*wC/180);var b,x;iS(u)?b=IC.innerTextLayout(e.rotation,y??e.rotation,d):(b=BC(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=ue(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Js({x:g.x,y:g.y,rotation:b.rotation,silent:IC.isLabelSilent(r),style:cm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Fp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=IC.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=aC({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:iS(u)?TC[E]:EC[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function zC(e,t,n,r,i,a,o,s){YC(t)||JC(e,t,i,s,r,o);var c=t.labelLayoutList;ZC(e,r,c,a),nw(r,e.rotation,c);var l=e.optionHideOverlap;VC(r,c,l),l&&pC(M(c,function(e){return e&&!e.label.ignore})),AC(e,n,r,c)}function BC(e,t,n,r){var i=pc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return mc(i-wC/2)?(o=c?`bottom`:`top`,a=`center`):mc(i-wC*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<wC*1.5&&i>wC/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function VC(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(rS(r))return;function a(e,a,o){var s=aC(t[a]),c=aC(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=DC(s.label).labelInfo.tick;if(lx(l)&&u.notNice||dx(l)&&u.offInterval){UC(s.label);return}}if(e===!1||s.suggestIgnore){UC(s.label);return}if(c.suggestIgnore){UC(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=lC({marginForce:f},s),c=lC({marginForce:f},c)}mC(s,c,null,{touchThreshold:d})&&UC(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function HC(e,t,n){e.showMinorTicks||A(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=OC(r),a=DC(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){UC(r);return}}})}function UC(e){e&&(e.ignore=!0)}function WC(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(en(o,o,t),en(s,s,t));var u=new Sf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});vp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=OC(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function GC(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=WC(i.getTicksCoords(),n.transform,c,T(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function KC(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=T(c.getLineStyle(),T(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=WC(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function qC(e,t,n){if(YC(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),XC(e,null,null,null))}return!0}function JC(e,t,n,r,i,a){var o=i.axis,s=ue(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Nd;n.add(c);var l=dS(r);if(!s||o.scale.isBlank()){XC(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ue(e.raw.labelRotate,u.get(`rotate`))||0)*wC/180,p=IC.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;A(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=cS(o.scale,n);if(m&&m[f]){var y=m[f];R(y)&&y.textStyle&&(l=new Fm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=V(l.getShallow(`alignMinLabel`,!0),x),C=V(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=V(l.getShallow(`verticalAlignMinLabel`,!0),w),E=V(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Js({x:0,y:0,rotation:0,silent:IC.isLabelSilent(i),z2:D,style:cm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:I(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=DC(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Fp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=IC.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),Z(O).eventData=A,j&&tw(i,a,O,j)}h.push(O),c.add(O)}),XC(t,j(h,function(e){return{label:e,priority:DC(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function YC(e){return!!e.labelLayoutList}function XC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function ZC(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);A(n,function(n,a){var o=aC(n);if(o){var s=o.label,c=DC(s);o.suggestIgnore=s.ignore,s.ignore=!1,Sr(QC,$C);var l=t.axis;QC.x=l.dataToCoord(cS(l.scale,c.labelInfo.tick)),QC.y=e.labelOffset+e.labelDirection*i,QC.rotation=c.layoutRotation,r.add(QC),QC.updateTransform(),r.remove(QC),QC.decomposeTransform(),Sr(s,QC),s.markRedraw(),rC(o,!0),aC(o)}})}var QC=new Ms,$C=new Ms;function ew(e){return!!e}function tw(e,t,n,r){n.on(`click`,function(n){var i={type:CC,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function nw(e,t,n){var r=N_();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&DC(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&A(i,function(r){SC().adjustBreakLabelPair(e.axis.inverse,t,[aC(n[r[0]]),aC(n[r[1]])])})}}W();function rw(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),ue(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function iw(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),jl(t))}function aw(e,t){return t==null?null:le(t)?NaN:e.parse(t)}function ow(e,t){var n;if(dx(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=F(r)?r:[r,r]}return[sw(n[0]),sw(n[1])]}function sw(e){return Wn(typeof e==`boolean`?0:e,1)||0}function cw(e,t){var n=e.scale;lw(n,new pw(n,e.model,t,!1,!1),fw)}function lw(e,t,n){e.rawExtentInfo=t,t.from=n}function uw(e,t,n,r,i){e.rawExtentInfo||cw({scale:e,model:t},i||Tl());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function dw(e,t,n,r){if(n.ctnShp){var i;if(WS(e,function(t){var n=mw.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],El(i,a[0]),Dl(i,a[1]),$x(e))}}),i){var a=t.getExtent();if(dx(t))e.onBand||t.setExtent2(1,kc(a[0],a[0]+i[0]),Ac(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=kc(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Ac(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}var fw,pw,mw,hw=t((()=>{W(),Yn(),yx(),X(),uS(),J(),sx(),KS(),Y(),fw=3,pw=function(){function e(e,t,n,r,i){var a=dx(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(cx(e)||ux(e)||lx(e))&&(El(l,aw(e,t.get(`dataMin`,!0))),Dl(l,aw(e,t.get(`dataMax`,!0)))),Al(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=aw(e,I(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=aw(e,I(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=ow(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!Ol(u[0])&&(u[0]=NaN),!Ol(u[1])&&(u[1]=NaN);var g=s||le(u[0])||le(u[1])||a&&!o,_=cx(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=aw(e,t.get(`startValue`,!0)),x=b!=null;!Ec(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Ec(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),iw(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),iw(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}(),mw=H()}));function gw(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function _w(e,t,n,r){var i=e[t];if(i){var a=i[yw]||i,o=i[xw];if(i[bw]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=gw(a,n,r===`debounce`),i[yw]=a,i[xw]=r,i[bw]=n}return i}}function vw(e,t){var n=e[t];n&&n[yw]&&(n.clear&&n.clear(),e[t]=n[yw])}var yw,bw,xw,Sw=t((()=>{yw=`\0__throttleOriginMethod`,bw=`\0__throttleRate`,xw=`\0__throttleType`}));function Cw(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=gl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:F(l)?c.getName(l[0]):c.getName(l),selected:L(r)?r:C({},r)})}})}function ww(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Cw(`map`,`selectchanged`,t,r,e),Cw(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Cw(`map`,`selected`,t,r,e),Cw(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Cw(`map`,`unselected`,t,r,e),Cw(`pie`,`unselected`,t,r,e))})}var Tw=t((()=>{W(),X()}));function Ew(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function Dw(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%Rw<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Ho(i),i=Ho(f)}else r=Ho(r),i=Ho(i);r>i&&(i+=Rw);var p=Math.atan2(s,o);if(p<0&&(p+=Rw),p>=r&&p<=i||p+Rw>=r&&p+Rw<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function Ow(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function kw(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}function Aw(e,t,n){var r=kw(t.x,t.y,t.width,t.height,e.x,e.y,Vw);return n.set(Vw[0],Vw[1]),r}function jw(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case zw.M:a=u[p++],o=u[p++],r=a,i=o;break;case zw.L:h=Ow(r,i,u[p],u[p+1],d,f,Vw,!0),r=u[p++],i=u[p++];break;case zw.C:h=Hr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,Vw),r=u[p++],i=u[p++];break;case zw.Q:h=Yr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,Vw),r=u[p++],i=u[p++];break;case zw.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=Dw(g,_,y,b,b+x,S,C,f,Vw),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case zw.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=kw(a,o,w,T,d,f,Vw);break;case zw.Z:h=Ow(r,i,a,o,d,f,Vw,!0),r=a,i=o}h<l&&(l=h,n.set(Vw[0],Vw[1]))}return l}function Mw(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Bw,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Mt([],u),f=t.get(`length2`)||0;l&&Ww.copy(l);for(var p=0;p<o.length;p++){var m=o[p];Ew(m,0,s,Hw,Gw),K.scaleAndAdd(Uw,Hw,Gw,f),Uw.transform(d);var h=e.getBoundingRect(),g=l?l.distance(Uw):e instanceof ps?jw(Uw,e.path,Ww):Aw(Uw,h,Ww);g<c&&(c=g,Uw.transform(u),Ww.transform(u),Ww.toArray(a[0]),Uw.toArray(a[1]),Hw.toArray(a[2]))}Nw(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function Nw(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Hw.fromArray(e[0]),Uw.fromArray(e[1]),Ww.fromArray(e[2]),K.sub(Gw,Hw,Uw),K.sub(Kw,Ww,Uw);var n=Gw.len(),r=Kw.len();if(!(n<.001||r<.001)){Gw.scale(1/n),Kw.scale(1/r);var i=Gw.dot(Kw);if(Math.cos(t)<i){var a=Ow(Uw.x,Uw.y,Ww.x,Ww.y,Hw.x,Hw.y,qw,!1);Jw.fromArray(qw),Jw.scaleAndAdd(Kw,a/Math.tan(Math.PI-t));var o=Ww.x===Uw.x?(Jw.y-Uw.y)/(Ww.y-Uw.y):(Jw.x-Uw.x)/(Ww.x-Uw.x);if(isNaN(o))return;o<0?K.copy(Jw,Uw):o>1&&K.copy(Jw,Ww),Jw.toArray(e[1])}}}}function Pw(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function Fw(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=on(r[0],r[1]),a=on(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=$t([],r[1],r[0],o/i),c=$t([],r[1],r[2],o/a),l=$t([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function Iw(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<td.length;c++){var l=td[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:V(i.states[l]&&i.states[l].ignore,s))||!V(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Pw(r,!0,l,u);continue}r||(r=new vf,e.setTextGuideLine(r),!d&&(s||!o)&&Pw(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Pw(r,!1,l,u)}}if(r){T(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Fw}}function Lw(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<ed.length;r++){var i=ed[r];n[i]=e.getModel([i,t])}return n}var Rw,zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw=t((()=>{rm(),Fo(),Wo(),oi(),W(),Pt(),cn(),cd(),Rw=Math.PI*2,zw=Po.CMD,Bw=[`top`,`right`,`bottom`,`left`],Vw=[],Hw=new K,Uw=new K,Ww=new K,Gw=new K,Kw=new K,qw=[],Jw=new K})),Xw,Zw,Qw=t((()=>{Xw=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Zw=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xw(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Xw(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Xw(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Xw(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Xw(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Xw(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}()}));function $w(e,t,n,r){return n||={},r?eT(e,t,n):lT&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?eT(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function eT(e,t,n){if(G.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(d_(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(c_(cT,e,r,i)){n.zrX=cT[0],n.zrY=cT[1];return}}n.zrX=n.zrY=0}function tT(e){return e||window.event}function nT(e,t,n){if(t=tT(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&$w(e,i,t,n)}else{$w(e,t,t,n);var a=rT(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sT.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function rT(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function iT(e,t,n,r){e.addEventListener(t,n,r)}function aT(e,t,n,r){e.removeEventListener(t,n,r)}function oT(e){return e.which===2||e.which===3}var sT,cT,lT,uT,dT=t((()=>{Ke(),__(),sT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cT=[],lT=G.browser.firefox&&+G.browser.version.split(`.`)[0]<39,uT=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}}));function fT(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function pT(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var mT,hT,gT=t((()=>{dT(),mT=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=$w(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in hT)if(hT.hasOwnProperty(t)){var n=hT[t](this._track,e);if(n)return n}},e}(),hT={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=fT(r)/fT(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=pT(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}}));function _T(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vT}}function vT(){uT(this.event)}function yT(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||ST}return!1}function bT(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=yT(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==ST)){t.target=o;break}}}function xT(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var ST,CT,wT,TT,ET,DT,OT=t((()=>{o(),W(),cn(),Qw(),_a(),dT(),gT(),Pn(),ST=`silent`,CT=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ga),wT=function(){function e(e,t){this.x=e,this.y=t}return e}(),TT=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],ET=new q(0,0,0,0),DT=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new wT(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new CT,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Zw(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(TT,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=xT(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new wT(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new wT(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=_T(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new wT(e,t);if(bT(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new q(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(ET.copy(u.getBoundingRect()),u.transform&&ET.applyTransform(u.transform),ET.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(bT(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new mT;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new wT;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ga),A([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){DT.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=xT(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||on(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}})}));function kT(e){for(var t=0;e>=LT;)t|=e&1,e>>=1;return e+t}function AT(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;jT(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function jT(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function MT(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function NT(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function PT(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function FT(e,t){var n=RT,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=PT(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=NT(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=PT(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=NT(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=RT||m>=RT);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-PT(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-NT(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=RT||g>=RT);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function IT(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<LT){a=AT(e,n,r,t),MT(e,n,r,n+a,t);return}var o=FT(e,t),s=kT(i);do{if(a=AT(e,n,r,t),a<s){var c=i;c>s&&(c=s),MT(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var LT,RT,zT=t((()=>{LT=32,RT=7}));function BT(){HT||(HT=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function VT(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var HT,UT,WT=t((()=>{W(),zT(),Ta(),HT=!1,UT=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VT}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,IT(n,VT)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(BT(),p.z=0),isNaN(p.z2)&&(BT(),p.z2=0),isNaN(p.zlevel)&&(BT(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=E(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}()})),GT,KT=t((()=>{Ke(),GT=G.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}}));function qT(){return new Date().getTime()}var JT,YT=t((()=>{o(),_a(),KT(),ha(),JT=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=qT()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(GT(t),!e._paused&&e.update())}GT(t)},t.prototype.start=function(){this._running||(this._time=qT(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=qT(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=qT()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new ma(e,t.loop);return this.addAnimator(n),n},t}(ga)}));function XT(e){var t=e.pointerType;return t===`pen`||t===`touch`}function ZT(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function QT(e){e&&(e.zrByTouch=!0)}function $T(e,t){return nT(e.dom,new uE(e,t),!0)}function eE(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}function tE(e,t){var n=t.domHandlers;G.pointerEventsSupported?A(sE.pointer,function(r){rE(t,r,function(t){n[r].call(e,t)})}):(G.touchEventsSupported&&A(sE.touch,function(r){rE(t,r,function(i){n[r].call(e,i),ZT(t)})}),A(sE.mouse,function(r){rE(t,r,function(i){i=tT(i),t.touching||n[r].call(e,i)})}))}function nE(e,t){G.pointerEventsSupported?A(cE.pointer,n):G.touchEventsSupported||A(cE.mouse,n);function n(n){function r(r){r=tT(r),eE(e,r.target)||(r=$T(e,r),t.domHandlers[n].call(e,r))}rE(t,n,r,{capture:!0})}}function rE(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,iT(e.domTarget,t,n,r)}function iE(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&aT(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE=t((()=>{o(),dT(),W(),_a(),Ke(),aE=300,oE=G.domSupported,sE=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:j(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),cE={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},lE=!1,uE=function(){function e(e,t){this.stopPropagation=Ce,this.stopImmediatePropagation=Ce,this.preventDefault=Ce,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),dE={mousedown:function(e){e=nT(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=nT(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=nT(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=nT(this.dom,e);var t=e.toElement||e.relatedTarget;eE(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){lE=!0,e=nT(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){lE||(e=nT(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=nT(this.dom,e),QT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),dE.mousemove.call(this,e),dE.mousedown.call(this,e)},touchmove:function(e){e=nT(this.dom,e),QT(e),this.handler.processGesture(e,`change`),dE.mousemove.call(this,e)},touchend:function(e){e=nT(this.dom,e),QT(e),this.handler.processGesture(e,`end`),dE.mouseup.call(this,e),+new Date-this.__lastTouchMoment<aE&&dE.click.call(this,e)},pointerdown:function(e){dE.mousedown.call(this,e)},pointermove:function(e){XT(e)||dE.mousemove.call(this,e)},pointerup:function(e){dE.mouseup.call(this,e)},pointerout:function(e){XT(e)||dE.mouseout.call(this,e)}},A([`click`,`dblclick`,`contextmenu`],function(e){dE[e]=function(t){t=nT(this.dom,t),this.trigger(e,t)}}),fE={pointermove:function(e){XT(e)||fE.mousemove.call(this,e)},pointerup:function(e){fE.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}},pE=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),mE=function(e){i(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new pE(t,dE),oE&&(r._globalHandlerScope=new pE(document,fE)),tE(r,r._localHandlerScope),r}return t.prototype.dispose=function(){iE(this._localHandlerScope),oE&&iE(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,oE&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?nE(this,t):iE(t)}},t}(ga)})),gE=n({dispose:()=>bE,disposeAll:()=>xE,getElementSSRData:()=>wE,getInstance:()=>SE,init:()=>yE,registerPainter:()=>CE,registerSSRDataGetter:()=>TE,version:()=>AE});function _E(e){delete DE[e]}function vE(e){if(!e)return!1;if(typeof e==`string`)return Ni(e,1)<ba;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ni(t[i].color,1);return n/=r,n<ba}return!1}function yE(e,t){var n=new OE(v(),e,t);return DE[n.id]=n,n}function bE(e){e.dispose()}function xE(){for(var e in DE)DE.hasOwnProperty(e)&&DE[e].dispose();DE={}}function SE(e){return DE[e]}function CE(e,t){EE[e]=t}function wE(e){if(typeof kE==`function`)return kE(e)}function TE(e){kE=e}var EE,DE,OE,kE,AE,jE=t((()=>{Ke(),W(),OT(),WT(),YT(),hE(),Hi(),wa(),Pd(),EE={},DE={},OE=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new UT,a=n.renderer||`canvas`;EE[a]||(a=N(EE)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new EE[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!G.node&&!G.worker&&!s?new mE(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?G.touchEventsSupported:!!l,d=44,f;u&&(f=V(n.pointerSize,d)),this.handler=new DT(i,o,c,o.root,f),this.animation=new JT({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=vE(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=qT(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=qT();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Nd&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,_E(this.id))},e}(),AE=`6.1.0`})),ME,NE,PE,FE,IE,LE=t((()=>{Hi(),Ly(),ME=``,typeof navigator<`u`&&(ME=navigator.platform||``),NE=`rgba(0, 0, 0, 0.2)`,PE=Q.color.theme[0],FE=Ai(PE,null,null,.9),IE={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[FE,PE],aria:{decal:{decals:[{color:NE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:NE,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:NE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:NE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:NE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:NE,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ME.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}}));function RE(e,t,n){var r=zE.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var zE,BE=t((()=>{W(),zE=H()}));function VE(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function HE(e,t){var n=e.color&&!e.colorLayer;A(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||ey.hasClass(r)||(typeof t==`object`?e[r]=e[r]?x(e[r],t,!1):b(t):e[r]??(e[r]=t))})}function UE(e,t,n){if(F(t)){var r=H();return A(t,function(e){e!=null&&ul(e,null)!=null&&r.set(e,!0)}),M(n,function(t){return t&&r.get(t[e])})}var i=ul(t,null);return M(n,function(t){return t&&i!=null&&t[e]===i})}function WE(e,t){return t.hasOwnProperty(`subType`)?M(e,function(e){return e&&e.subType===t.subType}):e}function GE(e){var t=H();return e&&A(Zc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var KE,qE,JE,YE,XE,ZE,QE=t((()=>{o(),W(),X(),Im(),ty(),LE(),Ym(),BE(),ly(),YE=`\0_ec_inner`,XE=1,ZE=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Fm(r),this._locale=new Fm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=GE(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,GE(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?JE(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&A(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=H(),s=t&&t.replaceMergeMainTypeMap;Vm(this),A(e,function(e,t){e!=null&&(ey.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?b(e):x(n[t],e,!0))}),s&&s.each(function(e,t){ey.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),ey.topologicalTravel(a,ey.getAllClassMainTypes(),c,this);function c(t){var a=RE(this,t,Zc(e[t])),o=r.get(t),c=tl(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);pl(c,t,ey),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;A(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=ey.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=C({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),C(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&KE(this)}this._seriesIndices||KE(this)},t.prototype.getOption=function(){var e=b(this.option);return A(e,function(t,n){if(ey.hasClass(n)){for(var r=Zc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!fl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[YE],e},t.prototype.setTheme=function(e){this._theme=new Fm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?M(a,function(e){return!!e}):UE(`name`,i,a):UE(`id`,r,a):(o=[],A(Zc(n),function(e){a[e]&&o.push(a[e])})),WE(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(WE(r?this.queryComponents(r):M(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?M(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(I(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=L(e)?r.get(e):R(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ul(e,null);return M(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return M(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return M(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){qE(this),A(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){A(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){qE(this),A(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return A(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return qE(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){qE(this);var n=[];A(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=H(n)},t.prototype.restoreData=function(e){KE(this);var t=this._componentsMap,n=[];t.each(function(e,t){ey.hasClass(t)&&n.push(t)}),ey.topologicalTravel(n,ey.getAllClassMainTypes(),function(n){A(t.get(n),function(t){t&&(n!==`series`||!VE(t,e))&&t.restoreData()})})},t.internalField=function(){KE=function(e){var t=e._seriesIndices=[];A(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=H(t)},qE=function(e){},JE=function(e,t){e.option={},e.option[YE]=XE,e._componentsMap=H({series:[]}),e._componentsCount=H();var n=t.aria;R(n)&&n.enabled==null&&(n.enabled=!0),HE(t,e._theme.option),x(t,IE,!1),e._mergeOption(t,null)}}(),t}(Fm),O(ZE,cy)}));function $E(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&F(l)&&A(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),A(c,function(e){return f(e)}),A(r,function(e){return f(e.option)});function f(e){A(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function eD(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return A(e,function(e,t){var n=t.match(rD);if(n&&n[1]&&n[2]){var a=n[1];tD(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function tD(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function nD(e,t){return e.join(`,`)===t.join(`,`)}var rD,iD,aD=t((()=>{X(),W(),rD=/^(min|max)?(.+)$/,iD=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(A(Zc(e.series),function(e){e&&e.data&&oe(e.data)&&ge(e.data)}),A(Zc(e.dataset),function(e){e&&e.source&&oe(e.source)&&ge(e.source)})),e=b(e);var r=this._optionBackup,i=$E(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],b(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=b(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)eD(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!nD(a,this._currentMediaIndices)&&(o=j(a,function(e){return b(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}()}));function oD(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=_D.length;n<r;n++){var i=_D[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?x(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?x(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function sD(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,T(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function cD(e){sD(e,`itemStyle`),sD(e,`lineStyle`),sD(e,`areaStyle`),sD(e,`label`),sD(e,`labelLine`),sD(e,`upperLabel`),sD(e,`edgeLabel`)}function lD(e,t){var n=gD(e)&&e[t],r=gD(n)&&n.textStyle;if(r)for(var i=0,a=Bl.length;i<a;i++){var o=Bl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function uD(e){e&&(cD(e),lD(e,`label`),e.emphasis&&lD(e.emphasis,`label`))}function dD(e){if(gD(e)){oD(e),cD(e),lD(e,`label`),lD(e,`upperLabel`),lD(e,`edgeLabel`),e.emphasis&&(lD(e.emphasis,`label`),lD(e.emphasis,`upperLabel`),lD(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(oD(t),uD(t));var n=e.markLine;n&&(oD(n),uD(n));var r=e.markArea;r&&uD(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!oe(a))for(var o=0;o<a.length;o++)uD(a[o]);A(e.categories,function(e){cD(e)})}if(i&&!oe(i))for(var o=0;o<i.length;o++)uD(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)uD(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)F(c[o])?(uD(c[o][0]),uD(c[o][1])):uD(c[o]);e.type===`gauge`?(lD(e,`axisLabel`),lD(e,`title`),lD(e,`detail`)):e.type===`treemap`?(sD(e.breadcrumb,`itemStyle`),A(e.levels,function(e){cD(e)})):e.type===`tree`&&cD(e.leaves)}}function fD(e){return F(e)?e:e?[e]:[]}function pD(e){return(F(e)?e[0]:e)||{}}function mD(e,t){hD(fD(e.series),function(e){gD(e)&&dD(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),hD(n,function(t){hD(fD(e[t]),function(e){e&&(lD(e,`axisLabel`),lD(e.axisPointer,`label`))})}),hD(fD(e.parallel),function(e){var t=e&&e.parallelAxisDefault;lD(t,`axisLabel`),lD(t&&t.axisPointer,`label`)}),hD(fD(e.calendar),function(e){sD(e,`itemStyle`),lD(e,`dayLabel`),lD(e,`monthLabel`),lD(e,`yearLabel`)}),hD(fD(e.radar),function(e){lD(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),hD(fD(e.geo),function(e){gD(e)&&(uD(e),hD(fD(e.regions),function(e){uD(e)}))}),hD(fD(e.timeline),function(e){uD(e),sD(e,`label`),sD(e,`itemStyle`),sD(e,`controlStyle`,!0);var t=e.data;F(t)&&A(t,function(e){R(e)&&(sD(e,`label`),sD(e,`itemStyle`))})}),hD(fD(e.toolbox),function(e){sD(e,`iconStyle`),hD(e.feature,function(e){sD(e,`iconStyle`)})}),lD(pD(e.axisPointer),`label`),lD(pD(e.tooltip).axisPointer,`label`)}var hD,gD,_D,vD=t((()=>{W(),X(),hD=A,gD=R,_D=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function yD(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function bD(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function xD(e){e&&A(OD,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function SD(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<AD.length;n++){var r=AD[n][1],i=AD[n][0];t[r]!=null&&(t[i]=t[r])}}function CD(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function wD(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function TD(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function ED(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ED(e[n].children,t)}function DD(e,t){mD(e,t),e.series=Zc(e.series),A(e.series,function(e){if(R(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),CD(e.label);var n=e.data;if(n&&!oe(n))for(var r=0;r<n.length;r++)CD(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=yD(e,`pointer.color`);i!=null&&bD(e,`itemStyle.color`,i)}else if(t===`bar`){SD(e),SD(e.backgroundStyle),SD(e.emphasis);var n=e.data;if(n&&!oe(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(SD(n[r]),SD(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),wD(e),ED(e.data,wD)}else t===`graph`||t===`sankey`?TD(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&T(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),xD(e)}}),e.dataRange&&(e.visualMap=e.dataRange),A(kD,function(t){var n=e[t];n&&(F(n)||(n=[n]),A(n,function(e){xD(e)}))})}var OD,kD,AD,jD=t((()=>{W(),vD(),X(),OD=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],kD=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],AD=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function MD(e){var t=H();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),A(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),ND(e))})}function ND(e){A(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=fc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var PD,FD=t((()=>{W(),J(),X(),PD=Ll(MD)})),ID,LD=t((()=>{Pd(),t_(),st(),ID=function(){function e(){this.group=new Nd,this.uid=Xg(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}(),Xe(ID),nt(ID)}));function RD(e,t){return e.visualStyleMapper||VD[t]||(console.warn(`Unknown style type '`+t+`'.`),VD.itemStyle)}function zD(e,t){return e.visualDrawType||HD[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var BD,VD,HD,UD,WD,GD,KD,qD=t((()=>{W(),lt(),Pm(),Am(),Im(),X(),BD=Y(),VD={itemStyle:ct(jm,!0),lineStyle:ct(Dm,!0)},HD={lineStyle:`stroke`,itemStyle:`fill`},UD={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=RD(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=zD(e,r),c=a[s],l=I(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||I(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||I(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=C({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},WD=new Fm,GD={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=RD(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){WD.option=n[r];var o=i(WD);C(e.ensureUniqueItemVisual(t,`style`),o),WD.option.decal&&(e.setItemVisual(t,`decal`,WD.option.decal),WD.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},KD={performRawSeries:!0,overallReset:function(e){var t=H();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();BD(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=BD(e).scope,a=zD(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}}}));function JD(e,t){t||={},T(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Nd,r=new Ms({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Js({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ms({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Af({shape:{startAngle:-YD/2,endAngle:-YD/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:YD*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:YD*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var YD,XD=t((()=>{W(),rm(),Ly(),YD=Math.PI}));function ZD(e){e.overallReset(e.ecModel,e.api,e.payload)}function QD(e){return e.dirtyOnOverallProgress&&$D}function $D(){this.agent.dirty(),this.getDownstream().dirty()}function eO(){this.agent&&this.agent.dirty()}function tO(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function nO(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Zc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(e,t){return rO(t)}):cO}function rO(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function iO(e){return e.data.count()}function aO(e){dO=null;try{e(lO,uO)}catch{}return dO}function oO(e,t){for(var n in t.prototype)e[n]=Ce}var sO,cO,lO,uO,dO,fO=t((()=>{W(),_y(),t_(),QE(),iu(),X(),sO=function(){function e(e,t,n,r){this._stageTaskMap=H(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Il(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=H();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;A(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});me(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;A(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=H(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||my({plan:tO,reset:nO,count:iO}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||my({reset:ZD});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=H(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;me(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):A(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,my({reset:QD,onDirty:eO})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return I(e)&&(e={overallReset:e,seriesType:aO(e)}),e.uid=Xg(`stageHandler`),t&&(e.visualType=t),e},e}(),cO=rO(0),lO={},uO={},oO(lO,ZE),oO(uO,ru),lO.eachSeriesByType=lO.eachRawSeriesByType=function(e){dO=e},lO.eachComponent=function(e){e.mainType===`series`&&e.subType&&(dO=e.subType)}})),$,pO,mO,hO,gO,_O=t((()=>{Ly(),$=Q.darkColor,pO=$.background,mO=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},hO={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},gO={darkMode:!0,color:$.theme,backgroundColor:pO,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:pO,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:hO,y:hO,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:mO(),logAxis:mO(),valueAxis:mO(),categoryAxis:mO(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=mO();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}},gO.categoryAxis.splitLine.show=!1})),vO,yO=t((()=>{W(),st(),vO=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(L(e)){var i=qe(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};A(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}()})),bO,xO,SO,CO,wO=t((()=>{W(),bO=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],xO=bO.concat([`symbolKeepAspect`]),SO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<bO.length;o++){var s=bO[o],c=e.get(s);I(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(C({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=N(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},CO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<xO.length;r++){var i=xO[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function TO(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function EO(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function DO(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r)}}var OO=t((()=>{}));function kO(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var AO=t((()=>{})),jO,MO=t((()=>{_a(),jO=new ga}));function NO(e,t){FO[e]=t}function PO(e){return FO[e]}var FO,IO=t((()=>{FO={}}));function LO(e,t){RO[e]=t}var RO,zO=t((()=>{RO={}})),BO,VO,HO,UO=t((()=>{BO=Math.round(Math.random()*9),VO=typeof Object.defineProperty==`function`,HO=function(){function e(){this._id=`__ec_inner_`+BO++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return VO?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}()}));function WO(e){return isFinite(e)}function GO(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=WO(r)?r:0,i=WO(i)?i:1,a=WO(a)?a:0,o=WO(o)?o:0,e.createLinearGradient(r,a,i,o)}function KO(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=WO(o)?o:.5,s=WO(s)?s:.5,c=c>=0&&WO(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function qO(e,t,n){for(var r=t.type===`radial`?KO(e,t,n):GO(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function JO(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function YO(e){return parseInt(e,10)}function XO(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||YO(s[r])||YO(e.style[r]))-(YO(s[a])||0)-(YO(s[o])||0)||0}var ZO=t((()=>{}));function QO(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ie(e)?[e]:F(e)?e:null}function $O(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&QO(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=j(n,function(e){return e/i}),r/=i)}return[n,r]}var ek=t((()=>{W()}));function tk(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function nk(e){return typeof e==`string`&&e!==`none`}function rk(e){var t=e.fill;return t!=null&&t!==`none`}function ik(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function ak(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function ok(e,t,n){var r=yt(t.image,t.__image,n);if(xt(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*He),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function sk(e,t,n,r,i){var a,o=tk(n),s=rk(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Sk,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?qO(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?qO(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?ok(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?ok(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=$O(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&ak(e,n),s&&ik(e,n)):(s&&ik(e,n),o&&ak(e,n)),T&&e.setLineDash([])}function ck(e,t,n){var r=t.__image=yt(n.image,t.__image,t,t.onload);if(r&&xt(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function lk(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=$O(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(tk(n)&&e.strokeText(i,n.x,n.y),rk(n)&&e.fillText(i,n.x,n.y)):(rk(n)&&e.fillText(i,n.x,n.y),tk(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function uk(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){_k(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ka.opacity:o}(r||t.blend!==n.blend)&&(a||=(_k(e,i),!0),e.globalCompositeOperation=t.blend||Ka.blend);for(var s=0;s<Ck.length;s++){var c=Ck[s];(r||t[c]!==n[c])&&(a||=(_k(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(_k(e,i),!0),e.shadowColor=t.shadowColor||Ka.shadowColor),a}function dk(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=uk(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(_k(e,i),!0),nk(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(_k(e,i),!0),nk(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(_k(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(_k(e,i),!0),e.lineWidth=c)}for(var l=0;l<wk.length;l++){var u=wk[l],d=u[0];(r||a[d]!==o[d])&&(s||=(_k(e,i),!0),e[d]=a[d]||u[1])}return s}function fk(e,t,n,r,i){return uk(e,t.style,n&&n.style,r,i)}function pk(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function mk(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),pk(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function hk(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}function gk(e){var t=rk(e),n=tk(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function _k(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function vk(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};yk(e,t,n),bk(e,n)}function yk(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||JO(i,a))&&(a&&(_k(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(_k(e,n),e.save(),mk(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof ps&&t.autoBatch&&gk(o);s||hk(r,l.transform)?(_k(e,n),pk(e,t)):u||_k(e,n),t instanceof ps?(n.lastDrawType!==Tk&&(c=!0,n.lastDrawType=Tk),dk(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),sk(e,t,o,u,n)):t instanceof gs?(n.lastDrawType!==Dk&&(c=!0,n.lastDrawType=Dk),dk(e,t,l,c,n),lk(e,t,o)):t instanceof xs?(n.lastDrawType!==Ek&&(c=!0,n.lastDrawType=Ek),fk(e,t,l,c,n),ck(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Ok&&(c=!0,n.lastDrawType=Ok),xk(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&_k(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function bk(e,t){_k(e,t),t.prevElClipPaths&&e.restore()}function xk(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),yk(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}bk(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),yk(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}bk(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Sk,Ck,wk,Tk,Ek,Dk,Ok,kk=t((()=>{$a(),Fo(),Ct(),ZO(),ms(),Ss(),_s(),W(),ek(),Ta(),g(),Sk=new Po(!0),Ck=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],wk=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],Tk=1,Ek=2,Dk=3,Ok=4}));function Ak(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Ik.delete(e);var a=Ik.get(e);if(a)return a;var o=T(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Ik.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Rk.length;++s){var c=o[Rk[s]];if(c!=null&&!F(c)&&!L(c)&&!ie(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Lk.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Mk(o.dashArrayX),f=Nk(o.dashArrayY),p=jk(o.symbol),m=Pk(d),g=Fk(f),_=!i&&h.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&Lk.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=Tc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Tc(r,p[t].length);e*=r;var i=g*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%p.length,m=0,h=0,x=0;m<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Sb(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else vk(b,u)}}}}function jk(e){if(!e||e.length===0)return[[`rect`]];if(L(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!L(e[n])){t=!1;break}if(t)return jk([e]);for(var r=[],n=0;n<e.length;++n)L(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Mk(e){if(!e||e.length===0)return[[0,0]];if(ie(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ie(e[r])){n=!1;break}if(n)return Mk([e]);for(var i=[],r=0;r<e.length;++r)if(ie(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=j(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Nk(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ie(e)){var t=Math.ceil(e);return[t,t]}var n=j(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Pk(e){return j(e,function(e){return Fk(e)})}function Fk(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Ik,Lk,Rk,zk=t((()=>{UO(),_t(),W(),J(),Mb(),kk(),g(),Ik=new HO,Lk=new gt(100),Rk=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function Bk(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Ak(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Ak(i,t)}}})}var Vk,Hk=t((()=>{zk(),X(),Vk=Ll(Bk)}));function Uk(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return Gk(this,e,t)}}function Wk(e){return function(){var t=[...arguments];return Gk(this,e,t)}}function Gk(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ga.prototype[t].apply(e,n)}function Kk(e,t,n){var r=!(n&&n.ssr);if(r){var i=Xk(e);if(i)return i}var a=new fj(e,t,n);return a.id=`ec_`+Tj++,Cj[a.id]=a,r&&xl(e,Dj,a.id),cj(a),jO.trigger(`afterinit`,a),a}function qk(e){if(F(e)){var t=e;e=null,A(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+Ej++,A(t,function(t){t.group=e})}return wj[e]=!0,e}function Jk(e){wj[e]=!1}function Yk(e){L(e)?e=Cj[e]:e instanceof fj||(e=Xk(e)),e instanceof fj&&!e.isDisposed()&&e.dispose()}function Xk(e){return Cj[Sl(e,Dj)]}function Zk(e){return Cj[e]}function Qk(e,t){xj[e]=t}function $k(e){E(yj,e)<0&&yj.push(e)}function eA(e,t){uA(vj,e,t,CA)}function tA(e){rA(`afterinit`,e)}function nA(e){rA(`afterupdate`,e)}function rA(e,t){jO.on(e,t)}function iA(e,t,n){var r,i,a,o,s;I(t)&&(n=t,t=``),R(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;hj[r]||(me(BA.test(r)&&BA.test(i)),a&&me(i!==r),hj[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},_j[i]=1,a&&s&&(_j[l]=1),gj[l]=r)}function aA(e,t){jg.register(e,t)}function oA(e){var t=jg.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function sA(e,t){LO(e,t)}function cA(e,t){uA(bj,e,t,TA,`layout`,!0)}function lA(e,t){uA(bj,e,t,OA,`visual`,!0)}function uA(e,t,n,r,i,a){if((I(t)||R(t))&&(n=t,t=r),!(E(kj,n)>=0)){kj.push(n);var o=sO.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function dA(e,t){Sj[e]=t}function fA(e){c({createCanvas:e})}function pA(e,t,n){var r=PO(`registerMap`);r&&r(e,t,n)}function mA(e){var t=PO(`getMap`);return t&&t(e)}function hA(e,t,n,r){return{eventContent:{selected:zu(n),isFromClick:t.isFromClick||!1}}}var gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj=t((()=>{o(),jE(),W(),Ke(),zT(),_a(),QE(),iu(),Ng(),aD(),jD(),FD(),LD(),rm(),Gl(),cd(),X(),Sw(),qD(),XD(),fO(),_O(),st(),yO(),eu(),wO(),OO(),Yc(),Tw(),ky(),M_(),AO(),MO(),g(),IO(),zO(),RS(),LE(),Hk(),gA=`6.1.0`,_A={zrender:`6.1.0`},vA=1,yA=800,bA=900,xA=920,SA=1e3,CA=2e3,wA=5e3,TA=1e3,EA=1100,DA=2e3,OA=3e3,kA=4e3,AA=4500,jA=4600,MA=5e3,NA=6e3,PA=7e3,FA={PROCESSOR:{SERIES_FILTER:yA,AXIS_STATISTICS:xA,FILTER:SA,STATISTIC:wA,STATISTICS:wA},VISUAL:{LAYOUT:TA,PROGRESSIVE_LAYOUT:EA,GLOBAL:DA,CHART:OA,POST_CHART_LAYOUT:jA,COMPONENT:kA,BRUSH:MA,CHART_ITEM:AA,ARIA:NA,DECAL:PA}},IA=`__flagInMainProcess`,LA=`__mainProcessVersion`,RA=`__pendingUpdate`,zA=`__needsUpdateStatus`,BA=/^[a-zA-Z0-9_]+$/,VA=`__connectUpdateStatus`,HA=0,UA=1,WA=2,GA=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ga),KA=GA.prototype,KA.on=Wk(`on`),KA.off=Wk(`off`),fj=function(e){i(t,e);function t(t,n,r){var i=e.call(this,new vO)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[LA]=1,r.ssr&&TE(function(e){var t=Z(e),n=t.dataIndex;if(n!=null){var r=H();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=yE(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:V(r.useDirtyRect,s),useCoarsePointer:V(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=gw(U(c.flush,c),17),i._updateTheme(n),i._locale=C_(r.locale||j_),i._coordSysMgr=new jg;var l=i._api=sj(i);function u(e,t){return e.__prio-t.__prio}return IT(bj,u),IT(vj,u),i._scheduler=new sO(i,l,vj,bj),i._messageCenter=new GA,i._initEvents(),i.resize=U(i.resize,i),c.animation.on(`frame`,i._onframe,i),nj(c,i),rj(c,i),ge(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(uj(this),this[RA]){var r=this[RA].silent;this[IA]=!0,dj(this);try{qA(this),XA.update.call(this,null,this[RA].updateParams)}catch(e){throw this[IA]=!1,this[RA]=null,e}this._zr.flush(),this[IA]=!1,this[RA]=null,ej.call(this,r),tj.call(this,r)}else if(e.unfinished){var i=vA;do{e.unfinished=!1;var a=h.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),QA(this,t),e.performVisualTasks(t),oj(this,this._model,n,`remain`,{}),i-=h.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[IA]){if(this._disposed){this.id;return}var r,i,a;if(R(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[IA]=!0,dj(this),!this._model||t){var o=new iD(this._api),s=this._theme,c=this._model=new ZE;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},yj);var l={seriesTransition:a,optionChanged:!0};if(n)this[RA]={silent:r,updateParams:l},this[IA]=!1,this.getZr().wakeUp();else{try{qA(this),XA.update.call(this,null,l)}catch(e){throw this[RA]=null,this[IA]=!1,e}this._ssr||this._zr.flush(),this[RA]=null,this[IA]=!1,ej.call(this,r),tj.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[IA]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[RA]&&(r??=this[RA].silent,i=this[RA].updateParams,this[RA]=null),this[IA]=!0,dj(this);try{this._updateTheme(e),n.setTheme(this._theme),qA(this),XA.update.call(this,{type:`setTheme`},i)}catch(e){throw this[IA]=!1,e}this[IA]=!1,ej.call(this,r),tj.call(this,r)}}},t.prototype._updateTheme=function(e){L(e)&&(e=xj[e]),e&&(e=b(e),e&&DD(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||G.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return A(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;A(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return A(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(wj[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();A(Cj,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(b(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=h.createCanvas(),g=yE(m,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:p}),t){var _=``;return A(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Ms({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),A(u,function(e){var t=new xs({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return ZA(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return ZA(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return ZA(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return A(_l(n,e),function(e,n){n.indexOf(`Models`)>=0&&A(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=_l(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?EO(i,t):TO(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(mj,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&kO(i,function(e){var t=Z(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=C({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;A(_j,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),ww(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&xl(this.getDom(),Dj,``);var e=this,t=e._api,n=e._model;A(e._componentsViews,function(e){e.dispose(n,t)}),A(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Cj[e.id]},t.prototype.resize=function(e){if(!this[IA]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[RA]&&(r??=this[RA].silent,n=!0,this[RA]=null),this[IA]=!0,dj(this);try{n&&qA(this),XA.update.call(this,{type:`resize`,animation:C({duration:0},e&&e.animation)})}catch(e){throw this[IA]=!1,e}this[IA]=!1,ej.call(this,r),tj.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(R(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Sj[e]){var n=Sj[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=C({},e);return t.type=gj[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(R(t)||(t={silent:!!t}),hj[e.type]&&this._model){if(this[IA]){this._pendingActions.push(e);return}var n=t.silent;$A.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&G.browser.weChat&&this._throttledZrFlush(),ej.call(this,n),tj.call(this,n)}},t.prototype.updateLabelLayout=function(){jO.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){qA=function(e){PS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),JA(e,!0),JA(e,!1),t.plan()},JA=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=qe(e.type);u=new(t?ID.getClass(d.main,d.sub):Vb.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},YA=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){A([].concat(e._componentsViews,e._chartsViews),l);return}var o=bl(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=H(),A(Zc(s),function(e){var t=ul(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Ju(n)){if(t instanceof yb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Nu(t,n,e._api);else{var r=Pu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Mu(t.mainType,t.componentIndex,e._api),a&&A(a,function(e){n.type===`highlight`?Cu(e):wu(e)})}}else qu(n)&&t instanceof yb&&(Lu(t,n,e._api),Ru(t),lj(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},XA={prepareAndUpdate:function(e){qA(this),XA.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){FS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),jO.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),QA(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),ij(this,r,i,e,n),jO.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=H();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),oj(t,n,r,e,{},a),jO.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Vb.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ij(this,n,this._api,e,{}),jO.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Vb.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),jO.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){XA.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=_l(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}ZA=e,QA=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},$A=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=hj[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&qe(s[0]);this[IA]=!0,dj(this);var u=[e],d=!1;e.batch&&(d=!0,u=j(e.batch,function(t){return t=T(C({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=qu(e),_=Ju(e);if(_&&Au(this._api),A(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=C({},t),p.type=h,f.push(p),_){var a=vl(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;YA(n,c,t,u),lj(n)}else g?(YA(n,c,t,`series`),lj(n)):l&&YA(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[RA]?(qA(this),XA.update.call(this,e),this[RA]=null):XA[c].call(this,e)}catch(e){throw this[IA]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[IA]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;me(R(y)),v=T({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},ej=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();$A.call(this,n,e)}},tj=function(e){!e&&this.trigger(`updated`)},nj=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[RA]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},rj=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=kO(n,Gu);r&&(Fu(r,e,t._api),lj(t))}).on(`mouseout`,function(e){var n=e.target,r=kO(n,Gu);r&&(Iu(r,e,t._api),lj(t))}).on(`click`,function(e){var n=e.target,r=kO(n,function(e){return Z(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Z(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;IT(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),A(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}ij=function(e,t,r,i,a){n(t),aj(e,t,r,i,a),A(e._chartsViews,function(e){e.__alive=!1}),oj(e,t,r,i,a),A(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},aj=function(e,t,n,r,i,a){A(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),s(i,e),l(i,e)})},oj=function(e,t,n,r,i,u){var d=e._scheduler;i=C(i||{},{updatedSeries:t.getSeries()}),jO.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),c(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),o(t,n),Ru(t)}),d.unfinished=f||d.unfinished,jO.trigger(`series:layoutlabels`,t,n,i),jO.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];s(t,n),l(t,n)}),a(e,t),jO.trigger(`series:afterupdate`,t,n,i)},lj=function(e){e[zA]=!0,e.getZr().wakeUp()},dj=function(e){e[LA]=(e[LA]+1)%1e6},uj=function(e){e[zA]&&(e.getZr().storage.traverse(function(e){ip(e)||r(e)}),e[zA]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function a(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>V(t.get(`hoverLayerThreshold`),IE.hoverLayerThreshold)&&!G.node&&!G.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function o(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function s(e,t){if(!e.preventAutoZ){var n=Vp(e);t.eachRendered(function(e){return Up(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!ip(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function l(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(ip(e))return;if(e instanceof ps&&Yu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}sj=function(e){return new(function(t){i(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Cu(t,n),lj(e)},n.prototype.leaveEmphasis=function(t,n){wu(t,n),lj(e)},n.prototype.enterBlur=function(t){Tu(t),lj(e)},n.prototype.leaveBlur=function(t){Eu(t),lj(e)},n.prototype.enterSelect=function(t){Du(t),lj(e)},n.prototype.leaveSelect=function(t){Ou(t),lj(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[LA]},n.prototype.usingTHL=function(){return e._usingTHL},n}(ru))(e)},cj=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[VA]=t}}A(gj,function(n,r){e._messageCenter.on(r,function(n){if(wj[e.group]&&e[VA]!==HA){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];A(Cj,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,HA),A(i,function(e){e[VA]!==UA&&e.dispatchAction(r)}),t(i,WA)}})})}}(),t}(ga),pj=fj.prototype,pj.on=Uk(`on`),pj.off=Uk(`off`),pj.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)},mj=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],hj={},gj={},_j={},vj=[],yj=[],bj=[],xj={},Sj={},Cj={},wj={},Tj=new Date-0,Ej=new Date-0,Dj=`_echarts_instance_`,Oj=Jk,kj=[],Aj=Cy,lA(DA,UD),lA(AA,GD),lA(AA,KD),lA(DA,SO),lA(AA,CO),lA(PA,Vk),$k(DD),eA(bA,PD),dA(`default`,JD),iA({type:nd,event:nd,update:nd},Ce),iA({type:rd,event:rd,update:rd},Ce),iA({type:id,event:sd,update:id,action:Ce,refineEvent:hA,publishNonRefinedEvent:!0}),iA({type:ad,event:sd,update:ad,action:Ce,refineEvent:hA,publishNonRefinedEvent:!0}),iA({type:od,event:sd,update:od,action:Ce,refineEvent:hA,publishNonRefinedEvent:!0}),Qk(`default`,{}),Qk(`dark`,gO),jj={}}));function Nj(e){if(F(e)){A(e,function(e){Nj(e)});return}E(Pj,e)>=0||(Pj.push(e),I(e)&&(e={install:e}),e.install(Fj))}var Pj,Fj,Ij=t((()=>{Mj(),LD(),Ub(),ty(),bb(),W(),IO(),jE(),zO(),Pj=[],Fj={registerPreprocessor:$k,registerProcessor:eA,registerPostInit:tA,registerPostUpdate:nA,registerUpdateLifecycle:rA,registerAction:iA,registerCoordinateSystem:aA,registerLayout:cA,registerVisual:lA,registerTransform:Aj,registerLoading:dA,registerMap:pA,registerImpl:NO,PRIORITY:FA,ComponentModel:ey,ComponentView:ID,SeriesModel:yb,ChartView:Vb,registerComponentModel:function(e){ey.registerClass(e)},registerComponentView:function(e){ID.registerClass(e)},registerSeriesModel:function(e){yb.registerClass(e)},registerChartView:function(e){Vb.registerClass(e)},registerCustomSeries:function(e,t){LO(e,t)},registerSubTypeDefaulter:function(e,t){ey.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){CE(e,t)}}})),Lj,Rj=t((()=>{Lj=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function zj(e,t){var n=ux(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=hx(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?Vj(r,t):Bj(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=fx(d)),i[0]||(s[0]=ic(Nc(s[0]/u)*u,l)),i[1]||(s[1]=ic(Pc(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),sS(e,i,o,s,a,c)}function Bj(e,t){var n=_x(t.splitNumber,5),r=nx(e),i=t.minInterval,a=t.maxInterval,o=vc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=fx(o),c=e.getExtent(),l=[ic(Pc(c[0]/o)*o,s),ic(Nc(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function Vj(e,t){var n=_x(t.splitNumber,10),r=e.getExtent(),i=nx(e),a=Ac(gc(i),1);n/i*a<=.5&&(a*=10);var o=fx(a),s=[ic(Pc(r[0]/a)*a,o),ic(Nc(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function Hj(e,t,n,r,i){var a=uw(e,t,r,n,i),o=cx(e)||lx(e);Uj(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&dw(n,e,a,r)}function Uj(e,t){Wj[e.type](e,t)}var Wj,Gj=t((()=>{W(),yx(),J(),uS(),Bx(),hw(),sx(),Wj={interval:zj,log:zj,time:zx,ordinal:Ce}}));Im(),W();function Kj(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return qj(n,e,t),n.seriesInvolved&&Yj(n,e),n}function qj(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];A(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=nM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(A(n.getAxes(),P(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&A(f.baseAxes,P(p,!d||`cross`,u)),d&&A(f.otherAxes,P(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||tM(d))){s??=d.get(`triggerTooltip`),d=r?Jj(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=nM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:tM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Xj(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Jj(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};A(s,function(e){c[e]=b(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&T(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Fm(c,n,r))}function Yj(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&A(e.coordSysAxesInfo[nM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function Xj(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Zj(a[r+`AxisId`],n.id)||Zj(a[r+`AxisIndex`],n.componentIndex)||Zj(a[r+`AxisName`],n.name))return i}}function Zj(e,t){return e===`all`||F(e)&&E(e,t)>=0||e===t}function Qj(e){var t=$j(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=tM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function $j(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[nM(e)]}function eM(e){var t=$j(e);return t&&t.axisPointerModel}function tM(e){return!!e.get([`handle`,`show`])}function nM(e){return e.type+`||`+e.id}o(),LD();var rM={},iM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&Qj(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=eM(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){rM[e]=t},t.getAxisPointerClass=function(e){return e&&rM[e]},t.type=`axis`,t}(ID);Mj(),W(),X();var aM=Y();function oM(e,t){return!!aM(e)[t]}iA({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Ce),rm();var sM={axisPointer:1,tooltip:1,brush:1};function cM(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||sM.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Vp(r),o=Vp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}o(),_a(),dT(),W(),X(),rm();var lM=function(e){i(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=U(n._mousedownHandler,n),i=U(n._mousemoveHandler,n),a=U(n._mouseupHandler,n),o=U(n._mousewheelHandler,n),s=U(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Vp(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:V(c.z2,-1/0)},p=C({},n.triggerInfo);this._opt=T(C({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(pM(t,`mousedown`,r,f),pM(t,`mousemove`,i,f),pM(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(pM(t,`mousewheel`,o,f),pM(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,mM(t,`mousedown`,r),mM(t,`mousemove`,i),mM(t,`mouseup`,a),mM(t,`mousewheel`,o),mM(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(cM(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(oT(e)||uM(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||oM(t,`globalPan`)||uM(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!vM(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&uT(e.event),e.__ecRoamConsumed=!0,_M(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!uM(e)){var t=this._zr;if(!oT(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!uM(e)){var t=vM(`zoomOnMouseWheel`,e,this._opt),n=vM(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(r!==0&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(oM(this._zr,`globalPan`)||uM(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(uT(r.event),r.__ecRoamConsumed=!0,_M(e,t,n,r,i))},t}(ga);function uM(e){return e.__ecRoamConsumed}var dM=Y();function fM(e){var t=dM(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function pM(e,t,n,r){for(var i=fM(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),hM(e,t)}function mM(e,t,n){for(var r=fM(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||gM(e,t);return}}function hM(e,t){var n=fM(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function gM(e,t){var n=fM(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function _M(e,t,n,r,i){i.isAvailableBehavior=U(vM,null,n,r),e.trigger(t,i)}function vM(e,t,n){var r=n[e];return!e||r&&(!L(r)||t.event[r+`Key`])}function yM(e,t){return Math.abs(e-t)<xM}function bM(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Jo(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!yM(i[0],s[0])||!yM(i[1],s[1]))&&(r+=Jo(i[0],i[1],s[0],s[1],t,n)),r!==0}var xM,SM=t((()=>{Yo(),xM=1e-8}));function CM(e,t){for(var n=0;n<e.length;n++)en(e[n],e[n],t)}function wM(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(tn(t,t,a),nn(n,n,a))}}function TM(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var EM,DM,OM,kM,AM,jM=t((()=>{o(),Pn(),cn(),SM(),Pt(),W(),EM=[],DM=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),OM=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),kM=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),AM=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return TM(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return A(i,function(t){t.type===`polygon`?wM(t.exterior,n,r,e):A(t.points,function(t){wM(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new q(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(bM(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(bM(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new q(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(CM(u.exterior,s),A(u.interiors,function(e){CM(e,s)})):A(u.points,function(e){CM(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(DM),function(e){i(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Et(EM),i=e;i&&!i.isGeoSVGGraphicRoot;)Ot(r,i.getLocalTransform(),r),i=i.parent;return Mt(r,r),en(n,n,r),n},t}(DM)}));function MM(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return A(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=PM(i,r,n);break;case`Polygon`:NM(i,r,n);break;case`MultiLineString`:NM(i,r,n);break;case`MultiPolygon`:A(i,function(e,t){return NM(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function NM(e,t,n){for(var r=0;r<e.length;r++)e[r]=PM(e[r],t[r],n)}function PM(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function FM(e,t){return e=MM(e),j(M(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new OM(a[0],a.slice(1)));break;case`MultiPolygon`:A(r.coordinates,function(e){e[0]&&i.push(new OM(e[0],e.slice(1)))});break;case`LineString`:i.push(new kM([r.coordinates]));break;case`MultiLineString`:i.push(new kM(r.coordinates))}var o=new AM(n[t||`name`],i,n.cp);return o.properties=n,o})}var IM=t((()=>{W(),jM()}));o(),Pn(),Mr(),Pt(),cn();function LM(e){return e}var RM=`view`;(function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=RM,i.dimensions=[`x`,`y`];var a=LM(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=xr(),o[1]=xr(),o[2]=xr(),a.mtRaw=Tt(),a.mtRawInv=Tt(),a.mtOverall=Tt(),a.mtOverallInv=Tt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return BM(null,this)},t.prototype.getViewRect=function(){return VM(null,this)},t.prototype.getRoamTransform=function(){return Ar(LM(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?LM(this).mtRaw:LM(this).mtOverall;return n||=[],r?en(n,e,r):Lt(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=LM(this).mtOverallInv;return r?en(n,e,r):Lt(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=HM(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=HM(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=LM(this);return Dn(zM,t.dataRect),kn(zM,zM,t.mtOverall),An(zM,e[0],e[1])},t.dimensions=[`x`,`y`],t})(kr);var zM=Tn();function BM(e,t){return Dn(e||Tn(),LM(t).dataRect)}function VM(e,t){return Dn(e||Tn(),LM(t).viewRect)}Tn();function HM(e){var t=e.seriesModel;return t?t.coordinateSystem:null}xr(),xr();function UM(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}W(),X();var WM=Y();function GM(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,QM(t,n,e),A(n,function(n){A(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,P(KM,e))})}),t.wrapMethod(`cloneShallow`,P(JM,e)),A(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,P(qM,e))}),me(n[t.dataType]===t)}function KM(e,t){if(ZM(this)){var n=C({},WM(this).datas);n[this.dataType]=t,QM(t,n,e)}else $M(t,this.dataType,WM(this).mainData,e);return t}function qM(e,t){return e.struct&&e.struct.update(),t}function JM(e,t){return A(WM(t).datas,function(n,r){n!==t&&$M(n.cloneShallow(),r,t,e)}),t}function YM(e){var t=WM(this).mainData;return e==null||t==null?t:WM(t).datas[e]}function XM(){var e=WM(this).mainData;return e==null?[{data:e}]:j(N(WM(e).datas),function(t){return{type:t,data:WM(e).datas[t]}})}function ZM(e){return WM(e).mainData===e}function QM(e,t,n){WM(e).datas={},A(t,function(t,r){$M(t,r,e,n)})}function $M(e,t,n,r){WM(n).datas[t]=e,WM(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=YM,e.getLinkedDataAll=XM}W(),Sg(),Dg(),X();var eN=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){I(e)&&(n=t,t=e,e=null),e||={},L(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),tN=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,F(n)?n.length:1),a.push(e);var r=new eN(ul(e.name,``),i);t?nN(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=wg(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new xg(c,n);return l.initData(a),r&&r(l),GM({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function nN(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}W();function rN(e,t,n){if(e&&E(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(L(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function iN(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function aN(e,t){return E(iN(e),t)>=0}function oN(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}W();var sN=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function cN(e){for(var t=0;t<sN.length;t++)e.registerAction({type:sN[t],update:`updateView`},Ce);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=rN(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=aN(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}ly();function lN(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=ny(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}o(),W(),bb(),Im(),X(),ab(),Ly();var uN=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};dN(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new Fm({itemStyle:i},this,t);r=e.levels=fN(r,t);var o=j(r||[],function(e){return new Fm(e,a,t)},this),s=tN.createTree(n,this,c);function c(e){e.wrapMethod(`getItemModel`,function(e,t){var n=s.getNodeByDataIndex(t);return e.parentModel=(n?o[n.depth]:null)||a,e})}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return By(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=oN(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=H(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){lN(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(yb);function dN(e){var t=0;A(e.children,function(e){dN(e);var n=e.value;F(n)&&(n=n[0]),t+=n});var n=e.value;F(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),F(e.value)?e.value[0]=n:e.value=n}function fN(e,t){var n=Zc(t.get(`color`)),r=Zc(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;A(e,function(e){var t=new Fm(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}rm(),Gl(),Zv(),W(),X(),cd(),xm();var pN=8,mN=8,hN=5,gN=function(){function e(e){this.group=new Nd,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),i.get(`show`)&&n){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=Bv(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=zv(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Vv(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=ul(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+pN*2,t.emptyItemWidth);t.totalWidth+=o+mN,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new hf({shape:{points:_N(c,0,_,u,m===f.length-1,m===0)},style:T(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Js({style:cm(a,{text:v})}),textConfig:{position:`inside`},z2:1e5,onclick:P(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=cm(o,{text:v}),y.ensureState(`emphasis`).style=p,Hu(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),vN(y,e,g),c+=_+mN}},e.prototype.remove=function(){this.group.removeAll()},e}();function _N(e,t,n,r,i,a){var o=[[i?e:e-hN,t],[e+n,t],[e+n,t+r],[i?e:e-hN,t+r]];return!a&&o.splice(2,0,[e+n+hN,t+r/2]),!i&&o.push([e,t+r/2]),o}function vN(e,t,n){Z(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&oN(n,t)}}var yN=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function bN(){return new yN}W(),Pn(),J(),Zv(),X();var xN=Math.max,SN=Math.min,CN=A,wN=[`itemStyle`,`borderWidth`],TN=[`itemStyle`,`gapWidth`],EN=[`upperLabel`,`show`],DN=[`upperLabel`,`height`],ON={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=Bv(e,n).refContainer,o=zv(e.getBoxLayoutParams(),a),s=r&&r.type,c=rN(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=iN(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,IN(e,c,u,o)):l?(f=!0,C({},l)):C({},o);if(f){var m=BN(o,p);m=VN(m,e),p.width=o.width*m,p.height=o.height*m}var h=i.sort;h&&h!==`asc`&&h!==`desc`&&(h=`desc`);var g={squareRatio:i.squareRatio,sort:h,leafDepth:i.leafDepth};u.hostTree.clearLayouts();var _={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};u.setLayout(_),kN(u,g,!1,0),_=u.getLayout(),CN(d,function(e,t){var n=(d[t+1]||u).getValue();e.setLayout(C({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var v=e.getData().tree.root;v.setLayout(LN(o,l,c),!0),e.setLayoutInfo(o),RN(v,new q(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function kN(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(wN),l=s.get(TN)/2,u=zN(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=xN(i-2*f,0),a=xN(a-f-p,0);var m=i*a,h=AN(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=SN(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=PN(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,FN(y,_,g,l,!1),_=SN(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&FN(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)kN(h[b],t,n,r+1)}}}function AN(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=M(o,function(e){return!e.isRemoved()}),MN(o,s);var l=NN(t,o,s);if(l.sum===0||(l.sum=jN(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function jN(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function MN(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function NN(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=Tl(),CN(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function PN(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?xN(l*r/c,c/(l*i)):1/0}function FN(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=xN(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=xN(v-2*r,0);m[s[o]]=n[s[o]]+SN(r,g/2),m[s[a]]=l+SN(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function IN(e,t,n,r){var i=(t||{}).node,a=r.width,o=r.height,s=C({},r);if(!i||i===n)return s;for(var c,l=a*o,u=l*e.option.zoomToNodeRatio;c=i.parentNode;){for(var d=0,f=c.children,p=0,m=f.length;p<m;p++)d+=f[p].getValue();var h=i.getValue();if(h===0)return s;u*=d/h;var g=c.getModel(),_=g.get(wN),v=Math.max(_,zN(g));u+=4*_*_+(3*_+v)*u**.5,u>Vc&&(u=Vc),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function LN(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function RN(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new q(t.x-a.x,t.y-a.y,t.width,t.height);CN(e.viewChildren||[],function(e){RN(e,c,n,r,i+1)})}}function zN(e){return e.get(EN)?e.get(DN):0}function BN(e,t){return t.width/e.width||t.height/e.height||1}function VN(e,t){return UM(e,t.get(`scaleLimit`,!0))}o(),W(),rm(),Gl(),cd(),Bm(),Pn(),Pt(),lt(),Ub(),$a(),X(),Iv(),xm();var HN=Nd,UN=Ms,WN=3,GN=`label`,KN=`upperLabel`,qN=100,JN=20,YN=30,XN=ct([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),ZN=function(e){var t=XN(e);return t.stroke=t.fill=t.lineWidth=null,t},QN=Y(),$N=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=eP(),n}return t.prototype.render=function(e,t,n,r){if(!(E(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=rN(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new HN,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=eP(),o=eP(),s=this._storage,c=[];function l(e,r,i,l){return tP(t,o,s,n,a,c,e,r,i,l)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=f(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:p};function d(e,t,n,r,i){r?(t=e,A(e,function(e,t){!e.isRemoved()&&o(t,t)})):new zm(t,e,a,a).add(o).update(o).remove(P(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&d(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function f(e){var t=eP();return e&&A(e,function(e,n){var r=t[n];A(e,function(e){e&&(r.push(e),QN(e).willDelete=!0)})}),t}function p(){A(u,function(e){A(e,function(e){e.parent&&e.parent.remove(e)})}),A(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(I(i)?0:i)||0,s=(I(a)?null:a)||`cubicOut`,c=bN();A(t.willDeleteEls,function(e,t){A(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=QN(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),A(this._storage,function(e,n){A(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof Nd?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=C({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(U(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new lM(e.getZr()),r.on(`pan`,U(this._onPan,this)),r.on(`zoom`,U(this._onZoom,this))),r.enable(n.get(`roam`),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>WN||Math.abs(e.dy)>WN)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new q(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=BN(c,o),u=l*r;u=VN(u,i);var d=u/l;t-=c.x,n-=c.y;var f=Tt();kt(f,f,[-t,-n]),jt(f,f,[d,d]),kt(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Mv(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new gN(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(aN(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eP(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(Vb);function eP(){return{nodeGroup:[],background:[],content:[]}}function tP(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),w=f.getModel([`emphasis`,`itemStyle`]),T=f.getModel([`blur`,`itemStyle`]),E=f.getModel([`select`,`itemStyle`]),D=S.get(`borderRadius`)||0,O=ie(`nodeGroup`,HN);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),QN(O).nodeWidth=p,QN(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=ie(`background`,UN,l,JN);k&&P(O,k,x&&u.upperLabelHeight);var A=f.getModel(`emphasis`),j=A.get(`focus`),ee=A.get(`blurScope`),M=A.get(`disabled`),te=j===`ancestor`?o.getAncestorsIndices():j===`descendant`?o.getDescendantIndices():j;if(x)Gu(O)&&Wu(O,!1),k&&(Wu(k,!M),d.setItemGraphicEl(o.dataIndex,k),Uu(k,te,ee));else{var N=ie(`content`,UN,l,YN);N&&F(O,N),k.disableMorphing=!0,k&&Gu(k)&&Wu(k,!1),Wu(O,!M),d.setItemGraphicEl(o.dataIndex,O);var ne=f.getShallow(`cursor`);ne&&N.attr(`cursor`,ne),Uu(O,te,ee)}return O;function P(t,n,r){var i=Z(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)I(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=ZN(S);c.fill=s;var l=XN(w);l.fill=w.get(`borderColor`);var u=XN(T);u.fill=T.get(`borderColor`);var d=XN(E);if(d.fill=E.get(`borderColor`),r){var f=p-2*h;L(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,bu(n)}t.add(n)}function F(t,n){var r=Z(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:D}),g)I(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=ZN(S);l.fill=c,l.decal=s.decal;var u=XN(w),d=XN(T),f=XN(E);L(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,bu(n)}t.add(n)}function I(e){!e.invisible&&a.push(e)}function L(t,n,r,i){var a=f.getModel(i?KN:GN),s=ul(f.get(`name`),null),c=a.getShallow(`show`);om(t,sm(f,i?KN:GN),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=pe(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,re(d,i,u);var m=l.getState(`emphasis`);re(m?m.style:null,i,u)}}function re(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function ie(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,R(c,s)):g||(s=new r,s instanceof Xa&&(s.z2=nP(a,o)),ae(c,s)),t[e][_]=s}function R(e,t){var n=e[_]={};t instanceof HN?(n.oldX=t.x,n.oldY=t.y):n.oldShape=C({},t.shape)}function ae(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Nd;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function nP(e,t){return e*qN+t}W(),Hi(),J();var rP=A,iP=R,aP=-1,oP=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=b(t);this.type=r,this.mappingMethod=n,this._normalizeData=vP[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(lP(i),sP(i)):n===`category`?i.categories?cP(i):lP(i,!0):(me(n!==`linear`||i.dataExtent),lP(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return U(this._normalizeData,this)},e.listVisualTypes=function(){return N(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){R(e)?A(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=F(t)?[]:R(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&rP(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(F(e))e=e.slice();else if(iP(e)){var t=[];rP(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||L(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(yP(u[1],e,l[1]))return a}else if(l[1]===1/0){if(yP(u[0],l[0],e))return a}else if(yP(u[0],l[0],e)&&yP(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:fP(`color`),getColorMapper:function(){var e=this.option;return U(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),pP.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Oi(t,e.parsedVisual,r),i?r:Mi(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Mi(Oi(e,this.option.parsedVisual),`rgba`)},category:pP,piecewise:function(e,t){var n=gP.call(this,t);return n??=Mi(Oi(e,this.option.parsedVisual),`rgba`),n},fixed:mP}},colorHue:uP(function(e,t){return Ai(e,t)}),colorSaturation:uP(function(e,t){return Ai(e,null,t)}),colorLightness:uP(function(e,t){return Ai(e,null,null,t)}),colorAlpha:uP(function(e,t){return ji(e,t)}),decal:{applyVisual:fP(`decal`),_normalizedToVisual:{linear:null,category:pP,piecewise:null,fixed:null}},opacity:{applyVisual:fP(`opacity`),_normalizedToVisual:hP([0,1])},liftZ:{applyVisual:fP(`liftZ`),_normalizedToVisual:{linear:mP,category:mP,piecewise:mP,fixed:mP}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:dP,category:pP,piecewise:function(e,t){var n=gP.call(this,t);return n??=dP.call(this,e),n},fixed:mP}},symbolSize:{applyVisual:fP(`symbolSize`),_normalizedToVisual:hP([0,1])}},e}();function sP(e){var t=e.pieceList;e.hasSpecialVisual=!1,A(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function cP(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(rP(t,function(e,t){n[e]=t}),!F(r)){var i=[];R(r)?rP(r,function(e,t){var r=n[t];i[r??aP]=e}):i[aP]=r,r=_P(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function lP(e,t){var n=e.visual,r=[];R(n)?rP(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),_P(e,r)}function uP(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:hP([0,1])}}function dP(e){var t=this.option.visual;return t[Math.round(ec(e,[0,1],[0,t.length-1],!0))]||{}}function fP(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function pP(e){var t=this.option.visual;return t[this.option.loop&&e!==aP?e%t.length:e]}function mP(){return this.option.visual[0]}function hP(e){return{linear:function(t){return ec(t,e,this.option.visual,!0)},category:pP,piecewise:function(t,n){var r=gP.call(this,n);return r??=ec(t,e,this.option.visual,!0),r},fixed:mP}}function gP(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[oP.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function _P(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=j(t,function(e){return Ci(e)||[0,0,0,1]})),t}var vP={linear:function(e){return ec(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=oP.findPieceIndex(e,t,!0);if(n!=null)return ec(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??aP},fixed:Ce};function yP(e,t,n){return e?t<=n:t<n}W(),Hi(),X();var bP=`itemStyle`,xP=Y(),SP={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||CP(t,{},e.getViewRoot().getAncestors(),e)}};function CP(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var s=i.getModel(bP),c=wP(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=TP(c),u=EP(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=TP(c),l.fill=f;else{var m=OP(e,i,a,s,c,p);A(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&CP(e,AP(i,c,e,t,m,r),n,r)})}}}function wP(e,t,n){var r=C({},t),i=n.designatedVisualItemStyle;return A([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function TP(e){var t=DP(e,`color`);if(t){var n=DP(e,`colorAlpha`),r=DP(e,`colorSaturation`);return r&&(t=Ai(t,null,null,r)),n&&(t=ji(t,n)),t}}function EP(e,t){return t==null?null:Ai(t,null,null,e)}function DP(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function OP(e,t,n,r,i,a){if(a&&a.length){var o=kP(t,`color`)||i.color!=null&&i.color!==`none`&&(kP(t,`colorAlpha`)||kP(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new oP(d);return xP(f).drColorMappingBy=u,f}}}function kP(e,t){var n=e.get(t);return F(n)&&n.length?{name:t,range:n}:null}function AP(e,t,n,r,i,a){var o=C({},t);if(i){var s=i.type,c=s===`color`&&xP(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function jP(e){e.registerSeriesModel(uN),e.registerChartView($N),e.registerVisual(SP),e.registerLayout(ON),cN(e)}Ij(),J();function MP(e,t,n,r,i,a){e||=0;var o=fc(n[1],-n[0]);if(i!=null&&(i=PP(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(fc(t[1],-t[0]));s=PP(s,[0,o]),i=a=PP(s,[i,a]),r=0}t[0]=PP(t[0],n),t[1]=PP(t[1],n);var c=NP(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=fc(u[0],l):u[1]=fc(u[1],-l),t[r]=PP(t[r],u);var d=NP(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=fc(t[r],c.sign*i)),d=NP(t,r),a!=null&&d.span>a&&(t[1-r]=fc(t[r],d.sign*a)),t}function NP(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function PP(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}W(),rm(),dT(),Sw(),X(),ZS();var FP=Y(),IP=b,LP=U,RP=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Nd,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=P(zP,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}UP(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&qS(r).w>o)return!0;if(a){var s=$j(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=FP(e).pointerEl=new lp[i.type](IP(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=FP(e).labelEl=new Js(IP(t.label));e.add(i),VP(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=FP(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=FP(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),VP(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Op(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){uT(e.event)},onmousedown:LP(this._onHandleDragMove,this,0,0),drift:LP(this._onHandleDragMove,this),ondragend:LP(this._onHandleDragEnd,this)}),n.add(r)),UP(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);F(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,_w(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){zP(this._axisPointerModel,!t&&this._moveAnimation,this._handle,HP(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(HP(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(HP(r)),FP(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),vw(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function zP(e,t,n,r){BP(FP(n).lastProp,r)||(FP(n).lastProp=r,t?np(n,r,e):(n.stopAnimation(),n.attr(r)))}function BP(e,t){if(R(e)&&R(t)){var n=!0;return A(t,function(t,r){n&&=BP(e[r],t)}),!!n}return e===t}function VP(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function HP(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function UP(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}W(),rm(),Yn(),Iv(),Pt(),uS(),xm(),ZS(),J();function WP(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function GP(e,t,n,r,i){var a=qP(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Nv(o.get(`padding`)||0),c=o.getFont(),l=Bn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),KP(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:cm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function KP(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function qP(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:tS(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),L(o)?a=o.replace(`{value}`,a):I(o)&&(a=o(s))}return a}function JP(e,t,n){var r=Tt();return At(r,r,n.rotation),kt(r,r,n.position),xp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function YP(e,t,n,r,i,a){var o=IC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),GP(t,r,i,a,{position:JP(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function XP(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function ZP(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function QP(e,t,n){return qS(e,{fromStat:{sers:j(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function $P(e,t,n){return[Ac(kc(t[0],t[1]),e-n/2),kc(e+n/2,Ac(t[0],t[1]))]}o(),J();var eF=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=tF(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=WP(r),f=nF[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}YP(t,e,rw(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=rw(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=JP(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=tF(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=kc(o[1],l[c]),l[c]=Ac(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(RP);function tF(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var nF={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:XP([t,r[0]],[t,r[1]],rF(e))}},shadow:function(e,t,n,r,i,a){var o=QP(e,i,a),s=r[1]-r[0],c=$P(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:ZP([l,r[0]],[u-l,s],rF(e))}}};function rF(e){return e.dim===`x`?0:1}o(),ty(),Ly();var iF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(ey);W(),Ke(),X();var aF=Y(),oF=A;function sF(e,t,n){if(!G.node){var r=t.getZr();aF(r).records||(aF(r).records={}),cF(r,t);var i=aF(r).records[e]||(aF(r).records[e]={});i.handler=n}}function cF(e,t){if(aF(e).initialized)return;aF(e).initialized=!0,n(`click`,P(dF,`click`)),n(`mousemove`,P(dF,`mousemove`)),n(`mousewheel`,P(dF,`mousewheel`)),n(`globalout`,uF);function n(n,r){e.on(n,function(n){var i=fF(t);oF(aF(e).records,function(e){e&&r(e,n,i.dispatchAction)}),lF(i.pendings,t)})}}function lF(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function uF(e,t,n){e.handler(`leave`,null,n)}function dF(e,t,n,r){t.handler(e,n,r)}function fF(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function pF(e,t){if(!G.node){var n=t.getZr();(aF(n).records||{})[e]&&(aF(n).records[e]=null)}}o(),LD();var mF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;sF(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){pF(`axisPointer`,t)},t.prototype.dispose=function(e,t){pF(`axisPointer`,t)},t.type=`axisPointer`,t}(ID);W(),X();function hF(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=gl(a,e);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(j(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}X(),W(),J();var gF=Y();function _F(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||U(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){DF(i)&&(i=hF({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=DF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||DF(i),f={},p={},m={list:[],map:{}},h={showPointer:P(bF,p),showTooltip:P(xF,m)};A(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);A(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=TF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&vF(e,o,h,!1,f)}})});var g={};return A(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&A(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,EF(t),EF(e)))),g[e.key]=a}})}),A(g,function(e,t){vF(u[t],e,h,!0,f)}),SF(p,u,f),CF(m,i,e,o),wF(u,o,n),f}}function vF(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries){n.showPointer(e,t);return}var o=yF(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&C(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function yF(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Ec(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),A(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function bF(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function xF(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=nM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function SF(e,t,n){var r=n.axesInfo=[];A(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function CF(e,t,n,r){if(DF(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function wF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=gF(r)[i]||{},o=gF(r)[i]={};A(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&A(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}A(a,function(e,t){!o[t]&&c.push(l(e))}),A(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function TF(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function EF(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function DF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}W();function OF(e){iM.registerAxisPointerClass(`CartesianAxisPointer`,eF),e.registerComponentModel(iF),e.registerComponentView(mF),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!F(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Kj(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},_F)}o(),ty(),Ly();var kF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(ey);Iv(),Ke();function AF(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function jF(e){if(G.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var MF=jF([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),NF=jF([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function PF(e,t){if(!e)return t;t=Tv(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function FF(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}W(),dT(),__(),Ke(),Iv(),ab();var IF=PF(NF,`transition`),LF=PF(MF,`transform`),RF=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(G.transform3dSupported?`will-change:transform;`:``);function zF(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function BF(e,t,n){if(!L(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=jv(t);var a=zF(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=LF+`:`,l;E([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function VF(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(G.transformSupported?``+LF+i:`,left`+i+`,top`+i)),IF+`:`+a}function HF(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!G.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=G.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+LF+`:`+o+`;`:[[`top`,0],[`left`,0],[MF,o]]}function UF(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=V(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),A([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function WF(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=eb(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(VF(a,n,r)),o&&i.push(`background-color:`+o),A([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Tv(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(UF(d)),f!=null&&i.push(`padding:`+Nv(f).join(`px `)+`px`),i.join(`;`)+`;`}function GF(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&o_(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var KF=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,G.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(L(i)?document.querySelector(i):z(i)?i:I(i)&&i(e.getDom()));GF(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;nT(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=FF(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=RF+WF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+HF(i[0],i[1],!0)+(`border-color:`+jv(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(L(i)&&n.get(`trigger`)===`item`&&!AF(n)&&(o=BF(n,r,i)),L(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,F(e)||(e=[e]);for(var s=0;s<e.length;s++)z(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(GF(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;A(HF(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,G.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;s_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}();W(),Qs(),ab(),Yc();var qF=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),XF(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;R(e)&&Gc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Js({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:eb(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),A([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),A([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=YF(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;XF(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=JF(i.borderWidth||0),o=YF(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function JF(e){return Math.max(0,e)}function YF(e){var t=JF(e.shadowBlur||0),n=JF(e.shadowOffsetX||0),r=JF(e.shadowOffsetY||0);return{left:JF(t-n),right:JF(t+n),top:JF(t-r),bottom:JF(t+r)}}function XF(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}o(),W(),Ke(),Iv(),J(),rm(),Zv(),Im(),uS(),X(),LD(),xv(),Gl(),py(),ab(),AO(),Sw();var ZF=new Ms({shape:{x:-1,y:-1,width:2,height:2}}),QF=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!G.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=Cl(n.get(`renderMode`));this._tooltipContent=r===`richText`?new qF(t):new KF(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!G.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?_w(this,`_updatePosition`,50,`fixRate`):vw(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);sF(`itemTooltip`,this._api,U(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!G.node&&n.getDom()){var i=eI(r,n);this._ticket=``;var a=r.dataByCoordSys,o=aI(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=ZF;c.x=r.x,c.y=r.y,c.update(),Z(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=hF(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(eI(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&$F([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;kO(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=U(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=$F([t.tooltipOption],r),o=this._renderMode,s=[],c=By(`section`,{blocks:[],noHeader:!0}),l=[],u=new ib;A(e,function(e){A(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=qP(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=By(`section`,{header:f,noHeader:!he(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),A(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=tS(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,jv(m.color),o);var h=uy(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=$F([a],r).get(`valueFormatter`);p.blocks.push(_?C({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Ky(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
16
16
|
|
|
17
|
-
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=$F([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ib;h.marker=g.makeTooltipMarker(`item`,jv(h.color),d);var _=uy(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Ky(y?C({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(L(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=b(a),a.content=f_(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=$F(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ib;this._showOrMove(d,function(){var n=b(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(L(u)){var p=e.ecModel.get(`useUTC`),m=F(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=G_(m.axisValue,d,p)),d=Dv(d,n,!0)}else if(I(u)){var g=U(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||F(t))return{color:r||i};if(!F(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),I(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),F(t))n=Bc(t[0],s),r=Bc(t[1],c);else if(R(t)){var p=t;p.width=l[0],p.height=l[1];var m=zv(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(L(t)&&o){var h=rI(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=tI(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=iI(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=iI(d)?l[1]/2:d===`bottom`?l[1]:0),AF(e)){var h=nI(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&A(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&A(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&A(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&A(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!G.node&&t.getDom()&&(vw(this,`_updatePosition`),this._tooltipContent.dispose(),pF(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(ID);function $F(e,t,n){var r=t.ecModel,i;n?(i=new Fm(n,r,r),i=new Fm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Fm&&(o=o.get(`tooltip`,!0)),L(o)&&(o={formatter:o}),o&&(i=new Fm(o,i,r)))}return i}function eI(e,t){return e.dispatchAction||U(t.dispatchAction,t)}function tI(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function nI(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function rI(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function iI(e){return e===`center`||e===`middle`}function aI(e,t,n){var r=vl(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=yl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}W();function oI(e){Nj(OF),e.registerComponentModel(kF),e.registerComponentView(QF),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ce),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ce)}W(),OO();var sI=A;function cI(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function lI(e,t,n){var r={};return sI(t,function(t){var a=r[t]=i();sI(e[t],function(e,r){if(oP.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new oP(i),r===`opacity`&&(i=b(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new oP(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function uI(e,t,n){var r;A(n,function(e){t.hasOwnProperty(e)&&cI(t[e])&&(r=!0)}),r&&A(n,function(n){t.hasOwnProperty(n)&&cI(t[n])?e[n]=b(t[n]):delete e[n]})}function dI(e,t,n,r){var i={};return A(e,function(e){i[e]=oP.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return TO(a,l,e)}function c(e,t){DO(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}o(),W(),rm(),Gl(),xm(),Zv(),ty(),LD(),Iv(),Ly();var fI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(ey),pI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=V(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Js({style:cm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Js({style:cm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Mv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Mv(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=zv(g,Bv(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Ms({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(ID);function mI(e){e.registerComponentModel(fI),e.registerComponentView(pI)}W(),Ly();var hI={get:function(e,t,n){var r=b((gI[e]||{})[t]);return n&&F(r)?r[r.length-1]:r}},gI={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}};o(),W(),X(),J(),ty(),Ly();var _I=oP.mapVisual,vI=oP.eachVisual,yI=F,bI=A,xI=oc,SI=ec,CI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&uI(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=U(e,this),this.controllerVisuals=lI(this.option.controller,t,e),this.targetVisuals=lI(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return bI(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=yl(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return j(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){A(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],F(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(L(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(I(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=xI([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=te(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};x(r,n),x(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){yI(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},bI(r,function(e,t){if(oP.isValidType(t)){var n=hI.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;bI(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&b(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&b(n)||(a?s[0]:[s[0],s[0]])),c.symbol=_I(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;vI(l,function(e){e>u&&(u=e)}),c.symbolSize=_I(l,function(e){return SI(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(ey);o(),W(),J(),t_(),Ly();var wI=[20,140],TI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=wI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=wI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):F(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=oc((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=V(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=EI(this,`outOfRange`,this.getExtent()),n=EI(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=$g(CI.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(CI);function EI(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}o(),W(),rm(),Iv(),Zv(),LD();var DI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Nv(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Ms({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return A(oP.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),oP.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=Bv(t,n).refContainer;Vv(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(ID);W(),Zv();var OI=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function kI(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=OI[o],c=[0,null,10],l={},u=0;u<3;u++)l[OI[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=zv(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function AI(e,t){return A(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}o(),W(),Lf(),dT(),rm(),J(),X(),Yn(),cd(),Mb(),Ss(),Gl(),xm(),AO();var jI=ec,MI=A,NI=Math.min,PI=Math.max,FI=12,II=6,LI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=U(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=U(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Js({style:cm(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=kI(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Nd;s.add(c),c.add(n.outOfRange=RI()),c.add(n.inRange=RI(null,a?VI(this._orient):null,U(this._dragHandle,this,`all`,!1),U(this._dragHandle,this,`all`,!0))),c.setClipPath(new Ms({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=PI(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=U(this._dragHandle,this,n,!1),s=U(this._dragHandle,this,n,!0),c=Wn(e.get(`handleSize`),r[0]),l=Sb(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=VI(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){uT(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Wu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Js({cursor:u,draggable:!0,drift:o,onmousemove:function(e){uT(e.event)},ondragend:s,style:cm(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Wn(e.get(`indicatorSize`),n[0]),o=Sb(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof xs){var c=o.style;o.useStyle(C({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Js({silent:!0,invisible:!0,style:cm(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:II)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():BI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[jI(t[0],n,r,!0),jI(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];MP(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[jI(r[0],i,a,!0),jI(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new If(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Nd(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);MI([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=jI(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=xp(n.handleLabelPoints[l],bp(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=jI(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=xp(c.indicatorLabelPoint,bp(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=NI(PI(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=NI(PI(i[0],e),i[1]);var o=zI(n,a,i),s=[e-o,e+o],c=jI(e,i,a,!0),l=[jI(s[0],i,a,!0),jI(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||BI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=hl(u,d);this._dispatchHighDown(`downplay`,AI(f[0],n)),this._dispatchHighDown(`highlight`,AI(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(kO(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,AI(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=bp(t,r?null:this.group);return F(e)?xp(e,i,n):Sp(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(DI);function RI(e,t,n,r){return new hf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){uT(e.event)},ondragend:r})}function zI(e,t,n){var r=FI/2,i=e.get(`hoverLinkDataSize`);return i&&(r=jI(i,t,n,!0)/2),r}function BI(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function VI(e){return e===`vertical`?`ns-resize`:`ew-resize`}var HI={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},UI=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})};W(),OO();var WI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(dI(t.stateList,t.targetVisuals,U(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(U(GI,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function GI(e,t,n,r){for(var i=t.targetVisuals[r],a=oP.prepareVisualTypes(i),o={color:EO(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}W();var KI=A;function qI(e){var t=e&&e.visualMap;F(t)||(t=t?[t]:[]),KI(t,function(e){if(e){JI(e,`splitList`)&&!JI(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&F(t)&&KI(t,function(e){R(e)&&(JI(e,`start`)&&!JI(e,`min`)&&(e.min=e.start),JI(e,`end`)&&!JI(e,`max`)&&(e.max=e.end))})}})}function JI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}W();var YI=!1;function XI(e){YI||(YI=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(HI,UI),A(WI,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(qI))}function ZI(e){e.registerComponentModel(TI),e.registerComponentView(LI),XI(e)}o(),W(),J(),t_();var QI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],$I[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=b(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=j(this._pieceList,function(e){return e=b(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=oP.listVisualTypes(),i=this.isCategory();A(t.pieces,function(e){A(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),A(n,function(e,n){var r=!1;A(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&A(this.stateList,function(e){(t[e]||(t[e]={}))[n]=hI.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,A(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;A(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=b(e)},t.prototype.getValueState=function(e){var t=oP.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){oP.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return A(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=$g(CI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(CI),$I={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),bc(e),A(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;A(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),eL(t,e)},pieces:function(e){var t=this.option;A(t.pieces,function(t,n){R(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=oP.retrieveVisuals(t),e.push(r)},this),eL(t,e),bc(e),A(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function eL(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}o(),W(),rm(),Mb(),Zv(),xm();var tL=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=ue(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),A(o.viewPieceList,function(o){var s=o.piece,u=new Nd;u.onclick=U(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Js({style:cm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:V(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Yv(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:AI(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return kI(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Nd,o=this.visualMapModel.textStyleModel;a.add(new Js({style:cm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=j(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Sb(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=b(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,A(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(DI);function nL(e){e.registerComponentModel(QI),e.registerComponentView(tL),XI(e)}Ij();function rL(e){Nj(ZI),Nj(nL)}function iL(e){e.registerComponentModel(aL),e.registerComponentView(oL)}var aL,oL,sL=t((()=>{o(),ty(),LD(),eu(),Py(),aL=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Ny(this),Ay(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Ay(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:$l},t}(ey),oL=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(ID)})),cL=n({createDimensions:()=>Cg,createList:()=>lL,createScale:()=>uL,createSymbol:()=>Sb,createTextStyle:()=>fL,dataStack:()=>pL,enableHoverEmphasis:()=>Bu,getECData:()=>Z,getLayoutRect:()=>zv,mixinAxisModelCommonMethods:()=>dL});function lL(e){return Kg(null,e)}function uL(e,t){var n=t;t instanceof Fm||(n=new Fm(t));var r=Zx(n),i=Qx(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),Hj(i,n,null,null,e),i}function dL(e){O(e,Lj)}function fL(e,t){return t||={},cm(e,null,null,t.state!==`normal`)}var pL,mL=t((()=>{W(),Yg(),uS(),Rj(),Im(),Zv(),Ug(),Gl(),xm(),Gj(),Dg(),Mb(),cd(),pL={isDimensionStacked:Vg,enableDataStack:zg,getStackedDimension:Hg}})),hL=n({MAX_SAFE_INTEGER:()=>Vc,asc:()=>oc,getPercentWithPrecision:()=>uc,getPixelPrecision:()=>lc,getPrecision:()=>sc,getPrecisionSafe:()=>cc,isNumeric:()=>Sc,isRadianAroundZero:()=>mc,linearMap:()=>ec,nice:()=>vc,numericToNumber:()=>xc,parseDate:()=>hc,parsePercent:()=>Bc,quantile:()=>yc,quantity:()=>gc,quantityExponent:()=>_c,reformIntervals:()=>bc,remRadian:()=>pc,round:()=>ac}),gL=t((()=>{J()})),_L=n({format:()=>G_,parse:()=>hc,roundTime:()=>J_}),vL=t((()=>{J(),xv()})),yL=n({Arc:()=>Af,BezierCurve:()=>Df,BoundingRect:()=>q,Circle:()=>Id,CompoundPath:()=>Mf,Ellipse:()=>zd,Group:()=>Nd,Image:()=>xs,IncrementalDisplayable:()=>Qf,Line:()=>Sf,LinearGradient:()=>If,Polygon:()=>hf,Polyline:()=>vf,RadialGradient:()=>Rf,Rect:()=>Ms,Ring:()=>cf,Sector:()=>af,Text:()=>Js,clipPointsByRect:()=>Ep,clipRectByRect:()=>Dp,createIcon:()=>Op,extendPath:()=>dp,extendShape:()=>up,getShapeClass:()=>pp,getTransform:()=>bp,initProps:()=>rp,makeImage:()=>hp,makePath:()=>mp,mergePath:()=>Qp,registerShape:()=>fp,resizePath:()=>_p,updateProps:()=>np}),bL=t((()=>{rm()})),xL=n({addCommas:()=>wv,capitalFirst:()=>Av,encodeHTML:()=>f_,formatTime:()=>kv,formatTpl:()=>Dv,getTextRect:()=>Sv,getTooltipMarker:()=>Ov,normalizeCssArray:()=>Nv,toCamelCase:()=>Tv,truncateText:()=>Xn}),SL=t((()=>{Iv()})),CL=n({bind:()=>U,clone:()=>b,curry:()=>P,defaults:()=>T,each:()=>A,extend:()=>C,filter:()=>M,indexOf:()=>E,inherits:()=>D,isArray:()=>F,isFunction:()=>I,isObject:()=>R,isString:()=>L,map:()=>j,merge:()=>x,reduce:()=>ee}),wL=t((()=>{W()}));function TL(e){var t=ey.extend(e);return ey.registerClass(t),t}function EL(e){var t=ID.extend(e);return ID.registerClass(t),t}function DL(e){var t=yb.extend(e);return yb.registerClass(t),t}function OL(e){var t=Vb.extend(e);return Vb.registerClass(t),t}var kL=t((()=>{ty(),LD(),bb(),Ub(),Sg(),jE(),Pt(),cn(),W(),Hi(),Sw(),mL(),Ij(),g(),IM(),gL(),vL(),bL(),SL(),wL(),Ke(),Im(),nC(),kk()}));function AL(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function jL(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:AL(r&&r.shape.points)}}function ML(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var NL,PL,FL,IL,LL,RL,zL=t((()=>{rm(),Gl(),J(),Mr(),Yw(),X(),W(),bC(),xm(),Wo(),NL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],PL=new kr,FL=Y(),IL=Y(),LL=[`x`,`y`,`rotation`],RL=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();q.applyTransform(c,c,s),s?PL.setLocalTransform(s):(PL.x=PL.y=PL.rotation=PL.originX=PL.originY=0,PL.scaleX=PL.scaleY=1),PL.rotation=Ho(PL.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();q.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:PL.x,y:PL.y,scaleX:PL.scaleX,scaleY:PL.scaleY,rotation:PL.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(I(r)||N(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Z(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Mw(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=I(a.layoutOptionOrCb)?a.layoutOptionOrCb(jL(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Bc(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Bc(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=FL(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<NL.length;m++){var h=NL[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];A(this._labelList,function(e){e.defaultAttr.ignore||r.push(lC({},e))});var i=M(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=M(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});dC(i,0,0,t),dC(a,1,0,n);var o=M(r,function(e){return e.layoutOption.hideOverlap});fC(o),pC(o)},e.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=FL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Z(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);Iw(e,Lw(o),s),Mw(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!ip(e))){var i=FL(n),a=i.oldLayout,o=Z(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(E(u,`select`)>=0&&n.attr(i.oldLayoutSelect),E(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),np(n,c,t,s)}else if(n.attr(c),!ym(n).valueAnimation){var d=V(n.style.opacity,1);n.style.opacity=0,rp(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};ML(f,c,LL),ML(f,n.states.select,LL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};ML(p,c,LL),ML(p,n.states.emphasis,LL)}mm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=IL(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),np(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,rp(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}()}));function BL(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=VL(t).labelManager;r||=VL(t).labelManager=new RL,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=VL(t).labelManager;A(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var VL,HL=t((()=>{X(),zL(),W(),VL=Y()})),UL=t((()=>{Mj(),kL()}));function WL(e,t,n){var r=h.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function GL(e){return!e.__cursors.get(0)}function KL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var qL,JL=t((()=>{o(),W(),wa(),Xf(),_a(),ZO(),kk(),Pn(),Ta(),g(),qL=function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ya,typeof t==`string`?a=WL(t,n,r):R(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(xe(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=KL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=WL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new q(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new q(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new q(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new q(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=KL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;B(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||qO(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):se(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=ok(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&A(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ga)}));function YL(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function XL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function ZL(e,t,n,r){var i=new qL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,QL(i),i}function QL(e){e.__cursorStack=[],e.__cursors=H()}function $L(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function eR(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,$L({key:r})))}function tR(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function nR(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function rR(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&lR)||s.__builtin__)&&(!(n&uR)||!s.__builtin__)&&(!(n&dR)||s!==e.hoverlayer))&&t(s,a,o,i)}}var iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR=t((()=>{wa(),W(),JL(),KT(),Ke(),Xf(),kk(),Ta(),ZO(),g(),iR=1e5,aR=314159,oR=void 0,sR=1,cR=2,lR=1,uR=2,dR=4,fR=lR|dR,pR=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||ya,this._singleCanvas=i,this.root=e,e.style&&(xe(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=ZL(a,this,aR,0);c.initContext(),this._insertLayer(c,aR,0,!0),this._domRoot=e}else{this._width=XO(e,0,n),this._height=XO(e,1,n);var l=this._domRoot=XL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!R(e)?{paintAll:!!e}:e||{},n=V(t.refresh,!0),r=V(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=cR),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return rR(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},uR),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=oR,n!==oR&&(!t&&n===cR&&(t=this._i.hoverlayer=this._ensureLayer(iR)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),yk(i,s,r),c&&(s.style=l)}}i&&(bk(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(iR)},e.prototype.paintOne=function(e,t){vk(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)rR(this._i,function(e){e.afterBrush&&e.afterBrush()},fR),this._paintHoverList(e);else{var i=this;GT(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(aR).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),rR(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},lR)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return rR(this._i,function(i){var a=!1;if(tR(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!GL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}tR(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},fR),G.wxa&&rR(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=GL(e),c=s&&h.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=cR),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(yk(o,f,a),f.setPrevPaintRect(p))}else yk(o,f,a);if(s&&h.getTime()-c>15){d++;break}}}bk(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=aR,t=0);var i=nR(this._i,e)[t];return i||(i=ZL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&x(i,this._layerConfig[e],!0),(n||r&&e!==aR)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&YL(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=nR(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),nR(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)},lR)},e.prototype.eachOtherLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)},uR)},e.prototype.getLayers=function(){var e={};return rR(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}rR(n._i,function(e){e.__dirty=!1,tR(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},fR);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){y(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=eR(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}rR(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(GL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(tR(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===oR&&(n._hoverLayerDirty=sR))},fR)},e.prototype.clear=function(){return rR(this._i,function(e){e.clear(),QL(e)},lR),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,rR(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?x(n[e],t,!0):n[e]=t,rR(this._i,function(e,t){x(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=XO(i,0,r),t=XO(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,rR(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(aR).resize(e,t)}return this},e.prototype.clearLayer=function(e){A(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[aR][0].dom;var t=new qL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;rR(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];yk(n,l,a)}bk(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}()}));function hR(e){e.registerPainter(`canvas`,pR)}var gR=t((()=>{mR()})),_R=n({Axis:()=>tC,ChartView:()=>Vb,ComponentModel:()=>ey,ComponentView:()=>ID,List:()=>xg,Model:()=>Fm,PRIORITY:()=>FA,SeriesModel:()=>yb,color:()=>fi,connect:()=>qk,dataTool:()=>jj,default:()=>vR,dependencies:()=>_A,disConnect:()=>Oj,disconnect:()=>Jk,dispose:()=>Yk,env:()=>G,extendChartView:()=>OL,extendComponentModel:()=>TL,extendComponentView:()=>EL,extendSeriesModel:()=>DL,format:()=>xL,getCoordinateSystemDimensions:()=>oA,getInstanceByDom:()=>Xk,getInstanceById:()=>Zk,getMap:()=>mA,graphic:()=>yL,helper:()=>cL,init:()=>Kk,innerDrawElementOnCanvas:()=>vk,matrix:()=>wt,number:()=>hL,parseGeoJSON:()=>FM,parseGeoJson:()=>FM,registerAction:()=>iA,registerCoordinateSystem:()=>aA,registerCustomSeries:()=>sA,registerLayout:()=>cA,registerLoading:()=>dA,registerLocale:()=>S_,registerMap:()=>pA,registerPostInit:()=>tA,registerPostUpdate:()=>nA,registerPreprocessor:()=>$k,registerProcessor:()=>eA,registerTheme:()=>Qk,registerTransform:()=>Aj,registerUpdateLifecycle:()=>rA,registerVisual:()=>lA,setCanvasCreator:()=>fA,setPlatformAPI:()=>c,throttle:()=>gw,time:()=>_L,use:()=>Nj,util:()=>CL,vector:()=>Ft,version:()=>gA,zrUtil:()=>_,zrender:()=>gE}),vR,yR=t((()=>{UL(),Ij(),Mj(),gR(),sL(),HL(),Nj([hR,iL]),vR={init:function(){return Kk.apply(null,arguments)}},Nj(BL)})),bR=r((t=>{(function(n,r){typeof define==`function`&&define.amd?define([`exports`,`echarts`],r):typeof t==`object`&&typeof t.nodeName!=`string`?r(t,(yR(),e(_R))):r({},n.echarts)})(t,function(e,t){var n=function(e){typeof console<`u`&&console&&console.error&&console.error(e)};if(!t){n(`ECharts is not Loaded`);return}var r=`#B9B8CE`,i=`#100C2A`,a=function(){return{axisLine:{lineStyle:{color:r}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},o=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],s={darkMode:!0,color:o,backgroundColor:i,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:r}},dataZoom:{borderColor:`#71708A`,textStyle:{color:r},brushStyle:{color:`rgba(135,163,206,0.3)`},handleStyle:{color:`#353450`,borderColor:`#C5CBE3`},moveHandleStyle:{color:`#B0B6C3`,opacity:.3},fillerColor:`rgba(135,163,206,0.2)`,emphasis:{handleStyle:{borderColor:`#91B7F2`,color:`#4D587D`},moveHandleStyle:{color:`#636D9A`,opacity:.7}},dataBackground:{lineStyle:{color:`#71708A`,width:1},areaStyle:{color:`#71708A`}},selectedDataBackground:{lineStyle:{color:`#87A3CE`},areaStyle:{color:`#87A3CE`}}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},label:{color:r},controlStyle:{color:r,borderColor:r}},calendar:{itemStyle:{color:i},dayLabel:{color:r},monthLabel:{color:r},yearLabel:{color:r}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:a(),line:{symbol:`circle`},graph:{color:o},gauge:{title:{color:r}},candlestick:{itemStyle:{color:`#FD1050`,color0:`#0CF49B`,borderColor:`#FD1050`,borderColor0:`#0CF49B`}}};s.categoryAxis.splitLine.show=!1,t.registerTheme(`dark`,s)})}));export{mI as a,Ij as c,Mj as d,rL as i,Nj as l,gR as n,oI as o,hR as r,jP as s,bR as t,Kk as u};
|
|
17
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Z(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=$F([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ib;h.marker=g.makeTooltipMarker(`item`,jv(h.color),d);var _=uy(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Ky(y?C({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(L(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=b(a),a.content=f_(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=$F(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ib;this._showOrMove(d,function(){var n=b(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(L(u)){var p=e.ecModel.get(`useUTC`),m=F(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=G_(m.axisValue,d,p)),d=Dv(d,n,!0)}else if(I(u)){var g=U(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||F(t))return{color:r||i};if(!F(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),I(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),F(t))n=Bc(t[0],s),r=Bc(t[1],c);else if(R(t)){var p=t;p.width=l[0],p.height=l[1];var m=zv(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(L(t)&&o){var h=rI(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=tI(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=iI(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=iI(d)?l[1]/2:d===`bottom`?l[1]:0),AF(e)){var h=nI(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&A(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&A(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&A(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&A(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!G.node&&t.getDom()&&(vw(this,`_updatePosition`),this._tooltipContent.dispose(),pF(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(ID);function $F(e,t,n){var r=t.ecModel,i;n?(i=new Fm(n,r,r),i=new Fm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Fm&&(o=o.get(`tooltip`,!0)),L(o)&&(o={formatter:o}),o&&(i=new Fm(o,i,r)))}return i}function eI(e,t){return e.dispatchAction||U(t.dispatchAction,t)}function tI(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function nI(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function rI(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function iI(e){return e===`center`||e===`middle`}function aI(e,t,n){var r=vl(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=yl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}W();function oI(e){Nj(OF),e.registerComponentModel(kF),e.registerComponentView(QF),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ce),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ce)}W(),OO();var sI=A;function cI(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function lI(e,t,n){var r={};return sI(t,function(t){var a=r[t]=i();sI(e[t],function(e,r){if(oP.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new oP(i),r===`opacity`&&(i=b(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new oP(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function uI(e,t,n){var r;A(n,function(e){t.hasOwnProperty(e)&&cI(t[e])&&(r=!0)}),r&&A(n,function(n){t.hasOwnProperty(n)&&cI(t[n])?e[n]=b(t[n]):delete e[n]})}function dI(e,t,n,r){var i={};return A(e,function(e){i[e]=oP.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return TO(a,l,e)}function c(e,t){DO(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}o(),W(),rm(),Gl(),xm(),Zv(),ty(),LD(),Iv(),Ly();var fI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(ey),pI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=V(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Js({style:cm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Js({style:cm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Mv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Mv(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=zv(g,Bv(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Ms({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(ID);function mI(e){e.registerComponentModel(fI),e.registerComponentView(pI)}W(),Ly();var hI={get:function(e,t,n){var r=b((gI[e]||{})[t]);return n&&F(r)?r[r.length-1]:r}},gI={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}};o(),W(),X(),J(),ty(),Ly();var _I=oP.mapVisual,vI=oP.eachVisual,yI=F,bI=A,xI=oc,SI=ec,CI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&uI(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=U(e,this),this.controllerVisuals=lI(this.option.controller,t,e),this.targetVisuals=lI(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return bI(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=yl(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return j(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){A(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],F(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);return L(o)?o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c):I(o)?s?o(e[0],e[1]):o(e):s?e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1]:c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=xI([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=te(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};x(r,n),x(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){yI(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},bI(r,function(e,t){if(oP.isValidType(t)){var n=hI.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;bI(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&b(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&b(n)||(a?s[0]:[s[0],s[0]])),c.symbol=_I(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;vI(l,function(e){e>u&&(u=e)}),c.symbolSize=_I(l,function(e){return SI(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(ey);o(),W(),J(),t_(),Ly();var wI=[20,140],TI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=wI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=wI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):F(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=oc((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=V(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=EI(this,`outOfRange`,this.getExtent()),n=EI(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=$g(CI.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(CI);function EI(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}o(),W(),rm(),Iv(),Zv(),LD();var DI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Nv(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Ms({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return A(oP.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),oP.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=Bv(t,n).refContainer;Vv(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(ID);W(),Zv();var OI=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function kI(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=OI[o],c=[0,null,10],l={},u=0;u<3;u++)l[OI[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=zv(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function AI(e,t){return A(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}o(),W(),Lf(),dT(),rm(),J(),X(),Yn(),cd(),Mb(),Ss(),Gl(),xm(),AO();var jI=ec,MI=A,NI=Math.min,PI=Math.max,FI=12,II=6,LI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=U(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=U(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Js({style:cm(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=kI(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Nd;s.add(c),c.add(n.outOfRange=RI()),c.add(n.inRange=RI(null,a?VI(this._orient):null,U(this._dragHandle,this,`all`,!1),U(this._dragHandle,this,`all`,!0))),c.setClipPath(new Ms({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=PI(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=U(this._dragHandle,this,n,!1),s=U(this._dragHandle,this,n,!0),c=Wn(e.get(`handleSize`),r[0]),l=Sb(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=VI(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){uT(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Wu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Js({cursor:u,draggable:!0,drift:o,onmousemove:function(e){uT(e.event)},ondragend:s,style:cm(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Wn(e.get(`indicatorSize`),n[0]),o=Sb(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof xs){var c=o.style;o.useStyle(C({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Js({silent:!0,invisible:!0,style:cm(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:II)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():BI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[jI(t[0],n,r,!0),jI(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];MP(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[jI(r[0],i,a,!0),jI(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new If(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Nd(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);MI([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=jI(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=xp(n.handleLabelPoints[l],bp(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=jI(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=xp(c.indicatorLabelPoint,bp(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=NI(PI(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=NI(PI(i[0],e),i[1]);var o=zI(n,a,i),s=[e-o,e+o],c=jI(e,i,a,!0),l=[jI(s[0],i,a,!0),jI(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||BI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=hl(u,d);this._dispatchHighDown(`downplay`,AI(f[0],n)),this._dispatchHighDown(`highlight`,AI(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(kO(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,AI(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=bp(t,r?null:this.group);return F(e)?xp(e,i,n):Sp(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(DI);function RI(e,t,n,r){return new hf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){uT(e.event)},ondragend:r})}function zI(e,t,n){var r=FI/2,i=e.get(`hoverLinkDataSize`);return i&&(r=jI(i,t,n,!0)/2),r}function BI(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function VI(e){return e===`vertical`?`ns-resize`:`ew-resize`}var HI={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},UI=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})};W(),OO();var WI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(dI(t.stateList,t.targetVisuals,U(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(U(GI,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function GI(e,t,n,r){for(var i=t.targetVisuals[r],a=oP.prepareVisualTypes(i),o={color:EO(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}W();var KI=A;function qI(e){var t=e&&e.visualMap;F(t)||(t=t?[t]:[]),KI(t,function(e){if(e){JI(e,`splitList`)&&!JI(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&F(t)&&KI(t,function(e){R(e)&&(JI(e,`start`)&&!JI(e,`min`)&&(e.min=e.start),JI(e,`end`)&&!JI(e,`max`)&&(e.max=e.end))})}})}function JI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}W();var YI=!1;function XI(e){YI||(YI=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(HI,UI),A(WI,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(qI))}function ZI(e){e.registerComponentModel(TI),e.registerComponentView(LI),XI(e)}o(),W(),J(),t_();var QI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],$I[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=b(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=j(this._pieceList,function(e){return e=b(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=oP.listVisualTypes(),i=this.isCategory();A(t.pieces,function(e){A(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),A(n,function(e,n){var r=!1;A(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&A(this.stateList,function(e){(t[e]||(t[e]={}))[n]=hI.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,A(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;A(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=b(e)},t.prototype.getValueState=function(e){var t=oP.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){oP.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return A(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=$g(CI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(CI),$I={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),bc(e),A(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;A(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),eL(t,e)},pieces:function(e){var t=this.option;A(t.pieces,function(t,n){R(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=oP.retrieveVisuals(t),e.push(r)},this),eL(t,e),bc(e),A(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function eL(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}o(),W(),rm(),Mb(),Zv(),xm();var tL=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=ue(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),A(o.viewPieceList,function(o){var s=o.piece,u=new Nd;u.onclick=U(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Js({style:cm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:V(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Yv(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:AI(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return kI(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Nd,o=this.visualMapModel.textStyleModel;a.add(new Js({style:cm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=j(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Sb(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=b(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,A(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(DI);function nL(e){e.registerComponentModel(QI),e.registerComponentView(tL),XI(e)}Ij();function rL(e){Nj(ZI),Nj(nL)}function iL(e){e.registerComponentModel(aL),e.registerComponentView(oL)}var aL,oL,sL=t((()=>{o(),ty(),LD(),eu(),Py(),aL=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Ny(this),Ay(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Ay(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:$l},t}(ey),oL=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(ID)})),cL=n({createDimensions:()=>Cg,createList:()=>lL,createScale:()=>uL,createSymbol:()=>Sb,createTextStyle:()=>fL,dataStack:()=>pL,enableHoverEmphasis:()=>Bu,getECData:()=>Z,getLayoutRect:()=>zv,mixinAxisModelCommonMethods:()=>dL});function lL(e){return Kg(null,e)}function uL(e,t){var n=t;t instanceof Fm||(n=new Fm(t));var r=Zx(n),i=Qx(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),Hj(i,n,null,null,e),i}function dL(e){O(e,Lj)}function fL(e,t){return t||={},cm(e,null,null,t.state!==`normal`)}var pL,mL=t((()=>{W(),Yg(),uS(),Rj(),Im(),Zv(),Ug(),Gl(),xm(),Gj(),Dg(),Mb(),cd(),pL={isDimensionStacked:Vg,enableDataStack:zg,getStackedDimension:Hg}})),hL=n({MAX_SAFE_INTEGER:()=>Vc,asc:()=>oc,getPercentWithPrecision:()=>uc,getPixelPrecision:()=>lc,getPrecision:()=>sc,getPrecisionSafe:()=>cc,isNumeric:()=>Sc,isRadianAroundZero:()=>mc,linearMap:()=>ec,nice:()=>vc,numericToNumber:()=>xc,parseDate:()=>hc,parsePercent:()=>Bc,quantile:()=>yc,quantity:()=>gc,quantityExponent:()=>_c,reformIntervals:()=>bc,remRadian:()=>pc,round:()=>ac}),gL=t((()=>{J()})),_L=n({format:()=>G_,parse:()=>hc,roundTime:()=>J_}),vL=t((()=>{J(),xv()})),yL=n({Arc:()=>Af,BezierCurve:()=>Df,BoundingRect:()=>q,Circle:()=>Id,CompoundPath:()=>Mf,Ellipse:()=>zd,Group:()=>Nd,Image:()=>xs,IncrementalDisplayable:()=>Qf,Line:()=>Sf,LinearGradient:()=>If,Polygon:()=>hf,Polyline:()=>vf,RadialGradient:()=>Rf,Rect:()=>Ms,Ring:()=>cf,Sector:()=>af,Text:()=>Js,clipPointsByRect:()=>Ep,clipRectByRect:()=>Dp,createIcon:()=>Op,extendPath:()=>dp,extendShape:()=>up,getShapeClass:()=>pp,getTransform:()=>bp,initProps:()=>rp,makeImage:()=>hp,makePath:()=>mp,mergePath:()=>Qp,registerShape:()=>fp,resizePath:()=>_p,updateProps:()=>np}),bL=t((()=>{rm()})),xL=n({addCommas:()=>wv,capitalFirst:()=>Av,encodeHTML:()=>f_,formatTime:()=>kv,formatTpl:()=>Dv,getTextRect:()=>Sv,getTooltipMarker:()=>Ov,normalizeCssArray:()=>Nv,toCamelCase:()=>Tv,truncateText:()=>Xn}),SL=t((()=>{Iv()})),CL=n({bind:()=>U,clone:()=>b,curry:()=>P,defaults:()=>T,each:()=>A,extend:()=>C,filter:()=>M,indexOf:()=>E,inherits:()=>D,isArray:()=>F,isFunction:()=>I,isObject:()=>R,isString:()=>L,map:()=>j,merge:()=>x,reduce:()=>ee}),wL=t((()=>{W()}));function TL(e){var t=ey.extend(e);return ey.registerClass(t),t}function EL(e){var t=ID.extend(e);return ID.registerClass(t),t}function DL(e){var t=yb.extend(e);return yb.registerClass(t),t}function OL(e){var t=Vb.extend(e);return Vb.registerClass(t),t}var kL=t((()=>{ty(),LD(),bb(),Ub(),Sg(),jE(),Pt(),cn(),W(),Hi(),Sw(),mL(),Ij(),g(),IM(),gL(),vL(),bL(),SL(),wL(),Ke(),Im(),nC(),kk()}));function AL(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function jL(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:AL(r&&r.shape.points)}}function ML(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var NL,PL,FL,IL,LL,RL,zL=t((()=>{rm(),Gl(),J(),Mr(),Yw(),X(),W(),bC(),xm(),Wo(),NL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],PL=new kr,FL=Y(),IL=Y(),LL=[`x`,`y`,`rotation`],RL=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();q.applyTransform(c,c,s),s?PL.setLocalTransform(s):(PL.x=PL.y=PL.rotation=PL.originX=PL.originY=0,PL.scaleX=PL.scaleY=1),PL.rotation=Ho(PL.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();q.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:PL.x,y:PL.y,scaleX:PL.scaleX,scaleY:PL.scaleY,rotation:PL.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(I(r)||N(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Z(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Mw(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=I(a.layoutOptionOrCb)?a.layoutOptionOrCb(jL(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Bc(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Bc(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=FL(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<NL.length;m++){var h=NL[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];A(this._labelList,function(e){e.defaultAttr.ignore||r.push(lC({},e))});var i=M(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=M(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});dC(i,0,0,t),dC(a,1,0,n);var o=M(r,function(e){return e.layoutOption.hideOverlap});fC(o),pC(o)},e.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=FL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Z(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);Iw(e,Lw(o),s),Mw(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!ip(e))){var i=FL(n),a=i.oldLayout,o=Z(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(E(u,`select`)>=0&&n.attr(i.oldLayoutSelect),E(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),np(n,c,t,s)}else if(n.attr(c),!ym(n).valueAnimation){var d=V(n.style.opacity,1);n.style.opacity=0,rp(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};ML(f,c,LL),ML(f,n.states.select,LL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};ML(p,c,LL),ML(p,n.states.emphasis,LL)}mm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=IL(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),np(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,rp(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}()}));function BL(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=VL(t).labelManager;r||=VL(t).labelManager=new RL,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=VL(t).labelManager;A(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var VL,HL=t((()=>{X(),zL(),W(),VL=Y()})),UL=t((()=>{Mj(),kL()}));function WL(e,t,n){var r=h.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function GL(e){return!e.__cursors.get(0)}function KL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var qL,JL=t((()=>{o(),W(),wa(),Xf(),_a(),ZO(),kk(),Pn(),Ta(),g(),qL=function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ya,typeof t==`string`?a=WL(t,n,r):R(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(xe(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=KL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=WL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new q(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new q(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new q(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new q(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=KL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;B(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||qO(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):se(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=ok(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&A(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ga)}));function YL(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function XL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function ZL(e,t,n,r){var i=new qL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,QL(i),i}function QL(e){e.__cursorStack=[],e.__cursors=H()}function $L(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function eR(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,$L({key:r})))}function tR(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function nR(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function rR(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&lR)||s.__builtin__)&&(!(n&uR)||!s.__builtin__)&&(!(n&dR)||s!==e.hoverlayer))&&t(s,a,o,i)}}var iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR=t((()=>{wa(),W(),JL(),KT(),Ke(),Xf(),kk(),Ta(),ZO(),g(),iR=1e5,aR=314159,oR=void 0,sR=1,cR=2,lR=1,uR=2,dR=4,fR=lR|dR,pR=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||ya,this._singleCanvas=i,this.root=e,e.style&&(xe(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=ZL(a,this,aR,0);c.initContext(),this._insertLayer(c,aR,0,!0),this._domRoot=e}else{this._width=XO(e,0,n),this._height=XO(e,1,n);var l=this._domRoot=XL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!R(e)?{paintAll:!!e}:e||{},n=V(t.refresh,!0),r=V(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=cR),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return rR(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},uR),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=oR,n!==oR&&(!t&&n===cR&&(t=this._i.hoverlayer=this._ensureLayer(iR)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),yk(i,s,r),c&&(s.style=l)}}i&&(bk(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(iR)},e.prototype.paintOne=function(e,t){vk(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)rR(this._i,function(e){e.afterBrush&&e.afterBrush()},fR),this._paintHoverList(e);else{var i=this;GT(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(aR).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),rR(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},lR)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return rR(this._i,function(i){var a=!1;if(tR(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!GL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}tR(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},fR),G.wxa&&rR(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=GL(e),c=s&&h.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=cR),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(yk(o,f,a),f.setPrevPaintRect(p))}else yk(o,f,a);if(s&&h.getTime()-c>15){d++;break}}}bk(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=aR,t=0);var i=nR(this._i,e)[t];return i||(i=ZL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&x(i,this._layerConfig[e],!0),(n||r&&e!==aR)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&YL(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=nR(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),nR(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)},lR)},e.prototype.eachOtherLayer=function(e,t){return rR(this._i,function(n,r){e.call(t,n,r)},uR)},e.prototype.getLayers=function(){var e={};return rR(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}rR(n._i,function(e){e.__dirty=!1,tR(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},fR);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){y(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=eR(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}rR(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(GL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(tR(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===oR&&(n._hoverLayerDirty=sR))},fR)},e.prototype.clear=function(){return rR(this._i,function(e){e.clear(),QL(e)},lR),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,rR(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?x(n[e],t,!0):n[e]=t,rR(this._i,function(e,t){x(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=XO(i,0,r),t=XO(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,rR(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(aR).resize(e,t)}return this},e.prototype.clearLayer=function(e){A(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[aR][0].dom;var t=new qL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;rR(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];yk(n,l,a)}bk(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}()}));function hR(e){e.registerPainter(`canvas`,pR)}var gR=t((()=>{mR()})),_R=n({Axis:()=>tC,ChartView:()=>Vb,ComponentModel:()=>ey,ComponentView:()=>ID,List:()=>xg,Model:()=>Fm,PRIORITY:()=>FA,SeriesModel:()=>yb,color:()=>fi,connect:()=>qk,dataTool:()=>jj,default:()=>vR,dependencies:()=>_A,disConnect:()=>Oj,disconnect:()=>Jk,dispose:()=>Yk,env:()=>G,extendChartView:()=>OL,extendComponentModel:()=>TL,extendComponentView:()=>EL,extendSeriesModel:()=>DL,format:()=>xL,getCoordinateSystemDimensions:()=>oA,getInstanceByDom:()=>Xk,getInstanceById:()=>Zk,getMap:()=>mA,graphic:()=>yL,helper:()=>cL,init:()=>Kk,innerDrawElementOnCanvas:()=>vk,matrix:()=>wt,number:()=>hL,parseGeoJSON:()=>FM,parseGeoJson:()=>FM,registerAction:()=>iA,registerCoordinateSystem:()=>aA,registerCustomSeries:()=>sA,registerLayout:()=>cA,registerLoading:()=>dA,registerLocale:()=>S_,registerMap:()=>pA,registerPostInit:()=>tA,registerPostUpdate:()=>nA,registerPreprocessor:()=>$k,registerProcessor:()=>eA,registerTheme:()=>Qk,registerTransform:()=>Aj,registerUpdateLifecycle:()=>rA,registerVisual:()=>lA,setCanvasCreator:()=>fA,setPlatformAPI:()=>c,throttle:()=>gw,time:()=>_L,use:()=>Nj,util:()=>CL,vector:()=>Ft,version:()=>gA,zrUtil:()=>_,zrender:()=>gE}),vR,yR=t((()=>{UL(),Ij(),Mj(),gR(),sL(),HL(),Nj([hR,iL]),vR={init:function(){return Kk.apply(null,arguments)}},Nj(BL)})),bR=r((t=>{(function(n,r){typeof define==`function`&&define.amd?define([`exports`,`echarts`],r):typeof t==`object`&&typeof t.nodeName!=`string`?r(t,(yR(),e(_R))):r({},n.echarts)})(t,function(e,t){var n=function(e){typeof console<`u`&&console&&console.error&&console.error(e)};if(!t){n(`ECharts is not Loaded`);return}var r=`#B9B8CE`,i=`#100C2A`,a=function(){return{axisLine:{lineStyle:{color:r}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},o=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],s={darkMode:!0,color:o,backgroundColor:i,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:r}},dataZoom:{borderColor:`#71708A`,textStyle:{color:r},brushStyle:{color:`rgba(135,163,206,0.3)`},handleStyle:{color:`#353450`,borderColor:`#C5CBE3`},moveHandleStyle:{color:`#B0B6C3`,opacity:.3},fillerColor:`rgba(135,163,206,0.2)`,emphasis:{handleStyle:{borderColor:`#91B7F2`,color:`#4D587D`},moveHandleStyle:{color:`#636D9A`,opacity:.7}},dataBackground:{lineStyle:{color:`#71708A`,width:1},areaStyle:{color:`#71708A`}},selectedDataBackground:{lineStyle:{color:`#87A3CE`},areaStyle:{color:`#87A3CE`}}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},label:{color:r},controlStyle:{color:r,borderColor:r}},calendar:{itemStyle:{color:i},dayLabel:{color:r},monthLabel:{color:r},yearLabel:{color:r}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:a(),line:{symbol:`circle`},graph:{color:o},gauge:{title:{color:r}},candlestick:{itemStyle:{color:`#FD1050`,color0:`#0CF49B`,borderColor:`#FD1050`,borderColor0:`#0CF49B`}}};s.categoryAxis.splitLine.show=!1,t.registerTheme(`dark`,s)})}));export{mI as a,Ij as c,Mj as d,rL as i,Nj as l,gR as n,oI as o,hR as r,jP as s,bR as t,Kk as u};
|