@weapp-vite/dashboard 6.11.4 → 6.11.6
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/README.md +6 -2
- package/dist/assets/echarts.js +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/assets/pages.js +1 -1
- package/dist/assets/vendor.js +1 -0
- package/dist/assets/vue.js +1 -1
- package/package.json +13 -4
package/dist/assets/echarts.js
CHANGED
|
@@ -12,6 +12,6 @@ yyyy`);var r=Qs(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r
|
|
|
12
12
|
`,`
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
`],cy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oc()}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=N_({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)?k(t,function(e){return C(n,e)}):C(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function uy(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=ry(t,n),u,d,f,p;if(o>1||c&&!o){var m=dy(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=vm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Bc(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Wv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Wv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!pe(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function dy(e,t,n,r,i){var a=t.getData(),o=j(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?k(r,function(e){u(vm(a,n,e),e)}):k(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Wv(`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 fy=t((()=>{G(),ly(),Nm(),Y()}));function py(e,t){return e.getName(t)||e.getId(t)}function my(e){var t=e.name;Bc(e)||(e.name=hy(e)||t)}function hy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return k(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function gy(e){return e.model.getRawData().count()}function _y(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vy}function vy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function yy(e,t){k(_e(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,P(by,t))})}function by(e,t){var n=xy(e);return n&&n.setOutputEnd((t||this).count()),t}function xy(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 Sy,Cy,wy=t((()=>{o(),G(),Ue(),Y(),av(),pv(),_v(),nv(),xv(),it(),Rv(),fy(),Sy=Kc(),Cy=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=vv({count:gy,reset:_y}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Sy(this).sourceManager=new Lv(this)).prepareSource();var r=this.getInitialData(e,n);yy(r,this),this.dataTask.context.data=r,Sy(this).dataBeforeProcessed=r,my(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=q_(this),r=n?Y_(e):{},i=this.subType;Z.hasClass(i)&&(i+=`Series`),x(e,t.getTheme().get(this.subType)),x(e,this.getDefaultOption()),Dc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&J_(e,r,n)},t.prototype.mergeOption=function(e,t){e=x(this.option,e,!0),this.fillDataTextStyle(e.data);var n=q_(this);n&&J_(this.option,e,n);var r=Sy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);yy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sy(this).dataBeforeProcessed=i,my(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ie(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Dc(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=xy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Sy(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=xy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Sy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return Sy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Sy(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;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return uy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.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=fv.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=py(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[py(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?!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`){z(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=py(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=py(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 Z.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}(Z),D(Cy,gv),D(Cy,fv),Ye(Cy,Z)}));function Ty(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 Ey(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?gf(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hf(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new Fy({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Ty,a&&c.setColor(a),c}function Dy(e,t){if(e!=null)return F(e)||(e=[e,e]),[mc(e[0],t[0])||0,mc(H(e[1],e[0]),t[1])||0]}var Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy=t((()=>{G(),ep(),Xt(),fn(),_c(),Vv(),Oy=Qo.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()}}),ky=Qo.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()}}),Ay=Qo.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()}}),jy=Qo.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()}}),My={line:Cd,rect:_s,roundRect:_s,square:_s,circle:Ru,diamond:ky,pin:Ay,arrow:jy,triangle:Oy},Ny={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}},Py={},k(My,function(e,t){Py[t]=new e}),Fy=Qo.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=cn(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=Py[r];i||=(r=`rect`,Py[r]),Ny[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function Ly(){var e=Kc();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 Ry=t((()=>{Y()}));function zy(e,t,n){e&&ql(e)&&(t===`emphasis`?Tl:El)(e,n)}function By(e,t,n){var r=Gc(e,t),i=t&&t.highlightKey!=null?Jl(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){zy(e,n,i)}):k(Ec(r),function(t){zy(e.getItemGraphicEl(t),n,i)})}function Vy(e){return Wy(e.model)}function Hy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Uy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ky[c]}var Uy,Wy,Gy,Ky,qy=t((()=>{G(),Iu(),lg(),it(),Y(),uu(),xv(),Ry(),ep(),Uy=Kc(),Wy=Ly(),Gy=function(){function e(){this.group=new Fu,this.uid=ig(`viewChart`),this.renderTask=vv({plan:Vy,reset:Hy}),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&&By(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&By(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.updateLayout=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){Rf(this.group,e)},e.markUpdateMethod=function(e,t){Uy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),qe(Gy,[`dispose`]),$e(Gy),Ky={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)}}}}));function Jy(e){return e.get(`stack`)||rb+e.seriesIndex}function Yy(e){return e.dim+e.index}function Xy(e,t){var n=[];return t.eachSeriesByType(e,function(e){tb(e)&&n.push(e)}),n}function Zy(e){var t={};k(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function Qy(e){var t=Zy(e),n=[];return k(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=mc(e.get(`barWidth`),a),f=mc(e.get(`barMaxWidth`),a),p=mc(e.get(`barMinWidth`)||(nb(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:Yy(r),stackId:Jy(e)})}),$y(n)}function $y(e){var t={};k(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return k(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=N(r).length;a=Math.max(35-o*4,15)+`%`}var s=mc(a,i),c=mc(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),k(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;k(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;k(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function eb(e,t,n){if(e&&t){var r=e[Yy(t)];return r!=null&&n!=null?r[Jy(n)]:r}}function tb(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function nb(e){return e.pipelineContext&&e.pipelineContext.large}var rb,ib=t((()=>{G(),_c(),rb=`__ec_stack_`}));function ab(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 ob(e,t,n,r){var i=e[t];if(i){var a=i[cb]||i,o=i[ub];if(i[lb]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=ab(a,n,r===`debounce`),i[cb]=a,i[ub]=r,i[lb]=n}return i}}function sb(e,t){var n=e[t];n&&n[cb]&&(n.clear&&n.clear(),e[t]=n[cb])}var cb,lb,ub,db=t((()=>{cb=`\0__throttleOriginMethod`,lb=`\0__throttleRate`,ub=`\0__throttleType`}));function fb(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=Gc(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 pb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(fb(`map`,`selectchanged`,t,r,e),fb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(fb(`map`,`selected`,t,r,e),fb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(fb(`map`,`unselected`,t,r,e),fb(`pie`,`unselected`,t,r,e))})}var mb=t((()=>{G(),Y()}));function hb(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);break}}function gb(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)%Db<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Do(i),i=Do(f)}else r=Do(r),i=Do(i);r>i&&(i+=Db);var p=Math.atan2(s,o);if(p<0&&(p+=Db),p>=r&&p<=i||p+Db>=r&&p+Db<=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 _b(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 vb(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 yb(e,t,n){var r=vb(t.x,t.y,t.width,t.height,e.x,e.y,Ab);return n.set(Ab[0],Ab[1]),r}function bb(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 Ob.M:a=u[p++],o=u[p++],r=a,i=o;break;case Ob.L:h=_b(r,i,u[p],u[p+1],d,f,Ab,!0),r=u[p++],i=u[p++];break;case Ob.C:h=Ar(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,Ab),r=u[p++],i=u[p++];break;case Ob.Q:h=Lr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,Ab),r=u[p++],i=u[p++];break;case Ob.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=gb(g,_,y,b,b+x,S,C,f,Ab),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case Ob.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=vb(a,o,w,T,d,f,Ab);break;case Ob.Z:h=_b(r,i,a,o,d,f,Ab,!0),r=a,i=o;break}h<l&&(l=h,n.set(Ab[0],Ab[1]))}return l}function xb(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||kb,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&kt([],u),f=t.get(`length2`)||0;l&&Nb.copy(l);for(var p=0;p<o.length;p++){var m=o[p];hb(m,0,s,jb,Pb),q.scaleAndAdd(Mb,jb,Pb,f),Mb.transform(d);var h=e.getBoundingRect(),g=l?l.distance(Mb):e instanceof Qo?bb(Mb,e.path,Nb):yb(Mb,h,Nb);g<c&&(c=g,Mb.transform(u),Nb.transform(u),Nb.toArray(a[0]),Mb.toArray(a[1]),jb.toArray(a[2]))}Sb(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function Sb(e,t){if(t<=180&&t>0){t=t/180*Math.PI,jb.fromArray(e[0]),Mb.fromArray(e[1]),Nb.fromArray(e[2]),q.sub(Pb,jb,Mb),q.sub(Fb,Nb,Mb);var n=Pb.len(),r=Fb.len();if(!(n<.001||r<.001)){Pb.scale(1/n),Fb.scale(1/r);var i=Pb.dot(Fb);if(Math.cos(t)<i){var a=_b(Mb.x,Mb.y,Nb.x,Nb.y,jb.x,jb.y,Ib,!1);Lb.fromArray(Ib),Lb.scaleAndAdd(Fb,a/Math.tan(Math.PI-t));var o=Nb.x===Mb.x?(Lb.y-Mb.y)/(Nb.y-Mb.y):(Lb.x-Mb.x)/(Nb.x-Mb.x);if(isNaN(o))return;o<0?q.copy(Lb,Mb):o>1&&q.copy(Lb,Nb),Lb.toArray(e[1])}}}}function Cb(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&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function wb(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=sr(r[0],r[1]),a=sr(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=tr([],r[1],r[0],o/i),c=tr([],r[1],r[2],o/a),l=tr([],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 Tb(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<ru.length;c++){var l=ru[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:H(i.states[l]&&i.states[l].ignore,s))||!H(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Cb(r,!0,l,u);continue}r||(r=new yd,e.setTextGuideLine(r),!d&&(s||!o)&&Cb(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Cb(r,!1,l,u)}}if(r){w(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=wb}}function Eb(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<nu.length;r++){var i=nu[r];n[i]=e.getModel([i,t])}return n}var Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb=t((()=>{ep(),bo(),ko(),Jr(),G(),jt(),lr(),uu(),Db=Math.PI*2,Ob=yo.CMD,kb=[`top`,`right`,`bottom`,`left`],Ab=[],jb=new q,Mb=new q,Nb=new q,Pb=new q,Fb=new q,Ib=[],Lb=new q}));function zb(e,t,n){n||=ex,t?e.dirty|=n:e.dirty&=~n}function Bb(e,t){return t||=ex,e.dirty==null||!!(e.dirty&t)}function Vb(e){if(e)return Bb(e)&&Hb(e,e.label,e),e}function Hb(e,t,n){var r=t.getComputedTransform();e.transform=Vf(e.transform,r);var i=e.localRect=Bf(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=_p.textMargin);for(var d=0;d<4;d++)tx[d]=u===_p.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===_p.textMargin&&Pf(i,tx,!1,!1);var f=e.rect=Bf(e.rect,i);return r&&f.applyTransform(r),u===_p.minMargin&&Pf(f,tx,!1,!1),e.axisAligned=zf(r),(e.label=e.label||{}).ignore=t.ignore,zb(e,!1),zb(e,!0,$b),e}function Ub(e,t,n){return e.transform=Vf(e.transform,n),e.localRect=Bf(e.localRect,t),e.rect=Bf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=zf(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Wb(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 Gb(e,t){for(var n=0;n<Zb.length;n++){var r=Zb[n];e[r]??(e[r]=t[r])}return Vb(e)}function Kb(e){var t=e.obb;return(!t||Bb(e,$b))&&(e.obb=t||=new Yd,t.fromBoundingRect(e.localRect,e.transform),zb(e,!1,$b)),t}function qb(e,t,n,r,i){var a=e.length,o=qf[t],s=Jf[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 Jb(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 Yb(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||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=Vb(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Xb(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Xb(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:Kb(e).intersect(Kb(t),n,r)}var Zb,Qb,$b,ex,tx,nx=t((()=>{ep(),vp(),Zb=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Qb=1,$b=2,ex=Qb|$b,tx=[0,0,0,0]})),rx,ix,ax=t((()=>{rx=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),ix=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 rx(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 rx(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 rx(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new rx(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rx(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new rx(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}()}));function ox(e,t,n,r){return n||={},r?sx(e,t,n):gx&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?sx(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function sx(e,t,n){if(K.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(yg(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(gg(hx,e,r,i)){n.zrX=hx[0],n.zrY=hx[1];return}}n.zrX=n.zrY=0}function cx(e){return e||window.event}function lx(e,t,n){if(t=cx(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&&ox(e,i,t,n)}else{ox(e,t,t,n);var a=ux(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&mx.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function ux(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=r===0?Math.abs(n):Math.abs(r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function dx(e,t,n,r){e.addEventListener(t,n,r)}function fx(e,t,n,r){e.removeEventListener(t,n,r)}function px(e){return e.which===2||e.which===3}var mx,hx,gx,_x,vx=t((()=>{Ue(),Tg(),mx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hx=[],gx=K.browser.firefox&&+K.browser.version.split(`.`)[0]<39,_x=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}}));function yx(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function bx(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var xx,Sx,Cx=t((()=>{vx(),xx=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=ox(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 Sx)if(Sx.hasOwnProperty(t)){var n=Sx[t](this._track,e);if(n)return n}},e}(),Sx={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=yx(r)/yx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=bx(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}}));function Tx(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:Ex}}function Ex(){_x(this.event)}function Dx(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?Ax:!0}return!1}function Ox(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=Dx(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ax)){t.target=o;break}}}function kx(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Ax,jx,Mx,Nx,Px,Fx,Ix=t((()=>{o(),G(),lr(),ax(),aa(),vx(),Cx(),Xt(),Ax=`silent`,jx=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}(ia),Mx=function(){function e(e,t){this.x=e,this.y=t}return e}(),Nx=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Px=new J(0,0,0,0),Fx=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Mx(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new jx,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new ix(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(k(Nx,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=kx(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 Mx(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 Mx(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=Tx(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 Mx(e,t);if(Ox(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(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)&&(Px.copy(u.getBoundingRect()),u.transform&&Px.applyTransform(u.transform),Px.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(Ox(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 xx;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 Mx;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ia),k([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Fx.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=kx(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||sr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}})}));function Lx(e){for(var t=0;e>=Gx;)t|=e&1,e>>=1;return e+t}function Rx(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++;zx(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zx(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Bx(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 Vx(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 Hx(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 Ux(e,t){var n=Kx,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=Hx(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Vx(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=Hx(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=Vx(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>=Kx||m>=Kx);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-Hx(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-Vx(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>=Kx||g>=Kx);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 Wx(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Gx){a=Rx(e,n,r,t),Bx(e,n,r,n+a,t);return}var o=Ux(e,t),s=Lx(i);do{if(a=Rx(e,n,r,t),a<s){var c=i;c>s&&(c=s),Bx(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 Gx,Kx,qx=t((()=>{Gx=32,Kx=7}));function Jx(){Xx||(Xx=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Yx(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xx,Zx,Qx=t((()=>{G(),qx(),pa(),Xx=!1,Zx=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yx}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,Wx(n,Yx)},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)&&(Jx(),p.z=0),isNaN(p.z2)&&(Jx(),p.z2=0),isNaN(p.zlevel)&&(Jx(),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=T(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}()})),$x,eS=t((()=>{Ue(),$x=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}}));function tS(){return new Date().getTime()}var nS,rS=t((()=>{o(),aa(),eS(),ra(),nS=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=tS()-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&&($x(t),!e._paused&&e.update())}$x(t)},t.prototype.start=function(){this._running||(this._time=tS(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=tS(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=tS()-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 na(e,t.loop);return this.addAnimator(n),n},t}(ia)}));function iS(e){var t=e.pointerType;return t===`pen`||t===`touch`}function aS(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 oS(e){e&&(e.zrByTouch=!0)}function sS(e,t){return lx(e.dom,new vS(e,t),!0)}function cS(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 lS(e,t){var n=t.domHandlers;K.pointerEventsSupported?k(hS.pointer,function(r){dS(t,r,function(t){n[r].call(e,t)})}):(K.touchEventsSupported&&k(hS.touch,function(r){dS(t,r,function(i){n[r].call(e,i),aS(t)})}),k(hS.mouse,function(r){dS(t,r,function(i){i=cx(i),t.touching||n[r].call(e,i)})}))}function uS(e,t){K.pointerEventsSupported?k(gS.pointer,n):K.touchEventsSupported||k(gS.mouse,n);function n(n){function r(r){r=cx(r),cS(e,r.target)||(r=sS(e,r),t.domHandlers[n].call(e,r))}dS(t,n,r,{capture:!0})}}function dS(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,dx(e.domTarget,t,n,r)}function fS(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&fx(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS=t((()=>{o(),vx(),G(),aa(),Ue(),pS=300,mS=K.domSupported,hS=(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:A(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),gS={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},_S=!1,vS=function(){function e(e,t){this.stopPropagation=xe,this.stopImmediatePropagation=xe,this.preventDefault=xe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),yS={mousedown:function(e){e=lx(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=lx(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=lx(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=lx(this.dom,e);var t=e.toElement||e.relatedTarget;cS(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){_S=!0,e=lx(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){_S||(e=lx(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=lx(this.dom,e),oS(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),yS.mousemove.call(this,e),yS.mousedown.call(this,e)},touchmove:function(e){e=lx(this.dom,e),oS(e),this.handler.processGesture(e,`change`),yS.mousemove.call(this,e)},touchend:function(e){e=lx(this.dom,e),oS(e),this.handler.processGesture(e,`end`),yS.mouseup.call(this,e),new Date-+this.__lastTouchMoment<pS&&yS.click.call(this,e)},pointerdown:function(e){yS.mousedown.call(this,e)},pointermove:function(e){iS(e)||yS.mousemove.call(this,e)},pointerup:function(e){yS.mouseup.call(this,e)},pointerout:function(e){iS(e)||yS.mouseout.call(this,e)}},k([`click`,`dblclick`,`contextmenu`],function(e){yS[e]=function(t){t=lx(this.dom,t),this.trigger(e,t)}}),bS={pointermove:function(e){iS(e)||bS.mousemove.call(this,e)},pointerup:function(e){bS.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))}},xS=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),SS=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 xS(t,yS),mS&&(r._globalHandlerScope=new xS(document,bS)),lS(r,r._localHandlerScope),r}return t.prototype.dispose=function(){fS(this._localHandlerScope),mS&&fS(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,mS&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?uS(this,t):fS(t)}},t}(ia)})),wS=n({dispose:()=>OS,disposeAll:()=>kS,getElementSSRData:()=>MS,getInstance:()=>AS,init:()=>DS,registerPainter:()=>jS,registerSSRDataGetter:()=>NS,version:()=>RS});function TS(e){delete FS[e]}function ES(e){if(!e)return!1;if(typeof e==`string`)return xi(e,1)<ca;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=xi(t[i].color,1);return n/=r,n<ca}return!1}function DS(e,t){var n=new IS(v(),e,t);return FS[n.id]=n,n}function OS(e){e.dispose()}function kS(){for(var e in FS)FS.hasOwnProperty(e)&&FS[e].dispose();FS={}}function AS(e){return FS[e]}function jS(e,t){PS[e]=t}function MS(e){if(typeof LS==`function`)return LS(e)}function NS(e){LS=e}var PS,FS,IS,LS,RS,zS=t((()=>{Ue(),G(),Ix(),Qx(),rS(),CS(),Ai(),fa(),Iu(),PS={},FS={},IS=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Zx,a=n.renderer||`canvas`;PS[a]||(a=N(PS)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new PS[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!K.node&&!K.worker&&!s?new SS(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?K.touchEventsSupported:!!l,d=44,f;u&&(f=H(n.pointerSize,d)),this.handler=new Fx(i,o,c,o.root,f),this.animation=new nS({stage:{update:s?null:function(){return r._flush(!0)}}}),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=ES(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=tS();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=tS();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},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 Fu&&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,TS(this.id))},e}(),RS=`6.0.0`})),BS,VS,HS,US,WS,GS=t((()=>{Ai(),Vv(),BS=``,typeof navigator<`u`&&(BS=navigator.platform||``),VS=`rgba(0, 0, 0, 0.2)`,HS=Q.color.theme[0],US=vi(HS,null,null,.9),WS={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[US,HS],aria:{decal:{decals:[{color:VS,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:VS,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:VS,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:VS,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:VS,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:VS,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:BS.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 KS(e,t,n){var r=qS.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var qS,JS=t((()=>{G(),qS=U()}));function YS(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 XS(e,t){var n=e.color&&!e.colorLayer;k(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Z.hasClass(r)||(typeof t==`object`?e[r]=e[r]?x(e[r],t,!1):b(t):e[r]??(e[r]=t))})}function ZS(e,t,n){if(F(t)){var r=U();return k(t,function(e){e!=null&&zc(e,null)!=null&&r.set(e,!0)}),M(n,function(t){return t&&r.get(t[e])})}else{var i=zc(t,null);return M(n,function(t){return t&&i!=null&&t[e]===i})}}function QS(e,t){return t.hasOwnProperty(`subType`)?M(e,function(e){return e&&e.subType===t.subType}):e}function $S(e){var t=U();return e&&k(Ec(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var eC,tC,nC,rC,iC,aC,oC=t((()=>{o(),G(),Y(),Np(),av(),GS(),tm(),JS(),pv(),rC=`\0_ec_inner`,iC=1,aC=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 Mp(r),this._locale=new Mp(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=$S(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$S(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`?nC(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&&k(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=U(),s=t&&t.replaceMergeMainTypeMap;qp(this),k(e,function(e,t){e!=null&&(Z.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){Z.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),c,this);function c(t){var a=KS(this,t,Ec(e[t])),o=r.get(t),c=Ac(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Hc(c,t,Z),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;k(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=Z.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`&&eC(this)}this._seriesIndices||eC(this)},t.prototype.getOption=function(){var e=b(this.option);return k(e,function(t,n){if(Z.hasClass(n)){for(var r=Ec(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[rC],e},t.prototype.setTheme=function(e){this._theme=new Mp(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}):ZS(`name`,i,a):ZS(`id`,r,a):(o=[],k(Ec(n),function(e){a[e]&&o.push(a[e])})),QS(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(QS(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):z(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=zc(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){tC(this),k(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){k(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){tC(this),k(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 k(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return tC(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){tC(this);var n=[];k(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=U(n)},t.prototype.restoreData=function(e){eC(this);var t=this._componentsMap,n=[];t.each(function(e,t){Z.hasClass(t)&&n.push(t)}),Z.topologicalTravel(n,Z.getAllClassMainTypes(),function(n){k(t.get(n),function(t){t&&(n!==`series`||!YS(t,e))&&t.restoreData()})})},t.internalField=function(){eC=function(e){var t=e._seriesIndices=[];k(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=U(t)},tC=function(e){},nC=function(e,t){e.option={},e.option[rC]=iC,e._componentsMap=U({series:[]}),e._componentsCount=U();var n=t.aria;z(n)&&n.enabled==null&&(n.enabled=!0),XS(t,e._theme.option),x(t,WS,!1),e._mergeOption(t,null)}}(),t}(Mp),D(aC,fv)})),sC,cC,lC=t((()=>{G(),sC=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],cC=function(){function e(e){k(sC,function(t){this[t]=W(e[t],e)},this)}return e}()}));function uC(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||=s):((d||u)&&(e.options=e.media=null),a=e),u&&F(l)&&k(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),k(c,function(e){return f(e)}),k(r,function(e){return f(e.option)});function f(e){k(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function dC(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return k(e,function(e,t){var n=t.match(mC);if(!(!n||!n[1]||!n[2])){var a=n[1];fC(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function fC(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function pC(e,t){return e.join(`,`)===t.join(`,`)}var mC,hC,gC=t((()=>{Y(),G(),mC=/^(min|max)?(.+)$/,hC=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(k(Ec(e.series),function(e){e&&e.data&&ie(e.data)&&me(e.data)}),k(Ec(e.dataset),function(e){e&&e.source&&ie(e.source)&&me(e.source)})),e=b(e);var r=this._optionBackup,i=uC(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++)dC(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!pC(a,this._currentMediaIndices)&&(o=A(a,function(e){return b(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}()}));function _C(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=OC.length;n<r;n++){var i=OC[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 vC(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,w(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 yC(e){vC(e,`itemStyle`),vC(e,`lineStyle`),vC(e,`areaStyle`),vC(e,`label`),vC(e,`labelLine`),vC(e,`upperLabel`),vC(e,`edgeLabel`)}function bC(e,t){var n=DC(e)&&e[t],r=DC(n)&&n.textStyle;if(r)for(var i=0,a=nl.length;i<a;i++){var o=nl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function xC(e){e&&(yC(e),bC(e,`label`),e.emphasis&&bC(e.emphasis,`label`))}function SC(e){if(DC(e)){_C(e),yC(e),bC(e,`label`),bC(e,`upperLabel`),bC(e,`edgeLabel`),e.emphasis&&(bC(e.emphasis,`label`),bC(e.emphasis,`upperLabel`),bC(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(_C(t),xC(t));var n=e.markLine;n&&(_C(n),xC(n));var r=e.markArea;r&&xC(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ie(a))for(var o=0;o<a.length;o++)xC(a[o]);k(e.categories,function(e){yC(e)})}if(i&&!ie(i))for(var o=0;o<i.length;o++)xC(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)xC(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)F(c[o])?(xC(c[o][0]),xC(c[o][1])):xC(c[o]);e.type===`gauge`?(bC(e,`axisLabel`),bC(e,`title`),bC(e,`detail`)):e.type===`treemap`?(vC(e.breadcrumb,`itemStyle`),k(e.levels,function(e){yC(e)})):e.type===`tree`&&yC(e.leaves)}}function CC(e){return F(e)?e:e?[e]:[]}function wC(e){return(F(e)?e[0]:e)||{}}function TC(e,t){EC(CC(e.series),function(e){DC(e)&&SC(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),EC(n,function(t){EC(CC(e[t]),function(e){e&&(bC(e,`axisLabel`),bC(e.axisPointer,`label`))})}),EC(CC(e.parallel),function(e){var t=e&&e.parallelAxisDefault;bC(t,`axisLabel`),bC(t&&t.axisPointer,`label`)}),EC(CC(e.calendar),function(e){vC(e,`itemStyle`),bC(e,`dayLabel`),bC(e,`monthLabel`),bC(e,`yearLabel`)}),EC(CC(e.radar),function(e){bC(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)}),EC(CC(e.geo),function(e){DC(e)&&(xC(e),EC(CC(e.regions),function(e){xC(e)}))}),EC(CC(e.timeline),function(e){xC(e),vC(e,`label`),vC(e,`itemStyle`),vC(e,`controlStyle`,!0);var t=e.data;F(t)&&k(t,function(e){z(e)&&(vC(e,`label`),vC(e,`itemStyle`))})}),EC(CC(e.toolbox),function(e){vC(e,`iconStyle`),EC(e.feature,function(e){vC(e,`iconStyle`)})}),bC(wC(e.axisPointer),`label`),bC(wC(e.tooltip).axisPointer,`label`)}var EC,DC,OC,kC=t((()=>{G(),Y(),EC=k,DC=z,OC=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function AC(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function jC(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 MC(e){e&&k(zC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function NC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<VC.length;n++){var r=VC[n][1],i=VC[n][0];t[r]!=null&&(t[i]=t[r])}}function PC(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function FC(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function IC(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function LC(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&LC(e[n].children,t)}function RC(e,t){TC(e,t),e.series=Ec(e.series),k(e.series,function(e){if(z(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),PC(e.label);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)PC(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=AC(e,`pointer.color`);i!=null&&jC(e,`itemStyle.color`,i)}else if(t===`bar`){NC(e),NC(e.backgroundStyle),NC(e.emphasis);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(NC(n[r]),NC(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)),FC(e),LC(e.data,FC)}else t===`graph`||t===`sankey`?IC(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&w(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),MC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),k(BC,function(t){var n=e[t];n&&(F(n)||(n=[n]),k(n,function(e){MC(e)}))})}var zC,BC,VC,HC=t((()=>{G(),kC(),Y(),zC=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],BC=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],VC=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function UC(e){var t=U();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(),k(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),WC(e))})}function WC(e){k(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=Ys(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var GC=t((()=>{G(),_c()})),KC,qC=t((()=>{Iu(),lg(),it(),KC=function(){function e(){this.group=new Fu,this.uid=ig(`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}(),qe(KC),$e(KC)}));function JC(e,t){return e.visualStyleMapper||ZC[t]||(console.warn(`Unknown style type '`+t+`'.`),ZC.itemStyle)}function YC(e,t){return e.visualDrawType||QC[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var XC,ZC,QC,$C,ew,tw,nw,rw=t((()=>{G(),ot(),jp(),Dp(),Np(),Y(),XC=Kc(),ZC={itemStyle:at(Op,!0),lineStyle:at(wp,!0)},QC={lineStyle:`stroke`,itemStyle:`fill`},$C={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=JC(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=YC(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)}}}},ew=new Mp,tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=JC(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){ew.option=n[r];var o=i(ew);C(e.ensureUniqueItemVisual(t,`style`),o),ew.option.decal&&(e.setItemVisual(t,`decal`,ew.option.decal),ew.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},nw={performRawSeries:!0,overallReset:function(e){var t=U();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),XC(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=XC(t).scope,o=YC(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}}}));function iw(e,t){t||={},w(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 Fu,r=new _s({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Ns({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 _s({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 jd({shape:{startAngle:-aw/2,endAngle:-aw/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:aw*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:aw*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 aw,ow=t((()=>{G(),ep(),Vv(),aw=Math.PI}));function sw(e){e.overallReset(e.ecModel,e.api,e.payload)}function cw(e){return e.overallProgress&&lw}function lw(){this.agent.dirty(),this.getDownstream().dirty()}function uw(){this.agent&&this.agent.dirty()}function dw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function fw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ec(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?A(t,function(e,t){return pw(t)}):vw}function pw(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 mw(e){return e.data.count()}function hw(e){xw=null;try{e(yw,bw)}catch{}return xw}function gw(e,t){for(var n in t.prototype)e[n]=xe}var _w,vw,yw,bw,xw,Sw=t((()=>{G(),xv(),lg(),oC(),lC(),Y(),_w=function(){function e(e,t,n,r){this._stageTaskMap=U(),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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=U();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;k(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});fe(!(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;k(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=U(),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)||vv({plan:dw,reset:fw,count:mw}));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||vv({reset:sw});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=U(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;fe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,k(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,vv({reset:cw,onDirty:uw})));n.context={model:e,overallProgress: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:hw(e)}),e.uid=ig(`stageHandler`),t&&(e.visualType=t),e},e}(),vw=pw(0),yw={},bw={},gw(yw,aC),gw(bw,cC),yw.eachSeriesByType=yw.eachRawSeriesByType=function(e){xw=e},yw.eachComponent=function(e){e.mainType===`series`&&e.subType&&(xw=e.subType)}})),$,Cw,ww,Tw,Ew,Dw=t((()=>{Vv(),$=Q.darkColor,Cw=$.background,ww=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Tw={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Ew={darkMode:!0,color:$.theme,backgroundColor:Cw,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}},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:Tw,y:Tw,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:ww(),logAxis:ww(),valueAxis:ww(),categoryAxis:ww(),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=ww();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}}}},Ew.categoryAxis.splitLine.show=!1})),Ow,kw=t((()=>{G(),it(),Ow=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(L(e)){var i=We(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};k(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}()})),Aw,jw,Mw,Nw,Pw=t((()=>{G(),Aw=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],jw=Aw.concat([`symbolKeepAspect`]),Mw={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<Aw.length;o++){var s=Aw[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}}},Nw={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<jw.length;r++){var i=jw[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function Fw(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);default:}}function Iw(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);default:}}function Lw(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);break;default:}}var Rw=t((()=>{}));function zw(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Bw=t((()=>{})),Vw,Hw,Uw,Ww=t((()=>{Vw=Math.round(Math.random()*9),Hw=typeof Object.defineProperty==`function`,Uw=function(){function e(){this._id=`__ec_inner_`+ Vw++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Hw?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 Gw(e){return isFinite(e)}function Kw(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=Gw(r)?r:0,i=Gw(i)?i:1,a=Gw(a)?a:0,o=Gw(o)?o:0,e.createLinearGradient(r,a,i,o)}function qw(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=Gw(o)?o:.5,s=Gw(s)?s:.5,c=c>=0&&Gw(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Jw(e,t,n){for(var r=t.type===`radial`?qw(e,t,n):Kw(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Yw(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 Xw(e){return parseInt(e,10)}function Zw(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]||Xw(s[r])||Xw(e.style[r]))-(Xw(s[a])||0)-(Xw(s[o])||0)|0}var Qw=t((()=>{}));function $w(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:R(e)?[e]:F(e)?e:null}function eT(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&$w(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=A(n,function(e){return e/i}),r/=i)}return[n,r]}var tT=t((()=>{G()}));function nT(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function rT(e){return typeof e==`string`&&e!==`none`}function iT(e){var t=e.fill;return t!=null&&t!==`none`}function aT(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 oT(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 sT(e,t,n){var r=gt(t.image,t.__image,n);if(vt(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)*ze),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function cT(e,t,n,r){var i,a=nT(n),o=iT(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||CT,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?Jw(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?Jw(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?sT(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?sT(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=eT(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&oT(e,n),o&&aT(e,n)):(o&&aT(e,n),a&&oT(e,n))),w&&e.setLineDash([])}function lT(e,t,n){var r=t.__image=gt(n.image,t.__image,t,t.onload);if(!(!r||!vt(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 uT(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=eT(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(nT(n)&&e.strokeText(i,n.x,n.y),iT(n)&&e.fillText(i,n.x,n.y)):(iT(n)&&e.fillText(i,n.x,n.y),nT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function dT(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){vT(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ja.opacity:o}(r||t.blend!==n.blend)&&(a||=(vT(e,i),!0),e.globalCompositeOperation=t.blend||ja.blend);for(var s=0;s<wT.length;s++){var c=wT[s];(r||t[c]!==n[c])&&(a||=(vT(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(vT(e,i),!0),e.shadowColor=t.shadowColor||ja.shadowColor),a}function fT(e,t,n,r,i){var a=yT(t,i.inHover),o=r?null:n&&yT(n,i.inHover)||{};if(a===o)return!1;var s=dT(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(vT(e,i),!0),rT(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(vT(e,i),!0),rT(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(vT(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||=(vT(e,i),!0),e.lineWidth=c)}for(var l=0;l<TT.length;l++){var u=TT[l],d=u[0];(r||a[d]!==o[d])&&(s||=(vT(e,i),!0),e[d]=a[d]||u[1])}return s}function pT(e,t,n,r,i){return dT(e,yT(t,i.inHover),n&&yT(n,i.inHover),r,i)}function mT(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 hT(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),mT(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function gT(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 _T(e){var t=iT(e),n=nT(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 vT(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function yT(e,t){return t&&e.__hoverStyle||e.style}function bT(e,t){xT(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xT(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||Yw(a,o))&&(o&&o.length&&(vT(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(vT(e,n),e.save(),hT(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Qo&&t.autoBatch&&_T(t.style);s||gT(i,l.transform)?(vT(e,n),mT(e,t)):u||vT(e,n);var d=yT(t,n.inHover);t instanceof Qo?(n.lastDrawType!==ET&&(c=!0,n.lastDrawType=ET),fT(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),cT(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof ts?(n.lastDrawType!==OT&&(c=!0,n.lastDrawType=OT),fT(e,t,l,c,n),uT(e,t,d)):t instanceof os?(n.lastDrawType!==DT&&(c=!0,n.lastDrawType=DT),pT(e,t,l,c,n),lT(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==kT&&(c=!0,n.lastDrawType=kT),ST(e,t,n)),u&&r&&vT(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function ST(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),xT(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),xT(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var CT,wT,TT,ET,DT,OT,kT,AT=t((()=>{Ra(),bo(),bt(),Qw(),$o(),ss(),ns(),G(),tT(),pa(),g(),CT=new yo(!0),wT=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],TT=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],ET=1,DT=2,OT=3,kT=4}));function jT(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&<.delete(e);var a=LT.get(e);if(a)return a;var o=w(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,LT.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<zT.length;++s){var c=o[zT[s]];if(c!=null&&!F(c)&&!L(c)&&!R(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=RT.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=NT(o.dashArrayX),f=PT(o.dashArrayY),p=MT(o.symbol),m=FT(d),g=IT(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&&RT.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=cc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=cc(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=Ey(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 bT(b,u)}}}}function MT(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 MT([e]);for(var r=[],n=0;n<e.length;++n)L(e[n])?r.push([e[n]]):r.push(e[n]);return r}function NT(e){if(!e||e.length===0)return[[0,0]];if(R(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!R(e[r])){n=!1;break}if(n)return NT([e]);for(var i=[],r=0;r<e.length;++r)if(R(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=A(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function PT(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(R(e)){var t=Math.ceil(e);return[t,t]}var n=A(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function FT(e){return A(e,function(e){return IT(e)})}function IT(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var LT,RT,zT,BT=t((()=>{Ww(),mt(),G(),_c(),Iy(),AT(),g(),LT=new Uw,RT=new pt(100),zT=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function VT(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=jT(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=jT(i,t)}}})}var HT=t((()=>{BT()})),UT,WT=t((()=>{aa(),UT=new ia}));function GT(e,t){qT[e]=t}function KT(e){return qT[e]}var qT,JT=t((()=>{qT={}}));function YT(e,t){XT[e]=t}var XT,ZT=t((()=>{XT={}}));function QT(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return eE(this,e,t)}}function $T(e){return function(){return eE(this,e,[...arguments])}}function eE(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ia.prototype[t].apply(e,n)}function tE(e,t,n){var r=!(n&&n.ssr);if(r){var i=aE(e);if(i)return i}var a=new bD(e,t,n);return a.id=`ec_`+ ND++,jD[a.id]=a,r&&Xc(e,FD,a.id),gD(a),UT.trigger(`afterinit`,a),a}function nE(e){if(F(e)){var t=e;e=null,k(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ PD++,k(t,function(t){t.group=e})}return MD[e]=!0,e}function rE(e){MD[e]=!1}function iE(e){L(e)?e=jD[e]:e instanceof bD||(e=aE(e)),e instanceof bD&&!e.isDisposed()&&e.dispose()}function aE(e){return jD[Zc(e,FD)]}function oE(e){return jD[e]}function sE(e,t){kD[e]=t}function cE(e){T(DD,e)<0&&DD.push(e)}function lE(e,t){yE(ED,e,t,jE)}function uE(e){fE(`afterinit`,e)}function dE(e){fE(`afterupdate`,e)}function fE(e,t){UT.on(e,t)}function pE(e,t,n){var r,i,a,o,s;I(t)&&(n=t,t=``),z(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;CD[r]||(fe(JE.test(r)&&JE.test(i)),a&&fe(i!==r),CD[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},TD[i]=1,a&&s&&(TD[l]=1),wD[l]=r)}function mE(e,t){Rh.register(e,t)}function hE(e){var t=Rh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function gE(e,t){YT(e,t)}function _E(e,t){yE(OD,e,t,NE,`layout`)}function vE(e,t){yE(OD,e,t,IE,`visual`)}function yE(e,t,n,r,i){if((I(t)||z(t))&&(n=t,t=r),!(T(LD,n)>=0)){LD.push(n);var a=_w.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function bE(e,t){AD[e]=t}function xE(e){c({createCanvas:e})}function SE(e,t,n){var r=KT(`registerMap`);r&&r(e,t,n)}function CE(e){var t=KT(`getMap`);return t&&t(e)}function wE(e,t,n,r){return{eventContent:{selected:Vl(n),isFromClick:t.isFromClick||!1}}}var TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD=t((()=>{o(),zS(),G(),Ue(),qx(),aa(),oC(),lC(),Vh(),gC(),HC(),GC(),wy(),qC(),qy(),ep(),ol(),uu(),Y(),db(),rw(),ow(),Sw(),Dw(),it(),kw(),Pw(),Rw(),wc(),mb(),Nv(),Bg(),Bw(),HT(),WT(),g(),JT(),ZT(),TE=`6.0.0`,EE={zrender:`6.0.0`},DE=1,OE=800,kE=900,AE=1e3,jE=2e3,ME=5e3,NE=1e3,PE=1100,FE=2e3,IE=3e3,LE=4e3,RE=4500,zE=4600,BE=5e3,VE=6e3,HE=7e3,UE={PROCESSOR:{FILTER:AE,SERIES_FILTER:OE,STATISTIC:ME},VISUAL:{LAYOUT:NE,PROGRESSIVE_LAYOUT:PE,GLOBAL:FE,CHART:IE,POST_CHART_LAYOUT:zE,COMPONENT:LE,BRUSH:BE,CHART_ITEM:RE,ARIA:VE,DECAL:HE}},WE=`__flagInMainProcess`,GE=`__mainProcessVersion`,KE=`__pendingUpdate`,qE=`__needsUpdateStatus`,JE=/^[a-zA-Z0-9_]+$/,YE=`__connectUpdateStatus`,XE=0,ZE=1,QE=2,$E=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ia),eD=$E.prototype,eD.on=$T(`on`),eD.off=$T(`off`),bD=function(e){i(t,e);function t(t,n,r){var i=e.call(this,new Ow)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[GE]=1,r.ssr&&NS(function(e){var t=X(e),n=t.dataIndex;if(n!=null){var r=U();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=DS(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:H(r.useDirtyRect,s),useCoarsePointer:H(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ab(W(c.flush,c),17),i._updateTheme(n),i._locale=jg(r.locale||zg),i._coordSysMgr=new Rh;var l=i._api=hD(i);function u(e,t){return e.__prio-t.__prio}return Wx(OD,u),Wx(ED,u),i._scheduler=new _w(i,l,ED,OD),i._messageCenter=new $E,i._initEvents(),i.resize=W(i.resize,i),c.animation.on(`frame`,i._onframe,i),uD(c,i),dD(c,i),me(i),i}return t.prototype._onframe=function(){if(!this._disposed){vD(this);var e=this._scheduler;if(this[KE]){var t=this[KE].silent;this[WE]=!0,yD(this);try{tD(this),iD.update.call(this,null,this[KE].updateParams)}catch(e){throw this[WE]=!1,this[KE]=null,e}this._zr.flush(),this[WE]=!1,this[KE]=null,cD.call(this,t),lD.call(this,t)}else if(e.unfinished){var n=DE,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),oD(this,r),e.performVisualTasks(r),mD(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>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[WE]){if(this._disposed){this.id;return}var r,i,a;if(z(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[WE]=!0,yD(this),!this._model||t){var o=new hC(this._api),s=this._theme,c=this._model=new aC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},DD);var l={seriesTransition:a,optionChanged:!0};if(n)this[KE]={silent:r,updateParams:l},this[WE]=!1,this.getZr().wakeUp();else{try{tD(this),iD.update.call(this,null,l)}catch(e){throw this[KE]=null,this[WE]=!1,e}this._ssr||this._zr.flush(),this[KE]=null,this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[WE]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[KE]&&(r??=this[KE].silent,i=this[KE].updateParams,this[KE]=null),this[WE]=!0,yD(this);try{this._updateTheme(e),n.setTheme(this._theme),tD(this),iD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[WE]=!1,e}this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype._updateTheme=function(e){L(e)&&(e=kD[e]),e&&(e=b(e),e&&RC(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||K.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 k(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;k(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 k(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(MD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();k(jD,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=DS(m,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:p}),t){var _=``;return k(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()}else return e.connectedBackgroundColor&&g.add(new _s({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),k(u,function(e){var t=new os({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`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return aD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return aD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return aD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return k(qc(n,e),function(e,n){n.indexOf(`Models`)>=0&&k(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=qc(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?Iw(i,t):Fw(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;k(SD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&zw(i,function(e){var t=X(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}else 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;k(TD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),pb(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()&&Xc(this.getDom(),FD,``);var e=this,t=e._api,n=e._model;k(e._componentsViews,function(e){e.dispose(n,t)}),k(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 jD[e.id]},t.prototype.resize=function(e){if(!this[WE]){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[KE]&&(r??=this[KE].silent,n=!0,this[KE]=null),this[WE]=!0,yD(this);try{n&&tD(this),iD.update.call(this,{type:`resize`,animation:C({duration:0},e&&e.animation)})}catch(e){throw this[WE]=!1,e}this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(z(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),AD[e]){var n=AD[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=wD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(z(t)||(t={silent:!!t}),CD[e.type]&&this._model){if(this[WE]){this._pendingActions.push(e);return}var n=t.silent;sD.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),cD.call(this,n),lD.call(this,n)}},t.prototype.updateLabelLayout=function(){UT.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(){tD=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),nD(e,!0),nD(e,!1),t.plan()},nD=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=We(e.type);u=new(t?KC.getClass(d.main,d.sub):Gy.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)}},rD=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){k([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=U(),k(Ec(c),function(e){var t=zc(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(Xl(n))if(t instanceof Cy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Fl(t,n,e._api);else{var r=Il(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Pl(t.mainType,t.componentIndex,e._api),a&&k(a,function(e){n.type===`highlight`?Tl(e):El(e)})}else Yl(n)&&t instanceof Cy&&(zl(t,n,e._api),Bl(t),_D(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},iD={prepareAndUpdate:function(e){tD(this),iD.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){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),oD(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),fD(this,r,i,e,n),UT.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=U();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),mD(this,r,i,e,{},o),UT.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Gy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),fD(this,n,this._api,e,{}),UT.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()}),Gy.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)}),UT.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){iD.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=qc(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}}aD=e,oD=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},sD=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=CD[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&We(s[0]);this[WE]=!0,yD(this);var u=[e],d=!1;e.batch&&(d=!0,u=A(e.batch,function(t){return t=w(C({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Yl(e),_=Xl(e);if(_&&Ml(this._api),k(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=Jc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;rD(n,c,t,u),_D(n)}else g?(rD(n,c,t,`series`),_D(n)):l&&rD(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[KE]?(tD(this),iD.update.call(this,e),this[KE]=null):iD[c].call(this,e)}catch(e){throw this[WE]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[WE]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;fe(z(y)),v=w({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)}},cD=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();sD.call(this,n,e)}},lD=function(e){!e&&this.trigger(`updated`)},uD=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[KE]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},dD=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=zw(n,ql);r&&(Ll(r,e,t._api),_D(t))}).on(`mouseout`,function(e){var n=e.target,r=zw(n,ql);r&&(Rl(r,e,t._api),_D(t))}).on(`click`,function(e){var n=e.target,r=zw(n,function(e){return X(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=X(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;Wx(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),k(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)})}}fD=function(e,t,r,i,a){n(t),pD(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive=!1}),mD(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},pD=function(e,t,n,r,i,a){k(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),s(i,e),l(i,e)})},mD=function(e,t,n,r,i,u){var d=e._scheduler;i=C(i||{},{updatedSeries:t.getSeries()}),UT.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),Bl(t)}),d.unfinished=f||d.unfinished,UT.trigger(`series:layoutlabels`,t,n,i),UT.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),UT.trigger(`series:afterupdate`,t,n,i)},_D=function(e){e[qE]=!0,e.getZr().wakeUp()},yD=function(e){e[GE]=(e[GE]+1)%1e3},vD=function(e){e[qE]&&(e.getZr().storage.traverse(function(e){af(e)||r(e)}),e[qE]=!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.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!K.node&&!K.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}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=Hf(e);t.eachRendered(function(e){return Wf(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!af(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(af(e))return;if(e instanceof Qo&&Zl(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)}})}hD=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){Tl(t,n),_D(e)},n.prototype.leaveEmphasis=function(t,n){El(t,n),_D(e)},n.prototype.enterBlur=function(t){Dl(t),_D(e)},n.prototype.leaveBlur=function(t){Ol(t),_D(e)},n.prototype.enterSelect=function(t){kl(t),_D(e)},n.prototype.leaveSelect=function(t){Al(t),_D(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.getMainProcessVersion=function(){return e[GE]},n}(cC))(e)},gD=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[YE]=t}}k(wD,function(n,r){e._messageCenter.on(r,function(n){if(MD[e.group]&&e[YE]!==XE){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];k(jD,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,XE),k(i,function(e){e[YE]!==ZE&&e.dispatchAction(r)}),t(i,QE)}})})}}(),t}(ia),xD=bD.prototype,xD.on=QT(`on`),xD.off=QT(`off`),xD.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)},SD=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],CD={},wD={},TD={},ED=[],DD=[],OD=[],kD={},AD={},jD={},MD={},ND=new Date-0,PD=new Date-0,FD=`_echarts_instance_`,ID=rE,LD=[],RD=Dv,vE(FE,$C),vE(RE,tw),vE(RE,nw),vE(FE,Mw),vE(RE,Nw),vE(HE,VT),cE(RC),lE(kE,UC),bE(`default`,iw),pE({type:iu,event:iu,update:iu},xe),pE({type:au,event:au,update:au},xe),pE({type:ou,event:lu,update:ou,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),pE({type:su,event:lu,update:su,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),pE({type:cu,event:lu,update:cu,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),sE(`default`,{}),sE(`dark`,Ew),zD={}}));function VD(e){if(F(e)){k(e,function(e){VD(e)});return}T(HD,e)>=0||(HD.push(e),I(e)&&(e={install:e}),e.install(UD))}var HD,UD,WD=t((()=>{BD(),qC(),qy(),av(),wy(),G(),JT(),zS(),ZT(),HD=[],UD={registerPreprocessor:cE,registerProcessor:lE,registerPostInit:uE,registerPostUpdate:dE,registerUpdateLifecycle:fE,registerAction:pE,registerCoordinateSystem:mE,registerLayout:_E,registerVisual:vE,registerTransform:RD,registerLoading:bE,registerMap:SE,registerImpl:GT,PRIORITY:UE,ComponentModel:Z,ComponentView:KC,SeriesModel:Cy,ChartView:Gy,registerComponentModel:function(e){Z.registerClass(e)},registerComponentView:function(e){KC.registerClass(e)},registerSeriesModel:function(e){Cy.registerClass(e)},registerChartView:function(e){Gy.registerClass(e)},registerCustomSeries:function(e,t){YT(e,t)},registerSubTypeDefaulter:function(e,t){Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){jS(e,t)}}})),GD,KD=t((()=>{GD=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function qD(e){return z(e)&&e.value!=null?e.value:e+``}var JD,YD,XD=t((()=>{G(),JD=0,YD=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++JD,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&A(r,qD);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||=U(this.categories)},e}()})),ZD=null;function QD(){return ZD}function $D(e,t,n,r,i){var a={},o=a.interval=tc(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=eO(o);return nO(a.niceTickExtent=[Hs(Math.ceil(e[0]/o)*o,s),Hs(Math.floor(e[1]/o)*o,s)],e),a}function eO(e){return Ws(e)+2}function tO(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function nO(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),tO(e,0,t),tO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function rO(e,t){return e>=t[0]&&e<=t[1]}function iO(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function aO(e,t){return e*(t[1]-t[0])+t[0]}function oO(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var sO,cO=t((()=>{_c(),G(),sO=function(){function e(){this.normalize=iO,this.scale=aO}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=W(e.normalize,e),this.scale=W(e.scale,e)):(this.normalize=iO,this.scale=aO)},e}()})),lO,uO=t((()=>{it(),cO(),G(),Ug(),lO=function(){function e(e){this._calculator=new sO,this._setting=e||{},this._extent=[1/0,-1/0];var t=Vg();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=Vg();t&&this._innerSetBreak(t.parseAxisBreakOption(e,W(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),$e(lO)})),dO,fO=t((()=>{o(),uO(),XD(),cO(),G(),dO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new YD({}),F(r)&&(r=new YD({categories:A(r,function(e){return z(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:L(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return rO(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return 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=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(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(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(lO),lO.registerClass(dO)})),pO,mO,hO=t((()=>{o(),_c(),V_(),uO(),cO(),Ug(),pO=Hs,mO=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return rO(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=eO(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Vg(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]<r[0]&&(e.expandToNicedExtent?o.push({value:pO(r[0]-t,i)}):o.push({value:n[0]}));for(var c=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(o.push({value:l}),l=pO(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=pO(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:pO(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1];if(!(o.break||a.break)){for(var s=0,c=[],l=(a.value-o.value)/e,u=eO(l);s<e-1;){var d=pO(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=Vg();f&&f.pruneTicksByBreak(`auto`,c,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Ws(e.value)||0:n===`auto`&&(n=this._intervalPrecision),k_(pO(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var a=$D(r,i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,a=this._intervalPrecision;e.fixMin||(t[0]=pO(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=pO(Math.ceil(t[1]/i)*i,a)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}(lO),lO.registerClass(mO)}));function gO(e,t,n,r){return $g(new Date(t),e,r).getTime()===$g(new Date(n),e,r).getTime()}function _O(e,t){return e/=__,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function vO(e){var t=30*__;return e/=t,e>6?6:e>3?3:e>2?2:1}function yO(e){return e/=g_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function bO(e,t){return e/=t?h_:m_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function xO(e){return tc(e,!0)}function SO(e,t,n){var r=Math.max(0,T(w_,t)-1);return $g(new Date(e),w_[r],n).getTime()}function CO(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 wO(e,t,n,r,i,a){var o=1e4,s=T_,c=0;function l(e,t,n,i,s,l,u){for(var d=CO(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!gO(qg(e),r[0],r[1],n)){s&&(i=[{value:SO(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+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/__/365)),p=e_(n),m=s_(n);break;case`half-year`:case`quarter`:case`month`:f=vO(t),p=t_(n),m=c_(n);break;case`week`:case`half-week`:case`day`:f=_O(t,31),p=n_(n),m=l_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=yO(t),p=r_(n),m=u_(n);break;case`minute`:f=bO(t,!0),p=i_(n),m=d_(n);break;case`second`:f=bO(t,!1),p=a_(n),m=f_(n);break;case`millisecond`:f=xO(t),p=o_(n),m=p_(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=qg(s[h]);if(Jg(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?qg(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=M(A(d,function(e){return M(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=Qg(w[T].value,n);S.push({value:w[T].value,time:{level:C-h,upperTimeUnit:E,lowerTimeUnit:E}})}S.sort(function(e,t){return e.value-t.value});for(var D=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&D.push(S[h]);return D}var TO,EO,DO,OO=t((()=>{o(),_c(),E_(),cO(),hO(),uO(),G(),Ug(),TO=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},EO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return Xg(e.value,C_[Yg(qg(this._minLevelUnit))]||C_.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return Zg(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=Vg(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return Vg().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=Qg(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=wO(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=Qg(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=w_.length-1,d=0;return k(i,function(e){u=Math.min(u,T(w_,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&Vg().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&Vg().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(T(w_,Qg(e.vmin,l)),T(w_,Qg(e.vmax,l))),n=0,r=0;r<w_.length;r++)if(!gO(w_[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:w_[Math.max(i,t)],upperTimeUnit:w_[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=__,t[1]+=__),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-__}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10,this._approxInterval=this._getExtentSpanWithBreaks()/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var r=DO.length,i=Math.min(TO(DO,this._approxInterval,0,r),r-1);this._interval=DO[i][1],this._intervalPrecision=eO(this._interval),this._minLevelUnit=DO[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return R(e)?e:+Qs(e)},t.prototype.contain=function(e){return rO(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(mO),DO=[[`second`,m_],[`minute`,h_],[`hour`,g_],[`quarter-day`,g_*6],[`half-day`,g_*12],[`day`,__*1.2],[`half-week`,__*3.5],[`week`,__*7],[`month`,__*31],[`quarter`,__*95],[`half-year`,v_/2],[`year`,v_]],lO.registerClass(EO)}));function kO(e,t){return AO(e,Ws(t))}var AO,jO,MO,NO,PO,FO,IO=t((()=>{o(),G(),uO(),_c(),hO(),cO(),Ug(),AO=Hs,jO=Math.floor,MO=Math.ceil,NO=Math.pow,PO=Math.log,FO=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new mO,t}return t.prototype.getTicks=function(t){t||={};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),a=this.base,o=this._originalScale._innerGetBreaks(),s=Vg();return A(i,function(e){var t=e.value,i=null,c=NO(a,t);t===n[0]&&this._fixMin?i=r[0]:t===n[1]&&this._fixMax&&(i=r[1]);var l;if(s){var u=s.getTicksLogTransformBreak(e,a,o,kO);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=kO(c,i)),{value:c,break:l}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=oO(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=NO(t,n[0]),n[1]=NO(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=kO(n[0],r[0])),this._fixMax&&(n[1]=kO(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=oO(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=$s(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[AO(MO(t[0]/r)*r),AO(jO(t[1]/r)*r)];this._interval=r,this._intervalPrecision=eO(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=PO(t)/PO(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=PO(t)/PO(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),NO(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Vg();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,W(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(mO),lO.registerClass(FO)}));function LO(e,t,n){var r=e.rawExtentInfo;return r||(r=new zO(e,t,n),e.rawExtentInfo=r,r)}function RO(e,t){return t==null?null:se(t)?NaN:e.parse(t)}var zO,BO,VO,HO=t((()=>{G(),fn(),zO=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;I(a)?this._modelMinNum=RO(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=RO(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(I(o)?this._modelMaxNum=RO(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=RO(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=F(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[sn(c[0],1),sn(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=se(o)||se(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[VO[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=BO[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),BO={min:`_determinedMin`,max:`_determinedMax`},VO={min:`_dataMin`,max:`_dataMax`}}));function UO(e,t){var n=e.type,r=LO(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=Xy(`bar`,o),c=!1;if(k(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=Qy(s),u=WO(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function WO(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=eb(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;k(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function GO(e,t){var n=t,r=UO(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof FO&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(QO(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function KO(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new dO({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new EO({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((lO.getClass(t))||mO)}}function qO(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Wg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(L(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(I(t)){if(e.type===`category`)return function(n,r){return t(JO(e,n),n.value-e.scale.getExtent()[0],null)};var r=Vg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(JO(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function JO(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function YO(e){return e.get(`interval`)??`auto`}function XO(e){return e.type===`category`&&YO(e.getLabelModel())===0}function ZO(e){return e===`middle`||e===`center`}function QO(e){var t=e.get(`breaks`,!0);if(t!=null)return!Vg()||!$O(e.axis)?void 0:t}function $O(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var ek=t((()=>{G(),fO(),hO(),uO(),ib(),OO(),IO(),HO(),E_(),Ug()}));function tk(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function nk(e,t){var n=A(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function rk(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=qO(e),i=e.scale.getExtent();return{labels:A(M(nk(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?ak(e,t):ck(e)}function ik(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:M(nk(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?sk(e,t):{ticks:A(e.scale.getTicks(n),function(e){return e.value})}}function ak(e,t){var n=e.getLabelModel(),r=ok(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function ok(e,t,n){var r=Ck(e),i=YO(t),a=n.kind===xk.estimate;if(!a){var o=uk(r,i);if(o)return o}var s,c;I(i)?s=vk(e,i):(c=i===`auto`?fk(e,n):i,s=_k(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return dk(r,i,l),!0}):dk(r,i,l),l}function sk(e,t){var n=Sk(e),r=YO(t),i=uk(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),I(r))a=vk(e,r,!0);else if(r===`auto`){var s=ok(e,e.getLabelModel(),tk(xk.determine));o=s.labelCategoryInterval,a=A(s.labels,function(e){return e.tickValue})}else o=r,a=_k(e,o,!0);return dk(n,r,{ticks:a,tickCategoryInterval:o})}function ck(e){var t=e.scale.getTicks(),n=qO(e);return{labels:A(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}function lk(e){return function(t){return bk(t)[e]||(bk(t)[e]={list:[]})}}function uk(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function dk(e,t,n){return e.list.push({key:t,value:n}),n}function fk(e,t){if(t.kind===xk.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return bk(e).autoInterval=n,!0}),n}return bk(e).autoInterval??(bk(e).autoInterval=e.calculateCategoryInterval(t))}function pk(e,t){var n=t.kind,r=gk(e),i=qO(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=nn(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===xk.estimate?(t.out.noPxChangeTryDetermine.push(W(mk,null,e,S,c)),S):hk(e,S,c)??S}function mk(e,t,n){return hk(e,t,n)==null}function hk(e,t,n){var r=yk(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 gk(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 _k(e,t,n){var r=qO(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=XO(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function vk(e,t,n){var r=e.scale,i=qO(e),a=[];return k(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var yk,bk,xk,Sk,Ck,wk=t((()=>{G(),fn(),Y(),ek(),yk=Kc(),bk=Kc(),xk={estimate:1,determine:2},Sk=lk(`axisTick`),Ck=lk(`axisLabel`)}));function Tk(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function Ek(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;k(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=Hs(e),t=Hs(t),d?e>t:e<t}}var Dk,Ok,kk=t((()=>{G(),_c(),wk(),Dk=[0,1],Ok=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.getPixelPrecision=function(e){return Ks(e||this.scale.getExtent(),this._extent)},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._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),Tk(n,r.count())),zs(e,Dk,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),Tk(n,r.count()));var i=zs(e,n,Dk,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=ik(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=A(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return Ek(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),A(this.scale.getMinorTicks(e),function(e){return A(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=tk(xk.determine),rk(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(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=tk(xk.determine),pk(this,e)},e}()})),Ak=`expandAxisBreak`;G(),ep(),ol(),vp(),Np(),_c(),Iy(),jt(),lr(),ek(),nx(),Y(),Ug(),Xt(),Mt(),br(),wk();var jk=Math.PI,Mk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Nk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Pk=Kc(),Fk=Kc(),Ik=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 Lk(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=sA(e.axisName)&&ZO(e.nameLocation);k(r,function(e){var t=Vb(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?kt(Rk,n.transform):Ct(Rk),t.transform&&Tt(Rk,Rk,t.transform),J.copy(zk,t.localRect),zk.applyTransform(Rk),s?s.union(zk):J.copy(s=new J(0,0,0,0),zk))}});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 J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Rk=St(),zk=new J(0,0,0,0),Bk=function(e,t,n,r,i,a){if(ZO(e.nameLocation)){var o=a.stOccupiedRect;o&&Vk(Ub({},o,a.transGroup.transform),r,i)}else Hk(a.labelInfoList,a.dirVec,r,i)};function Vk(e,t,n){var r=new q;Xb(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Wb(t,r)}function Hk(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||Vk(s,n,r)}}var Uk=function(){function e(e,t,n,r){this.group=new Fu,this._axisModel=e,this._api=t,this._local={},this._shared=r||new Ik(Bk),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=H(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=H(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:H(e.nameDirection,1),tickDirection:H(e.tickDirection,1),labelDirection:H(e.labelDirection,1),labelOffset:H(e.labelOffset,0),silent:H(e.silent,!0),axisName:r,nameLocation:le(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:sA(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Fu({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 q(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},k(Wk,function(r){e[r]&&Gk[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=Xs(t-e),i,a;return Zs(r)?(a=n>0?`top`:`bottom`,i=`center`):Zs(r-jk)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<jk?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}(),Wk=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Gk={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&&(nr(u,u,l),nr(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`])&&r.axis.scale.hasBreaks())QD().buildAxisBreakLine(r,i,a,m);else{var h=new Cd(C({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));yf(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(_)||R(_))&&(_=[_,_]);var v=Dy(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];k([{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=Ey(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){eA(t,i,s)&&Kk(e,t,n,r,i,a,o,xk.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){eA(t,i,s)&&Kk(e,t,n,r,i,a,o,xk.determine);var c=Qk(e,i,a,r);Yk(e,t.labelLayoutList,c),$k(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(sA(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 q(0,0),_=new q(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=St();_.transform(Dt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*jk/180);var b,x;ZO(u)?b=Uk.innerTextLayout(e.rotation,y??e.rotation,d):(b=qk(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=ce(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Ns({x:g.x,y:g.y,rotation:b.rotation,silent:Uk.isLabelSilent(r),style:ap(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(If({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Uk.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,X(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=Vb({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ZO(u)?Mk[E]:Nk[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 Kk(e,t,n,r,i,a,o,s){nA(t)||tA(e,t,i,s,r,o);var c=t.labelLayoutList;iA(e,r,c,a),lA(r,e.rotation,c);var l=e.optionHideOverlap;Jk(r,c,l),l&&Yb(M(c,function(e){return e&&!e.label.ignore})),Lk(e,n,r,c)}function qk(e,t,n,r){var i=Xs(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Zs(i-jk/2)?(o=c?`bottom`:`top`,a=`center`):Zs(i-jk*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<jk*1.5&&i>jk/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Jk(e,t,n){if(XO(e.axis))return;function r(e,r,i){var a=Vb(t[r]),o=Vb(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){Xk(a.label);return}if(o.suggestIgnore){Xk(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=Gb({marginForce:c},a),o=Gb({marginForce:c},o)}Xb(a,o,null,{touchThreshold:s})&&Xk(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function Yk(e,t,n){e.showMinorTicks||k(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=Fk(r),a=Pk(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){Xk(r);return}}})}function Xk(e){e&&(e.ignore=!0)}function Zk(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&&(nr(o,o,t),nr(s,s,t));var u=new Cd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});yf(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=Fk(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Qk(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=Zk(i.getTicksCoords(),n.transform,c,w(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function $k(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=w(c.getLineStyle(),w(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Zk(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function eA(e,t,n){if(nA(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),rA(e,null,null,null))}return!0}function tA(e,t,n,r,i,a){var o=i.axis,s=ce(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Fu;n.add(c);var l=tk(r);if(!s||o.scale.isBlank()){rA(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ce(e.raw.labelRotate,u.get(`rotate`))||0)*jk/180,p=Uk.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;k(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];z(f)&&f.textStyle&&(l=new Mp(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=H(l.getShallow(`alignMinLabel`,!0),b),S=H(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=H(l.getShallow(`verticalAlignMinLabel`,!0),C),T=H(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new Ns({x:0,y:0,rotation:0,silent:Uk.isLabelSilent(i),z2:E,style:ap(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:I(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=Pk(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,If({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=Uk.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),X(D).eventData=k,e.break&&cA(i,a,D,e.break)}h.push(D),c.add(D)}),rA(t,A(h,function(e){return{label:e,priority:Pk(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function nA(e){return!!e.labelLayoutList}function rA(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function iA(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);k(n,function(n,a){var o=Vb(n);if(o){var s=o.label,c=Pk(s);o.suggestIgnore=s.ignore,s.ignore=!1,dr(aA,oA),aA.x=t.axis.dataToCoord(c.tickValue),aA.y=e.labelOffset+e.labelDirection*i,aA.rotation=c.layoutRotation,r.add(aA),aA.updateTransform(),r.remove(aA),aA.decomposeTransform(),dr(s,aA),s.markRedraw(),zb(o,!0),Vb(o)}})}var aA=new _s,oA=new _s;function sA(e){return!!e}function cA(e,t,n,r){n.on(`click`,function(n){var i={type:Ak,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function lA(e,t,n){var r=Vg();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&Pk(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&k(i,function(r){QD().adjustBreakLabelPair(e.axis.inverse,t,[Vb(n[r[0]]),Vb(n[r[1]])])})}}G();function uA(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),ce(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}Np(),G();function dA(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fA(n,e,t),n.seriesInvolved&&mA(n,e),n}function fA(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];k(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=xA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(k(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)&&k(f.baseAxes,P(p,d?`cross`:!0,u)),d&&k(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&&!bA(d))){s??=d.get(`triggerTooltip`),d=r?pA(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=xA(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:bA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=hA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function pA(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};k(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&&w(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Mp(c,n,r))}function mA(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||k(e.coordSysAxesInfo[xA(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 hA(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(gA(a[r+`AxisId`],n.id)||gA(a[r+`AxisIndex`],n.componentIndex)||gA(a[r+`AxisName`],n.name))return i}}function gA(e,t){return e===`all`||F(e)&&T(e,t)>=0||e===t}function _A(e){var t=vA(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=bA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(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 vA(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[xA(e)]}function yA(e){var t=vA(e);return t&&t.axisPointerModel}function bA(e){return!!e.get([`handle`,`show`])}function xA(e){return e.type+`||`+e.id}o(),qC();var SA={},CA=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&&_A(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=yA(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){SA[e]=t},t.getAxisPointerClass=function(e){return e&&SA[e]},t.type=`axis`,t}(KC);BD(),G(),Y();var wA=Kc();function TA(e,t){return!!wA(e)[t]}pE({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},xe),ep();var EA={axisPointer:1,tooltip:1,brush:1};function DA(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||EA.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Hf(r),o=Hf(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}o(),aa(),vx(),G(),Y(),ep();var OA=function(e){i(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=W(n._mousedownHandler,n),i=W(n._mousemoveHandler,n),a=W(n._mouseupHandler,n),o=W(n._mousewheelHandler,n),s=W(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Hf(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:H(c.z2,-1/0)},p=C({},n.triggerInfo);this._opt=w(C({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(MA(t,`mousedown`,r,f),MA(t,`mousemove`,i,f),MA(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(MA(t,`mousewheel`,o,f),MA(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,NA(t,`mousedown`,r),NA(t,`mousemove`,i),NA(t,`mouseup`,a),NA(t,`mousewheel`,o),NA(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(DA(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`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(px(e)||kA(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`||TA(t,`globalPan`)||kA(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!LA(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&_x(e.event),e.__ecRoamConsumed=!0,IA(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!kA(e)){var t=this._zr;if(!px(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!kA(e)){var t=LA(`zoomOnMouseWheel`,e,this._opt),n=LA(`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(!(TA(this._zr,`globalPan`)||kA(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)&&(_x(r.event),r.__ecRoamConsumed=!0,IA(e,t,n,r,i))},t}(ia);function kA(e){return e.__ecRoamConsumed}var AA=Kc();function jA(e){var t=AA(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function MA(e,t,n,r){for(var i=jA(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}),PA(e,t)}function NA(e,t,n){for(var r=jA(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||FA(e,t);return}}function PA(e,t){var n=jA(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 FA(e,t){var n=jA(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function IA(e,t,n,r,i){i.isAvailableBehavior=W(LA,null,n,r),e.trigger(t,i)}function LA(e,t,n){var r=n[e];return!e||r&&(!L(r)||t.event[r+`Key`])}function RA(e,t){return Math.abs(e-t)<BA}function zA(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+=No(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!RA(i[0],s[0])||!RA(i[1],s[1]))&&(r+=No(i[0],i[1],s[0],s[1],t,n)),r!==0}var BA,VA=t((()=>{Po(),BA=1e-8}));function HA(e,t){for(var n=0;n<e.length;n++)nr(e[n],e[n],t)}function UA(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])&&(rr(t,t,a),ir(n,n,a))}}function WA(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 GA,KA,qA,JA,YA,XA=t((()=>{o(),Xt(),lr(),VA(),jt(),G(),GA=[],KA=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}(),qA=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),JA=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),YA=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 WA(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 k(i,function(t){t.type===`polygon`?UA(t.exterior,n,r,e):k(t.points,function(t){UA(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 J(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(zA(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(zA(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 J(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(HA(u.exterior,s),k(u.interiors,function(e){HA(e,s)})):k(u.points,function(e){HA(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}(KA),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=Ct(GA),i=e;i&&!i.isGeoSVGGraphicRoot;)Tt(r,i.getLocalTransform(),r),i=i.parent;return kt(r,r),nr(n,n,r),n},t}(KA)}));function ZA(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return k(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=$A(i,r,n);break;case`Polygon`:QA(i,r,n);break;case`MultiLineString`:QA(i,r,n);break;case`MultiPolygon`:k(i,function(e,t){return QA(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function QA(e,t,n){for(var r=0;r<e.length;r++)e[r]=$A(e[r],t[r],n)}function $A(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 ej(e,t){return e=ZA(e),A(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 qA(a[0],a.slice(1)));break;case`MultiPolygon`:k(r.coordinates,function(e){e[0]&&i.push(new qA(e[0],e.slice(1)))});break;case`LineString`:i.push(new JA([r.coordinates]));break;case`MultiLineString`:i.push(new JA(r.coordinates))}var o=new YA(n[t||`name`],i,n.cp);return o.properties=n,o})}var tj=t((()=>{G(),XA()}));G(),Y();var nj=Kc();function rj(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,uj(t,n,e),k(n,function(n){k(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,P(ij,e))})}),t.wrapMethod(`cloneShallow`,P(oj,e)),k(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,P(aj,e))}),fe(n[t.dataType]===t)}function ij(e,t){if(lj(this)){var n=C({},nj(this).datas);n[this.dataType]=t,uj(t,n,e)}else dj(t,this.dataType,nj(this).mainData,e);return t}function aj(e,t){return e.struct&&e.struct.update(),t}function oj(e,t){return k(nj(t).datas,function(n,r){n!==t&&dj(n.cloneShallow(),r,t,e)}),t}function sj(e){var t=nj(this).mainData;return e==null||t==null?t:nj(t).datas[e]}function cj(){var e=nj(this).mainData;return e==null?[{data:e}]:A(N(nj(e).datas),function(t){return{type:t,data:nj(e).datas[t]}})}function lj(e){return nj(e).mainData===e}function uj(e,t,n){nj(e).datas={},k(t,function(t,r){dj(t,r,e,n)})}function dj(e,t,n,r){nj(n).datas[t]=e,nj(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=sj,e.getLinkedDataAll=cj}G(),Oh(),Ph(),Y();var fj=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}(),pj=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 fj(zc(e.name,``),i);t?mj(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=Ah(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new Dh(c,n);return l.initData(a),r&&r(l),rj({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function mj(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}G();function hj(e,t,n){if(e&&T(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 gj(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function _j(e,t){return T(gj(e),t)>=0}function vj(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}G();var yj=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function bj(e){for(var t=0;t<yj.length;t++)e.registerAction({type:yj[t],update:`updateView`},xe);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=hj(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=_j(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}pv();function xj(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=ov(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}o(),G(),wy(),Np(),Y(),ly(),Vv();var Sj=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};Cj(n);var r=e.levels||[],i=new Mp({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=wj(r,t);var a=A(r||[],function(e){return new Mp(e,i,t)},this),o=pj.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Wv(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=vj(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=U(),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(){xj(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:.32*.32,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}(Cy);function Cj(e){var t=0;k(e.children,function(e){Cj(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 wj(e,t){var n=Ec(t.get(`color`)),r=Ec(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;k(e,function(e){var t=new Mp(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]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}ep(),ol(),nv(),G(),Y(),uu(),vp();var Tj=8,Ej=8,Dj=5,Oj=function(){function e(e){this.group=new Fu,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=G_(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=W_(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),K_(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=zc(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+Tj*2,t.emptyItemWidth);t.totalWidth+=o+Ej,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 gd({shape:{points:kj(c,0,_,u,m===f.length-1,m===0)},style:w(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Ns({style:ap(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:P(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=ap(o,{text:v}),y.ensureState(`emphasis`).style=p,Wl(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),Aj(y,e,g),c+=_+Ej}},e.prototype.remove=function(){this.group.removeAll()},e}();function kj(e,t,n,r,i,a){var o=[[i?e:e-Dj,t],[e+n,t],[e+n,t+r],[i?e:e-Dj,t+r]];return!a&&o.splice(2,0,[e+n+Dj,t+r/2]),!i&&o.push([e,t+r/2]),o}function Aj(e,t,n){X(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&&vj(n,t)}}var jj=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(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 Mj(){return new jj}o(),G(),ep(),ol(),uu(),Lp(),Xt(),jt(),ot(),qy(),Ra(),Y(),V_(),vp();var Nj=Fu,Pj=_s,Fj=3,Ij=`label`,Lj=`upperLabel`,Rj=100,zj=20,Bj=30,Vj=at([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),Hj=function(e){var t=Vj(e);return t.stroke=t.fill=t.lineWidth=null,t},Uj=Kc(),Wj=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=Gj(),n}return t.prototype.render=function(e,t,n,r){if(!(T(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=hj(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 Nj,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=Gj(),o=Gj(),s=this._storage,c=[];function l(e,r,i,l){return Kj(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,k(e,function(e,t){!e.isRemoved()&&o(t,t)})):new Ip(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&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=Gj();return e&&k(e,function(e,n){var r=t[n];k(e,function(e){e&&(r.push(e),Uj(e).willDelete=!0)})}),t}function h(){k(u,function(e){k(e,function(e){e.parent&&e.parent.remove(e)})}),k(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=Mj();k(t.willDeleteEls,function(e,t){k(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=Uj(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)}})}),k(this._storage,function(e,n){k(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof Fu?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(W(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this._controller,r=this._controllerHost;r||=(this._controllerHost={target:this.group},this._controllerHost);var i=this.seriesModel;n||(n=this._controller=new OA(e.getZr()),n.on(`pan`,W(this._onPan,this)),n.on(`zoom`,W(this._onZoom,this))),n.enable(i.get(`roam`),{api:e,zInfo:{component:i},triggerInfo:{roamTrigger:i.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}}),r.zoomLimit=i.get(`scaleLimit`),r.zoom=i.get(`zoom`)},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>Fj||Math.abs(e.dy)>Fj)){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;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=St();Et(m,m,[-t,-n]),Ot(m,m,[f,f]),Et(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(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&&L_(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 Oj(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(_j(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gj(),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}(Gy);function Gj(){return{nodeGroup:[],background:[],content:[]}}function Kj(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=z(`nodeGroup`,Nj);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),Uj(O).nodeWidth=p,Uj(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=z(`background`,Pj,l,zj);k&&F(O,k,x&&u.upperLabelHeight);var A=f.getModel(`emphasis`),j=A.get(`focus`),M=A.get(`blurScope`),ee=A.get(`disabled`),N=j===`ancestor`?o.getAncestorsIndices():j===`descendant`?o.getDescendantIndices():j;if(x)ql(O)&&Kl(O,!1),k&&(Kl(k,!ee),d.setItemGraphicEl(o.dataIndex,k),Gl(k,N,M));else{var te=z(`content`,Pj,l,Bj);te&&I(O,te),k.disableMorphing=!0,k&&ql(k)&&Kl(k,!1),Kl(O,!ee),d.setItemGraphicEl(o.dataIndex,O);var P=f.getShallow(`cursor`);P&&te.attr(`cursor`,P),Gl(O,N,M)}return O;function F(t,n,r){var i=X(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)L(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=Hj(S);c.fill=s;var l=Vj(w);l.fill=w.get(`borderColor`);var u=Vj(T);u.fill=T.get(`borderColor`);var d=Vj(E);if(d.fill=E.get(`borderColor`),r){var f=p-2*h;ne(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,Sl(n)}t.add(n)}function I(t,n){var r=X(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)L(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=Hj(S);l.fill=c,l.decal=s.decal;var u=Vj(w),d=Vj(T),f=Vj(E);ne(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Sl(n)}t.add(n)}function L(e){!e.invisible&&a.push(e)}function ne(t,n,r,i){var a=f.getModel(i?Lj:Ij),s=zc(f.get(`name`),null),c=a.getShallow(`show`);rp(t,ip(f,i?Lj:Ij),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=de(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`,R(d,i,u);var m=l.getState(`emphasis`);R(m?m.style:null,i,u)}}function R(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 z(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,re(c,s)):g||(s=new r,s instanceof Fa&&(s.z2=qj(a,o)),ie(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof Nj?(n.oldX=t.x,n.oldY=t.y):n.oldShape=C({},t.shape)}function ie(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Fu;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 qj(e,t){return e*Rj+t}G(),Ai(),_c();var Jj=k,Yj=z,Xj=-1,Zj=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=b(t);this.type=r,this.mappingMethod=n,this._normalizeData=lM[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(eM(i),Qj(i)):n===`category`?i.categories?$j(i):eM(i,!0):(fe(n!==`linear`||i.dataExtent),eM(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return W(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){z(e)?k(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=F(t)?[]:z(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&&Jj(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(Yj(e)){var t=[];Jj(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(uM(u[1],e,l[1]))return a}else if(l[1]===1/0){if(uM(u[0],l[0],e))return a}else if(uM(u[0],l[0],e)&&uM(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:rM(`color`),getColorMapper:function(){var e=this.option;return W(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),iM.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=gi(t,e.parsedVisual,r),i?r:bi(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return bi(gi(e,this.option.parsedVisual),`rgba`)},category:iM,piecewise:function(e,t){var n=sM.call(this,t);return n??=bi(gi(e,this.option.parsedVisual),`rgba`),n},fixed:aM}},colorHue:tM(function(e,t){return vi(e,t)}),colorSaturation:tM(function(e,t){return vi(e,null,t)}),colorLightness:tM(function(e,t){return vi(e,null,null,t)}),colorAlpha:tM(function(e,t){return yi(e,t)}),decal:{applyVisual:rM(`decal`),_normalizedToVisual:{linear:null,category:iM,piecewise:null,fixed:null}},opacity:{applyVisual:rM(`opacity`),_normalizedToVisual:oM([0,1])},liftZ:{applyVisual:rM(`liftZ`),_normalizedToVisual:{linear:aM,category:aM,piecewise:aM,fixed:aM}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:nM,category:iM,piecewise:function(e,t){var n=sM.call(this,t);return n??=nM.call(this,e),n},fixed:aM}},symbolSize:{applyVisual:rM(`symbolSize`),_normalizedToVisual:oM([0,1])}},e}();function Qj(e){var t=e.pieceList;e.hasSpecialVisual=!1,k(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function $j(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Jj(t,function(e,t){n[e]=t}),!F(r)){var i=[];z(r)?Jj(r,function(e,t){var r=n[t];i[r??Xj]=e}):i[Xj]=r,r=cM(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function eM(e,t){var n=e.visual,r=[];z(n)?Jj(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]),cM(e,r)}function tM(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:oM([0,1])}}function nM(e){var t=this.option.visual;return t[Math.round(zs(e,[0,1],[0,t.length-1],!0))]||{}}function rM(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function iM(e){var t=this.option.visual;return t[this.option.loop&&e!==Xj?e%t.length:e]}function aM(){return this.option.visual[0]}function oM(e){return{linear:function(t){return zs(t,e,this.option.visual,!0)},category:iM,piecewise:function(t,n){var r=sM.call(this,n);return r??=zs(t,e,this.option.visual,!0),r},fixed:aM}}function sM(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[Zj.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function cM(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=A(t,function(e){return di(e)||[0,0,0,1]})),t}var lM={linear:function(e){return zs(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Zj.findPieceIndex(e,t,!0);if(n!=null)return zs(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??Xj},fixed:xe};function uM(e,t,n){return e?t<=n:t<n}G(),Ai(),Y();var dM=`itemStyle`,fM=Kc(),pM={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||mM(t,{},e.getViewRoot().getAncestors(),e)}};function mM(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(dM),c=hM(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=gM(c),u=_M(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=gM(c),l.fill=f;else{var m=yM(e,i,a,s,c,p);k(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&mM(e,xM(i,c,e,t,m,r),n,r)})}}}function hM(e,t,n){var r=C({},t),i=n.designatedVisualItemStyle;return k([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function gM(e){var t=vM(e,`color`);if(t){var n=vM(e,`colorAlpha`),r=vM(e,`colorSaturation`);return r&&(t=vi(t,null,null,r)),n&&(t=yi(t,n)),t}}function _M(e,t){return t==null?null:vi(t,null,null,e)}function vM(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function yM(e,t,n,r,i,a){if(!(!a||!a.length)){var o=bM(t,`color`)||i.color!=null&&i.color!==`none`&&(bM(t,`colorAlpha`)||bM(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 Zj(d);return fM(f).drColorMappingBy=u,f}}}function bM(e,t){var n=e.get(t);return F(n)&&n.length?{name:t,range:n}:null}function xM(e,t,n,r,i,a){var o=C({},t);if(i){var s=i.type,c=s===`color`&&fM(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}G(),Xt(),_c(),nv();var SM=Math.max,CM=Math.min,wM=ce,TM=k,EM=[`itemStyle`,`borderWidth`],DM=[`itemStyle`,`gapWidth`],OM=[`upperLabel`,`show`],kM=[`upperLabel`,`height`],AM={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=G_(e,n).refContainer,o=W_(e.getBoxLayoutParams(),a),s=i.size||[],c=mc(wM(o.width,s[0]),a.width),l=mc(wM(o.height,s[1]),a.height),u=r&&r.type,d=hj(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=gj(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?RM(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),jM(p,_,!1,0),v=p.getLayout(),TM(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(C({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(zM(o,f,d),!0),e.setLayoutInfo(o),BM(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function jM(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(EM),l=s.get(DM)/2,u=VM(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=SM(i-2*f,0),a=SM(a-f-p,0);var m=i*a,h=MM(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=CM(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=IM(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,LM(y,_,g,l,!1),_=CM(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&LM(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++)jM(h[b],t,n,r+1)}}}function MM(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()}),PM(o,s);var l=FM(t,o,s);if(l.sum===0||(l.sum=NM(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 NM(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 PM(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 FM(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=[1/0,-1/0],TM(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 IM(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?SM(l*r/c,c/(l*i)):1/0}function LM(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]]=SM(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=SM(v-2*r,0);m[s[o]]=n[s[o]]+CM(r,g/2),m[s[a]]=l+CM(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function RM(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(EM),_=Math.max(g,VM(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function zM(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 BM(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 J(t.x-a.x,t.y-a.y,t.width,t.height);TM(e.viewChildren||[],function(e){BM(e,c,n,r,i+1)})}}function VM(e){return e.get(OM)?e.get(kM):0}function HM(e){e.registerSeriesModel(Sj),e.registerChartView(Wj),e.registerVisual(pM),e.registerLayout(AM),bj(e)}function UM(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=GM(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=GM(s,[0,o]),i=a=GM(s,[i,a]),r=0}t[0]=GM(t[0],n),t[1]=GM(t[1],n);var c=WM(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=GM(t[r],u);var d=WM(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=WM(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function WM(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 GM(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}G(),ep(),vx(),db(),Y();var KM=Kc(),qM=b,JM=W,YM=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 Fu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=P(XM,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}eN(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&&r.getBandWidth()>o)return!0;if(a){var s=vA(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=KM(e).pointerEl=new uf[i.type](qM(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=KM(e).labelEl=new Ns(qM(t.label));e.add(i),QM(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=KM(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=KM(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),QM(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=kf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){_x(e.event)},onmousedown:JM(this._onHandleDragMove,this,0,0),drift:JM(this._onHandleDragMove,this),ondragend:JM(this._onHandleDragEnd,this)}),n.add(r)),eN(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,ob(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){XM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,$M(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($M(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr($M(r)),KM(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),sb(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 XM(e,t,n,r){ZM(KM(n).lastProp,r)||(KM(n).lastProp=r,t?nf(n,r,e):(n.stopAnimation(),n.attr(r)))}function ZM(e,t){if(z(e)&&z(t)){var n=!0;return k(t,function(t,r){n&&=ZM(e[r],t)}),!!n}else return e===t}function QM(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function $M(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function eN(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)})}G(),ep(),fn(),V_(),jt(),ek(),vp();function tN(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 nN(e,t,n,r,i){var a=iN(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=R_(o.get(`padding`)||0),c=o.getFont(),l=nn(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),rN(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:ap(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function rN(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 iN(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:JO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(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 aN(e,t,n){var r=St();return Dt(r,r,n.rotation),Et(r,r,n.position),Sf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function oN(e,t,n,r,i,a){var o=Uk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),nN(t,r,i,a,{position:aN(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sN(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function cN(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}o();var lN=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=uN(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=tN(r),d=dN[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}oN(t,e,uA(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=uA(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=aN(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=uN(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(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}(YM);function uN(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var dN={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:sN([t,n[0]],[t,n[1]],fN(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:cN([t-r/2,n[0]],[r,i],fN(e))}}};function fN(e){return e.dim===`x`?0:1}o(),av(),Vv();var pN=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}(Z);G(),Ue(),Y();var mN=Kc(),hN=k;function gN(e,t,n){if(!K.node){var r=t.getZr();mN(r).records||(mN(r).records={}),_N(r,t);var i=mN(r).records[e]||(mN(r).records[e]={});i.handler=n}}function _N(e,t){if(mN(e).initialized)return;mN(e).initialized=!0,n(`click`,P(bN,`click`)),n(`mousemove`,P(bN,`mousemove`)),n(`globalout`,yN);function n(n,r){e.on(n,function(n){var i=xN(t);hN(mN(e).records,function(e){e&&r(e,n,i.dispatchAction)}),vN(i.pendings,t)})}}function vN(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 yN(e,t,n){e.handler(`leave`,null,n)}function bN(e,t,n,r){t.handler(e,n,r)}function xN(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 SN(e,t){if(!K.node){var n=t.getZr();(mN(n).records||{})[e]&&(mN(n).records[e]=null)}}o(),qC();var CN=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`;gN(`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){SN(`axisPointer`,t)},t.prototype.dispose=function(e,t){SN(`axisPointer`,t)},t.type=`axisPointer`,t}(KC);G(),Y();function wN(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Gc(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`?1:0,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(A(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}}Y(),G();var TN=Kc();function EN(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||W(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){IN(i)&&(i=wN({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=IN(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||IN(i),f={},p={},m={list:[],map:{}},h={showPointer:P(kN,p),showTooltip:P(AN,m)};k(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);k(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=PN(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&DN(e,o,h,!1,f)}})});var g={};return k(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&k(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,FN(t),FN(e)))),g[e.key]=a}})}),k(g,function(e,t){DN(u[t],e,h,!0,f)}),jN(p,u,f),MN(m,i,e,o),NN(u,o,n),f}}function DN(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=ON(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 ON(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return k(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(!(u==null||!isFinite(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),k(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function kN(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function AN(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=xA(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 jN(e,t,n){var r=n.axesInfo=[];k(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 MN(e,t,n,r){if(IN(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 NN(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=TN(r)[i]||{},o=TN(r)[i]={};k(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&k(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];k(a,function(e,t){!o[t]&&c.push(e)}),k(o,function(e,t){!a[t]&&s.push(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 PN(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 FN(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 IN(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}G();function LN(e){CA.registerAxisPointerClass(`CartesianAxisPointer`,lN),e.registerComponentModel(pN),e.registerComponentView(CN),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,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=dA(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},EN)}o(),av(),Vv();var RN=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`,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}(Z);V_(),Ue();function zN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function BN(e){if(K.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var VN=BN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),HN=BN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function UN(e,t){if(!e)return t;t=A_(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function WN(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}G(),vx(),Tg(),Ue(),V_(),ly();var GN=UN(HN,`transition`),KN=UN(VN,`transform`),qN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(K.transform3dSupported?`will-change:transform;`:``);function JN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function YN(e,t,n){if(!L(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=I_(t);var a=JN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=KN+`:`,l;T([`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 XN(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?`,`:``)+(K.transformSupported?``+KN+i:`,left`+i+`,top`+i)),GN+`:`+a}function ZN(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!K.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=K.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+KN+`:`+o+`;`:[[`top`,0],[`left`,0],[VN,o]]}function QN(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=H(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),k([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function $N(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=iy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(XN(a,n,r)),o&&i.push(`background-color:`+o),k([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=A_(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(QN(d)),f!=null&&i.push(`padding:`+R_(f).join(`px `)+`px`),i.join(`;`)+`;`}function eP(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&mg(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 tP=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,K.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):ae(i)?i:I(i)&&i(e.getDom()));eP(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;lx(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=WN(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=qN+$N(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+ZN(i[0],i[1],!0)+(`border-color:`+I_(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`&&!zN(n)&&(o=YN(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++)ae(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(eP(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;k(ZN(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`,K.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(W(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;hg(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}();G(),Ls(),ly(),wc();var nP=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),aP(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;z(e)&&bc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Ns({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:iy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),k([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),k([`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=iP(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;aP(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=rP(i.borderWidth||0),o=iP(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(W(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rP(e){return Math.max(0,e)}function iP(e){var t=rP(e.shadowBlur||0),n=rP(e.shadowOffsetX||0),r=rP(e.shadowOffsetY||0);return{left:rP(t-n),right:rP(t+n),top:rP(t-r),bottom:rP(t+r)}}function aP(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}o(),G(),Ue(),V_(),_c(),ep(),nv(),Np(),ek(),Y(),qC(),E_(),ol(),_v(),ly(),Bw(),db();var oP=new _s({shape:{x:-1,y:-1,width:2,height:2}}),sP=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(!(K.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=Qc(n.get(`renderMode`)))===`richText`?new nP(t):new tP(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(K.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`)?ob(this,`_updatePosition`,50,`fixRate`):sb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);gN(`itemTooltip`,this._api,W(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(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||K.node||!n.getDom())){var i=lP(r,n);this._ticket=``;var a=r.dataByCoordSys,o=mP(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=oP;c.x=r.x,c.y=r.y,c.update(),X(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=wN(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,r.from!==this.uid&&this._hide(lP(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&&cP([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(X(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;zw(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(X(e).dataIndex==null?X(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._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=W(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=cP([t.tooltipOption],r),o=this._renderMode,s=[],c=Wv(`section`,{blocks:[],noHeader:!0}),l=[],u=new cy;k(e,function(e){k(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=iN(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Wv(`section`,{header:a,noHeader:!pe(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),k(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=JO(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,I_(m.color),o);var h=mv(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=cP([f],r).get(`valueFormatter`);d.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=Xv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
15
|
+
`],cy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oc()}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=N_({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)?k(t,function(e){return C(n,e)}):C(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function uy(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=ry(t,n),u,d,f,p;if(o>1||c&&!o){var m=dy(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=vm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Bc(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Wv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Wv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!pe(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function dy(e,t,n,r,i){var a=t.getData(),o=j(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?k(r,function(e){u(vm(a,n,e),e)}):k(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Wv(`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 fy=t((()=>{G(),ly(),Nm(),Y()}));function py(e,t){return e.getName(t)||e.getId(t)}function my(e){var t=e.name;Bc(e)||(e.name=hy(e)||t)}function hy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return k(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function gy(e){return e.model.getRawData().count()}function _y(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vy}function vy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function yy(e,t){k(_e(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,P(by,t))})}function by(e,t){var n=xy(e);return n&&n.setOutputEnd((t||this).count()),t}function xy(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 Sy,Cy,wy=t((()=>{o(),G(),Ue(),Y(),av(),pv(),_v(),nv(),xv(),it(),Rv(),fy(),Sy=Kc(),Cy=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=vv({count:gy,reset:_y}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Sy(this).sourceManager=new Lv(this)).prepareSource();var r=this.getInitialData(e,n);yy(r,this),this.dataTask.context.data=r,Sy(this).dataBeforeProcessed=r,my(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=q_(this),r=n?Y_(e):{},i=this.subType;Z.hasClass(i)&&(i+=`Series`),x(e,t.getTheme().get(this.subType)),x(e,this.getDefaultOption()),Dc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&J_(e,r,n)},t.prototype.mergeOption=function(e,t){e=x(this.option,e,!0),this.fillDataTextStyle(e.data);var n=q_(this);n&&J_(this.option,e,n);var r=Sy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);yy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sy(this).dataBeforeProcessed=i,my(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ie(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Dc(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=xy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Sy(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=xy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Sy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return Sy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Sy(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;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return uy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.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=fv.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=py(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[py(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?!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`){z(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=py(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=py(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 Z.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}(Z),D(Cy,gv),D(Cy,fv),Ye(Cy,Z)}));function Ty(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 Ey(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?gf(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hf(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new Fy({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Ty,a&&c.setColor(a),c}function Dy(e,t){if(e!=null)return F(e)||(e=[e,e]),[mc(e[0],t[0])||0,mc(H(e[1],e[0]),t[1])||0]}var Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy=t((()=>{G(),ep(),Xt(),fn(),_c(),Vv(),Oy=Qo.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()}}),ky=Qo.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()}}),Ay=Qo.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()}}),jy=Qo.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()}}),My={line:Cd,rect:_s,roundRect:_s,square:_s,circle:Ru,diamond:ky,pin:Ay,arrow:jy,triangle:Oy},Ny={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}},Py={},k(My,function(e,t){Py[t]=new e}),Fy=Qo.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=cn(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=Py[r];i||=(r=`rect`,Py[r]),Ny[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function Ly(){var e=Kc();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 Ry=t((()=>{Y()}));function zy(e,t,n){e&&ql(e)&&(t===`emphasis`?Tl:El)(e,n)}function By(e,t,n){var r=Gc(e,t),i=t&&t.highlightKey!=null?Jl(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){zy(e,n,i)}):k(Ec(r),function(t){zy(e.getItemGraphicEl(t),n,i)})}function Vy(e){return Wy(e.model)}function Hy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Uy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ky[c]}var Uy,Wy,Gy,Ky,qy=t((()=>{G(),Iu(),lg(),it(),Y(),uu(),xv(),Ry(),ep(),Uy=Kc(),Wy=Ly(),Gy=function(){function e(){this.group=new Fu,this.uid=ig(`viewChart`),this.renderTask=vv({plan:Vy,reset:Hy}),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&&By(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&By(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.updateLayout=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){Rf(this.group,e)},e.markUpdateMethod=function(e,t){Uy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),qe(Gy,[`dispose`]),$e(Gy),Ky={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)}}}}));function Jy(e){return e.get(`stack`)||rb+e.seriesIndex}function Yy(e){return e.dim+e.index}function Xy(e,t){var n=[];return t.eachSeriesByType(e,function(e){tb(e)&&n.push(e)}),n}function Zy(e){var t={};k(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function Qy(e){var t=Zy(e),n=[];return k(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=mc(e.get(`barWidth`),a),f=mc(e.get(`barMaxWidth`),a),p=mc(e.get(`barMinWidth`)||(nb(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:Yy(r),stackId:Jy(e)})}),$y(n)}function $y(e){var t={};k(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return k(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=N(r).length;a=Math.max(35-o*4,15)+`%`}var s=mc(a,i),c=mc(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),k(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;k(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;k(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function eb(e,t,n){if(e&&t){var r=e[Yy(t)];return r!=null&&n!=null?r[Jy(n)]:r}}function tb(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function nb(e){return e.pipelineContext&&e.pipelineContext.large}var rb,ib=t((()=>{G(),_c(),rb=`__ec_stack_`}));function ab(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 ob(e,t,n,r){var i=e[t];if(i){var a=i[cb]||i,o=i[ub];if(i[lb]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=ab(a,n,r===`debounce`),i[cb]=a,i[ub]=r,i[lb]=n}return i}}function sb(e,t){var n=e[t];n&&n[cb]&&(n.clear&&n.clear(),e[t]=n[cb])}var cb,lb,ub,db=t((()=>{cb=`\0__throttleOriginMethod`,lb=`\0__throttleRate`,ub=`\0__throttleType`}));function fb(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=Gc(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 pb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(fb(`map`,`selectchanged`,t,r,e),fb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(fb(`map`,`selected`,t,r,e),fb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(fb(`map`,`unselected`,t,r,e),fb(`pie`,`unselected`,t,r,e))})}var mb=t((()=>{G(),Y()}));function hb(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);break}}function gb(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)%Db<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Do(i),i=Do(f)}else r=Do(r),i=Do(i);r>i&&(i+=Db);var p=Math.atan2(s,o);if(p<0&&(p+=Db),p>=r&&p<=i||p+Db>=r&&p+Db<=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 _b(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 vb(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 yb(e,t,n){var r=vb(t.x,t.y,t.width,t.height,e.x,e.y,Ab);return n.set(Ab[0],Ab[1]),r}function bb(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 Ob.M:a=u[p++],o=u[p++],r=a,i=o;break;case Ob.L:h=_b(r,i,u[p],u[p+1],d,f,Ab,!0),r=u[p++],i=u[p++];break;case Ob.C:h=Ar(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,Ab),r=u[p++],i=u[p++];break;case Ob.Q:h=Lr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,Ab),r=u[p++],i=u[p++];break;case Ob.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=gb(g,_,y,b,b+x,S,C,f,Ab),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case Ob.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=vb(a,o,w,T,d,f,Ab);break;case Ob.Z:h=_b(r,i,a,o,d,f,Ab,!0),r=a,i=o;break}h<l&&(l=h,n.set(Ab[0],Ab[1]))}return l}function xb(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||kb,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&kt([],u),f=t.get(`length2`)||0;l&&Nb.copy(l);for(var p=0;p<o.length;p++){var m=o[p];hb(m,0,s,jb,Pb),q.scaleAndAdd(Mb,jb,Pb,f),Mb.transform(d);var h=e.getBoundingRect(),g=l?l.distance(Mb):e instanceof Qo?bb(Mb,e.path,Nb):yb(Mb,h,Nb);g<c&&(c=g,Mb.transform(u),Nb.transform(u),Nb.toArray(a[0]),Mb.toArray(a[1]),jb.toArray(a[2]))}Sb(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function Sb(e,t){if(t<=180&&t>0){t=t/180*Math.PI,jb.fromArray(e[0]),Mb.fromArray(e[1]),Nb.fromArray(e[2]),q.sub(Pb,jb,Mb),q.sub(Fb,Nb,Mb);var n=Pb.len(),r=Fb.len();if(!(n<.001||r<.001)){Pb.scale(1/n),Fb.scale(1/r);var i=Pb.dot(Fb);if(Math.cos(t)<i){var a=_b(Mb.x,Mb.y,Nb.x,Nb.y,jb.x,jb.y,Ib,!1);Lb.fromArray(Ib),Lb.scaleAndAdd(Fb,a/Math.tan(Math.PI-t));var o=Nb.x===Mb.x?(Lb.y-Mb.y)/(Nb.y-Mb.y):(Lb.x-Mb.x)/(Nb.x-Mb.x);if(isNaN(o))return;o<0?q.copy(Lb,Mb):o>1&&q.copy(Lb,Nb),Lb.toArray(e[1])}}}}function Cb(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&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function wb(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=sr(r[0],r[1]),a=sr(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=tr([],r[1],r[0],o/i),c=tr([],r[1],r[2],o/a),l=tr([],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 Tb(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<ru.length;c++){var l=ru[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:H(i.states[l]&&i.states[l].ignore,s))||!H(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Cb(r,!0,l,u);continue}r||(r=new yd,e.setTextGuideLine(r),!d&&(s||!o)&&Cb(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Cb(r,!1,l,u)}}if(r){w(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=wb}}function Eb(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<nu.length;r++){var i=nu[r];n[i]=e.getModel([i,t])}return n}var Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb=t((()=>{ep(),bo(),ko(),Jr(),G(),jt(),lr(),uu(),Db=Math.PI*2,Ob=yo.CMD,kb=[`top`,`right`,`bottom`,`left`],Ab=[],jb=new q,Mb=new q,Nb=new q,Pb=new q,Fb=new q,Ib=[],Lb=new q}));function zb(e,t,n){n||=ex,t?e.dirty|=n:e.dirty&=~n}function Bb(e,t){return t||=ex,e.dirty==null||!!(e.dirty&t)}function Vb(e){if(e)return Bb(e)&&Hb(e,e.label,e),e}function Hb(e,t,n){var r=t.getComputedTransform();e.transform=Vf(e.transform,r);var i=e.localRect=Bf(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=_p.textMargin);for(var d=0;d<4;d++)tx[d]=u===_p.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===_p.textMargin&&Pf(i,tx,!1,!1);var f=e.rect=Bf(e.rect,i);return r&&f.applyTransform(r),u===_p.minMargin&&Pf(f,tx,!1,!1),e.axisAligned=zf(r),(e.label=e.label||{}).ignore=t.ignore,zb(e,!1),zb(e,!0,$b),e}function Ub(e,t,n){return e.transform=Vf(e.transform,n),e.localRect=Bf(e.localRect,t),e.rect=Bf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=zf(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Wb(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 Gb(e,t){for(var n=0;n<Zb.length;n++){var r=Zb[n];e[r]??(e[r]=t[r])}return Vb(e)}function Kb(e){var t=e.obb;return(!t||Bb(e,$b))&&(e.obb=t||=new Yd,t.fromBoundingRect(e.localRect,e.transform),zb(e,!1,$b)),t}function qb(e,t,n,r,i){var a=e.length,o=qf[t],s=Jf[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 Jb(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 Yb(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||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=Vb(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Xb(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Xb(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:Kb(e).intersect(Kb(t),n,r)}var Zb,Qb,$b,ex,tx,nx=t((()=>{ep(),vp(),Zb=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Qb=1,$b=2,ex=Qb|$b,tx=[0,0,0,0]})),rx,ix,ax=t((()=>{rx=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),ix=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 rx(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 rx(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 rx(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new rx(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rx(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new rx(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}()}));function ox(e,t,n,r){return n||={},r?sx(e,t,n):gx&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?sx(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function sx(e,t,n){if(K.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(yg(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(gg(hx,e,r,i)){n.zrX=hx[0],n.zrY=hx[1];return}}n.zrX=n.zrY=0}function cx(e){return e||window.event}function lx(e,t,n){if(t=cx(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&&ox(e,i,t,n)}else{ox(e,t,t,n);var a=ux(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&mx.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function ux(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 dx(e,t,n,r){e.addEventListener(t,n,r)}function fx(e,t,n,r){e.removeEventListener(t,n,r)}function px(e){return e.which===2||e.which===3}var mx,hx,gx,_x,vx=t((()=>{Ue(),Tg(),mx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hx=[],gx=K.browser.firefox&&+K.browser.version.split(`.`)[0]<39,_x=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}}));function yx(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function bx(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var xx,Sx,Cx=t((()=>{vx(),xx=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=ox(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 Sx)if(Sx.hasOwnProperty(t)){var n=Sx[t](this._track,e);if(n)return n}},e}(),Sx={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=yx(r)/yx(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=bx(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}}));function Tx(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:Ex}}function Ex(){_x(this.event)}function Dx(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?Ax:!0}return!1}function Ox(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=Dx(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ax)){t.target=o;break}}}function kx(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Ax,jx,Mx,Nx,Px,Fx,Ix=t((()=>{o(),G(),lr(),ax(),aa(),vx(),Cx(),Xt(),Ax=`silent`,jx=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}(ia),Mx=function(){function e(e,t){this.x=e,this.y=t}return e}(),Nx=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Px=new J(0,0,0,0),Fx=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Mx(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new jx,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new ix(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(k(Nx,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=kx(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 Mx(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 Mx(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=Tx(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 Mx(e,t);if(Ox(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(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)&&(Px.copy(u.getBoundingRect()),u.transform&&Px.applyTransform(u.transform),Px.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(Ox(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 xx;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 Mx;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ia),k([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Fx.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=kx(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||sr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}})}));function Lx(e){for(var t=0;e>=Gx;)t|=e&1,e>>=1;return e+t}function Rx(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++;zx(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zx(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Bx(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 Vx(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 Hx(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 Ux(e,t){var n=Kx,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=Hx(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Vx(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=Hx(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=Vx(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>=Kx||m>=Kx);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-Hx(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-Vx(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>=Kx||g>=Kx);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 Wx(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Gx){a=Rx(e,n,r,t),Bx(e,n,r,n+a,t);return}var o=Ux(e,t),s=Lx(i);do{if(a=Rx(e,n,r,t),a<s){var c=i;c>s&&(c=s),Bx(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 Gx,Kx,qx=t((()=>{Gx=32,Kx=7}));function Jx(){Xx||(Xx=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Yx(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xx,Zx,Qx=t((()=>{G(),qx(),pa(),Xx=!1,Zx=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yx}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,Wx(n,Yx)},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)&&(Jx(),p.z=0),isNaN(p.z2)&&(Jx(),p.z2=0),isNaN(p.zlevel)&&(Jx(),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=T(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}()})),$x,eS=t((()=>{Ue(),$x=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}}));function tS(){return new Date().getTime()}var nS,rS=t((()=>{o(),aa(),eS(),ra(),nS=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=tS()-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&&($x(t),!e._paused&&e.update())}$x(t)},t.prototype.start=function(){this._running||(this._time=tS(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=tS(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=tS()-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 na(e,t.loop);return this.addAnimator(n),n},t}(ia)}));function iS(e){var t=e.pointerType;return t===`pen`||t===`touch`}function aS(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 oS(e){e&&(e.zrByTouch=!0)}function sS(e,t){return lx(e.dom,new vS(e,t),!0)}function cS(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 lS(e,t){var n=t.domHandlers;K.pointerEventsSupported?k(hS.pointer,function(r){dS(t,r,function(t){n[r].call(e,t)})}):(K.touchEventsSupported&&k(hS.touch,function(r){dS(t,r,function(i){n[r].call(e,i),aS(t)})}),k(hS.mouse,function(r){dS(t,r,function(i){i=cx(i),t.touching||n[r].call(e,i)})}))}function uS(e,t){K.pointerEventsSupported?k(gS.pointer,n):K.touchEventsSupported||k(gS.mouse,n);function n(n){function r(r){r=cx(r),cS(e,r.target)||(r=sS(e,r),t.domHandlers[n].call(e,r))}dS(t,n,r,{capture:!0})}}function dS(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,dx(e.domTarget,t,n,r)}function fS(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&fx(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS=t((()=>{o(),vx(),G(),aa(),Ue(),pS=300,mS=K.domSupported,hS=(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:A(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),gS={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},_S=!1,vS=function(){function e(e,t){this.stopPropagation=xe,this.stopImmediatePropagation=xe,this.preventDefault=xe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),yS={mousedown:function(e){e=lx(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=lx(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=lx(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=lx(this.dom,e);var t=e.toElement||e.relatedTarget;cS(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){_S=!0,e=lx(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){_S||(e=lx(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=lx(this.dom,e),oS(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),yS.mousemove.call(this,e),yS.mousedown.call(this,e)},touchmove:function(e){e=lx(this.dom,e),oS(e),this.handler.processGesture(e,`change`),yS.mousemove.call(this,e)},touchend:function(e){e=lx(this.dom,e),oS(e),this.handler.processGesture(e,`end`),yS.mouseup.call(this,e),new Date-+this.__lastTouchMoment<pS&&yS.click.call(this,e)},pointerdown:function(e){yS.mousedown.call(this,e)},pointermove:function(e){iS(e)||yS.mousemove.call(this,e)},pointerup:function(e){yS.mouseup.call(this,e)},pointerout:function(e){iS(e)||yS.mouseout.call(this,e)}},k([`click`,`dblclick`,`contextmenu`],function(e){yS[e]=function(t){t=lx(this.dom,t),this.trigger(e,t)}}),bS={pointermove:function(e){iS(e)||bS.mousemove.call(this,e)},pointerup:function(e){bS.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))}},xS=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),SS=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 xS(t,yS),mS&&(r._globalHandlerScope=new xS(document,bS)),lS(r,r._localHandlerScope),r}return t.prototype.dispose=function(){fS(this._localHandlerScope),mS&&fS(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,mS&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?uS(this,t):fS(t)}},t}(ia)})),wS=n({dispose:()=>OS,disposeAll:()=>kS,getElementSSRData:()=>MS,getInstance:()=>AS,init:()=>DS,registerPainter:()=>jS,registerSSRDataGetter:()=>NS,version:()=>RS});function TS(e){delete FS[e]}function ES(e){if(!e)return!1;if(typeof e==`string`)return xi(e,1)<ca;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=xi(t[i].color,1);return n/=r,n<ca}return!1}function DS(e,t){var n=new IS(v(),e,t);return FS[n.id]=n,n}function OS(e){e.dispose()}function kS(){for(var e in FS)FS.hasOwnProperty(e)&&FS[e].dispose();FS={}}function AS(e){return FS[e]}function jS(e,t){PS[e]=t}function MS(e){if(typeof LS==`function`)return LS(e)}function NS(e){LS=e}var PS,FS,IS,LS,RS,zS=t((()=>{Ue(),G(),Ix(),Qx(),rS(),CS(),Ai(),fa(),Iu(),PS={},FS={},IS=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Zx,a=n.renderer||`canvas`;PS[a]||(a=N(PS)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new PS[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!K.node&&!K.worker&&!s?new SS(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?K.touchEventsSupported:!!l,d=44,f;u&&(f=H(n.pointerSize,d)),this.handler=new Fx(i,o,c,o.root,f),this.animation=new nS({stage:{update:s?null:function(){return r._flush(!0)}}}),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=ES(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=tS();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=tS();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},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 Fu&&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,TS(this.id))},e}(),RS=`6.0.0`})),BS,VS,HS,US,WS,GS=t((()=>{Ai(),Vv(),BS=``,typeof navigator<`u`&&(BS=navigator.platform||``),VS=`rgba(0, 0, 0, 0.2)`,HS=Q.color.theme[0],US=vi(HS,null,null,.9),WS={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[US,HS],aria:{decal:{decals:[{color:VS,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:VS,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:VS,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:VS,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:VS,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:VS,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:BS.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 KS(e,t,n){var r=qS.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var qS,JS=t((()=>{G(),qS=U()}));function YS(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 XS(e,t){var n=e.color&&!e.colorLayer;k(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Z.hasClass(r)||(typeof t==`object`?e[r]=e[r]?x(e[r],t,!1):b(t):e[r]??(e[r]=t))})}function ZS(e,t,n){if(F(t)){var r=U();return k(t,function(e){e!=null&&zc(e,null)!=null&&r.set(e,!0)}),M(n,function(t){return t&&r.get(t[e])})}else{var i=zc(t,null);return M(n,function(t){return t&&i!=null&&t[e]===i})}}function QS(e,t){return t.hasOwnProperty(`subType`)?M(e,function(e){return e&&e.subType===t.subType}):e}function $S(e){var t=U();return e&&k(Ec(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var eC,tC,nC,rC,iC,aC,oC=t((()=>{o(),G(),Y(),Np(),av(),GS(),tm(),JS(),pv(),rC=`\0_ec_inner`,iC=1,aC=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 Mp(r),this._locale=new Mp(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=$S(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$S(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`?nC(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&&k(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=U(),s=t&&t.replaceMergeMainTypeMap;qp(this),k(e,function(e,t){e!=null&&(Z.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){Z.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),c,this);function c(t){var a=KS(this,t,Ec(e[t])),o=r.get(t),c=Ac(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Hc(c,t,Z),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;k(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=Z.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`&&eC(this)}this._seriesIndices||eC(this)},t.prototype.getOption=function(){var e=b(this.option);return k(e,function(t,n){if(Z.hasClass(n)){for(var r=Ec(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[rC],e},t.prototype.setTheme=function(e){this._theme=new Mp(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}):ZS(`name`,i,a):ZS(`id`,r,a):(o=[],k(Ec(n),function(e){a[e]&&o.push(a[e])})),QS(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(QS(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):z(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=zc(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){tC(this),k(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){k(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){tC(this),k(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 k(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return tC(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){tC(this);var n=[];k(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=U(n)},t.prototype.restoreData=function(e){eC(this);var t=this._componentsMap,n=[];t.each(function(e,t){Z.hasClass(t)&&n.push(t)}),Z.topologicalTravel(n,Z.getAllClassMainTypes(),function(n){k(t.get(n),function(t){t&&(n!==`series`||!YS(t,e))&&t.restoreData()})})},t.internalField=function(){eC=function(e){var t=e._seriesIndices=[];k(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=U(t)},tC=function(e){},nC=function(e,t){e.option={},e.option[rC]=iC,e._componentsMap=U({series:[]}),e._componentsCount=U();var n=t.aria;z(n)&&n.enabled==null&&(n.enabled=!0),XS(t,e._theme.option),x(t,WS,!1),e._mergeOption(t,null)}}(),t}(Mp),D(aC,fv)})),sC,cC,lC=t((()=>{G(),sC=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],cC=function(){function e(e){k(sC,function(t){this[t]=W(e[t],e)},this)}return e}()}));function uC(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||=s):((d||u)&&(e.options=e.media=null),a=e),u&&F(l)&&k(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),k(c,function(e){return f(e)}),k(r,function(e){return f(e.option)});function f(e){k(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function dC(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return k(e,function(e,t){var n=t.match(mC);if(!(!n||!n[1]||!n[2])){var a=n[1];fC(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function fC(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function pC(e,t){return e.join(`,`)===t.join(`,`)}var mC,hC,gC=t((()=>{Y(),G(),mC=/^(min|max)?(.+)$/,hC=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(k(Ec(e.series),function(e){e&&e.data&&ie(e.data)&&me(e.data)}),k(Ec(e.dataset),function(e){e&&e.source&&ie(e.source)&&me(e.source)})),e=b(e);var r=this._optionBackup,i=uC(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++)dC(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!pC(a,this._currentMediaIndices)&&(o=A(a,function(e){return b(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}()}));function _C(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=OC.length;n<r;n++){var i=OC[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 vC(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,w(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 yC(e){vC(e,`itemStyle`),vC(e,`lineStyle`),vC(e,`areaStyle`),vC(e,`label`),vC(e,`labelLine`),vC(e,`upperLabel`),vC(e,`edgeLabel`)}function bC(e,t){var n=DC(e)&&e[t],r=DC(n)&&n.textStyle;if(r)for(var i=0,a=nl.length;i<a;i++){var o=nl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function xC(e){e&&(yC(e),bC(e,`label`),e.emphasis&&bC(e.emphasis,`label`))}function SC(e){if(DC(e)){_C(e),yC(e),bC(e,`label`),bC(e,`upperLabel`),bC(e,`edgeLabel`),e.emphasis&&(bC(e.emphasis,`label`),bC(e.emphasis,`upperLabel`),bC(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(_C(t),xC(t));var n=e.markLine;n&&(_C(n),xC(n));var r=e.markArea;r&&xC(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ie(a))for(var o=0;o<a.length;o++)xC(a[o]);k(e.categories,function(e){yC(e)})}if(i&&!ie(i))for(var o=0;o<i.length;o++)xC(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)xC(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)F(c[o])?(xC(c[o][0]),xC(c[o][1])):xC(c[o]);e.type===`gauge`?(bC(e,`axisLabel`),bC(e,`title`),bC(e,`detail`)):e.type===`treemap`?(vC(e.breadcrumb,`itemStyle`),k(e.levels,function(e){yC(e)})):e.type===`tree`&&yC(e.leaves)}}function CC(e){return F(e)?e:e?[e]:[]}function wC(e){return(F(e)?e[0]:e)||{}}function TC(e,t){EC(CC(e.series),function(e){DC(e)&&SC(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),EC(n,function(t){EC(CC(e[t]),function(e){e&&(bC(e,`axisLabel`),bC(e.axisPointer,`label`))})}),EC(CC(e.parallel),function(e){var t=e&&e.parallelAxisDefault;bC(t,`axisLabel`),bC(t&&t.axisPointer,`label`)}),EC(CC(e.calendar),function(e){vC(e,`itemStyle`),bC(e,`dayLabel`),bC(e,`monthLabel`),bC(e,`yearLabel`)}),EC(CC(e.radar),function(e){bC(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)}),EC(CC(e.geo),function(e){DC(e)&&(xC(e),EC(CC(e.regions),function(e){xC(e)}))}),EC(CC(e.timeline),function(e){xC(e),vC(e,`label`),vC(e,`itemStyle`),vC(e,`controlStyle`,!0);var t=e.data;F(t)&&k(t,function(e){z(e)&&(vC(e,`label`),vC(e,`itemStyle`))})}),EC(CC(e.toolbox),function(e){vC(e,`iconStyle`),EC(e.feature,function(e){vC(e,`iconStyle`)})}),bC(wC(e.axisPointer),`label`),bC(wC(e.tooltip).axisPointer,`label`)}var EC,DC,OC,kC=t((()=>{G(),Y(),EC=k,DC=z,OC=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function AC(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function jC(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 MC(e){e&&k(zC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function NC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<VC.length;n++){var r=VC[n][1],i=VC[n][0];t[r]!=null&&(t[i]=t[r])}}function PC(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function FC(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function IC(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function LC(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&LC(e[n].children,t)}function RC(e,t){TC(e,t),e.series=Ec(e.series),k(e.series,function(e){if(z(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),PC(e.label);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)PC(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=AC(e,`pointer.color`);i!=null&&jC(e,`itemStyle.color`,i)}else if(t===`bar`){NC(e),NC(e.backgroundStyle),NC(e.emphasis);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(NC(n[r]),NC(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)),FC(e),LC(e.data,FC)}else t===`graph`||t===`sankey`?IC(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&w(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),MC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),k(BC,function(t){var n=e[t];n&&(F(n)||(n=[n]),k(n,function(e){MC(e)}))})}var zC,BC,VC,HC=t((()=>{G(),kC(),Y(),zC=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],BC=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],VC=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function UC(e){var t=U();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(),k(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),WC(e))})}function WC(e){k(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=Ys(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var GC=t((()=>{G(),_c()})),KC,qC=t((()=>{Iu(),lg(),it(),KC=function(){function e(){this.group=new Fu,this.uid=ig(`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}(),qe(KC),$e(KC)}));function JC(e,t){return e.visualStyleMapper||ZC[t]||(console.warn(`Unknown style type '`+t+`'.`),ZC.itemStyle)}function YC(e,t){return e.visualDrawType||QC[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var XC,ZC,QC,$C,ew,tw,nw,rw=t((()=>{G(),ot(),jp(),Dp(),Np(),Y(),XC=Kc(),ZC={itemStyle:at(Op,!0),lineStyle:at(wp,!0)},QC={lineStyle:`stroke`,itemStyle:`fill`},$C={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=JC(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=YC(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)}}}},ew=new Mp,tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=JC(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){ew.option=n[r];var o=i(ew);C(e.ensureUniqueItemVisual(t,`style`),o),ew.option.decal&&(e.setItemVisual(t,`decal`,ew.option.decal),ew.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},nw={performRawSeries:!0,overallReset:function(e){var t=U();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),XC(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=XC(t).scope,o=YC(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}}}));function iw(e,t){t||={},w(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 Fu,r=new _s({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Ns({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 _s({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 jd({shape:{startAngle:-aw/2,endAngle:-aw/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:aw*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:aw*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 aw,ow=t((()=>{G(),ep(),Vv(),aw=Math.PI}));function sw(e){e.overallReset(e.ecModel,e.api,e.payload)}function cw(e){return e.overallProgress&&lw}function lw(){this.agent.dirty(),this.getDownstream().dirty()}function uw(){this.agent&&this.agent.dirty()}function dw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function fw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ec(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?A(t,function(e,t){return pw(t)}):vw}function pw(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 mw(e){return e.data.count()}function hw(e){xw=null;try{e(yw,bw)}catch{}return xw}function gw(e,t){for(var n in t.prototype)e[n]=xe}var _w,vw,yw,bw,xw,Sw=t((()=>{G(),xv(),lg(),oC(),lC(),Y(),_w=function(){function e(e,t,n,r){this._stageTaskMap=U(),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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=U();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;k(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});fe(!(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;k(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=U(),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)||vv({plan:dw,reset:fw,count:mw}));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||vv({reset:sw});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=U(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;fe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,k(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,vv({reset:cw,onDirty:uw})));n.context={model:e,overallProgress: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:hw(e)}),e.uid=ig(`stageHandler`),t&&(e.visualType=t),e},e}(),vw=pw(0),yw={},bw={},gw(yw,aC),gw(bw,cC),yw.eachSeriesByType=yw.eachRawSeriesByType=function(e){xw=e},yw.eachComponent=function(e){e.mainType===`series`&&e.subType&&(xw=e.subType)}})),$,Cw,ww,Tw,Ew,Dw=t((()=>{Vv(),$=Q.darkColor,Cw=$.background,ww=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Tw={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Ew={darkMode:!0,color:$.theme,backgroundColor:Cw,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}},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:Tw,y:Tw,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:ww(),logAxis:ww(),valueAxis:ww(),categoryAxis:ww(),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=ww();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}}}},Ew.categoryAxis.splitLine.show=!1})),Ow,kw=t((()=>{G(),it(),Ow=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(L(e)){var i=We(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};k(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}()})),Aw,jw,Mw,Nw,Pw=t((()=>{G(),Aw=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],jw=Aw.concat([`symbolKeepAspect`]),Mw={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<Aw.length;o++){var s=Aw[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}}},Nw={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<jw.length;r++){var i=jw[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function Fw(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);default:}}function Iw(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);default:}}function Lw(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);break;default:}}var Rw=t((()=>{}));function zw(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Bw=t((()=>{})),Vw,Hw,Uw,Ww=t((()=>{Vw=Math.round(Math.random()*9),Hw=typeof Object.defineProperty==`function`,Uw=function(){function e(){this._id=`__ec_inner_`+ Vw++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Hw?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 Gw(e){return isFinite(e)}function Kw(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=Gw(r)?r:0,i=Gw(i)?i:1,a=Gw(a)?a:0,o=Gw(o)?o:0,e.createLinearGradient(r,a,i,o)}function qw(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=Gw(o)?o:.5,s=Gw(s)?s:.5,c=c>=0&&Gw(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Jw(e,t,n){for(var r=t.type===`radial`?qw(e,t,n):Kw(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Yw(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 Xw(e){return parseInt(e,10)}function Zw(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]||Xw(s[r])||Xw(e.style[r]))-(Xw(s[a])||0)-(Xw(s[o])||0)|0}var Qw=t((()=>{}));function $w(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:R(e)?[e]:F(e)?e:null}function eT(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&$w(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=A(n,function(e){return e/i}),r/=i)}return[n,r]}var tT=t((()=>{G()}));function nT(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function rT(e){return typeof e==`string`&&e!==`none`}function iT(e){var t=e.fill;return t!=null&&t!==`none`}function aT(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 oT(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 sT(e,t,n){var r=gt(t.image,t.__image,n);if(vt(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)*ze),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function cT(e,t,n,r){var i,a=nT(n),o=iT(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||CT,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?Jw(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?Jw(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?sT(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?sT(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=eT(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&oT(e,n),o&&aT(e,n)):(o&&aT(e,n),a&&oT(e,n))),w&&e.setLineDash([])}function lT(e,t,n){var r=t.__image=gt(n.image,t.__image,t,t.onload);if(!(!r||!vt(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 uT(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=eT(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(nT(n)&&e.strokeText(i,n.x,n.y),iT(n)&&e.fillText(i,n.x,n.y)):(iT(n)&&e.fillText(i,n.x,n.y),nT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function dT(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){vT(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ja.opacity:o}(r||t.blend!==n.blend)&&(a||=(vT(e,i),!0),e.globalCompositeOperation=t.blend||ja.blend);for(var s=0;s<wT.length;s++){var c=wT[s];(r||t[c]!==n[c])&&(a||=(vT(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(vT(e,i),!0),e.shadowColor=t.shadowColor||ja.shadowColor),a}function fT(e,t,n,r,i){var a=yT(t,i.inHover),o=r?null:n&&yT(n,i.inHover)||{};if(a===o)return!1;var s=dT(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(vT(e,i),!0),rT(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(vT(e,i),!0),rT(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(vT(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||=(vT(e,i),!0),e.lineWidth=c)}for(var l=0;l<TT.length;l++){var u=TT[l],d=u[0];(r||a[d]!==o[d])&&(s||=(vT(e,i),!0),e[d]=a[d]||u[1])}return s}function pT(e,t,n,r,i){return dT(e,yT(t,i.inHover),n&&yT(n,i.inHover),r,i)}function mT(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 hT(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),mT(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function gT(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 _T(e){var t=iT(e),n=nT(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 vT(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function yT(e,t){return t&&e.__hoverStyle||e.style}function bT(e,t){xT(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xT(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||Yw(a,o))&&(o&&o.length&&(vT(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(vT(e,n),e.save(),hT(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Qo&&t.autoBatch&&_T(t.style);s||gT(i,l.transform)?(vT(e,n),mT(e,t)):u||vT(e,n);var d=yT(t,n.inHover);t instanceof Qo?(n.lastDrawType!==ET&&(c=!0,n.lastDrawType=ET),fT(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),cT(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof ts?(n.lastDrawType!==OT&&(c=!0,n.lastDrawType=OT),fT(e,t,l,c,n),uT(e,t,d)):t instanceof os?(n.lastDrawType!==DT&&(c=!0,n.lastDrawType=DT),pT(e,t,l,c,n),lT(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==kT&&(c=!0,n.lastDrawType=kT),ST(e,t,n)),u&&r&&vT(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function ST(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),xT(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),xT(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var CT,wT,TT,ET,DT,OT,kT,AT=t((()=>{Ra(),bo(),bt(),Qw(),$o(),ss(),ns(),G(),tT(),pa(),g(),CT=new yo(!0),wT=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],TT=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],ET=1,DT=2,OT=3,kT=4}));function jT(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&<.delete(e);var a=LT.get(e);if(a)return a;var o=w(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,LT.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<zT.length;++s){var c=o[zT[s]];if(c!=null&&!F(c)&&!L(c)&&!R(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=RT.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=NT(o.dashArrayX),f=PT(o.dashArrayY),p=MT(o.symbol),m=FT(d),g=IT(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&&RT.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=cc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=cc(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=Ey(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 bT(b,u)}}}}function MT(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 MT([e]);for(var r=[],n=0;n<e.length;++n)L(e[n])?r.push([e[n]]):r.push(e[n]);return r}function NT(e){if(!e||e.length===0)return[[0,0]];if(R(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!R(e[r])){n=!1;break}if(n)return NT([e]);for(var i=[],r=0;r<e.length;++r)if(R(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=A(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function PT(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(R(e)){var t=Math.ceil(e);return[t,t]}var n=A(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function FT(e){return A(e,function(e){return IT(e)})}function IT(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var LT,RT,zT,BT=t((()=>{Ww(),mt(),G(),_c(),Iy(),AT(),g(),LT=new Uw,RT=new pt(100),zT=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function VT(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=jT(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=jT(i,t)}}})}var HT=t((()=>{BT()})),UT,WT=t((()=>{aa(),UT=new ia}));function GT(e,t){qT[e]=t}function KT(e){return qT[e]}var qT,JT=t((()=>{qT={}}));function YT(e,t){XT[e]=t}var XT,ZT=t((()=>{XT={}}));function QT(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return eE(this,e,t)}}function $T(e){return function(){return eE(this,e,[...arguments])}}function eE(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ia.prototype[t].apply(e,n)}function tE(e,t,n){var r=!(n&&n.ssr);if(r){var i=aE(e);if(i)return i}var a=new bD(e,t,n);return a.id=`ec_`+ ND++,jD[a.id]=a,r&&Xc(e,FD,a.id),gD(a),UT.trigger(`afterinit`,a),a}function nE(e){if(F(e)){var t=e;e=null,k(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ PD++,k(t,function(t){t.group=e})}return MD[e]=!0,e}function rE(e){MD[e]=!1}function iE(e){L(e)?e=jD[e]:e instanceof bD||(e=aE(e)),e instanceof bD&&!e.isDisposed()&&e.dispose()}function aE(e){return jD[Zc(e,FD)]}function oE(e){return jD[e]}function sE(e,t){kD[e]=t}function cE(e){T(DD,e)<0&&DD.push(e)}function lE(e,t){yE(ED,e,t,jE)}function uE(e){fE(`afterinit`,e)}function dE(e){fE(`afterupdate`,e)}function fE(e,t){UT.on(e,t)}function pE(e,t,n){var r,i,a,o,s;I(t)&&(n=t,t=``),z(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;CD[r]||(fe(JE.test(r)&&JE.test(i)),a&&fe(i!==r),CD[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},TD[i]=1,a&&s&&(TD[l]=1),wD[l]=r)}function mE(e,t){Rh.register(e,t)}function hE(e){var t=Rh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function gE(e,t){YT(e,t)}function _E(e,t){yE(OD,e,t,NE,`layout`)}function vE(e,t){yE(OD,e,t,IE,`visual`)}function yE(e,t,n,r,i){if((I(t)||z(t))&&(n=t,t=r),!(T(LD,n)>=0)){LD.push(n);var a=_w.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function bE(e,t){AD[e]=t}function xE(e){c({createCanvas:e})}function SE(e,t,n){var r=KT(`registerMap`);r&&r(e,t,n)}function CE(e){var t=KT(`getMap`);return t&&t(e)}function wE(e,t,n,r){return{eventContent:{selected:Vl(n),isFromClick:t.isFromClick||!1}}}var TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD=t((()=>{o(),zS(),G(),Ue(),qx(),aa(),oC(),lC(),Vh(),gC(),HC(),GC(),wy(),qC(),qy(),ep(),ol(),uu(),Y(),db(),rw(),ow(),Sw(),Dw(),it(),kw(),Pw(),Rw(),wc(),mb(),Nv(),Bg(),Bw(),HT(),WT(),g(),JT(),ZT(),TE=`6.0.0`,EE={zrender:`6.0.0`},DE=1,OE=800,kE=900,AE=1e3,jE=2e3,ME=5e3,NE=1e3,PE=1100,FE=2e3,IE=3e3,LE=4e3,RE=4500,zE=4600,BE=5e3,VE=6e3,HE=7e3,UE={PROCESSOR:{FILTER:AE,SERIES_FILTER:OE,STATISTIC:ME},VISUAL:{LAYOUT:NE,PROGRESSIVE_LAYOUT:PE,GLOBAL:FE,CHART:IE,POST_CHART_LAYOUT:zE,COMPONENT:LE,BRUSH:BE,CHART_ITEM:RE,ARIA:VE,DECAL:HE}},WE=`__flagInMainProcess`,GE=`__mainProcessVersion`,KE=`__pendingUpdate`,qE=`__needsUpdateStatus`,JE=/^[a-zA-Z0-9_]+$/,YE=`__connectUpdateStatus`,XE=0,ZE=1,QE=2,$E=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ia),eD=$E.prototype,eD.on=$T(`on`),eD.off=$T(`off`),bD=function(e){i(t,e);function t(t,n,r){var i=e.call(this,new Ow)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[GE]=1,r.ssr&&NS(function(e){var t=X(e),n=t.dataIndex;if(n!=null){var r=U();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=DS(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:H(r.useDirtyRect,s),useCoarsePointer:H(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ab(W(c.flush,c),17),i._updateTheme(n),i._locale=jg(r.locale||zg),i._coordSysMgr=new Rh;var l=i._api=hD(i);function u(e,t){return e.__prio-t.__prio}return Wx(OD,u),Wx(ED,u),i._scheduler=new _w(i,l,ED,OD),i._messageCenter=new $E,i._initEvents(),i.resize=W(i.resize,i),c.animation.on(`frame`,i._onframe,i),uD(c,i),dD(c,i),me(i),i}return t.prototype._onframe=function(){if(!this._disposed){vD(this);var e=this._scheduler;if(this[KE]){var t=this[KE].silent;this[WE]=!0,yD(this);try{tD(this),iD.update.call(this,null,this[KE].updateParams)}catch(e){throw this[WE]=!1,this[KE]=null,e}this._zr.flush(),this[WE]=!1,this[KE]=null,cD.call(this,t),lD.call(this,t)}else if(e.unfinished){var n=DE,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),oD(this,r),e.performVisualTasks(r),mD(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>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[WE]){if(this._disposed){this.id;return}var r,i,a;if(z(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[WE]=!0,yD(this),!this._model||t){var o=new hC(this._api),s=this._theme,c=this._model=new aC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},DD);var l={seriesTransition:a,optionChanged:!0};if(n)this[KE]={silent:r,updateParams:l},this[WE]=!1,this.getZr().wakeUp();else{try{tD(this),iD.update.call(this,null,l)}catch(e){throw this[KE]=null,this[WE]=!1,e}this._ssr||this._zr.flush(),this[KE]=null,this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[WE]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[KE]&&(r??=this[KE].silent,i=this[KE].updateParams,this[KE]=null),this[WE]=!0,yD(this);try{this._updateTheme(e),n.setTheme(this._theme),tD(this),iD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[WE]=!1,e}this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype._updateTheme=function(e){L(e)&&(e=kD[e]),e&&(e=b(e),e&&RC(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||K.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 k(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;k(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 k(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(MD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();k(jD,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=DS(m,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:p}),t){var _=``;return k(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()}else return e.connectedBackgroundColor&&g.add(new _s({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),k(u,function(e){var t=new os({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`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return aD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return aD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return aD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return k(qc(n,e),function(e,n){n.indexOf(`Models`)>=0&&k(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=qc(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?Iw(i,t):Fw(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;k(SD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&zw(i,function(e){var t=X(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}else 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;k(TD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),pb(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()&&Xc(this.getDom(),FD,``);var e=this,t=e._api,n=e._model;k(e._componentsViews,function(e){e.dispose(n,t)}),k(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 jD[e.id]},t.prototype.resize=function(e){if(!this[WE]){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[KE]&&(r??=this[KE].silent,n=!0,this[KE]=null),this[WE]=!0,yD(this);try{n&&tD(this),iD.update.call(this,{type:`resize`,animation:C({duration:0},e&&e.animation)})}catch(e){throw this[WE]=!1,e}this[WE]=!1,cD.call(this,r),lD.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(z(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),AD[e]){var n=AD[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=wD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(z(t)||(t={silent:!!t}),CD[e.type]&&this._model){if(this[WE]){this._pendingActions.push(e);return}var n=t.silent;sD.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),cD.call(this,n),lD.call(this,n)}},t.prototype.updateLabelLayout=function(){UT.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(){tD=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),nD(e,!0),nD(e,!1),t.plan()},nD=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=We(e.type);u=new(t?KC.getClass(d.main,d.sub):Gy.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)}},rD=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){k([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=U(),k(Ec(c),function(e){var t=zc(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(Xl(n))if(t instanceof Cy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Fl(t,n,e._api);else{var r=Il(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Pl(t.mainType,t.componentIndex,e._api),a&&k(a,function(e){n.type===`highlight`?Tl(e):El(e)})}else Yl(n)&&t instanceof Cy&&(zl(t,n,e._api),Bl(t),_D(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},iD={prepareAndUpdate:function(e){tD(this),iD.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){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),oD(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),fD(this,r,i,e,n),UT.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=U();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),mD(this,r,i,e,{},o),UT.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Gy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),fD(this,n,this._api,e,{}),UT.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()}),Gy.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)}),UT.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){iD.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=qc(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}}aD=e,oD=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},sD=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=CD[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&We(s[0]);this[WE]=!0,yD(this);var u=[e],d=!1;e.batch&&(d=!0,u=A(e.batch,function(t){return t=w(C({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Yl(e),_=Xl(e);if(_&&Ml(this._api),k(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=Jc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;rD(n,c,t,u),_D(n)}else g?(rD(n,c,t,`series`),_D(n)):l&&rD(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[KE]?(tD(this),iD.update.call(this,e),this[KE]=null):iD[c].call(this,e)}catch(e){throw this[WE]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[WE]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;fe(z(y)),v=w({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)}},cD=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();sD.call(this,n,e)}},lD=function(e){!e&&this.trigger(`updated`)},uD=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[KE]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},dD=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=zw(n,ql);r&&(Ll(r,e,t._api),_D(t))}).on(`mouseout`,function(e){var n=e.target,r=zw(n,ql);r&&(Rl(r,e,t._api),_D(t))}).on(`click`,function(e){var n=e.target,r=zw(n,function(e){return X(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=X(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;Wx(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),k(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)})}}fD=function(e,t,r,i,a){n(t),pD(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive=!1}),mD(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},pD=function(e,t,n,r,i,a){k(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),s(i,e),l(i,e)})},mD=function(e,t,n,r,i,u){var d=e._scheduler;i=C(i||{},{updatedSeries:t.getSeries()}),UT.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),Bl(t)}),d.unfinished=f||d.unfinished,UT.trigger(`series:layoutlabels`,t,n,i),UT.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),UT.trigger(`series:afterupdate`,t,n,i)},_D=function(e){e[qE]=!0,e.getZr().wakeUp()},yD=function(e){e[GE]=(e[GE]+1)%1e3},vD=function(e){e[qE]&&(e.getZr().storage.traverse(function(e){af(e)||r(e)}),e[qE]=!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.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!K.node&&!K.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}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=Hf(e);t.eachRendered(function(e){return Wf(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!af(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(af(e))return;if(e instanceof Qo&&Zl(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)}})}hD=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){Tl(t,n),_D(e)},n.prototype.leaveEmphasis=function(t,n){El(t,n),_D(e)},n.prototype.enterBlur=function(t){Dl(t),_D(e)},n.prototype.leaveBlur=function(t){Ol(t),_D(e)},n.prototype.enterSelect=function(t){kl(t),_D(e)},n.prototype.leaveSelect=function(t){Al(t),_D(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.getMainProcessVersion=function(){return e[GE]},n}(cC))(e)},gD=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[YE]=t}}k(wD,function(n,r){e._messageCenter.on(r,function(n){if(MD[e.group]&&e[YE]!==XE){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];k(jD,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,XE),k(i,function(e){e[YE]!==ZE&&e.dispatchAction(r)}),t(i,QE)}})})}}(),t}(ia),xD=bD.prototype,xD.on=QT(`on`),xD.off=QT(`off`),xD.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)},SD=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],CD={},wD={},TD={},ED=[],DD=[],OD=[],kD={},AD={},jD={},MD={},ND=new Date-0,PD=new Date-0,FD=`_echarts_instance_`,ID=rE,LD=[],RD=Dv,vE(FE,$C),vE(RE,tw),vE(RE,nw),vE(FE,Mw),vE(RE,Nw),vE(HE,VT),cE(RC),lE(kE,UC),bE(`default`,iw),pE({type:iu,event:iu,update:iu},xe),pE({type:au,event:au,update:au},xe),pE({type:ou,event:lu,update:ou,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),pE({type:su,event:lu,update:su,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),pE({type:cu,event:lu,update:cu,action:xe,refineEvent:wE,publishNonRefinedEvent:!0}),sE(`default`,{}),sE(`dark`,Ew),zD={}}));function VD(e){if(F(e)){k(e,function(e){VD(e)});return}T(HD,e)>=0||(HD.push(e),I(e)&&(e={install:e}),e.install(UD))}var HD,UD,WD=t((()=>{BD(),qC(),qy(),av(),wy(),G(),JT(),zS(),ZT(),HD=[],UD={registerPreprocessor:cE,registerProcessor:lE,registerPostInit:uE,registerPostUpdate:dE,registerUpdateLifecycle:fE,registerAction:pE,registerCoordinateSystem:mE,registerLayout:_E,registerVisual:vE,registerTransform:RD,registerLoading:bE,registerMap:SE,registerImpl:GT,PRIORITY:UE,ComponentModel:Z,ComponentView:KC,SeriesModel:Cy,ChartView:Gy,registerComponentModel:function(e){Z.registerClass(e)},registerComponentView:function(e){KC.registerClass(e)},registerSeriesModel:function(e){Cy.registerClass(e)},registerChartView:function(e){Gy.registerClass(e)},registerCustomSeries:function(e,t){YT(e,t)},registerSubTypeDefaulter:function(e,t){Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){jS(e,t)}}})),GD,KD=t((()=>{GD=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function qD(e){return z(e)&&e.value!=null?e.value:e+``}var JD,YD,XD=t((()=>{G(),JD=0,YD=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++JD,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&A(r,qD);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||=U(this.categories)},e}()})),ZD=null;function QD(){return ZD}function $D(e,t,n,r,i){var a={},o=a.interval=tc(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=eO(o);return nO(a.niceTickExtent=[Hs(Math.ceil(e[0]/o)*o,s),Hs(Math.floor(e[1]/o)*o,s)],e),a}function eO(e){return Ws(e)+2}function tO(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function nO(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),tO(e,0,t),tO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function rO(e,t){return e>=t[0]&&e<=t[1]}function iO(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function aO(e,t){return e*(t[1]-t[0])+t[0]}function oO(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var sO,cO=t((()=>{_c(),G(),sO=function(){function e(){this.normalize=iO,this.scale=aO}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=W(e.normalize,e),this.scale=W(e.scale,e)):(this.normalize=iO,this.scale=aO)},e}()})),lO,uO=t((()=>{it(),cO(),G(),Ug(),lO=function(){function e(e){this._calculator=new sO,this._setting=e||{},this._extent=[1/0,-1/0];var t=Vg();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=Vg();t&&this._innerSetBreak(t.parseAxisBreakOption(e,W(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),$e(lO)})),dO,fO=t((()=>{o(),uO(),XD(),cO(),G(),dO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new YD({}),F(r)&&(r=new YD({categories:A(r,function(e){return z(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:L(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return rO(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return 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=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(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(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(lO),lO.registerClass(dO)})),pO,mO,hO=t((()=>{o(),_c(),V_(),uO(),cO(),Ug(),pO=Hs,mO=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return rO(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=eO(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Vg(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]<r[0]&&(e.expandToNicedExtent?o.push({value:pO(r[0]-t,i)}):o.push({value:n[0]}));for(var c=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(o.push({value:l}),l=pO(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=pO(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:pO(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1];if(!(o.break||a.break)){for(var s=0,c=[],l=(a.value-o.value)/e,u=eO(l);s<e-1;){var d=pO(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=Vg();f&&f.pruneTicksByBreak(`auto`,c,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Ws(e.value)||0:n===`auto`&&(n=this._intervalPrecision),k_(pO(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var a=$D(r,i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,a=this._intervalPrecision;e.fixMin||(t[0]=pO(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=pO(Math.ceil(t[1]/i)*i,a)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}(lO),lO.registerClass(mO)}));function gO(e,t,n,r){return $g(new Date(t),e,r).getTime()===$g(new Date(n),e,r).getTime()}function _O(e,t){return e/=__,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function vO(e){var t=30*__;return e/=t,e>6?6:e>3?3:e>2?2:1}function yO(e){return e/=g_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function bO(e,t){return e/=t?h_:m_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function xO(e){return tc(e,!0)}function SO(e,t,n){var r=Math.max(0,T(w_,t)-1);return $g(new Date(e),w_[r],n).getTime()}function CO(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 wO(e,t,n,r,i,a){var o=1e4,s=T_,c=0;function l(e,t,n,i,s,l,u){for(var d=CO(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!gO(qg(e),r[0],r[1],n)){s&&(i=[{value:SO(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+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/__/365)),p=e_(n),m=s_(n);break;case`half-year`:case`quarter`:case`month`:f=vO(t),p=t_(n),m=c_(n);break;case`week`:case`half-week`:case`day`:f=_O(t,31),p=n_(n),m=l_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=yO(t),p=r_(n),m=u_(n);break;case`minute`:f=bO(t,!0),p=i_(n),m=d_(n);break;case`second`:f=bO(t,!1),p=a_(n),m=f_(n);break;case`millisecond`:f=xO(t),p=o_(n),m=p_(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=qg(s[h]);if(Jg(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?qg(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=M(A(d,function(e){return M(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=Qg(w[T].value,n);S.push({value:w[T].value,time:{level:C-h,upperTimeUnit:E,lowerTimeUnit:E}})}S.sort(function(e,t){return e.value-t.value});for(var D=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&D.push(S[h]);return D}var TO,EO,DO,OO=t((()=>{o(),_c(),E_(),cO(),hO(),uO(),G(),Ug(),TO=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},EO=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return Xg(e.value,C_[Yg(qg(this._minLevelUnit))]||C_.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return Zg(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=Vg(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return Vg().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=Qg(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=wO(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=Qg(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=w_.length-1,d=0;return k(i,function(e){u=Math.min(u,T(w_,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&Vg().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&Vg().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(T(w_,Qg(e.vmin,l)),T(w_,Qg(e.vmax,l))),n=0,r=0;r<w_.length;r++)if(!gO(w_[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:w_[Math.max(i,t)],upperTimeUnit:w_[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=__,t[1]+=__),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-__}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10,this._approxInterval=this._getExtentSpanWithBreaks()/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var r=DO.length,i=Math.min(TO(DO,this._approxInterval,0,r),r-1);this._interval=DO[i][1],this._intervalPrecision=eO(this._interval),this._minLevelUnit=DO[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return R(e)?e:+Qs(e)},t.prototype.contain=function(e){return rO(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(mO),DO=[[`second`,m_],[`minute`,h_],[`hour`,g_],[`quarter-day`,g_*6],[`half-day`,g_*12],[`day`,__*1.2],[`half-week`,__*3.5],[`week`,__*7],[`month`,__*31],[`quarter`,__*95],[`half-year`,v_/2],[`year`,v_]],lO.registerClass(EO)}));function kO(e,t){return AO(e,Ws(t))}var AO,jO,MO,NO,PO,FO,IO=t((()=>{o(),G(),uO(),_c(),hO(),cO(),Ug(),AO=Hs,jO=Math.floor,MO=Math.ceil,NO=Math.pow,PO=Math.log,FO=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new mO,t}return t.prototype.getTicks=function(t){t||={};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),a=this.base,o=this._originalScale._innerGetBreaks(),s=Vg();return A(i,function(e){var t=e.value,i=null,c=NO(a,t);t===n[0]&&this._fixMin?i=r[0]:t===n[1]&&this._fixMax&&(i=r[1]);var l;if(s){var u=s.getTicksLogTransformBreak(e,a,o,kO);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=kO(c,i)),{value:c,break:l}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=oO(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=NO(t,n[0]),n[1]=NO(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=kO(n[0],r[0])),this._fixMax&&(n[1]=kO(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=oO(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=$s(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[AO(MO(t[0]/r)*r),AO(jO(t[1]/r)*r)];this._interval=r,this._intervalPrecision=eO(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=PO(t)/PO(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=PO(t)/PO(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),NO(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Vg();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,W(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(mO),lO.registerClass(FO)}));function LO(e,t,n){var r=e.rawExtentInfo;return r||(r=new zO(e,t,n),e.rawExtentInfo=r,r)}function RO(e,t){return t==null?null:se(t)?NaN:e.parse(t)}var zO,BO,VO,HO=t((()=>{G(),fn(),zO=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;I(a)?this._modelMinNum=RO(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=RO(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(I(o)?this._modelMaxNum=RO(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=RO(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=F(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[sn(c[0],1),sn(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=se(o)||se(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[VO[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=BO[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),BO={min:`_determinedMin`,max:`_determinedMax`},VO={min:`_dataMin`,max:`_dataMax`}}));function UO(e,t){var n=e.type,r=LO(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=Xy(`bar`,o),c=!1;if(k(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=Qy(s),u=WO(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function WO(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=eb(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;k(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function GO(e,t){var n=t,r=UO(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof FO&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(QO(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function KO(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new dO({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new EO({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((lO.getClass(t))||mO)}}function qO(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Wg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(L(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(I(t)){if(e.type===`category`)return function(n,r){return t(JO(e,n),n.value-e.scale.getExtent()[0],null)};var r=Vg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(JO(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function JO(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function YO(e){return e.get(`interval`)??`auto`}function XO(e){return e.type===`category`&&YO(e.getLabelModel())===0}function ZO(e){return e===`middle`||e===`center`}function QO(e){var t=e.get(`breaks`,!0);if(t!=null)return!Vg()||!$O(e.axis)?void 0:t}function $O(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var ek=t((()=>{G(),fO(),hO(),uO(),ib(),OO(),IO(),HO(),E_(),Ug()}));function tk(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function nk(e,t){var n=A(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function rk(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=qO(e),i=e.scale.getExtent();return{labels:A(M(nk(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?ak(e,t):ck(e)}function ik(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:M(nk(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?sk(e,t):{ticks:A(e.scale.getTicks(n),function(e){return e.value})}}function ak(e,t){var n=e.getLabelModel(),r=ok(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function ok(e,t,n){var r=Ck(e),i=YO(t),a=n.kind===xk.estimate;if(!a){var o=uk(r,i);if(o)return o}var s,c;I(i)?s=vk(e,i):(c=i===`auto`?fk(e,n):i,s=_k(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return dk(r,i,l),!0}):dk(r,i,l),l}function sk(e,t){var n=Sk(e),r=YO(t),i=uk(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),I(r))a=vk(e,r,!0);else if(r===`auto`){var s=ok(e,e.getLabelModel(),tk(xk.determine));o=s.labelCategoryInterval,a=A(s.labels,function(e){return e.tickValue})}else o=r,a=_k(e,o,!0);return dk(n,r,{ticks:a,tickCategoryInterval:o})}function ck(e){var t=e.scale.getTicks(),n=qO(e);return{labels:A(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}function lk(e){return function(t){return bk(t)[e]||(bk(t)[e]={list:[]})}}function uk(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function dk(e,t,n){return e.list.push({key:t,value:n}),n}function fk(e,t){if(t.kind===xk.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return bk(e).autoInterval=n,!0}),n}return bk(e).autoInterval??(bk(e).autoInterval=e.calculateCategoryInterval(t))}function pk(e,t){var n=t.kind,r=gk(e),i=qO(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=nn(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===xk.estimate?(t.out.noPxChangeTryDetermine.push(W(mk,null,e,S,c)),S):hk(e,S,c)??S}function mk(e,t,n){return hk(e,t,n)==null}function hk(e,t,n){var r=yk(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 gk(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 _k(e,t,n){var r=qO(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=XO(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function vk(e,t,n){var r=e.scale,i=qO(e),a=[];return k(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var yk,bk,xk,Sk,Ck,wk=t((()=>{G(),fn(),Y(),ek(),yk=Kc(),bk=Kc(),xk={estimate:1,determine:2},Sk=lk(`axisTick`),Ck=lk(`axisLabel`)}));function Tk(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function Ek(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;k(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=Hs(e),t=Hs(t),d?e>t:e<t}}var Dk,Ok,kk=t((()=>{G(),_c(),wk(),Dk=[0,1],Ok=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.getPixelPrecision=function(e){return Ks(e||this.scale.getExtent(),this._extent)},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._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),Tk(n,r.count())),zs(e,Dk,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),Tk(n,r.count()));var i=zs(e,n,Dk,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=ik(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=A(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return Ek(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),A(this.scale.getMinorTicks(e),function(e){return A(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=tk(xk.determine),rk(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(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=tk(xk.determine),pk(this,e)},e}()})),Ak=`expandAxisBreak`;G(),ep(),ol(),vp(),Np(),_c(),Iy(),jt(),lr(),ek(),nx(),Y(),Ug(),Xt(),Mt(),br(),wk();var jk=Math.PI,Mk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Nk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Pk=Kc(),Fk=Kc(),Ik=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 Lk(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=sA(e.axisName)&&ZO(e.nameLocation);k(r,function(e){var t=Vb(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?kt(Rk,n.transform):Ct(Rk),t.transform&&Tt(Rk,Rk,t.transform),J.copy(zk,t.localRect),zk.applyTransform(Rk),s?s.union(zk):J.copy(s=new J(0,0,0,0),zk))}});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 J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Rk=St(),zk=new J(0,0,0,0),Bk=function(e,t,n,r,i,a){if(ZO(e.nameLocation)){var o=a.stOccupiedRect;o&&Vk(Ub({},o,a.transGroup.transform),r,i)}else Hk(a.labelInfoList,a.dirVec,r,i)};function Vk(e,t,n){var r=new q;Xb(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Wb(t,r)}function Hk(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||Vk(s,n,r)}}var Uk=function(){function e(e,t,n,r){this.group=new Fu,this._axisModel=e,this._api=t,this._local={},this._shared=r||new Ik(Bk),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=H(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=H(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:H(e.nameDirection,1),tickDirection:H(e.tickDirection,1),labelDirection:H(e.labelDirection,1),labelOffset:H(e.labelOffset,0),silent:H(e.silent,!0),axisName:r,nameLocation:le(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:sA(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Fu({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 q(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},k(Wk,function(r){e[r]&&Gk[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=Xs(t-e),i,a;return Zs(r)?(a=n>0?`top`:`bottom`,i=`center`):Zs(r-jk)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<jk?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}(),Wk=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Gk={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&&(nr(u,u,l),nr(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`])&&r.axis.scale.hasBreaks())QD().buildAxisBreakLine(r,i,a,m);else{var h=new Cd(C({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));yf(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(_)||R(_))&&(_=[_,_]);var v=Dy(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];k([{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=Ey(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){eA(t,i,s)&&Kk(e,t,n,r,i,a,o,xk.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){eA(t,i,s)&&Kk(e,t,n,r,i,a,o,xk.determine);var c=Qk(e,i,a,r);Yk(e,t.labelLayoutList,c),$k(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(sA(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 q(0,0),_=new q(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=St();_.transform(Dt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*jk/180);var b,x;ZO(u)?b=Uk.innerTextLayout(e.rotation,y??e.rotation,d):(b=qk(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=ce(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Ns({x:g.x,y:g.y,rotation:b.rotation,silent:Uk.isLabelSilent(r),style:ap(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(If({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Uk.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,X(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=Vb({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ZO(u)?Mk[E]:Nk[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 Kk(e,t,n,r,i,a,o,s){nA(t)||tA(e,t,i,s,r,o);var c=t.labelLayoutList;iA(e,r,c,a),lA(r,e.rotation,c);var l=e.optionHideOverlap;Jk(r,c,l),l&&Yb(M(c,function(e){return e&&!e.label.ignore})),Lk(e,n,r,c)}function qk(e,t,n,r){var i=Xs(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Zs(i-jk/2)?(o=c?`bottom`:`top`,a=`center`):Zs(i-jk*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<jk*1.5&&i>jk/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Jk(e,t,n){if(XO(e.axis))return;function r(e,r,i){var a=Vb(t[r]),o=Vb(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){Xk(a.label);return}if(o.suggestIgnore){Xk(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=Gb({marginForce:c},a),o=Gb({marginForce:c},o)}Xb(a,o,null,{touchThreshold:s})&&Xk(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function Yk(e,t,n){e.showMinorTicks||k(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=Fk(r),a=Pk(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){Xk(r);return}}})}function Xk(e){e&&(e.ignore=!0)}function Zk(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&&(nr(o,o,t),nr(s,s,t));var u=new Cd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});yf(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=Fk(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Qk(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=Zk(i.getTicksCoords(),n.transform,c,w(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function $k(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=w(c.getLineStyle(),w(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=Zk(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function eA(e,t,n){if(nA(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),rA(e,null,null,null))}return!0}function tA(e,t,n,r,i,a){var o=i.axis,s=ce(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Fu;n.add(c);var l=tk(r);if(!s||o.scale.isBlank()){rA(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ce(e.raw.labelRotate,u.get(`rotate`))||0)*jk/180,p=Uk.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;k(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];z(f)&&f.textStyle&&(l=new Mp(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=H(l.getShallow(`alignMinLabel`,!0),b),S=H(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=H(l.getShallow(`verticalAlignMinLabel`,!0),C),T=H(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new Ns({x:0,y:0,rotation:0,silent:Uk.isLabelSilent(i),z2:E,style:ap(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:I(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=Pk(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,If({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=Uk.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),X(D).eventData=k,e.break&&cA(i,a,D,e.break)}h.push(D),c.add(D)}),rA(t,A(h,function(e){return{label:e,priority:Pk(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function nA(e){return!!e.labelLayoutList}function rA(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function iA(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);k(n,function(n,a){var o=Vb(n);if(o){var s=o.label,c=Pk(s);o.suggestIgnore=s.ignore,s.ignore=!1,dr(aA,oA),aA.x=t.axis.dataToCoord(c.tickValue),aA.y=e.labelOffset+e.labelDirection*i,aA.rotation=c.layoutRotation,r.add(aA),aA.updateTransform(),r.remove(aA),aA.decomposeTransform(),dr(s,aA),s.markRedraw(),zb(o,!0),Vb(o)}})}var aA=new _s,oA=new _s;function sA(e){return!!e}function cA(e,t,n,r){n.on(`click`,function(n){var i={type:Ak,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function lA(e,t,n){var r=Vg();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&Pk(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&k(i,function(r){QD().adjustBreakLabelPair(e.axis.inverse,t,[Vb(n[r[0]]),Vb(n[r[1]])])})}}G();function uA(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),ce(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}Np(),G();function dA(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fA(n,e,t),n.seriesInvolved&&mA(n,e),n}function fA(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];k(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=xA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(k(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)&&k(f.baseAxes,P(p,d?`cross`:!0,u)),d&&k(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&&!bA(d))){s??=d.get(`triggerTooltip`),d=r?pA(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=xA(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:bA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=hA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function pA(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};k(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&&w(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Mp(c,n,r))}function mA(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||k(e.coordSysAxesInfo[xA(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 hA(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(gA(a[r+`AxisId`],n.id)||gA(a[r+`AxisIndex`],n.componentIndex)||gA(a[r+`AxisName`],n.name))return i}}function gA(e,t){return e===`all`||F(e)&&T(e,t)>=0||e===t}function _A(e){var t=vA(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=bA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(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 vA(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[xA(e)]}function yA(e){var t=vA(e);return t&&t.axisPointerModel}function bA(e){return!!e.get([`handle`,`show`])}function xA(e){return e.type+`||`+e.id}o(),qC();var SA={},CA=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&&_A(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=yA(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){SA[e]=t},t.getAxisPointerClass=function(e){return e&&SA[e]},t.type=`axis`,t}(KC);BD(),G(),Y();var wA=Kc();function TA(e,t){return!!wA(e)[t]}pE({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},xe),ep();var EA={axisPointer:1,tooltip:1,brush:1};function DA(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||EA.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Hf(r),o=Hf(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}o(),aa(),vx(),G(),Y(),ep();var OA=function(e){i(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=W(n._mousedownHandler,n),i=W(n._mousemoveHandler,n),a=W(n._mouseupHandler,n),o=W(n._mousewheelHandler,n),s=W(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Hf(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:H(c.z2,-1/0)},p=C({},n.triggerInfo);this._opt=w(C({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(MA(t,`mousedown`,r,f),MA(t,`mousemove`,i,f),MA(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(MA(t,`mousewheel`,o,f),MA(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,NA(t,`mousedown`,r),NA(t,`mousemove`,i),NA(t,`mouseup`,a),NA(t,`mousewheel`,o),NA(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(DA(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`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(px(e)||kA(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`||TA(t,`globalPan`)||kA(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!LA(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&_x(e.event),e.__ecRoamConsumed=!0,IA(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!kA(e)){var t=this._zr;if(!px(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!kA(e)){var t=LA(`zoomOnMouseWheel`,e,this._opt),n=LA(`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(!(TA(this._zr,`globalPan`)||kA(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)&&(_x(r.event),r.__ecRoamConsumed=!0,IA(e,t,n,r,i))},t}(ia);function kA(e){return e.__ecRoamConsumed}var AA=Kc();function jA(e){var t=AA(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function MA(e,t,n,r){for(var i=jA(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}),PA(e,t)}function NA(e,t,n){for(var r=jA(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||FA(e,t);return}}function PA(e,t){var n=jA(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 FA(e,t){var n=jA(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function IA(e,t,n,r,i){i.isAvailableBehavior=W(LA,null,n,r),e.trigger(t,i)}function LA(e,t,n){var r=n[e];return!e||r&&(!L(r)||t.event[r+`Key`])}function RA(e,t){return Math.abs(e-t)<BA}function zA(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+=No(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!RA(i[0],s[0])||!RA(i[1],s[1]))&&(r+=No(i[0],i[1],s[0],s[1],t,n)),r!==0}var BA,VA=t((()=>{Po(),BA=1e-8}));function HA(e,t){for(var n=0;n<e.length;n++)nr(e[n],e[n],t)}function UA(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])&&(rr(t,t,a),ir(n,n,a))}}function WA(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 GA,KA,qA,JA,YA,XA=t((()=>{o(),Xt(),lr(),VA(),jt(),G(),GA=[],KA=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}(),qA=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),JA=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),YA=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 WA(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 k(i,function(t){t.type===`polygon`?UA(t.exterior,n,r,e):k(t.points,function(t){UA(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 J(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(zA(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(zA(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 J(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(HA(u.exterior,s),k(u.interiors,function(e){HA(e,s)})):k(u.points,function(e){HA(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}(KA),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=Ct(GA),i=e;i&&!i.isGeoSVGGraphicRoot;)Tt(r,i.getLocalTransform(),r),i=i.parent;return kt(r,r),nr(n,n,r),n},t}(KA)}));function ZA(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return k(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=$A(i,r,n);break;case`Polygon`:QA(i,r,n);break;case`MultiLineString`:QA(i,r,n);break;case`MultiPolygon`:k(i,function(e,t){return QA(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function QA(e,t,n){for(var r=0;r<e.length;r++)e[r]=$A(e[r],t[r],n)}function $A(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 ej(e,t){return e=ZA(e),A(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 qA(a[0],a.slice(1)));break;case`MultiPolygon`:k(r.coordinates,function(e){e[0]&&i.push(new qA(e[0],e.slice(1)))});break;case`LineString`:i.push(new JA([r.coordinates]));break;case`MultiLineString`:i.push(new JA(r.coordinates))}var o=new YA(n[t||`name`],i,n.cp);return o.properties=n,o})}var tj=t((()=>{G(),XA()}));G(),Y();var nj=Kc();function rj(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,uj(t,n,e),k(n,function(n){k(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,P(ij,e))})}),t.wrapMethod(`cloneShallow`,P(oj,e)),k(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,P(aj,e))}),fe(n[t.dataType]===t)}function ij(e,t){if(lj(this)){var n=C({},nj(this).datas);n[this.dataType]=t,uj(t,n,e)}else dj(t,this.dataType,nj(this).mainData,e);return t}function aj(e,t){return e.struct&&e.struct.update(),t}function oj(e,t){return k(nj(t).datas,function(n,r){n!==t&&dj(n.cloneShallow(),r,t,e)}),t}function sj(e){var t=nj(this).mainData;return e==null||t==null?t:nj(t).datas[e]}function cj(){var e=nj(this).mainData;return e==null?[{data:e}]:A(N(nj(e).datas),function(t){return{type:t,data:nj(e).datas[t]}})}function lj(e){return nj(e).mainData===e}function uj(e,t,n){nj(e).datas={},k(t,function(t,r){dj(t,r,e,n)})}function dj(e,t,n,r){nj(n).datas[t]=e,nj(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=sj,e.getLinkedDataAll=cj}G(),Oh(),Ph(),Y();var fj=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}(),pj=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 fj(zc(e.name,``),i);t?mj(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=Ah(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new Dh(c,n);return l.initData(a),r&&r(l),rj({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function mj(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}G();function hj(e,t,n){if(e&&T(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 gj(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function _j(e,t){return T(gj(e),t)>=0}function vj(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}G();var yj=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function bj(e){for(var t=0;t<yj.length;t++)e.registerAction({type:yj[t],update:`updateView`},xe);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=hj(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=_j(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}pv();function xj(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=ov(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}o(),G(),wy(),Np(),Y(),ly(),Vv();var Sj=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};Cj(n);var r=e.levels||[],i=new Mp({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=wj(r,t);var a=A(r||[],function(e){return new Mp(e,i,t)},this),o=pj.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Wv(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=vj(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=U(),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(){xj(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:.32*.32,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}(Cy);function Cj(e){var t=0;k(e.children,function(e){Cj(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 wj(e,t){var n=Ec(t.get(`color`)),r=Ec(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;k(e,function(e){var t=new Mp(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]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}ep(),ol(),nv(),G(),Y(),uu(),vp();var Tj=8,Ej=8,Dj=5,Oj=function(){function e(e){this.group=new Fu,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=G_(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=W_(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),K_(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=zc(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+Tj*2,t.emptyItemWidth);t.totalWidth+=o+Ej,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 gd({shape:{points:kj(c,0,_,u,m===f.length-1,m===0)},style:w(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Ns({style:ap(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:P(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=ap(o,{text:v}),y.ensureState(`emphasis`).style=p,Wl(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),Aj(y,e,g),c+=_+Ej}},e.prototype.remove=function(){this.group.removeAll()},e}();function kj(e,t,n,r,i,a){var o=[[i?e:e-Dj,t],[e+n,t],[e+n,t+r],[i?e:e-Dj,t+r]];return!a&&o.splice(2,0,[e+n+Dj,t+r/2]),!i&&o.push([e,t+r/2]),o}function Aj(e,t,n){X(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&&vj(n,t)}}var jj=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(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 Mj(){return new jj}o(),G(),ep(),ol(),uu(),Lp(),Xt(),jt(),ot(),qy(),Ra(),Y(),V_(),vp();var Nj=Fu,Pj=_s,Fj=3,Ij=`label`,Lj=`upperLabel`,Rj=100,zj=20,Bj=30,Vj=at([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),Hj=function(e){var t=Vj(e);return t.stroke=t.fill=t.lineWidth=null,t},Uj=Kc(),Wj=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=Gj(),n}return t.prototype.render=function(e,t,n,r){if(!(T(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=hj(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 Nj,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=Gj(),o=Gj(),s=this._storage,c=[];function l(e,r,i,l){return Kj(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,k(e,function(e,t){!e.isRemoved()&&o(t,t)})):new Ip(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&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=Gj();return e&&k(e,function(e,n){var r=t[n];k(e,function(e){e&&(r.push(e),Uj(e).willDelete=!0)})}),t}function h(){k(u,function(e){k(e,function(e){e.parent&&e.parent.remove(e)})}),k(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=Mj();k(t.willDeleteEls,function(e,t){k(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=Uj(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)}})}),k(this._storage,function(e,n){k(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof Fu?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(W(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this._controller,r=this._controllerHost;r||=(this._controllerHost={target:this.group},this._controllerHost);var i=this.seriesModel;n||(n=this._controller=new OA(e.getZr()),n.on(`pan`,W(this._onPan,this)),n.on(`zoom`,W(this._onZoom,this))),n.enable(i.get(`roam`),{api:e,zInfo:{component:i},triggerInfo:{roamTrigger:i.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}}),r.zoomLimit=i.get(`scaleLimit`),r.zoom=i.get(`zoom`)},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>Fj||Math.abs(e.dy)>Fj)){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;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=St();Et(m,m,[-t,-n]),Ot(m,m,[f,f]),Et(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(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&&L_(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 Oj(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(_j(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gj(),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}(Gy);function Gj(){return{nodeGroup:[],background:[],content:[]}}function Kj(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=z(`nodeGroup`,Nj);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),Uj(O).nodeWidth=p,Uj(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=z(`background`,Pj,l,zj);k&&F(O,k,x&&u.upperLabelHeight);var A=f.getModel(`emphasis`),j=A.get(`focus`),M=A.get(`blurScope`),ee=A.get(`disabled`),N=j===`ancestor`?o.getAncestorsIndices():j===`descendant`?o.getDescendantIndices():j;if(x)ql(O)&&Kl(O,!1),k&&(Kl(k,!ee),d.setItemGraphicEl(o.dataIndex,k),Gl(k,N,M));else{var te=z(`content`,Pj,l,Bj);te&&I(O,te),k.disableMorphing=!0,k&&ql(k)&&Kl(k,!1),Kl(O,!ee),d.setItemGraphicEl(o.dataIndex,O);var P=f.getShallow(`cursor`);P&&te.attr(`cursor`,P),Gl(O,N,M)}return O;function F(t,n,r){var i=X(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)L(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=Hj(S);c.fill=s;var l=Vj(w);l.fill=w.get(`borderColor`);var u=Vj(T);u.fill=T.get(`borderColor`);var d=Vj(E);if(d.fill=E.get(`borderColor`),r){var f=p-2*h;ne(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,Sl(n)}t.add(n)}function I(t,n){var r=X(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)L(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=Hj(S);l.fill=c,l.decal=s.decal;var u=Vj(w),d=Vj(T),f=Vj(E);ne(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Sl(n)}t.add(n)}function L(e){!e.invisible&&a.push(e)}function ne(t,n,r,i){var a=f.getModel(i?Lj:Ij),s=zc(f.get(`name`),null),c=a.getShallow(`show`);rp(t,ip(f,i?Lj:Ij),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=de(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`,R(d,i,u);var m=l.getState(`emphasis`);R(m?m.style:null,i,u)}}function R(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 z(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,re(c,s)):g||(s=new r,s instanceof Fa&&(s.z2=qj(a,o)),ie(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof Nj?(n.oldX=t.x,n.oldY=t.y):n.oldShape=C({},t.shape)}function ie(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Fu;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 qj(e,t){return e*Rj+t}G(),Ai(),_c();var Jj=k,Yj=z,Xj=-1,Zj=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=b(t);this.type=r,this.mappingMethod=n,this._normalizeData=lM[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(eM(i),Qj(i)):n===`category`?i.categories?$j(i):eM(i,!0):(fe(n!==`linear`||i.dataExtent),eM(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return W(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){z(e)?k(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=F(t)?[]:z(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&&Jj(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(Yj(e)){var t=[];Jj(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(uM(u[1],e,l[1]))return a}else if(l[1]===1/0){if(uM(u[0],l[0],e))return a}else if(uM(u[0],l[0],e)&&uM(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:rM(`color`),getColorMapper:function(){var e=this.option;return W(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),iM.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=gi(t,e.parsedVisual,r),i?r:bi(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return bi(gi(e,this.option.parsedVisual),`rgba`)},category:iM,piecewise:function(e,t){var n=sM.call(this,t);return n??=bi(gi(e,this.option.parsedVisual),`rgba`),n},fixed:aM}},colorHue:tM(function(e,t){return vi(e,t)}),colorSaturation:tM(function(e,t){return vi(e,null,t)}),colorLightness:tM(function(e,t){return vi(e,null,null,t)}),colorAlpha:tM(function(e,t){return yi(e,t)}),decal:{applyVisual:rM(`decal`),_normalizedToVisual:{linear:null,category:iM,piecewise:null,fixed:null}},opacity:{applyVisual:rM(`opacity`),_normalizedToVisual:oM([0,1])},liftZ:{applyVisual:rM(`liftZ`),_normalizedToVisual:{linear:aM,category:aM,piecewise:aM,fixed:aM}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:nM,category:iM,piecewise:function(e,t){var n=sM.call(this,t);return n??=nM.call(this,e),n},fixed:aM}},symbolSize:{applyVisual:rM(`symbolSize`),_normalizedToVisual:oM([0,1])}},e}();function Qj(e){var t=e.pieceList;e.hasSpecialVisual=!1,k(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function $j(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Jj(t,function(e,t){n[e]=t}),!F(r)){var i=[];z(r)?Jj(r,function(e,t){var r=n[t];i[r??Xj]=e}):i[Xj]=r,r=cM(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function eM(e,t){var n=e.visual,r=[];z(n)?Jj(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]),cM(e,r)}function tM(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:oM([0,1])}}function nM(e){var t=this.option.visual;return t[Math.round(zs(e,[0,1],[0,t.length-1],!0))]||{}}function rM(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function iM(e){var t=this.option.visual;return t[this.option.loop&&e!==Xj?e%t.length:e]}function aM(){return this.option.visual[0]}function oM(e){return{linear:function(t){return zs(t,e,this.option.visual,!0)},category:iM,piecewise:function(t,n){var r=sM.call(this,n);return r??=zs(t,e,this.option.visual,!0),r},fixed:aM}}function sM(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[Zj.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function cM(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=A(t,function(e){return di(e)||[0,0,0,1]})),t}var lM={linear:function(e){return zs(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Zj.findPieceIndex(e,t,!0);if(n!=null)return zs(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??Xj},fixed:xe};function uM(e,t,n){return e?t<=n:t<n}G(),Ai(),Y();var dM=`itemStyle`,fM=Kc(),pM={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||mM(t,{},e.getViewRoot().getAncestors(),e)}};function mM(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(dM),c=hM(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=gM(c),u=_M(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=gM(c),l.fill=f;else{var m=yM(e,i,a,s,c,p);k(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&mM(e,xM(i,c,e,t,m,r),n,r)})}}}function hM(e,t,n){var r=C({},t),i=n.designatedVisualItemStyle;return k([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function gM(e){var t=vM(e,`color`);if(t){var n=vM(e,`colorAlpha`),r=vM(e,`colorSaturation`);return r&&(t=vi(t,null,null,r)),n&&(t=yi(t,n)),t}}function _M(e,t){return t==null?null:vi(t,null,null,e)}function vM(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function yM(e,t,n,r,i,a){if(!(!a||!a.length)){var o=bM(t,`color`)||i.color!=null&&i.color!==`none`&&(bM(t,`colorAlpha`)||bM(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 Zj(d);return fM(f).drColorMappingBy=u,f}}}function bM(e,t){var n=e.get(t);return F(n)&&n.length?{name:t,range:n}:null}function xM(e,t,n,r,i,a){var o=C({},t);if(i){var s=i.type,c=s===`color`&&fM(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}G(),Xt(),_c(),nv();var SM=Math.max,CM=Math.min,wM=ce,TM=k,EM=[`itemStyle`,`borderWidth`],DM=[`itemStyle`,`gapWidth`],OM=[`upperLabel`,`show`],kM=[`upperLabel`,`height`],AM={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=G_(e,n).refContainer,o=W_(e.getBoxLayoutParams(),a),s=i.size||[],c=mc(wM(o.width,s[0]),a.width),l=mc(wM(o.height,s[1]),a.height),u=r&&r.type,d=hj(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=gj(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?RM(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),jM(p,_,!1,0),v=p.getLayout(),TM(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(C({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(zM(o,f,d),!0),e.setLayoutInfo(o),BM(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function jM(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(EM),l=s.get(DM)/2,u=VM(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=SM(i-2*f,0),a=SM(a-f-p,0);var m=i*a,h=MM(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=CM(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=IM(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,LM(y,_,g,l,!1),_=CM(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&LM(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++)jM(h[b],t,n,r+1)}}}function MM(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()}),PM(o,s);var l=FM(t,o,s);if(l.sum===0||(l.sum=NM(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 NM(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 PM(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 FM(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=[1/0,-1/0],TM(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 IM(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?SM(l*r/c,c/(l*i)):1/0}function LM(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]]=SM(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=SM(v-2*r,0);m[s[o]]=n[s[o]]+CM(r,g/2),m[s[a]]=l+CM(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function RM(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(EM),_=Math.max(g,VM(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function zM(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 BM(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 J(t.x-a.x,t.y-a.y,t.width,t.height);TM(e.viewChildren||[],function(e){BM(e,c,n,r,i+1)})}}function VM(e){return e.get(OM)?e.get(kM):0}function HM(e){e.registerSeriesModel(Sj),e.registerChartView(Wj),e.registerVisual(pM),e.registerLayout(AM),bj(e)}function UM(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=GM(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=GM(s,[0,o]),i=a=GM(s,[i,a]),r=0}t[0]=GM(t[0],n),t[1]=GM(t[1],n);var c=WM(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=GM(t[r],u);var d=WM(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=WM(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function WM(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 GM(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}G(),ep(),vx(),db(),Y();var KM=Kc(),qM=b,JM=W,YM=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 Fu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=P(XM,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}eN(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&&r.getBandWidth()>o)return!0;if(a){var s=vA(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=KM(e).pointerEl=new uf[i.type](qM(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=KM(e).labelEl=new Ns(qM(t.label));e.add(i),QM(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=KM(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=KM(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),QM(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=kf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){_x(e.event)},onmousedown:JM(this._onHandleDragMove,this,0,0),drift:JM(this._onHandleDragMove,this),ondragend:JM(this._onHandleDragEnd,this)}),n.add(r)),eN(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,ob(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){XM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,$M(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($M(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr($M(r)),KM(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),sb(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 XM(e,t,n,r){ZM(KM(n).lastProp,r)||(KM(n).lastProp=r,t?nf(n,r,e):(n.stopAnimation(),n.attr(r)))}function ZM(e,t){if(z(e)&&z(t)){var n=!0;return k(t,function(t,r){n&&=ZM(e[r],t)}),!!n}else return e===t}function QM(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function $M(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function eN(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)})}G(),ep(),fn(),V_(),jt(),ek(),vp();function tN(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 nN(e,t,n,r,i){var a=iN(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=R_(o.get(`padding`)||0),c=o.getFont(),l=nn(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),rN(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:ap(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function rN(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 iN(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:JO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(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 aN(e,t,n){var r=St();return Dt(r,r,n.rotation),Et(r,r,n.position),Sf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function oN(e,t,n,r,i,a){var o=Uk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),nN(t,r,i,a,{position:aN(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sN(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function cN(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}o();var lN=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=uN(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=tN(r),d=dN[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}oN(t,e,uA(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=uA(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=aN(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=uN(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(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}(YM);function uN(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var dN={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:sN([t,n[0]],[t,n[1]],fN(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:cN([t-r/2,n[0]],[r,i],fN(e))}}};function fN(e){return e.dim===`x`?0:1}o(),av(),Vv();var pN=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}(Z);G(),Ue(),Y();var mN=Kc(),hN=k;function gN(e,t,n){if(!K.node){var r=t.getZr();mN(r).records||(mN(r).records={}),_N(r,t);var i=mN(r).records[e]||(mN(r).records[e]={});i.handler=n}}function _N(e,t){if(mN(e).initialized)return;mN(e).initialized=!0,n(`click`,P(bN,`click`)),n(`mousemove`,P(bN,`mousemove`)),n(`globalout`,yN);function n(n,r){e.on(n,function(n){var i=xN(t);hN(mN(e).records,function(e){e&&r(e,n,i.dispatchAction)}),vN(i.pendings,t)})}}function vN(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 yN(e,t,n){e.handler(`leave`,null,n)}function bN(e,t,n,r){t.handler(e,n,r)}function xN(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 SN(e,t){if(!K.node){var n=t.getZr();(mN(n).records||{})[e]&&(mN(n).records[e]=null)}}o(),qC();var CN=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`;gN(`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){SN(`axisPointer`,t)},t.prototype.dispose=function(e,t){SN(`axisPointer`,t)},t.type=`axisPointer`,t}(KC);G(),Y();function wN(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Gc(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`?1:0,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(A(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}}Y(),G();var TN=Kc();function EN(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||W(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){IN(i)&&(i=wN({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=IN(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||IN(i),f={},p={},m={list:[],map:{}},h={showPointer:P(kN,p),showTooltip:P(AN,m)};k(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);k(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=PN(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&DN(e,o,h,!1,f)}})});var g={};return k(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&k(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,FN(t),FN(e)))),g[e.key]=a}})}),k(g,function(e,t){DN(u[t],e,h,!0,f)}),jN(p,u,f),MN(m,i,e,o),NN(u,o,n),f}}function DN(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=ON(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 ON(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return k(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(!(u==null||!isFinite(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),k(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function kN(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function AN(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=xA(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 jN(e,t,n){var r=n.axesInfo=[];k(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 MN(e,t,n,r){if(IN(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 NN(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=TN(r)[i]||{},o=TN(r)[i]={};k(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&k(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];k(a,function(e,t){!o[t]&&c.push(e)}),k(o,function(e,t){!a[t]&&s.push(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 PN(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 FN(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 IN(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}G();function LN(e){CA.registerAxisPointerClass(`CartesianAxisPointer`,lN),e.registerComponentModel(pN),e.registerComponentView(CN),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,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=dA(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},EN)}o(),av(),Vv();var RN=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`,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}(Z);V_(),Ue();function zN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function BN(e){if(K.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var VN=BN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),HN=BN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function UN(e,t){if(!e)return t;t=A_(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function WN(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}G(),vx(),Tg(),Ue(),V_(),ly();var GN=UN(HN,`transition`),KN=UN(VN,`transform`),qN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(K.transform3dSupported?`will-change:transform;`:``);function JN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function YN(e,t,n){if(!L(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=I_(t);var a=JN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=KN+`:`,l;T([`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 XN(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?`,`:``)+(K.transformSupported?``+KN+i:`,left`+i+`,top`+i)),GN+`:`+a}function ZN(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!K.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=K.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+KN+`:`+o+`;`:[[`top`,0],[`left`,0],[VN,o]]}function QN(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=H(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),k([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function $N(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=iy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(XN(a,n,r)),o&&i.push(`background-color:`+o),k([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=A_(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(QN(d)),f!=null&&i.push(`padding:`+R_(f).join(`px `)+`px`),i.join(`;`)+`;`}function eP(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&mg(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 tP=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,K.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):ae(i)?i:I(i)&&i(e.getDom()));eP(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;lx(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=WN(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=qN+$N(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+ZN(i[0],i[1],!0)+(`border-color:`+I_(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`&&!zN(n)&&(o=YN(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++)ae(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(eP(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;k(ZN(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`,K.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(W(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;hg(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}();G(),Ls(),ly(),wc();var nP=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),aP(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;z(e)&&bc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Ns({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:iy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),k([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),k([`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=iP(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;aP(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=rP(i.borderWidth||0),o=iP(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(W(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rP(e){return Math.max(0,e)}function iP(e){var t=rP(e.shadowBlur||0),n=rP(e.shadowOffsetX||0),r=rP(e.shadowOffsetY||0);return{left:rP(t-n),right:rP(t+n),top:rP(t-r),bottom:rP(t+r)}}function aP(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}o(),G(),Ue(),V_(),_c(),ep(),nv(),Np(),ek(),Y(),qC(),E_(),ol(),_v(),ly(),Bw(),db();var oP=new _s({shape:{x:-1,y:-1,width:2,height:2}}),sP=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(!(K.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=Qc(n.get(`renderMode`)))===`richText`?new nP(t):new tP(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(K.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`)?ob(this,`_updatePosition`,50,`fixRate`):sb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);gN(`itemTooltip`,this._api,W(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(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||K.node||!n.getDom())){var i=lP(r,n);this._ticket=``;var a=r.dataByCoordSys,o=mP(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=oP;c.x=r.x,c.y=r.y,c.update(),X(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=wN(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,r.from!==this.uid&&this._hide(lP(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&&cP([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(X(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;zw(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(X(e).dataIndex==null?X(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._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=W(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=cP([t.tooltipOption],r),o=this._renderMode,s=[],c=Wv(`section`,{blocks:[],noHeader:!0}),l=[],u=new cy;k(e,function(e){k(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=iN(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Wv(`section`,{header:a,noHeader:!pe(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),k(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=JO(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,I_(m.color),o);var h=mv(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=cP([f],r).get(`valueFormatter`);d.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=Xv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
16
16
|
|
|
17
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=X(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=cP([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 cy;h.marker=g.makeTooltipMarker(`item`,I_(h.color),d);var _=mv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Xv(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=X(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=bg(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=cP(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new cy;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=Xg(m.axisValue,d,p)),d=M_(d,n,!0)}else if(I(u)){var g=W(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=mc(t[0],s),r=mc(t[1],c);else if(z(t)){var p=t;p.width=l[0],p.height=l[1];var m=W_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(L(t)&&o){var h=fP(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=uP(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=pP(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=pP(d)?l[1]/2:d===`bottom`?l[1]:0),zN(e)){var h=dP(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&&k(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&k(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&&k(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&k(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,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){K.node||!t.getDom()||(sb(this,`_updatePosition`),this._tooltipContent.dispose(),SN(`itemTooltip`,t))},t.type=`tooltip`,t}(KC);function cP(e,t,n){var r=t.ecModel,i;n?(i=new Mp(n,r,r),i=new Mp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Mp&&(o=o.get(`tooltip`,!0)),L(o)&&(o={formatter:o}),o&&(i=new Mp(o,i,r)))}return i}function lP(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function uP(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 dP(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 fP(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 pP(e){return e===`center`||e===`middle`}function mP(e,t,n){var r=Jc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Yc(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=X(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}WD(),G();function hP(e){VD(LN),e.registerComponentModel(RN),e.registerComponentView(sP),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},xe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},xe)}G(),Rw();var gP=k;function _P(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function vP(e,t,n){var r={};return gP(t,function(t){var a=r[t]=i();gP(e[t],function(e,r){if(Zj.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new Zj(i),r===`opacity`&&(i=b(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new Zj(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function yP(e,t,n){var r;k(n,function(e){t.hasOwnProperty(e)&&_P(t[e])&&(r=!0)}),r&&k(n,function(n){t.hasOwnProperty(n)&&_P(t[n])?e[n]=b(t[n]):delete e[n]})}function bP(e,t,n,r){var i={};return k(e,function(e){i[e]=Zj.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return Fw(a,l,e)}function c(e,t){Lw(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(),G(),ep(),ol(),vp(),nv(),av(),qC(),V_(),Vv();var xP=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}(Z),SP=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=H(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Ns({style:ap(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Ns({style:ap(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(){L_(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){L_(p,`_`+e.get(`subtarget`))}),X(c).eventData=X(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 _=W_(g,G_(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 _s({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}(KC);function CP(e){e.registerComponentModel(xP),e.registerComponentView(SP)}G(),Vv();var wP={get:function(e,t,n){var r=b((TP[e]||{})[t]);return n&&F(r)?r[r.length-1]:r}},TP={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(),G(),Y(),_c(),av(),Vv();var EP=Zj.mapVisual,DP=Zj.eachVisual,OP=F,kP=k,AP=Us,jP=zs,MP=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&&yP(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=W(e,this),this.controllerVisuals=vP(this.option.controller,t,e),this.targetVisuals=vP(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=Yc(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return A(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){k(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;this._dataExtent=AP([e.min,e.max])},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.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){OP(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]={},kP(r,function(e,t){if(Zj.isValidType(t)){var n=wP.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`;kP(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&b(t)||(a?i:[i]),c.symbolSize??=n&&b(n)||(a?s[0]:[s[0],s[0]]),c.symbol=EP(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;DP(l,function(e){e>u&&(u=e)}),c.symbolSize=EP(l,function(e){return jP(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}(Z);o(),G(),_c(),lg(),Vv();var NP=[20,140],PP=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]=NP[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=NP[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),k(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=Us((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=H(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=FP(this,`outOfRange`,this.getExtent()),n=FP(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=sg(MP.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}(MP);function FP(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(),G(),ep(),V_(),nv(),qC();var IP=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=R_(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new _s({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 k(Zj.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),Zj.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=G_(t,n).refContainer;K_(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(KC);G(),nv();var LP=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function RP(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`?1:0,s=LP[o],c=[0,null,10],l={},u=0;u<3;u++)l[LP[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=W_(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 zP(e,t){return k(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}o(),G(),Rd(),vx(),ep(),_c(),Y(),fn(),uu(),Iy(),ss(),ol(),vp(),Bw();var BP=zs,VP=k,HP=Math.min,UP=Math.max,WP=12,GP=6,KP=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=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(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 Ns({style:ap(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=RP(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Fu;s.add(c),c.add(n.outOfRange=qP()),c.add(n.inRange=qP(null,a?XP(this._orient):null,W(this._dragHandle,this,`all`,!1),W(this._dragHandle,this,`all`,!0))),c.setClipPath(new _s({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=UP(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=W(this._dragHandle,this,n,!1),s=W(this._dragHandle,this,n,!0),c=sn(e.get(`handleSize`),r[0]),l=Ey(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=XP(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){_x(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(),Kl(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Ns({cursor:u,draggable:!0,drift:o,onmousemove:function(e){_x(e.event)},ondragend:s,style:ap(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=sn(e.get(`indicatorSize`),n[0]),o=Ey(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 os){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 Ns({silent:!0,invisible:!0,style:ap(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:GP)+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():YP(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=[BP(t[0],n,r,!0),BP(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]];UM(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[BP(r[0],i,a,!0),BP(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 Ld(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 Fu(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);VP([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=BP(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=Sf(n.handleLabelPoints[l],xf(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=BP(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Sf(c.indicatorLabelPoint,xf(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]=HP(UP(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=HP(UP(i[0],e),i[1]);var o=JP(n,a,i),s=[e-o,e+o],c=BP(e,i,a,!0),l=[BP(s[0],i,a,!0),BP(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||YP(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Wc(u,d);this._dispatchHighDown(`downplay`,zP(f[0],n)),this._dispatchHighDown(`highlight`,zP(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(zw(e.target,function(e){var n=X(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`,zP(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=xf(t,r?null:this.group);return F(e)?Sf(e,i,n):Cf(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}(IP);function qP(e,t,n,r){return new gd({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){_x(e.event)},ondragend:r})}function JP(e,t,n){var r=WP/2,i=e.get(`hoverLinkDataSize`);return i&&(r=BP(i,t,n,!0)/2),r}function YP(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function XP(e){return e===`vertical`?`ns-resize`:`ew-resize`}var ZP={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},QP=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})};G(),Rw();var $P=[{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(bP(t.stateList,t.targetVisuals,W(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(W(eF,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function eF(e,t,n,r){for(var i=t.targetVisuals[r],a=Zj.prepareVisualTypes(i),o={color:Iw(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}}G();var tF=k;function nF(e){var t=e&&e.visualMap;F(t)||(t=t?[t]:[]),tF(t,function(e){if(e){rF(e,`splitList`)&&!rF(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&F(t)&&tF(t,function(e){z(e)&&(rF(e,`start`)&&!rF(e,`min`)&&(e.min=e.start),rF(e,`end`)&&!rF(e,`max`)&&(e.max=e.end))})}})}function rF(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}G();var iF=!1;function aF(e){iF||(iF=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(ZP,QP),k($P,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(nF))}function oF(e){e.registerComponentModel(PP),e.registerComponentView(KP),aF(e)}o(),G(),_c(),lg();var sF=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=[],cF[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=A(this._pieceList,function(e){return e=b(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=Zj.listVisualTypes(),i=this.isCategory();k(t.pieces,function(e){k(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),k(n,function(e,n){var r=!1;k(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&k(this.stateList,function(e){(t[e]||(t[e]={}))[n]=wP.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,k(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;k(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=Zj.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){Zj.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 k(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=sg(MP.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}(MP),cF={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]}),rc(e),k(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;k(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),lF(t,e)},pieces:function(e){var t=this.option;k(t.pieces,function(t,n){z(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=Zj.retrieveVisuals(t),e.push(r)},this),lF(t,e),rc(e),k(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 lF(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}o(),G(),ep(),Iy(),nv(),vp();var uF=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=ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),k(o.viewPieceList,function(o){var s=o.piece,u=new Fu;u.onclick=W(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 Ns({style:ap(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:H(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),ev(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:zP(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return RP(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 Fu,o=this.visualMapModel.textStyleModel;a.add(new Ns({style:ap(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=A(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=Ey(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,k(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}(IP);function dF(e){e.registerComponentModel(sF),e.registerComponentView(uF),aF(e)}WD();function fF(e){VD(oF),VD(dF)}function pF(e){e.registerComponentModel(mF),e.registerComponentView(hF)}var mF,hF,gF=t((()=>{o(),av(),qC(),Kp(),Rv(),mF=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 Lv(this),Pv(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Pv(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Gp},t}(Z),hF=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}(KC)})),_F=n({createDimensions:()=>kh,createList:()=>vF,createScale:()=>yF,createSymbol:()=>Ey,createTextStyle:()=>xF,dataStack:()=>SF,enableHoverEmphasis:()=>Hl,getECData:()=>X,getLayoutRect:()=>W_,mixinAxisModelCommonMethods:()=>bF});function vF(e){return eg(null,e)}function yF(e,t){var n=t;t instanceof Mp||(n=new Mp(t));var r=KO(n);return r.setExtent(e[0],e[1]),GO(r,n),r}function bF(e){D(e,GD)}function xF(e,t){return t||={},ap(e,null,null,t.state!==`normal`)}var SF,CF=t((()=>{G(),rg(),ek(),KD(),Np(),nv(),Zh(),ol(),vp(),Ph(),Iy(),uu(),SF={isDimensionStacked:Yh,enableDataStack:qh,getStackedDimension:Xh}})),wF=n({MAX_SAFE_INTEGER:()=>hc,asc:()=>Us,getPercentWithPrecision:()=>qs,getPixelPrecision:()=>Ks,getPrecision:()=>Ws,getPrecisionSafe:()=>Gs,isNumeric:()=>ac,isRadianAroundZero:()=>Zs,linearMap:()=>zs,nice:()=>tc,numericToNumber:()=>ic,parseDate:()=>Qs,parsePercent:()=>mc,quantile:()=>nc,quantity:()=>$s,quantityExponent:()=>ec,reformIntervals:()=>rc,remRadian:()=>Xs,round:()=>Hs}),TF=t((()=>{_c()})),EF=n({format:()=>Xg,parse:()=>Qs,roundTime:()=>$g}),DF=t((()=>{_c(),E_()})),OF=n({Arc:()=>jd,BezierCurve:()=>Od,BoundingRect:()=>J,Circle:()=>Ru,CompoundPath:()=>Nd,Ellipse:()=>Vu,Group:()=>Fu,Image:()=>os,IncrementalDisplayable:()=>Qd,Line:()=>Cd,LinearGradient:()=>Ld,Polygon:()=>gd,Polyline:()=>yd,RadialGradient:()=>zd,Rect:()=>_s,Ring:()=>ld,Sector:()=>od,Text:()=>Ns,clipPointsByRect:()=>Df,clipRectByRect:()=>Of,createIcon:()=>kf,extendPath:()=>ff,extendShape:()=>df,getShapeClass:()=>mf,getTransform:()=>xf,initProps:()=>rf,makeImage:()=>gf,makePath:()=>hf,mergePath:()=>Xf,registerShape:()=>pf,resizePath:()=>vf,updateProps:()=>nf}),kF=t((()=>{ep()})),AF=n({addCommas:()=>k_,capitalFirst:()=>F_,encodeHTML:()=>bg,formatTime:()=>P_,formatTpl:()=>M_,getTextRect:()=>D_,getTooltipMarker:()=>N_,normalizeCssArray:()=>R_,toCamelCase:()=>A_,truncateText:()=>pn}),jF=t((()=>{V_()})),MF=n({bind:()=>W,clone:()=>b,curry:()=>P,defaults:()=>w,each:()=>k,extend:()=>C,filter:()=>M,indexOf:()=>T,inherits:()=>E,isArray:()=>F,isFunction:()=>I,isObject:()=>z,isString:()=>L,map:()=>A,merge:()=>x,reduce:()=>j}),NF=t((()=>{G()}));function PF(e){var t=Z.extend(e);return Z.registerClass(t),t}function FF(e){var t=KC.extend(e);return KC.registerClass(t),t}function IF(e){var t=Cy.extend(e);return Cy.registerClass(t),t}function LF(e){var t=Gy.extend(e);return Gy.registerClass(t),t}var RF=t((()=>{av(),qC(),wy(),qy(),Oh(),zS(),jt(),lr(),G(),Ai(),db(),CF(),WD(),g(),tj(),TF(),DF(),kF(),jF(),NF(),Ue(),Np(),kk(),AT()}));function zF(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function BF(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:zF(r&&r.shape.points)}}function VF(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var HF,UF,WF,GF,KF,qF,JF=t((()=>{ep(),ol(),_c(),br(),Rb(),Y(),G(),nx(),vp(),ko(),HF=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],UF=new vr,WF=Kc(),GF=Kc(),KF=[`x`,`y`,`rotation`],qF=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();J.applyTransform(c,c,s),s?UF.setLocalTransform(s):(UF.x=UF.y=UF.rotation=UF.originX=UF.originY=0,UF.scaleX=UF.scaleY=1),UF.rotation=Do(UF.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();J.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:UF.x,y:UF.y,scaleX:UF.scaleX,scaleY:UF.scaleY,rotation:UF.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=X(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(){xb(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(BF(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=mc(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=mc(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=WF(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<HF.length;m++){var h=HF[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=[];k(this._labelList,function(e){e.defaultAttr.ignore||r.push(Gb({},e))});var i=M(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=M(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});qb(i,0,0,t),qb(a,1,0,n);var o=M(r,function(e){return e.layoutOption.hideOverlap});Jb(o),Yb(o)},e.prototype.processLabelsOverall=function(){var e=this;k(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=WF(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=X(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`);Tb(e,Eb(o),s),xb(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&&!af(e))){var i=WF(n),a=i.oldLayout,o=X(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&&(T(u,`select`)>=0&&n.attr(i.oldLayoutSelect),T(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),nf(n,c,t,s)}else if(n.attr(c),!gp(n).valueAnimation){var d=H(n.style.opacity,1);n.style.opacity=0,rf(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};VF(f,c,KF),VF(f,n.states.select,KF)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};VF(p,c,KF),VF(p,n.states.emphasis,KF)}dp(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=GF(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),nf(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,rf(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}()}));function YF(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=XF(t).labelManager;r||=XF(t).labelManager=new qF,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=XF(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var XF,ZF=t((()=>{Y(),JF(),XF=Kc()})),QF=t((()=>{BD(),RF(),WD(),ZF(),VD(YF)}));function $F(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}var eI,tI=t((()=>{o(),G(),fa(),aa(),Qw(),AT(),Xt(),pa(),g(),eI=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.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r||=sa,typeof t==`string`?a=$F(t,n,r):z(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ye(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.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=$F(`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 J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new J(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 J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else 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 J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);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||Jw(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):V(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=sT(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&&k(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ia)}));function nI(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function rI(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}var iI,aI,oI,sI,cI,lI=t((()=>{fa(),G(),tI(),eS(),Ue(),AT(),pa(),Qw(),iI=1e5,aI=314159,oI=.01,sI=.001,cI=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||sa,this._singleCanvas=i,this.root=e,e.style&&(ye(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new eI(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[aI]=u,u.zlevel=aI,a.push(aI),this._domRoot=e}else{this._width=Zw(e,0,n),this._height=Zw(e,1,n);var d=this._domRoot=rI(this._width,this._height);e.appendChild(d)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(iI),i||(i=n.ctx,i.save()),xT(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(iI)},e.prototype.paintOne=function(e,t){bT(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;$x(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(aI).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return K.wxa&&k(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(xT(o,e,i,a),e.setPrevPaintRect(s))}else xT(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=aI);var n=this._layers[e];return n||(n=new eI(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?x(n,this._layerConfig[e],!0):this._layerConfig[e-oI]&&x(n,this._layerConfig[e-oI],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&nI(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+sI,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?oI:0),this._needsManuallyCompositing),l.__builtin__||y(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,k(this._layers,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;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+oI){var a=this._layers[i];x(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(T(n,e),1))},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;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=Zw(i,0,r),t=Zw(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(aI).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[aI].dom;var t=new eI(`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;this.eachLayer(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},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];xT(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}()}));function uI(e){e.registerPainter(`canvas`,cI)}var dI=t((()=>{lI()})),fI=n({Axis:()=>Ok,ChartView:()=>Gy,ComponentModel:()=>Z,ComponentView:()=>KC,List:()=>Dh,Model:()=>Mp,PRIORITY:()=>UE,SeriesModel:()=>Cy,color:()=>ei,connect:()=>nE,dataTool:()=>zD,default:()=>pI,dependencies:()=>EE,disConnect:()=>ID,disconnect:()=>rE,dispose:()=>iE,env:()=>K,extendChartView:()=>LF,extendComponentModel:()=>PF,extendComponentView:()=>FF,extendSeriesModel:()=>IF,format:()=>AF,getCoordinateSystemDimensions:()=>hE,getInstanceByDom:()=>aE,getInstanceById:()=>oE,getMap:()=>CE,graphic:()=>OF,helper:()=>_F,init:()=>tE,innerDrawElementOnCanvas:()=>bT,matrix:()=>xt,number:()=>wF,parseGeoJSON:()=>ej,parseGeoJson:()=>ej,registerAction:()=>pE,registerCoordinateSystem:()=>mE,registerCustomSeries:()=>gE,registerLayout:()=>_E,registerLoading:()=>bE,registerLocale:()=>Ag,registerMap:()=>SE,registerPostInit:()=>uE,registerPostUpdate:()=>dE,registerPreprocessor:()=>cE,registerProcessor:()=>lE,registerTheme:()=>sE,registerTransform:()=>RD,registerUpdateLifecycle:()=>fE,registerVisual:()=>vE,setCanvasCreator:()=>xE,setPlatformAPI:()=>c,throttle:()=>ab,time:()=>EF,use:()=>VD,util:()=>MF,vector:()=>Ln,version:()=>TE,zrUtil:()=>_,zrender:()=>wS}),pI,mI=t((()=>{QF(),WD(),BD(),dI(),gF(),ZF(),VD([uI,pF]),pI={init:function(){return tE.apply(null,arguments)}},VD(YF)})),hI=r((t=>{(function(n,r){typeof define==`function`&&define.amd?define([`exports`,`echarts`],r):typeof t==`object`&&typeof t.nodeName!=`string`?r(t,(mI(),e(fI))):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{hP as a,tE as c,CP as i,uI as n,HM as o,fF as r,VD as s,hI as t};
|