wx-screen-ui 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/example/ExampleIndex.vue +86 -0
- package/dist/example/WxDescriptionExample.vue +202 -0
- package/dist/example/WxEchartsExample.vue +152 -0
- package/dist/example/WxEmptyExample.vue +56 -0
- package/dist/example/WxMessageExample.vue +84 -0
- package/dist/example/WxPaginationExample.vue +85 -0
- package/dist/example/WxRadioExample.vue +81 -0
- package/dist/example/WxSelectExample.vue +132 -0
- package/dist/example/WxTableExample.vue +90 -0
- package/dist/wx-screen-ui.css +1 -1
- package/dist/wx-screen-ui.es.js +179 -35
- package/dist/wx-screen-ui.umd.js +23 -23
- package/package.json +1 -1
package/dist/wx-screen-ui.umd.js
CHANGED
|
@@ -58,51 +58,51 @@ echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){proc
|
|
|
58
58
|
`,`
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
`];function BO(e,t){return t.type=e,t}function VO(e){return e.type===`section`}function HO(e){return VO(e)?Tne:Ene}function UO(e){if(VO(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return H(e.blocks,function(e){var n=UO(e);n>=t&&(t=n+ +(r&&(!n||VO(e)&&!e.noHeader)))}),t}return 0}function Tne(e,t,n,r){var i=t.noHeader,a=Dne(UO(t)),o=[],s=t.blocks||[];Y(!s||G(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Z(l,c)){var u=new SO(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}H(s,function(n,i){var s=t.valueFormatter,c=HO(n)(s?V(V({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):GO(r,o.join(``),i?n:a.html);if(i)return d;var f=pT(t.header,`ordinal`,e.useUTC),p=zO(r,e.renderMode).nameStyle,m=RO(r);return e.renderMode===`richText`?KO(e,f,p)+a.richText+d:GO(r,`<div style="`+p+`;`+m+`;">`+Bd(f)+`</div>`+d,n)}function Ene(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=G(e)?e:[e],U(e,function(e,t){return pT(e,G(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:pT(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=zO(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:KO(e,f,v))+(o?``:Ane(e,m,h,g,y)):GO(r,(s?``:d)+(a?``:One(f,!s,v))+(o?``:kne(m,h,g,y)),n)}}function WO(e,t,n,r,i,a){if(e)return HO(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Dne(e){return{html:Cne[e],richText:wne[e]}}function GO(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=RO(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function One(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Bd(e)+`</span>`}function kne(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=G(e)?e:[e],`<span style="`+i+`;`+r+`">`+U(e,function(e){return Bd(e)}).join(` `)+`</span>`}function KO(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ane(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(` `):t,a)}function qO(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return yT(n)}function JO(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var YO=function(){function e(){this.richTextStyles={},this._nextStyleNameId=zg()}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=vT({color:t,type:e,renderMode:n,markerId:r});return q(i)?i:(process.env.NODE_ENV!==`production`&&Y(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};G(t)?H(t,function(e){return V(n,e)}):V(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function XO(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=G(s),l=qO(t,n),u,d,f,p;if(o>1||c&&!o){var m=jne(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=dO(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=y_(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return BO(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[BO(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Wu(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function jne(e,t,n,r,i){var a=t.getData(),o=Tu(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?H(r,function(e){u(dO(a,n,e),e)}):H(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(BO(`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 ZO=E_();function QO(e,t){return e.getName(t)||e.getId(t)}var $O=`__universalTransitionEnabled`,ek=function(e){B(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=hO({count:Nne,reset:Pne}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ZO(this).sourceManager=new PO(this)).prepareSource();var r=this.getInitialData(e,n);rk(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&Y(r,`getInitialData returned invalid data.`),ZO(this).dataBeforeProcessed=r,tk(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=JT(this),r=n?XT(e):{},i=this.subType;tE.hasClass(i)&&(i+=`Series`),vu(e,t.getTheme().get(this.subType)),vu(e,this.getDefaultOption()),r_(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&YT(e,r,n)},t.prototype.mergeOption=function(e,t){e=vu(this.option,e,!0),this.fillDataTextStyle(e.data);var n=JT(this);n&&YT(this.option,e,n);var r=ZO(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);rk(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ZO(this).dataBeforeProcessed=i,tk(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Fu(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&r_(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=ak(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ZO(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=ak(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}ZO(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return X(e)},t.prototype.getSourceManager=function(){return ZO(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ZO(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 XO({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ql.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=NE.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=QO(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=Ou(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[QO(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`){Nu(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=QO(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=QO(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 tE.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}(tE);Cu(ek,pO),Cu(ek,NE),J_(ek,tE);function tk(e){var t=e.name;y_(e)||(e.name=Mne(e)||t)}function Mne(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return H(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Nne(e){return e.model.getRawData().count()}function Pne(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),nk}function nk(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function rk(e,t){H(Qu(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Au(ik,t))})}function ik(e,t){var n=ak(e);return n&&n.setOutputEnd((t||this).count()),t}function ak(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 ok=ek,sk=function(){function e(){this.group=new tg,this.uid=gw(`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}();K_(sk),$_(sk);var ck=sk;function lk(){var e=E_();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 uk=E_(),dk=lk(),fk=function(){function e(){this.group=new tg,this.uid=gw(`viewChart`),this.renderTask=hO({plan:hk,reset:gk}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Jg(`Unknown dataType `+r.dataType);return}mk(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Jg(`Unknown dataType `+r.dataType);return}mk(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){AC(this.group,e)},e.markUpdateMethod=function(e,t){uk(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function pk(e,t,n){e&&vx(e)&&(t===`emphasis`?ex:tx)(e,n)}function mk(e,t,n){var r=T_(e,t),i=t&&t.highlightKey!=null?Lte(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){pk(e,n,i)}):H(n_(r),function(t){pk(e.getItemGraphicEl(t),n,i)})}K_(fk,[`dispose`]),$_(fk);function hk(e){return dk(e.model)}function gk(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&uk(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),_k[c]}var _k={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)}}},vk=fk,yk=`\0__throttleOriginMethod`,bk=`\0__throttleRate`,xk=`\0__throttleType`;function Sk(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(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):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 Ck(e,t,n,r){var i=e[t];if(i){var a=i[yk]||i,o=i[xk];if(i[bk]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Sk(a,n,r===`debounce`),i[yk]=a,i[xk]=r,i[bk]=n}return i}}function wk(e,t){var n=e[t];n&&n[yk]&&(n.clear&&n.clear(),e[t]=n[yk])}var Tk=E_(),Ek={itemStyle:ev(uw,!0),lineStyle:ev(sw,!0)},Dk={lineStyle:`stroke`,itemStyle:`fill`};function Ok(e,t){return e.visualStyleMapper||Ek[t]||(console.warn(`Unknown style type '`+t+`'.`),Ek.itemStyle)}function kk(e,t){return e.visualDrawType||Dk[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Ak={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Ok(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=kk(e,r),c=a[s],l=K(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`||K(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||K(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=V({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},jk=new mw,Mk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Ok(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){jk.option=n[r];var o=i(jk);V(e.ensureUniqueItemVisual(t,`style`),o),jk.option.decal&&(e.setItemVisual(t,`decal`,jk.option.decal),jk.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Nk={performRawSeries:!0,overallReset:function(e){var t=X();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)),Tk(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=Tk(t).scope,o=kk(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)}})}})}},Pk=Math.PI;function Fk(e,t){t||={},bu(t,{text:`loading`,textColor:$.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tg,r=new sb({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Eb({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 sb({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 TS({shape:{startAngle:-Pk/2,endAngle:-Pk/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:Pk*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Pk*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 Ik=function(){function e(e,t,n,r){this._stageTaskMap=X(),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=X();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;H(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),Y(!(r.reset&&r.overallReset),a),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;H(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=X(),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)||hO({plan:Vk,reset:Hk,count:Gk}));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||hO({reset:Lk});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=X(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),Y(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):(u=!1,H(n.getSeries(),p));function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,hO({reset:Rk,onDirty:Bk})));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 K(e)&&(e={overallReset:e,seriesType:Kk(e)}),e.uid=gw(`stageHandler`),t&&(e.visualType=t),e},e}();function Lk(e){e.overallReset(e.ecModel,e.api,e.payload)}function Rk(e){return e.overallProgress&&zk}function zk(){this.agent.dirty(),this.getDownstream().dirty()}function Bk(){this.agent&&this.agent.dirty()}function Vk(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Hk(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=n_(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?U(t,function(e,t){return Wk(t)}):Uk}var Uk=Wk(0);function Wk(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 Gk(e){return e.data.count()}function Kk(e){Yk=null;try{e(qk,Jk)}catch{}return Yk}var qk={},Jk={},Yk;Xk(qk,$E),Xk(Jk,tD),qk.eachSeriesByType=qk.eachRawSeriesByType=function(e){Yk=e},qk.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Yk=e.subType)};function Xk(e,t){for(var n in t.prototype)e[n]=td}var Zk=Ik,Qk=$.darkColor,$k=Qk.background,eA=function(){return{axisLine:{lineStyle:{color:Qk.axisLine}},splitLine:{lineStyle:{color:Qk.axisSplitLine}},splitArea:{areaStyle:{color:[Qk.backgroundTint,Qk.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Qk.axisMinorSplitLine}},axisLabel:{color:Qk.axisLabel},axisName:{}}},tA={label:{color:Qk.secondary},itemStyle:{borderColor:Qk.borderTint},dividerLineStyle:{color:Qk.border}},nA={darkMode:!0,color:Qk.theme,backgroundColor:$k,axisPointer:{lineStyle:{color:Qk.border},crossStyle:{color:Qk.borderShade},label:{color:Qk.tertiary}},legend:{textStyle:{color:Qk.secondary},pageTextStyle:{color:Qk.tertiary}},textStyle:{color:Qk.secondary},title:{textStyle:{color:Qk.primary},subtextStyle:{color:Qk.quaternary}},toolbox:{iconStyle:{borderColor:Qk.accent50}},tooltip:{backgroundColor:Qk.neutral20,defaultBorderColor:Qk.border,textStyle:{color:Qk.tertiary}},dataZoom:{borderColor:Qk.accent10,textStyle:{color:Qk.tertiary},brushStyle:{color:Qk.backgroundTint},handleStyle:{color:Qk.neutral00,borderColor:Qk.accent20},moveHandleStyle:{color:Qk.accent40},emphasis:{handleStyle:{borderColor:Qk.accent50}},dataBackground:{lineStyle:{color:Qk.accent30},areaStyle:{color:Qk.accent20}},selectedDataBackground:{lineStyle:{color:Qk.accent50},areaStyle:{color:Qk.accent30}}},visualMap:{textStyle:{color:Qk.secondary},handleStyle:{borderColor:Qk.neutral30}},timeline:{lineStyle:{color:Qk.accent10},label:{color:Qk.tertiary},controlStyle:{color:Qk.accent30,borderColor:Qk.accent30}},calendar:{itemStyle:{color:Qk.neutral00,borderColor:Qk.neutral20},dayLabel:{color:Qk.tertiary},monthLabel:{color:Qk.secondary},yearLabel:{color:Qk.secondary}},matrix:{x:tA,y:tA,backgroundColor:{borderColor:Qk.axisLine},body:{itemStyle:{borderColor:Qk.borderTint}}},timeAxis:eA(),logAxis:eA(),valueAxis:eA(),categoryAxis:eA(),line:{symbol:`circle`},graph:{color:Qk.theme},gauge:{title:{color:Qk.secondary},axisLine:{lineStyle:{color:[[1,Qk.neutral05]]}},axisLabel:{color:Qk.axisLabel},detail:{color:Qk.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Qk.background}},radar:function(){var e=eA();return e.axisName={color:Qk.axisLabel},e.axisLine.lineStyle.color=Qk.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Qk.neutral20,textStyle:{color:Qk.secondary}},emphasis:{itemStyle:{color:Qk.neutral30}}}},sunburst:{itemStyle:{borderColor:Qk.background}},map:{itemStyle:{borderColor:Qk.border,areaColor:Qk.neutral10},label:{color:Qk.tertiary},emphasis:{label:{color:Qk.primary},itemStyle:{areaColor:Qk.highlight}},select:{label:{color:Qk.primary},itemStyle:{areaColor:Qk.highlight}}},geo:{itemStyle:{borderColor:Qk.border,areaColor:Qk.neutral10},emphasis:{label:{color:Qk.primary},itemStyle:{areaColor:Qk.highlight}},select:{label:{color:Qk.primary},itemStyle:{color:Qk.highlight}}}};nA.categoryAxis.splitLine.show=!1;var rA=nA,iA=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(q(e)){var i=U_(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};H(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}(),aA=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],oA=aA.concat([`symbolKeepAspect`]),sA={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<aA.length;o++){var s=aA[o],c=e.get(s);K(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(V({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=Ou(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}}},cA={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<oA.length;r++){var i=oA[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function lA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function uA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}function dA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function fA(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}H([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=V({},t),process.env.NODE_ENV!==`production`&&Xg(t.type,e[1]),i.dispatchAction(V(t,{type:e[1],seriesIndex:n(r,t)}))})})}function pA(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Yg(`event `+a+` is deprecated.`),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=T_(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:G(l)?c.getName(l[0]):c.getName(l),selected:q(r)?r:V({},r)})}}))}function mA(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(pA(`map`,`selectchanged`,t,r,e),pA(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(pA(`map`,`selected`,t,r,e),pA(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(pA(`map`,`unselected`,t,r,e),pA(`pie`,`unselected`,t,r,e))})}function hA(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var gA=Math.round(Math.random()*9),_A=typeof Object.defineProperty==`function`,vA=function(){function e(){this._id=`__ec_inner_`+ gA++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return _A?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}(),yA=Wy.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()}}),bA={line:vS,rect:sb,roundRect:sb,square:sb,circle:zx,diamond:Wy.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()}}),pin:Wy.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()}}),arrow:Wy.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()}}),triangle:yA},xA={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}},SA={};H(bA,function(e,t){SA[t]=new e});var CA=Wy.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Rh(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=SA[r];i||=(r=`rect`,SA[r]),xA[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function wA(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||$.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function TA(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?cC(e.slice(8),new Af(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?sC(e.slice(7),{},new Af(t,n,r,i),o?`center`:`cover`):new CA({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=wA,a&&c.setColor(a),c}function EA(e){return G(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function DA(e,t){if(e!=null)return G(e)||(e=[e,e]),[Q(e[0],t[0])||0,Q(J(e[1],e[0]),t[1])||0]}function OA(e){return isFinite(e)}function kA(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=OA(r)?r:0,i=OA(i)?i:1,a=OA(a)?a:0,o=OA(o)?o:0,e.createLinearGradient(r,a,i,o)}function AA(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=OA(o)?o:.5,s=OA(s)?s:.5,c=c>=0&&OA(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function jA(e,t,n){for(var r=t.type===`radial`?AA(e,t,n):kA(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function MA(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 NA(e){return parseInt(e,10)}function PA(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]||NA(s[r])||NA(e.style[r]))-(NA(s[a])||0)-(NA(s[o])||0)|0}function FA(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Mu(e)?[e]:G(e)?e:null}function IA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&FA(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=U(n,function(e){return e/i}),r/=i)}return[n,r]}var LA=new yy(!0);function RA(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function zA(e){return typeof e==`string`&&e!==`none`}function BA(e){var t=e.fill;return t!=null&&t!==`none`}function VA(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 HA(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 UA(e,t,n){var r=av(t.image,t.__image,n);if(sv(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)*nd),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function WA(e,t,n,r){var i,a=RA(n),o=BA(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||LA,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?jA(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?jA(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?UA(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?UA(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=IA(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&&HA(e,n),o&&VA(e,n)):(o&&VA(e,n),a&&HA(e,n))),w&&e.setLineDash([])}function GA(e,t,n){var r=t.__image=av(n.image,t.__image,t,t.onload);if(!(!r||!sv(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 KA(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=IA(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(RA(n)&&e.strokeText(i,n.x,n.y),BA(n)&&e.fillText(i,n.x,n.y)):(BA(n)&&e.fillText(i,n.x,n.y),RA(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var qA=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],JA=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function YA(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){oj(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?jv.opacity:o}(r||t.blend!==n.blend)&&(a||=(oj(e,i),!0),e.globalCompositeOperation=t.blend||jv.blend);for(var s=0;s<qA.length;s++){var c=qA[s];(r||t[c]!==n[c])&&(a||=(oj(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(oj(e,i),!0),e.shadowColor=t.shadowColor||jv.shadowColor),a}function XA(e,t,n,r,i){var a=sj(t,i.inHover),o=r?null:n&&sj(n,i.inHover)||{};if(a===o)return!1;var s=YA(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(oj(e,i),!0),zA(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(oj(e,i),!0),zA(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(oj(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||=(oj(e,i),!0),e.lineWidth=c)}for(var l=0;l<JA.length;l++){var u=JA[l],d=u[0];(r||a[d]!==o[d])&&(s||=(oj(e,i),!0),e[d]=a[d]||u[1])}return s}function ZA(e,t,n,r,i){return YA(e,sj(t,i.inHover),n&&sj(n,i.inHover),r,i)}function QA(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 $A(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),QA(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function ej(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)}var tj=1,nj=2,rj=3,ij=4;function aj(e){var t=BA(e),n=RA(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 oj(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function sj(e,t){return t&&e.__hoverStyle||e.style}function cj(e,t){lj(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function lj(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||MA(a,o))&&(o&&o.length&&(oj(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(oj(e,n),e.save(),$A(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 Wy&&t.autoBatch&&aj(t.style);s||ej(i,l.transform)?(oj(e,n),QA(e,t)):u||oj(e,n);var d=sj(t,n.inHover);t instanceof Wy?(n.lastDrawType!==tj&&(c=!0,n.lastDrawType=tj),XA(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),WA(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof qy?(n.lastDrawType!==rj&&(c=!0,n.lastDrawType=rj),XA(e,t,l,c,n),KA(e,t,d)):t instanceof Qy?(n.lastDrawType!==nj&&(c=!0,n.lastDrawType=nj),ZA(e,t,l,c,n),GA(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==ij&&(c=!0,n.lastDrawType=ij),uj(e,t,n)),u&&r&&oj(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function uj(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(),lj(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(),lj(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var dj=new vA,fj=new Ip(100),pj=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function mj(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&dj.delete(e);var a=dj.get(e);if(a)return a;var o=bu(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,dj.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<pj.length;++s){var c=o[pj[s]];if(c!=null&&!G(c)&&!q(c)&&!Mu(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=fj.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=gj(o.dashArrayX),f=_j(o.dashArrayY),p=hj(o.symbol),m=vj(d),h=yj(f),g=!i&&nu.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&fj.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Vg(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Vg(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=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=TA(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else cj(y,u)}}}}function hj(e){if(!e||e.length===0)return[[`rect`]];if(q(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!q(e[n])){t=!1;break}if(t)return hj([e]);for(var r=[],n=0;n<e.length;++n)q(e[n])?r.push([e[n]]):r.push(e[n]);return r}function gj(e){if(!e||e.length===0)return[[0,0]];if(Mu(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Mu(e[r])){n=!1;break}if(n)return gj([e]);for(var i=[],r=0;r<e.length;++r)if(Mu(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=U(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function _j(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Mu(e)){var t=Math.ceil(e);return[t,t]}var n=U(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function vj(e){return U(e,function(e){return yj(e)})}function yj(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function bj(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=mj(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=mj(i,t)}}})}var xj=new Ed,Sj={};function Cj(e,t){process.env.NODE_ENV!==`production`&&Sj[e]&&Jg(`Already has an implementation of `+e+`.`),Sj[e]=t}function wj(e){return process.env.NODE_ENV!==`production`&&(Sj[e]||Jg(`Implementation of `+e+` doesn't exists.`)),Sj[e]}var Tj={};function Ej(e,t){Tj[e]=t}function Dj(e){return Tj[e]}var Oj=1,kj=800,Aj=900,jj=1e3,Mj=2e3,Nj=5e3,Pj=1e3,Fj=1100,Ij=2e3,Lj=3e3,Rj=4e3,zj=4500,Bj=4600,Vj=5e3,Hj=6e3,Uj=7e3,Wj={PROCESSOR:{FILTER:jj,SERIES_FILTER:kj,STATISTIC:Nj},VISUAL:{LAYOUT:Pj,PROGRESSIVE_LAYOUT:Fj,GLOBAL:Ij,CHART:Lj,POST_CHART_LAYOUT:Bj,COMPONENT:Rj,BRUSH:Vj,CHART_ITEM:zj,ARIA:Hj,DECAL:Uj}},Gj=`__flagInMainProcess`,Kj=`__mainProcessVersion`,qj=`__pendingUpdate`,Jj=`__needsUpdateStatus`,Yj=/^[a-zA-Z0-9_]+$/,Xj=`__connectUpdateStatus`,Zj=0,Qj=1,$j=2;function eM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){DM(this.id);return}return nM(this,e,t)}}function tM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nM(this,e,t)}}function nM(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ed.prototype[t].apply(e,n)}var rM=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ed),iM=rM.prototype;iM.on=tM(`on`),iM.off=tM(`off`);var aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM=function(e){B(t,e);function t(t,n,r){var i=e.call(this,new iA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[Kj]=1,process.env.NODE_ENV!==`production`){var c=Ql.hasGlobalWindow?window:global;c&&(a=J(c.__ECHARTS__DEFAULT__RENDERER__,a),o=J(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=J(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&dg(function(e){var t=Db(e),n=t.dataIndex;if(n!=null){var r=X();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=sg(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:J(r.useDirtyRect,s),useCoarsePointer:J(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Sk(W(l.flush,l),17),i._updateTheme(n),i._locale=kw(r.locale||Dw),i._coordSysMgr=new NT;var u=i._api=yM(i);function d(e,t){return e.__prio-t.__prio}return Qf(NM,d),Qf(jM,d),i._scheduler=new Zk(i,u,jM,NM),i._messageCenter=new rM,i._initEvents(),i.resize=W(i.resize,i),l.animation.on(`frame`,i._onframe,i),mM(l,i),hM(l,i),Ku(i),i}return t.prototype._onframe=function(){if(!this._disposed){SM(this);var e=this._scheduler;if(this[qj]){var t=this[qj].silent;this[Gj]=!0,CM(this);try{aM(this),cM.update.call(this,null,this[qj].updateParams)}catch(e){throw this[Gj]=!1,this[qj]=null,e}this._zr.flush(),this[Gj]=!1,this[qj]=null,fM.call(this,t),pM.call(this,t)}else if(e.unfinished){var n=Oj,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),uM(this,r),e.performVisualTasks(r),vM(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[Gj]){process.env.NODE_ENV!==`production`&&Jg("`setOption` should not be called during main process.");return}if(this._disposed){DM(this.id);return}var r,i,a;if(Nu(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Gj]=!0,CM(this),!this._model||t){var o=new cD(this._api),s=this._theme,c=this._model=new $E;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},MM);var l={seriesTransition:a,optionChanged:!0};if(n)this[qj]={silent:r,updateParams:l},this[Gj]=!1,this.getZr().wakeUp();else{try{aM(this),cM.update.call(this,null,l)}catch(e){throw this[qj]=null,this[Gj]=!1,e}this._ssr||this._zr.flush(),this[qj]=null,this[Gj]=!1,fM.call(this,r),pM.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[Gj]){process.env.NODE_ENV!==`production`&&Jg("`setTheme` should not be called during main process.");return}if(this._disposed){DM(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[qj]&&(r??=this[qj].silent,i=this[qj].updateParams,this[qj]=null),this[Gj]=!0,CM(this);try{this._updateTheme(e),n.setTheme(this._theme),aM(this),cM.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Gj]=!1,e}this[Gj]=!1,fM.call(this,r),pM.call(this,r)}},t.prototype._updateTheme=function(e){q(e)&&(e=PM[e]),e&&(e=_u(e),e&&MD(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||Ql.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Xg(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return H(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){DM(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;H(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 H(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){DM(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(LM[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();H(IM,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(_u(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=nu.createCanvas(),h=sg(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return H(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new sb({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),H(u,function(e){var t=new Qy({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return lM(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return lM(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return lM(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){DM(this.id);return}var n=this._model,r;return H(O_(n,e),function(e,n){n.indexOf(`Models`)>=0&&H(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):process.env.NODE_ENV!==`production`&&qg(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&qg(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=O_(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||qg(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?uA(a,t):lA(a,o,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;H(EM,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&hA(i,function(e){var t=Db(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=V({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&qg(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;H(AM,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),mA(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){DM(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){DM(this.id);return}this._disposed=!0,this.getDom()&&N_(this.getDom(),zM,``);var e=this,t=e._api,n=e._model;H(e._componentsViews,function(e){e.dispose(n,t)}),H(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 IM[e.id]},t.prototype.resize=function(e){if(this[Gj]){process.env.NODE_ENV!==`production`&&Jg("`resize` should not be called during main process.");return}if(this._disposed){DM(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[qj]&&(r??=this[qj].silent,n=!0,this[qj]=null),this[Gj]=!0,CM(this);try{n&&aM(this),cM.update.call(this,{type:`resize`,animation:V({duration:0},e&&e.animation)})}catch(e){throw this[Gj]=!1,e}this[Gj]=!1,fM.call(this,r),pM.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){DM(this.id);return}if(Nu(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!FM[e]){process.env.NODE_ENV!==`production`&&qg(`Loading effects `+e+` not exists.`);return}var n=FM[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){DM(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=V({},e);return t.type=kM[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){DM(this.id);return}if(Nu(t)||(t={silent:!!t}),OM[e.type]&&this._model){if(this[Gj]){this._pendingActions.push(e);return}var n=t.silent;dM.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ql.browser.weChat&&this._throttledZrFlush(),fM.call(this,n),pM.call(this,n)}},t.prototype.updateLabelLayout=function(){xj.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){DM(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&Y(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){aM=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),oM(e,!0),oM(e,!1),t.plan()},oM=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=U_(e.type),f=t?ck.getClass(d.main,d.sub):vk.getClass(d.sub);process.env.NODE_ENV!==`production`&&Y(f,d.sub+` does not exist.`),u=new f,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)}},sM=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){H([].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=X(),H(n_(c),function(e){var t=g_(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(bx(n))if(t instanceof ok)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&kte(t,n,e._api);else{var r=ux(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&lx(t.mainType,t.componentIndex,e._api),a&&H(a,function(e){n.type===`highlight`?ex(e):tx(e)})}else yx(n)&&t instanceof ok&&(Mte(t,n,e._api),dx(t),xM(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)}},cM={prepareAndUpdate:function(e){aM(this),cM.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),uM(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),gM(this,r,i,e,n),xj.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=X();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}),vM(this,r,i,e,{},o),xj.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),vk.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),gM(this,n,this._api,e,{}),xj.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()}),vk.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)}),xj.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){cM.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){DM(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=O_(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}process.env.NODE_ENV!==`production`&&qg(`No coordinate system that supports `+t+` found by the given finder.`)}lM=e,uM=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},dM=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=OM[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&U_(s[0]);this[Gj]=!0,CM(this);var u=[e],d=!1;e.batch&&(d=!0,u=U(e.batch,function(t){return t=bu(V({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=yx(e),_=bx(e);if(_&&sx(this._api),H(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=V({},t),p.type=h,f.push(p),_){var a=k_(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;sM(n,c,t,u),xM(n)}else g?(sM(n,c,t,`series`),xM(n)):l&&sM(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[qj]?(aM(this),cM.update.call(this,e),this[qj]=null):cM[c].call(this,e)}catch(e){throw this[Gj]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[Gj]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Y(Nu(y)),v=bu({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)}},fM=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();dM.call(this,n,e)}},pM=function(e){!e&&this.trigger(`updated`)},mM=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[qj]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},hM=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=hA(n,vx);r&&(Ate(r,e,t._api),xM(t))}).on(`mouseout`,function(e){var n=e.target,r=hA(n,vx);r&&(jte(r,e,t._api),xM(t))}).on(`click`,function(e){var n=e.target,r=hA(n,function(e){return Db(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Db(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;Qf(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),H(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)})}}gM=function(e,t,r,i,a){n(t),_M(e,t,r,i,a),H(e._chartsViews,function(e){e.__alive=!1}),vM(e,t,r,i,a),H(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},_M=function(e,t,n,r,i,a){H(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},vM=function(e,t,n,r,l,u){var d=e._scheduler;l=V(l||{},{updatedSeries:t.getSeries()}),xj.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),dx(t)}),d.unfinished=f||d.unfinished,xj.trigger(`series:layoutlabels`,t,n,l),xj.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),xj.trigger(`series:afterupdate`,t,n,l)},xM=function(e){e[Jj]=!0,e.getZr().wakeUp()},CM=function(e){e[Kj]=(e[Kj]+1)%1e3},SM=function(e){e[Jj]&&(e.getZr().storage.traverse(function(e){KS(e)||r(e)}),e[Jj]=!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 i(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!Ql.node&&!Ql.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 a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=FC(e);t.eachRendered(function(e){return LC(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!KS(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 c(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(KS(e))return;if(e instanceof Wy&&Rte(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)}})}yM=function(e){return new(function(t){B(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){ex(t,n),xM(e)},n.prototype.leaveEmphasis=function(t,n){tx(t,n),xM(e)},n.prototype.enterBlur=function(t){nx(t),xM(e)},n.prototype.leaveBlur=function(t){rx(t),xM(e)},n.prototype.enterSelect=function(t){ix(t),xM(e)},n.prototype.leaveSelect=function(t){ax(t),xM(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[Kj]},n}(tD))(e)},bM=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Xj]=t}}H(kM,function(n,r){e._messageCenter.on(r,function(n){if(LM[e.group]&&e[Xj]!==Zj){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];H(IM,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Zj),H(i,function(e){e[Xj]!==Qj&&e.dispatchAction(r)}),t(i,$j)}})})}}(),t}(Ed),TM=wM.prototype;TM.on=eM(`on`),TM.off=eM(`off`),TM.one=function(e,t,n){var r=this;Yg(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var EM=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function DM(e){process.env.NODE_ENV!==`production`&&qg(`Instance `+e+` has been disposed`)}var OM={},kM={},AM={},jM=[],MM=[],NM=[],PM={},FM={},IM={},LM={},RM=new Date-0;new Date-0;var zM=`_echarts_instance_`;function BM(e,t,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!==`production`&&!e)throw Error(`Initialize failed: invalid dom.`);var i=VM(e);if(i)return process.env.NODE_ENV!==`production`&&qg(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&Iu(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&qg(`Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.`)}var a=new wM(e,t,n);return a.id=`ec_`+ RM++,IM[a.id]=a,r&&N_(e,zM,a.id),bM(a),xj.trigger(`afterinit`,a),a}function VM(e){return IM[P_(e,zM)]}function HM(e,t){PM[e]=t}function UM(e){xu(MM,e)<0&&MM.push(e)}function WM(e,t){$M(jM,e,t,Mj)}function GM(e){qM(`afterinit`,e)}function KM(e){qM(`afterupdate`,e)}function qM(e,t){xj.on(e,t)}function JM(e,t,n){var r,i,a,o,s;K(t)&&(n=t,t=``),Nu(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;OM[r]||(Y(Yj.test(r)&&Yj.test(i)),a&&Y(i!==r),OM[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},AM[i]=1,a&&s&&(AM[l]=1),process.env.NODE_ENV!==`production`&&kM[l]&&Jg(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),kM[l]=r)}function YM(e,t){NT.register(e,t)}function XM(e,t){$M(NM,e,t,Pj,`layout`)}function ZM(e,t){$M(NM,e,t,Lj,`visual`)}var QM=[];function $M(e,t,n,r,i){if((K(t)||Nu(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);H(e,function(e){Y(e.__raw!==n)})}if(!(xu(QM,n)>=0)){QM.push(n);var a=Zk.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function eN(e,t){FM[e]=t}function tN(e,t,n){var r=wj(`registerMap`);r&&r(e,t,n)}var nN=gne;ZM(Ij,Ak),ZM(zj,Mk),ZM(zj,Nk),ZM(Ij,sA),ZM(zj,cA),ZM(Uj,bj),UM(MD),WM(Aj,ND),eN(`default`,Fk),JM({type:Fb,event:Fb,update:Fb},td),JM({type:Ib,event:Ib,update:Ib},td),JM({type:Lb,event:Bb,update:Lb,action:td,refineEvent:rN,publishNonRefinedEvent:!0}),JM({type:Rb,event:Bb,update:Rb,action:td,refineEvent:rN,publishNonRefinedEvent:!0}),JM({type:zb,event:Bb,update:zb,action:td,refineEvent:rN,publishNonRefinedEvent:!0});function rN(e,t,n,r){return{eventContent:{selected:Nte(n),isFromClick:t.isFromClick||!1}}}HM(`default`,{}),HM(`dark`,rA);var iN=[],aN={registerPreprocessor:UM,registerProcessor:WM,registerPostInit:GM,registerPostUpdate:KM,registerUpdateLifecycle:qM,registerAction:JM,registerCoordinateSystem:YM,registerLayout:XM,registerVisual:ZM,registerTransform:nN,registerLoading:eN,registerMap:tN,registerImpl:Cj,PRIORITY:Wj,ComponentModel:tE,ComponentView:ck,SeriesModel:ok,ChartView:vk,registerComponentModel:function(e){tE.registerClass(e)},registerComponentView:function(e){ck.registerClass(e)},registerSeriesModel:function(e){ok.registerClass(e)},registerChartView:function(e){vk.registerClass(e)},registerCustomSeries:function(e,t){Ej(e,t)},registerSubTypeDefaulter:function(e,t){tE.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){cg(e,t)}};function oN(e){if(G(e)){H(e,function(e){oN(e)});return}xu(iN,e)>=0||(iN.push(e),K(e)&&(e={install:e}),e.install(aN))}function sN(e){return e==null?0:e.length||1}function cN(e){return e}var lN=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||cN,this._newKeyGetter=r||cN,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=sN(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=sN(c),d=sN(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=sN(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=sN(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),uN=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function dN(e,t){var n={},r=n.encode={},i=X(),a=[],o=[],s={};H(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&Y(dE.get(c)==null);var l=n.coordDimIndex;fN(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),mN(n.type)&&(a[0]=t),fN(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}dE.each(function(e,t){var i=fN(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=U(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new uN(s,t),n}function fN(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function pN(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function mN(e){return!(e===`ordinal`||e===`time`)}var hN=function(){function e(e){this.otherDims={},e!=null&&V(this,e)}return e}(),gN=E_(),_N={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},vN=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=xN(this.source))},e.prototype.getSourceDimensionIndex=function(e){return J(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=GD(this.source),n=!SN(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=_N[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function yN(e){return e instanceof vN}function bN(e){for(var t=X(),n=0;n<(e||[]).length;n++){var r=e[n],i=Nu(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function xN(e){var t=gN(e);return t.dimNameMap||=bN(e.dimensionsDefine)}function SN(e){return e>30}var CN=Nu,wN=U,TN=typeof Int32Array>`u`?Array:Int32Array,EN=`e\0\0`,DN=-1,ON=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],kN=[`_approximateExtent`],AN,jN,MN,NN,PN,FN,IN,LN=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;yN(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=q(u)?new hN({name:u}):u instanceof hN?u:new hN(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;Mu(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),process.env.NODE_ENV!==`production`&&Y(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=X();H(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Mu(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof NO&&(i=e),!i){var a=this.dimensions,o=ID(e)||wu(e)?new QD(e,a.length):e;i=new NO;var s=wN(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=dN(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&IN(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&o_(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=g_(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=g_(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)IN(this,o);AN(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){CN(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=MN(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return jN(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return G(e)?r.getValues(wN(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?DN:r},e.prototype.each=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var r=n||this,i=wN(NN(e),this._getStoreDimIndex,this);this._store.each(i,r?W(t,r):t)},e.prototype.filterSelf=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var r=n||this,i=wN(NN(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Ou(e),i=[];return H(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){K(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=wN(NN(e),this._getStoreDimIndex,this),o=FN(this);return o._store=this._store.map(a,i?W(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&H(NN(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=wN(NN(e),this._getStoreDimIndex,this);this._store.modify(o,a?W(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=FN(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=FN(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=FN(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new mw(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new lN(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return jN(e,t)},function(e){return jN(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},CN(e)?V(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),G(i)?i=i.slice():CN(i)&&(i=V({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,CN(t)?V(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){CN(e)?V(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Ob(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){H(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:wN(this.dimensions,this._getDimInfo,this),this.hostModel),PN(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Hu(arguments)))})},e.internalField=function(){AN=function(e){var t=e._invertedIndicesMap;H(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new TN(a.categories.length);for(var s=0;s<n.length;s++)n[s]=DN;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},MN=function(e,t,n){return g_(e._getCategory(t,n),null)},jN=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=MN(e,e._idDimIdx,t)),n??=EN+t,n},NN=function(e){return G(e)||(e=e==null?[]:[e]),e},FN=function(t){var n=new e(t._schema?t._schema:wN(t.dimensions,t._getDimInfo,t),t.hostModel);return PN(n,t),n},PN=function(e,t){H(ON.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,H(kN,function(n){e[n]=_u(t[n])}),e._calculationInfo=V({},t._calculationInfo)},IN=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=MN(e,i,t)),s==null&&a!=null&&(r[t]=s=MN(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function RN(e,t){ID(e)||(e=RD(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=X(),a=[],o=BN(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&SN(o),c=r===e.dimensionsDefine,l=c?xN(e):bN(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=X(u),f=new EO(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=Nu(n)?n:{name:n},o=new hN,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=n_(e).slice();if(n.length===1&&!q(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);H(n,function(e,n){var i=q(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;H(n,function(e){var t,n,r,i;if(q(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=V({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=n_(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}H(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(bu(o,i),t,a),o.name==null&&n){var s=n[a];!Nu(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&bu(o.otherDims,r)})}});function g(e,t,n){dE.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)H(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=VN(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(EE(e,S)===yE.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return zN(a),new vN({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zN(e){for(var t=X(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function BN(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return H(t,function(e){var t;Nu(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function VN(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var HN=function(){function e(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return e}();function UN(e){var t=e.get(`coordinateSystem`),n=new HN(t),r=WN[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var WN={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,A_).models[0],a=e.getReferringComponents(`yAxis`,A_).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+Bu(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+Bu(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),GN(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),GN(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),GN(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,A_).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),GN(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),GN(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();H(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),GN(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function GN(e){return e.get(`type`)===`category`}function KN(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;qN(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(H(a,function(e,t){q(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;H(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function qN(e){return!yN(e.schema)}function JN(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function YN(e,t){return JN(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function XN(e,t){var n=e.get(`coordinateSystem`),r=NT.get(n),i;return t&&t.coordSysDims&&(i=U(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=pN(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function ZN(e,t,n){var r,i;return n&&H(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function QN(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=RD(e)):(i=r.getSource(),a=i.sourceFormat===fE);var o=UN(t),s=XN(t,o),c=n.useEncodeDefaulter,l=K(c)?c:c?Au(SE,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=RN(i,u),f=ZN(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=KN(t,{schema:d,store:p}),h=new LN(d,t);h.setCalculationInfo(m);var g=f!=null&&$N(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function $N(e){if(e.sourceFormat===`original`)return!G(a_(eP(e.data||[])))}function eP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var tP=QN;function nP(e){var t=10**Ng(Math.abs(e)),n=Math.abs(e/t);return n===0||n===1||n===2||n===3||n===5}function rP(e){return e.type===`interval`||e.type===`log`}function iP(e,t,n,r,i){var a={},o=a.interval=Pg(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=oP(o);return cP(a.niceTickExtent=[xg(Math.ceil(e[0]/o)*o,s),xg(Math.floor(e[1]/o)*o,s)],e),a}function aP(e){var t=10**Ng(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,xg(n*t)}function oP(e){return Cg(e)+2}function sP(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function cP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),sP(e,0,t),sP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function lP(e,t){return e>=t[0]&&e<=t[1]}var uP=function(){function e(){this.normalize=dP,this.scale=fP}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=W(e.normalize,e),this.scale=W(e.scale,e)):(this.normalize=dP,this.scale=fP)},e}();function dP(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function fP(e,t){return e*(t[1]-t[0])+t[0]}function pP(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 mP=function(){function e(e){this._calculator=new uP,this._setting=e||{},this._extent=[1/0,-1/0];var t=Pw();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=Pw();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}();$_(mP);var hP=mP,gP=0,_P=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gP,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&U(r,vP);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(!q(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||=X(this.categories)},e}();function vP(e){return Nu(e)&&e.value!=null?e.value:e+``}var yP=_P,bP=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new yP({}),G(r)&&(r=new yP({categories:U(r,function(e){return Nu(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:q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return lP(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}(hP);hP.registerClass(bP);var xP=bP,SP=xg,CP=function(e){B(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 lP(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=oP(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Pw(),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:SP(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=SP(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=SP(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:SP(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=oP(l);s<e-1;){var d=SP(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=Pw();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=Cg(e.value)||0:n===`auto`&&(n=this._intervalPrecision),uT(SP(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=iP(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]=SP(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=SP(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}(hP);hP.registerClass(CP);var wP=CP,TP=typeof Float32Array<`u`,EP=TP?Float32Array:Array;function DP(e){return G(e)?TP?new Float32Array(e):e:new EP(e)}var OP=`__ec_stack_`;function kP(e){return e.get(`stack`)||OP+e.seriesIndex}function AP(e){return e.dim+e.index}function jP(e){var t=[],n=e.axis,r=`axis0`;if(n.type===`category`){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(bu({bandWidth:i,axisKey:r,stackId:OP+a},e));for(var o=FP(t),s=[],a=0;a<e.count;a++){var c=o[r][OP+a];c.offsetCenter=c.offset+c.width/2,s.push(c)}return s}}function MP(e,t){var n=[];return t.eachSeriesByType(e,function(e){zP(e)&&n.push(e)}),n}function NP(e){var t={};H(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 PP(e){var t=NP(e),n=[];return H(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=Q(e.get(`barWidth`),a),f=Q(e.get(`barMaxWidth`),a),p=Q(e.get(`barMinWidth`)||(BP(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:AP(r),stackId:kP(e)})}),FP(n)}function FP(e){var t={};H(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 H(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=Ou(r).length;a=Math.max(35-o*4,15)+`%`}var s=Q(a,i),c=Q(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),H(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;H(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;H(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function IP(e,t,n){if(e&&t){var r=e[AP(t)];return r!=null&&n!=null?r[kP(n)]:r}}function LP(e,t){var n=MP(e,t),r=PP(n);H(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=kP(e),a=r[AP(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function RP(e){return{seriesType:e,plan:lk(),reset:function(e){if(zP(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=JN(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=VP(r,i),p=BP(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&DP(r*3),c=p&&s&&DP(r*3),l=p&&DP(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var M=n.dataToPoint([E,w]);T=M[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var M=n.dataToPoint([w,E]);T=M[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function zP(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function BP(e){return e.pipelineContext&&e.pipelineContext.large}function VP(e,t){var n=t.model.get(`startValue`);return n||=0,t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var HP=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},UP=function(e){B(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 Jw(e.value,Ww[ine(qw(this._minLevelUnit))]||Ww.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return ane(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=Pw(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return Pw().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=Yw(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=$P(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=Yw(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=Gw.length-1,d=0;return H(i,function(e){u=Math.min(u,xu(Gw,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&Pw().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&Pw().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(xu(Gw,Yw(e.vmin,l)),xu(Gw,Yw(e.vmax,l))),n=0,r=0;r<Gw.length;r++)if(!GP(Gw[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:Gw[Math.max(i,t)],upperTimeUnit:Gw[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=Rw,t[1]+=Rw),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]-Rw}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=WP.length,i=Math.min(HP(WP,this._approxInterval,0,r),r-1);this._interval=WP[i][1],this._intervalPrecision=oP(this._interval),this._minLevelUnit=WP[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return Mu(e)?e:+jg(e)},t.prototype.contain=function(e){return lP(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}(wP),WP=[[`second`,Fw],[`minute`,Iw],[`hour`,Lw],[`quarter-day`,Lw*6],[`half-day`,Lw*12],[`day`,Rw*1.2],[`half-week`,Rw*3.5],[`week`,Rw*7],[`month`,Rw*31],[`quarter`,Rw*95],[`half-year`,zw/2],[`year`,zw]];function GP(e,t,n,r){return Xw(new Date(t),e,r).getTime()===Xw(new Date(n),e,r).getTime()}function KP(e,t){return e/=Rw,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function qP(e){var t=30*Rw;return e/=t,e>6?6:e>3?3:e>2?2:1}function JP(e){return e/=Lw,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function YP(e,t){return e/=t?Iw:Fw,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function XP(e){return Pg(e,!0)}function ZP(e,t,n){var r=Math.max(0,xu(Gw,t)-1);return Xw(new Date(e),Gw[r],n).getTime()}function QP(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 $P(e,t,n,r,i,a){var o=1e4,s=ene,c=0;function l(e,t,n,i,s,l,u){for(var d=QP(s,e),f=t,p=new Date(f);f<n&&f<=r[1];){if(u.push({value:f}),c++>o){process.env.NODE_ENV!==`production`&&qg(`Exceed safe limit in time scale.`);break}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(!GP(qw(e),r[0],r[1],n)){s&&(i=[{value:ZP(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/Rw/365)),p=Zw(n),m=one(n);break;case`half-year`:case`quarter`:case`month`:f=qP(t),p=Qw(n),m=iT(n);break;case`week`:case`half-week`:case`day`:f=KP(t,31),p=$w(n),m=aT(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=JP(t),p=eT(n),m=oT(n);break;case`minute`:f=YP(t,!0),p=tT(n),m=sT(n);break;case`second`:f=YP(t,!1),p=nT(n),m=cT(n);break;case`millisecond`:f=XP(t),p=rT(n),m=lT(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=qw(s[h]);if(rne(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?qw(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=Eu(U(d,function(e){return Eu(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=Yw(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}hP.registerClass(UP);var eF=UP,tF=xg,nF=Math.floor,rF=Math.ceil,iF=Math.pow,aF=Math.log,oF=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new wP,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=Pw();return U(i,function(e){var t=e.value,i=null,c=iF(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,sF);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=sF(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=pP(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]=iF(t,n[0]),n[1]=iF(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=sF(n[0],r[0])),this._fixMax&&(n[1]=sF(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=pP(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=Mg(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[tF(rF(t[0]/r)*r),tF(nF(t[1]/r)*r)];this._interval=r,this._intervalPrecision=oP(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=aF(t)/aF(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=aF(t)/aF(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),iF(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Pw();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}(wP);function sF(e,t){return tF(e,Cg(t))}hP.registerClass(oF);var cF=oF,lF=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;K(a)?this._modelMinNum=pF(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=pF(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(K(o)?this._modelMaxNum=pF(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=pF(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=G(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?(process.env.NODE_ENV!==`production`&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.`),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Lh(c[0],1),Lh(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=zu(o)||zu(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){process.env.NODE_ENV!==`production`&&Y(!this.frozen),this[dF[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=uF[e];process.env.NODE_ENV!==`production`&&Y(!this.frozen&&this[n]==null),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),uF={min:`_determinedMin`,max:`_determinedMax`},dF={min:`_dataMin`,max:`_dataMax`};function fF(e,t,n){var r=e.rawExtentInfo;return r||(r=new lF(e,t,n),e.rawExtentInfo=r,r)}function pF(e,t){return t==null?null:zu(t)?NaN:e.parse(t)}function mF(e,t){var n=e.type,r=fF(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=MP(`bar`,o),c=!1;if(H(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=PP(s),u=hF(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function hF(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=IP(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;H(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;H(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+=d*(c/l),e-=d*(s/l),{min:e,max:t}}function gF(e,t){var n=t,r=mF(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof cF&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(DF(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 _F(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new xP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new eF({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((hP.getClass(t))||wP)}}function vF(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function yF(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=tne(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(q(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(K(t)){if(e.type===`category`)return function(n,r){return t(bF(e,n),n.value-e.scale.getExtent()[0],null)};var r=Pw();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(bF(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function bF(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function xF(e){return e.get(`interval`)??`auto`}function SF(e){return e.type===`category`&&xF(e.getLabelModel())===0}function CF(e,t){var n={};return H(e.mapDimensionsAll(t),function(t){n[YN(e,t)]=!0}),Ou(n)}function wF(e,t,n){t&&H(CF(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}function TF(e){return e===`middle`||e===`center`}function EF(e){return e.getShallow(`show`)}function DF(e){var t=e.get(`breaks`,!0);if(t!=null){if(!Pw()){process.env.NODE_ENV!==`production`&&Jg('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!OF(e.axis)){process.env.NODE_ENV!==`production`&&Jg(`Axis '`+e.axis.dim+`'-'`+e.axis.type+`' does not support break.`);return}return t}}function OF(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var kF=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),AF=1e-8;function jF(e,t){return Math.abs(e-t)<AF}function MF(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+=Dy(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!jF(i[0],s[0])||!jF(i[1],s[1]))&&(r+=Dy(i[0],i[1],s[0],s[1],t,n)),r!==0}var NF=[];function PF(e,t){for(var n=0;n<e.length;n++)xd(e[n],e[n],t)}function FF(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])&&(Sd(t,t,a),Cd(n,n,a))}}function IF(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 LF=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}(),RF=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),zF=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),BF=function(e){B(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 IF(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 H(i,function(t){t.type===`polygon`?FF(t.exterior,n,r,e):H(t.points,function(t){FF(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 Af(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(MF(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(MF(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 Af(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(PF(u.exterior,s),H(u.interiors,function(e){PF(e,s)})):H(u.points,function(e){PF(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}(LF),VF=function(e){B(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=af(NF),i=e;i&&!i.isGeoSVGGraphicRoot;)sf(r,i.getLocalTransform(),r),i=i.parent;return df(r,r),xd(n,n,r),n},t}(LF);function HF(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return H(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=WF(i,r,n);break;case`Polygon`:UF(i,r,n);break;case`MultiLineString`:UF(i,r,n);break;case`MultiPolygon`:H(i,function(e,t){return UF(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function UF(e,t,n){for(var r=0;r<e.length;r++)e[r]=WF(e[r],t[r],n)}function WF(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 GF(e,t){return e=HF(e),U(Eu(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 RF(a[0],a.slice(1)));break;case`MultiPolygon`:H(r.coordinates,function(e){e[0]&&i.push(new RF(e[0],e.slice(1)))});break;case`LineString`:i.push(new zF([r.coordinates]));break;case`MultiLineString`:i.push(new zF(r.coordinates))}var o=new BF(n[t||`name`],i,n.cp);return o.properties=n,o})}var KF=E_(),qF=E_(),JF={estimate:1,determine:2};function YF(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function XF(e,t){var n=U(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 ZF(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=yF(e),i=e.scale.getExtent();return{labels:U(Eu(XF(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`?$F(e,t):nI(e)}function QF(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:Eu(XF(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?tI(e,t):{ticks:U(e.scale.getTicks(n),function(e){return e.value})}}function $F(e,t){var n=e.getLabelModel(),r=eI(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function eI(e,t,n){var r=iI(e),i=xF(t),a=n.kind===JF.estimate;if(!a){var o=oI(r,i);if(o)return o}var s,c;K(i)?s=mI(e,i):(c=i===`auto`?cI(e,n):i,s=pI(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return sI(r,i,l),!0}):sI(r,i,l),l}function tI(e,t){var n=rI(e),r=xF(t),i=oI(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),K(r))a=mI(e,r,!0);else if(r===`auto`){var s=eI(e,e.getLabelModel(),YF(JF.determine));o=s.labelCategoryInterval,a=U(s.labels,function(e){return e.tickValue})}else o=r,a=pI(e,o,!0);return sI(n,r,{ticks:a,tickCategoryInterval:o})}function nI(e){var t=e.scale.getTicks(),n=yF(e);return{labels:U(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var rI=aI(`axisTick`),iI=aI(`axisLabel`);function aI(e){return function(t){return qF(t)[e]||(qF(t)[e]={list:[]})}}function oI(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function sI(e,t,n){return e.list.push({key:t,value:n}),n}function cI(e,t){if(t.kind===JF.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return qF(e).autoInterval=n,!0}),n}return qF(e).autoInterval??(qF(e).autoInterval=e.calculateCategoryInterval(t))}function lI(e,t){var n=t.kind,r=fI(e),i=yF(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=Nh(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===JF.estimate?(t.out.noPxChangeTryDetermine.push(W(uI,null,e,S,c)),S):dI(e,S,c)??S}function uI(e,t,n){return dI(e,t,n)==null}function dI(e,t,n){var r=KF(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 fI(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 pI(e,t,n){var r=yF(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=SF(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 mI(e,t,n){var r=e.scale,i=yF(e),a=[];return H(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 hI=[0,1],gI=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 Tg(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(),_I(n,r.count())),vg(e,hI,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),_I(n,r.count()));var i=vg(e,n,hI,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=QF(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=U(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return vI(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),U(this.scale.getMinorTicks(e),function(e){return U(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=YF(JF.determine),ZF(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||=YF(JF.determine),lI(this,e)},e}();function _I(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function vI(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;H(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=xg(e),t=xg(t),d?e>t:e<t}}var yI=gI,bI=Math.PI*2,xI=yy.CMD,SI=[`top`,`right`,`bottom`,`left`];function CI(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 wI(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)%bI<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=wy(i),i=wy(f)}else r=wy(r),i=wy(i);r>i&&(i+=bI);var p=Math.atan2(s,o);if(p<0&&(p+=bI),p>=r&&p<=i||p+bI>=r&&p+bI<=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 TI(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 EI(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))}var DI=[];function OI(e,t,n){var r=EI(t.x,t.y,t.width,t.height,e.x,e.y,DI);return n.set(DI[0],DI[1]),r}function kI(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 xI.M:a=u[p++],o=u[p++],r=a,i=o;break;case xI.L:h=TI(r,i,u[p],u[p+1],d,f,DI,!0),r=u[p++],i=u[p++];break;case xI.C:h=Sp(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,DI),r=u[p++],i=u[p++];break;case xI.Q:h=kp(r,i,u[p++],u[p++],u[p],u[p+1],d,f,DI),r=u[p++],i=u[p++];break;case xI.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=wI(g,_,y,b,b+x,S,C,f,DI),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case xI.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=EI(a,o,w,T,d,f,DI);break;case xI.Z:h=TI(r,i,a,o,d,f,DI,!0),r=a,i=o;break}h<l&&(l=h,n.set(DI[0],DI[1]))}return l}var AI=new ff,jI=new ff,MI=new ff,NI=new ff,PI=new ff;function FI(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||SI,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&df([],u),f=t.get(`length2`)||0;l&&MI.copy(l);for(var p=0;p<o.length;p++){var m=o[p];CI(m,0,s,AI,NI),ff.scaleAndAdd(jI,AI,NI,f),jI.transform(d);var h=e.getBoundingRect(),g=l?l.distance(jI):e instanceof Wy?kI(jI,e.path,MI):OI(jI,h,MI);g<c&&(c=g,jI.transform(u),MI.transform(u),MI.toArray(a[0]),jI.toArray(a[1]),AI.toArray(a[2]))}RI(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var II=[],LI=new ff;function RI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,AI.fromArray(e[0]),jI.fromArray(e[1]),MI.fromArray(e[2]),ff.sub(NI,AI,jI),ff.sub(PI,MI,jI);var n=NI.len(),r=PI.len();if(!(n<.001||r<.001)){NI.scale(1/n),PI.scale(1/r);var i=NI.dot(PI);if(Math.cos(t)<i){var a=TI(jI.x,jI.y,MI.x,MI.y,AI.x,AI.y,II,!1);LI.fromArray(II),LI.scaleAndAdd(PI,a/Math.tan(Math.PI-t));var o=MI.x===jI.x?(LI.y-jI.y)/(MI.y-jI.y):(LI.x-jI.x)/(MI.x-jI.x);if(isNaN(o))return;o<0?ff.copy(LI,jI):o>1&&ff.copy(LI,MI),LI.toArray(e[1])}}}}function Fne(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,AI.fromArray(e[0]),jI.fromArray(e[1]),MI.fromArray(e[2]),ff.sub(NI,jI,AI),ff.sub(PI,MI,jI);var r=NI.len(),i=PI.len();if(!(r<.001||i<.001)&&(NI.scale(1/r),PI.scale(1/i),NI.dot(t)<Math.cos(n))){var a=TI(jI.x,jI.y,MI.x,MI.y,AI.x,AI.y,II,!1);LI.fromArray(II);var o=Math.PI/2,s=o+Math.acos(PI.dot(t))-n;if(s>=o)ff.copy(LI,MI);else{LI.scaleAndAdd(PI,a/Math.tan(Math.PI/2-s));var c=MI.x===jI.x?(LI.y-jI.y)/(MI.y-jI.y):(LI.x-jI.x)/(MI.x-jI.x);if(isNaN(c))return;c<0?ff.copy(LI,jI):c>1&&ff.copy(LI,MI)}LI.toArray(e[1])}}}function zI(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 Ine(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=_d(r[0],r[1]),a=_d(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=bd([],r[1],r[0],o/i),c=bd([],r[1],r[2],o/a),l=bd([],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 BI(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<Pb.length;c++){var l=Pb[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:J(i.states[l]&&i.states[l].ignore,s))||!J(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&zI(r,!0,l,u);continue}r||(r=new mS,e.setTextGuideLine(r),!d&&(s||!o)&&zI(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),zI(r,!1,l,u)}}if(r){bu(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Ine}}function VI(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Nb.length;r++){var i=Nb[r];n[i]=e.getModel([i,t])}return n}var HI=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Lne=1,UI=2,WI=Lne|UI;function GI(e,t,n){n||=WI,t?e.dirty|=n:e.dirty&=~n}function KI(e,t){return t||=WI,e.dirty==null||!!(e.dirty&t)}function qI(e){if(e)return KI(e)&&JI(e,e.label,e),e}function JI(e,t,n){var r=t.getComputedTransform();e.transform=PC(e.transform,r);var i=e.localRect=NC(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=nw.textMargin);for(var d=0;d<4;d++)YI[d]=u===nw.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===nw.textMargin&&TC(i,YI,!1,!1);var f=e.rect=NC(e.rect,i);return r&&f.applyTransform(r),u===nw.minMargin&&TC(f,YI,!1,!1),e.axisAligned=jC(r),(e.label=e.label||{}).ignore=t.ignore,GI(e,!1),GI(e,!0,UI),e}var YI=[0,0,0,0];function Rne(e,t,n){return e.transform=PC(e.transform,n),e.localRect=NC(e.localRect,t),e.rect=NC(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=jC(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function XI(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 ZI(e,t){for(var n=0;n<HI.length;n++){var r=HI[n];e[r]??(e[r]=t[r])}return qI(e)}function QI(e){var t=e.obb;return(!t||KI(e,UI))&&(e.obb=t||=new RS,t.fromBoundingRect(e.localRect,e.transform),GI(e,!1,UI)),t}function $I(e,t,n,r,i){var a=e.length,o=eC[t],s=tC[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 zne(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 eL(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=qI(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(tL(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function tL(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:QI(e).intersect(QI(t),n,r)}function Bne(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function Vne(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:Bne(r&&r.shape.points)}}var nL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],rL=new Th,iL=E_(),Hne=E_();function aL(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var oL=[`x`,`y`,`rotation`],Une=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();Af.applyTransform(c,c,s),s?rL.setLocalTransform(s):(rL.x=rL.y=rL.rotation=rL.originX=rL.originY=0,rL.scaleX=rL.scaleY=1),rL.rotation=wy(rL.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Af.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:rL.x,y:rL.y,scaleX:rL.scaleX,scaleY:rL.scaleY,rotation:rL.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`);(K(r)||Ou(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Db(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(){FI(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=K(a.layoutOptionOrCb)?a.layoutOptionOrCb(Vne(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=Q(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Q(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=iL(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<nL.length;m++){var h=nL[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];H(this._labelList,function(e){e.defaultAttr.ignore||r.push(ZI({},e))});var i=Eu(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=Eu(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});$I(i,0,0,t),$I(a,1,0,n);var o=Eu(r,function(e){return e.layoutOption.hideOverlap});zne(o),eL(o)},e.prototype.processLabelsOverall=function(){var e=this;H(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=iL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Db(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`);BI(e,VI(o),s),FI(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&&!KS(e))){var i=iL(n),a=i.oldLayout,o=Db(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&&(xu(u,`select`)>=0&&n.attr(i.oldLayoutSelect),xu(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),WS(n,c,t,s)}else if(n.attr(c),!$C(n).valueAnimation){var d=J(n.style.opacity,1);n.style.opacity=0,GS(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};aL(f,c,oL),aL(f,n.states.select,oL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};aL(p,c,oL),aL(p,n.states.emphasis,oL)}tw(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=Hne(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),WS(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,GS(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),sL=E_();function Wne(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=sL(t).labelManager;r||=sL(t).labelManager=new Une,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=sL(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var cL=Math.sin,lL=Math.cos,uL=Math.PI,dL=Math.PI*2,Gne=180/uL,fL=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=dm(u-dL)||(l?c>=dL:-c>=dL),f=c>0?c%dL:c%dL+dL,p=!1;p=d?!0:dm(u)?!1:f>=uL==!!l;var m=e+n*lL(a),h=t+r*cL(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Gne);if(d){var _=1/this._p,v=(l?1:-1)*(dL-_);this._add(`A`,n,r,g,1,+l,e+n*lL(a+v),t+r*cL(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*lL(o),b=t+r*cL(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),pL=`none`,Kne=Math.round;function qne(e){var t=e.fill;return t!=null&&t!==pL}function Jne(e){var t=e.stroke;return t!=null&&t!==pL}var mL=[`lineCap`,`miterLimit`,`lineJoin`],Yne=U(mL,function(e){return`stroke-`+e.toLowerCase()});function Xne(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Qy){e(`opacity`,i);return}if(qne(t)){var a=lm(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,pL);if(Jne(t)){var s=lm(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=IA(n),p=f[0],m=f[1];p&&(m=Kne(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,pL);for(var h=0;h<mL.length;h++){var g=mL[h];if(r||t[g]!==Vy[g]){var _=t[g]||Vy[g];_&&e(Yne[h],_)}}}else r&&e(`stroke`,pL)}var hL=`http://www.w3.org/2000/svg`,gL=`http://www.w3.org/1999/xlink`,Zne=`http://www.w3.org/2000/xmlns/`,Qne=`http://www.w3.org/XML/1998/namespace`,$ne=`ecmeta_`;function _L(e){return document.createElementNS(hL,e)}function vL(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function ere(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function tre(e){return`</`+e+`>`}function yL(e,t){t||={};var n=t.newline?`
|
|
62
|
-
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return
|
|
63
|
-
`:``,i=` {`+r,a=r+`}`,o=U(Ou(e),function(t){return t+i+U(Ou(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=U(Ou(t),function(e){return`@keyframes `+e+i+U(Ou(t[e]),function(n){return n+i+U(Ou(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function bL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xL(e,t,n,r){return vL(`svg`,`root`,{width:e,height:t,xmlns:hL,"xmlns:xlink":gL,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var rre=0;function SL(){return rre++}var CL={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},wL=`transform-origin`;function ire(e,t,n){var r=V({},e.shape);V(r,t),e.buildPath(n,r);var i=new fL;return i.reset(Em(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function are(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[wL]=n+`px `+r+`px`)}var ore={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function TL(e,t){var n=t.zrId+`-ani-`+ t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sre(e,t,n){var r=e.shape.paths,i={},a,o;if(H(r,function(e){var t=bL(n.zrId);t.animation=!0,DL(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=Ou(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=TL(i,n);return a.replace(o,s)}}function EL(e){return q(e)?CL[e]?`cubic-bezier(`+CL[e]+`)`:Mp(e)?e:``:``}function DL(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof ES){var s=sre(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=EL(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=EL(d.easing),m=d.rawValue;(q(m)||Mu(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};wh(g,e),V(g,s[h]);var _=Dm(g),v=s[h][u];l[h]=_?{transform:_}:{},are(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new yy);var S=y.len();y.reset(),l[h].d=ire(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return ore[e]})}for(var w=Ou(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][wL]!==l[O][wL]){T=!1;break}E=l[D][wL]}if(T&&E){for(var h in l)l[h][wL]&&delete l[h][wL];t[wL]=E}if(Eu(w,function(e){return Ou(l[e]).length>0}).length)return TL(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+SL();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function cre(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};OL(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=sm(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),OL(r,t,n,!0)}}function OL(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+SL(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var kL=Math.round;function AL(e){return e&&q(e.src)}function jL(e){return e&&K(e.toDataURL)}function ML(e,t,n,r){Xne(function(i,a){var o=i===`fill`||i===`stroke`;o&&wm(a)?BL(t,e,i,r):o&&xm(a)?VL(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),hre(n,e,r)}function NL(e,t){var n=ug(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[$ne+`silent`]=`true`))}function PL(e){return dm(e[0]-1)&&dm(e[1])&&dm(e[2])&&dm(e[3]-1)}function lre(e){return dm(e[4])&&dm(e[5])}function FL(e,t,n){if(t&&!(lre(t)&&PL(t))){var r=n?10:1e4;e.transform=PL(t)?`translate(`+kL(t[4]*r)/r+` `+kL(t[5]*r)/r+`)`:mm(t)}}function IL(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(kL(r[a][0]*n)/n),i.push(kL(r[a][1]*n)/n);t.points=i.join(` `)}function LL(e){return!e.smooth}function ure(e){var t=U(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=kL(o*r)/r)}}}var dre={circle:[ure([`cx`,`cy`,`r`])],polyline:[IL,LL],polygon:[IL,LL]};function fre(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function RL(e,t){var n=e.style,r=e.shape,i=dre[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Em(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&fre(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new fL,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return FL(a,e.transform),ML(a,n,e,t),NL(a,e),t.animation&&DL(e,a,t),t.emphasis&&cre(e,a,t),vL(s,e.id+``,a)}function pre(e,t){var n=e.style,r=n.image;if(r&&!q(r)&&(AL(r)?r=r.src:jL(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),FL(c,e.transform),ML(c,n,e,t),NL(c,e),t.animation&&DL(e,c,t),vL(`image`,e.id+``,c)}}function mre(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=gm(n.y||0,Ih(i),n.textBaseline),s=hm[n.textAlign]||n.textAlign,c={"dominant-baseline":`central`,"text-anchor":s};if(vb(n)){var l=``,u=n.fontStyle,d=gb(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||`sans-serif`,p=n.fontWeight;l+=`font-size:`+d+`;font-family:`+f+`;`,u&&u!==`normal`&&(l+=`font-style:`+u+`;`),p&&p!==`normal`&&(l+=`font-weight:`+p+`;`),c.style=l}else c.style=`font: `+i;return r.match(/\s/)&&(c[`xml:space`]=`preserve`),a&&(c.x=a),o&&(c.y=o),FL(c,e.transform),ML(c,n,e,t),NL(c,e),t.animation&&DL(e,c,t),vL(`text`,e.id+``,c,void 0,r)}}function zL(e,t){if(e instanceof Wy)return RL(e,t);if(e instanceof Qy)return pre(e,t);if(e instanceof qy)return mre(e,t)}function hre(e,t,n){var r=e.style;if(_m(r)){var i=vm(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=lm(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+ n.shadowIdx++,n.defs[o]=vL(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[vL(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Tm(o)}}function BL(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Sm(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Cm(i))a=`radialGradient`,o.cx=J(i.x,.5),o.cy=J(i.y,.5),o.r=J(i.r,.5);else{process.env.NODE_ENV!==`production`&&gu(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=pm(s[l].offset)*100+`%`,f=s[l].color,p=lm(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(vL(`stop`,l+``,g))}var _=yL(vL(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+ r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=vL(a,y,o,c)),t[n]=Tm(y)}function VL(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(ym(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(q(h)?m=h:AL(h)?m=h.src:jL(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Y(f,g),Y(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=av(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=vL(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=_u(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Dm(i);x&&(o.patternTransform=x);var S=vL(`pattern`,``,o,[d]),C=yL(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+ r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=vL(`pattern`,T,o,[d])),t[n]=Tm(T)}}function gre(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+ n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=vL(`clipPath`,a,o,[RL(e,n)])}t[`clip-path`]=Tm(a)}function HL(e){return document.createTextNode(e)}function UL(e,t,n){e.insertBefore(t,n)}function WL(e,t){e.removeChild(t)}function GL(e,t){e.appendChild(t)}function KL(e){return e.parentNode}function qL(e){return e.nextSibling}function JL(e,t){e.textContent=t}var YL=58,_re=120,vre=vL(``,``);function XL(e){return e===void 0}function ZL(e){return e!==void 0}function yre(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function QL(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function $L(e){var t,n=e.children,r=e.tag;if(ZL(r)){var i=e.elm=_L(r);if(nR(vre,e),G(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&GL(i,$L(a))}else ZL(e.text)&&!Nu(e.text)&&GL(i,HL(e.text))}else e.elm=HL(e.text);return e.elm}function eR(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&UL(e,$L(a),t)}}function tR(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(ZL(i.tag)?WL(KL(i.elm),i.elm):WL(e,i.elm))}}function nR(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===_re?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(Zne,n,o):n.charCodeAt(3)===YL?r.setAttributeNS(Qne,n,o):n.charCodeAt(5)===YL?r.setAttributeNS(gL,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function bre(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:QL(o,l)?(rR(o,l),o=t[++r],l=n[++i]):QL(s,u)?(rR(s,u),s=t[--a],u=n[--c]):QL(o,u)?(rR(o,u),UL(e,o.elm,qL(s.elm)),o=t[++r],u=n[--c]):QL(s,l)?(rR(s,l),UL(e,s.elm,o.elm),s=t[--a],l=n[++i]):(XL(d)&&(d=yre(t,r,a)),f=d[l.key],XL(f)?UL(e,$L(l),o.elm):(p=t[f],p.tag===l.tag?(rR(p,l),t[f]=void 0,UL(e,p.elm,o.elm)):UL(e,$L(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,eR(e,m,n,i,c)):tR(e,t,r,a))}function rR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(nR(e,t),XL(t.text)?ZL(r)&&ZL(i)?r!==i&&bre(n,r,i):ZL(i)?(ZL(e.text)&&JL(n,``),eR(n,null,i,0,i.length-1)):ZL(r)?tR(n,r,0,r.length-1):ZL(e.text)&&JL(n,``):e.text!==t.text&&(ZL(r)&&tR(n,r,0,r.length-1),JL(n,t.text)))}function xre(e,t){if(QL(e,t))rR(e,t);else{var n=e.elm,r=KL(n);$L(t),r!==null&&(UL(r,t.elm,qL(n)),tR(r,[e],0,0))}return t}var Sre=0,Cre=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=iR(`refreshHover`),this.configLayer=iR(`configLayer`),this.storage=t,this._opts=n=V({},n),this.root=e,this._id=`zr`+ Sre++,this._oldVNode=xL(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=_L(`svg`);nR(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,xre(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return zL(e,bL(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=bL(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=wre(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=vL(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=U(Ou(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(vL(`defs`,`defs`,{},c)),e.animation){var l=nre(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=vL(`style`,`stl`,{},[],l);a.push(u)}}return xL(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},yL(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};gre(d[g],_,t);var v=vL(`g`,`clip-g-`+ c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=zL(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=PA(r,0,n),t=PA(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(xm(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=Om(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function iR(e){return function(){process.env.NODE_ENV!==`production`&&gu(`In SVG mode painter not support method "`+e+`"`)}}function wre(e,t,n,r){var i;if(n&&n!==`none`)if(i=vL(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),wm(n))BL({fill:n},i.attrs,`fill`,r);else if(xm(n))VL({style:{fill:n},dirty:td,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=lm(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}var Tre=Cre;function Ere(e){e.registerPainter(`svg`,Tre)}function aR(e,t,n){var r=nu.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 oR=function(e){id(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||=fh,typeof t==`string`?a=aR(t,n,r):Nu(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ed(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=aR(`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 Af(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Af(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 Af(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 Af(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;Lu(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||jA(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):lte(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=UA(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&&H(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(Ed),sR=1e5,cR=314159,lR=.01,Dre=.001;function Ore(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function kre(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 Are=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=V({},n||{}),this.dpr=n.devicePixelRatio||fh,this._singleCanvas=i,this.root=e,e.style&&(ed(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 oR(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[cR]=u,u.zlevel=cR,a.push(cR),this._domRoot=e}else{this._width=PA(e,0,n),this._height=PA(e,1,n);var d=this._domRoot=kre(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(sR),i||(i=n.ctx,i.save()),lj(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(sR)},e.prototype.paintOne=function(e,t){cj(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;rp(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(cR).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 Ql.wxa&&H(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))&&(lj(o,e,i,a),e.setPrevPaintRect(s))}else lj(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=cR);var n=this._layers[e];return n||(n=new oR(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?vu(n,this._layerConfig[e],!0):this._layerConfig[e-lR]&&vu(n,this._layerConfig[e-lR],!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]){process.env.NODE_ENV!==`production`&&gu(`ZLevel `+e+` has been used already`);return}if(!Ore(t)){process.env.NODE_ENV!==`production`&&gu(`Layer of zlevel `+e+` is not valid`);return}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+Dre,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?lR:0),this._needsManuallyCompositing),l.__builtin__||gu(`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,H(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?vu(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+lR){var a=this._layers[i];vu(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(xu(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=PA(i,0,r),t=PA(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(cR).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[cR].dom;var t=new oR(`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];lj(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 jre(e){e.registerPainter(`canvas`,Are)}var Mre=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!==`production`){var t=e.coordinateSystem;if(t!==`polar`&&t!==`cartesian2d`)throw Error(`Line not support coordinateSystem besides cartesian and polar`)}return tP(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new tg,n=TA(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=TA(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(ok);function uR(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=dO(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(dO(e,t,n[o]));return a.join(` `)}}function dR(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!G(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var Nre=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=TA(e,-1,-1,2,2,null,a);o.attr({z2:J(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Pre,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ex(this.childAt(0))},t.prototype.downplay=function(){tx(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):WS(f,p,o,n),XS(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,GS(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=UC(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=DA(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Qy){var S=a.style;a.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(V({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;HC(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):uR(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),px(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Db(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&qS(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();qS(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return EA(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(tg);function Pre(e,t){this.parent.drift(e,t)}var fR=Nre;function pR(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function mR(e){return e!=null&&!Nu(e)&&(e={isIgnore:e}),e||{}}function hR(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:UC(t),cursorStyle:t.get(`cursor`)}}var gR=function(){function e(e){this.group=new tg,this._SymbolCtor=e||fR}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=mR(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=hR(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(pR(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!pR(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):WS(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hR(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=mR(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(pR(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function _R(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Fre(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=s===`x`||s===`radius`?1:0,d=U(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return JN(t,d[0])&&(f=!0,d[0]=p),JN(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Fre(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Mu(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function vR(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function Ire(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Lre(e,t,n,r,i,a,o,s){for(var c=Ire(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=_R(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=vR(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=DP(M),P=DP(M),F=DP(M),I=DP(M),ee=[],y=0;y<m.length;y++){var L=m[y],R=y*2,te=L*2;N[R]=l[te],N[R+1]=l[te+1],P[R]=u[te],P[R+1]=u[te+1],F[R]=d[te],F[R+1]=d[te+1],I[R]=f[te],I[R+1]=f[te+1],ee[y]=p[L]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:I,status:ee}}var yR=Math.min,bR=Math.max;function xR(e,t){return isNaN(e)||isNaN(t)}function SR(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(xR(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;xR(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||xR(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var ee=D>0?1:-1;p=_,m=v-ee*P*o,O=_,k=v+ee*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=yR(O,bR(S,_)),k=yR(k,bR(C,v)),O=bR(O,yR(S,_)),k=bR(k,yR(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=yR(p,bR(l,_)),m=yR(m,bR(u,v)),p=bR(p,yR(l,_)),m=bR(m,yR(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var CR=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Rre=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new CR},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&xR(n[i*2-2],n[i*2-1]);i--);for(;r<i&&xR(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=SR(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=yy.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?yp(i,u,f,m,e,s):yp(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?_p(a,d,p,h,b):_p(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Wy),zre=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(CR),wR=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new zre},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&xR(n[a*2-2],n[a*2-1]);a--);for(;i<a&&xR(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=SR(e,n,i,a,a,1,t.smooth,o,t.connectNulls);SR(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Wy);function TR(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new sb({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=K(i)?function(e){i(e,d)}:null;GS(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function ER(e,t,n){var r=e.getArea(),i=xg(r.r0,1),a=xg(r.r,1),o=new iS({shape:{cx:xg(e.cx,1),cy:xg(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,GS(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function DR(e,t,n,r,i){if(e){if(e.type===`polar`)return ER(e,t,n);if(e.type===`cartesian2d`)return TR(e,t,n,r,i)}else return null;return null}function OR(e,t){return e.type===t}function kR(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function AR(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function jR(e,t){var n=AR(e),r=n[0],i=n[1],a=AR(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function MR(e){return Mu(e)?e:e?.5:0}function NR(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=DP(r*2),a=0;a<r;a++){var o=vR(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function PR(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function FR(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:tm((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function IR(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())){if(t.type!==`cartesian2d`){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style is only supported on cartesian2d.`);return}for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(!a){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style only support x or y dimension.`);return}var c=t.getAxis(i),l=U(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=FR(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;H(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new OS(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}function LR(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&RR(a,t))){var o=t.mapDimension(a.dim),s={};return H(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function RR(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(fR.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function zR(e,t){return isNaN(e)||isNaN(t)}function BR(e){for(var t=e.length/2;t>0&&zR(e[t*2-2],e[t*2-1]);t--);return t-1}function VR(e,t){return[e[t*2],e[t*2+1]]}function HR(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function UR(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Nb.length;t++)if(e.get([Nb[t],`endLabel`,`show`]))return!0;return!1}function WR(e,t,n,r){if(OR(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=UR(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=TR(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return process.env.NODE_ENV!==`production`&&r.get([`endLabel`,`show`])&&console.warn(`endLabel is not supported for lines in polar systems.`),ER(t,n,r)}function GR(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var KR=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new tg,t=new gR;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=W(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=_R(r,a,_),y=g&&NR(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&LR(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=IR(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=PR(y,c,r,w,x),c=PR(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,yT(E)),m.setClipPath(WR(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,yT(E));var D=m.getClipPath();D?GS(D,{shape:WR(this,r,!1,e).shape},e):m.setClipPath(WR(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!kR(this._stackedOnPoints,y)||!kR(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=PR(y,c,r,w,x),c=PR(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(bu(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),gx(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}Db(f).seriesIndex=e.seriesIndex,px(f,k,A,j);var N=MR(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(bu(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=MR(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),gx(p,e,`areaStyle`),Db(p).seriesIndex=e.seriesIndex,px(p,k,A,j)}var ee=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ee)}),this._polyline.onHoverStateChange=ee,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Db(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=T_(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new fR(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else vk.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=T_(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else vk.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Yb(this._polyline,e),t&&Yb(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Rre({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new wR({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);K(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=K(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=K(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(UR(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Eb({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=BR(o);c>=0&&(HC(a,UC(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?uR(i,e):dR(i,n)},enableTextSetter:!0},GR(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=HR(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=VR(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=L_(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=VR(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=$C(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Lre(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=PR(u.stackedOnCurrent,u.current,n,i,o),d=PR(u.current,null,n,i,o),m=PR(u.stackedOnNext,u.next,n,i,o),p=PR(u.next,null,n,i,o)),jR(d,p)>3e3||c&&jR(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),WS(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),WS(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(vk);function qR(e,t){return{seriesType:e,plan:lk(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=U(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);JN(n,o[0])&&(o[0]=c),JN(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&DP(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var JR={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},YR=function(e){return Math.round(e.length/2)};function XR(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;q(i)?p=JR[i]:K(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,YR))}}}}}function ZR(e){e.registerChartView(KR),e.registerSeriesModel(Mre),e.registerLayout(qR(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,XR(`line`))}var QR=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return tP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)H(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[c?1:0]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=r.getBaseAxis().isHorizontal()?0:1;a[l]+=s+c/2}return a}return[NaN,NaN]},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(ok);ok.registerClass(QR);var $R=QR,ez=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return tP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=yw($R.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}($R),tz=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),nz=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new tz},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Wy);function rz(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Rh(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+az(m,s+_,!1),x=u+p*y(m)+oz(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+az(m,-s+_,!1),x=u+p*y(m)+oz(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+az(h,s+_,!0),x=u+p*y(h)+oz(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+az(h,-s+_,!0),x=u+p*y(h)+oz(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Rh(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function iz(e,t,n,r){if(Mu(r)){e.setTextConfig({rotation:r});return}else if(G(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function az(e,t,n){return t*Math.sin(e)*(n?-1:1)}function oz(e,t,n){return t*Math.cos(e)*(n?1:-1)}function sz(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;G(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(r,function(e){return Lh(e,i)})}}var cz=Math.max,lz=Math.min;function uz(e,t){var n=e.getArea&&e.getArea();if(OR(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var dz=function(e){B(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&qg(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=mz(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=uz(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=bz[s.type](a,e);if(!t)return null;var n=jz(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=bz[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!yz[s.type](r)))){var o=!1;f&&(o=fz[s.type](p,r));var g=pz[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),Cz(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?hz(d,u,g,r,t,l,!1,!1):GS(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=bz[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=bz[s.type](a,t),E=Az(l,T,s);WS(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!yz[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=fz[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&YS(D,e,n),D=null),D?XS(D):D=pz[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=$C(k);A.prevValue!=null&&(A.prevValue=A.value)}}else Cz(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?hz(d,u,D,C,t,l,!0,x):WS(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&YS(n,e,t)}).execute();var C=this._backgroundGroup||=new tg;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Dz(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Dz(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&DR(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:U(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){YS(t,e,Db(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(vk),fz={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=cz(t.x,e.x),s=lz(t.x+t.width,i),c=cz(t.y,e.y),l=lz(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=lz(t.r,e.r),a=cz(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},pz={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new sb({shape:V({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?nz:iS,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=rz(Sz(i),{isRoundCap:l===nz}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?WS:GS)(u,{shape:p},a)}return u}};function mz(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&qg("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&qg("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function hz(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?WS:GS)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?WS:GS)(n,{shape:l},u,i)}function gz(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var _z=[`x`,`y`,`width`,`height`],vz=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],yz={cartesian2d:function(e){return!gz(e,_z)},polar:function(e){return!gz(e,vz)}},bz={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?wz(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function xz(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Sz(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Cz(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(s){if(!a.get(`roundCap`)){var l=e.shape;V(l,sz(r.getModel(`itemStyle`),l,!0)),e.setShape(l)}}else{var u=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=UC(r);HC(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:uR(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,iz(e,h===`outside`?f:h,Sz(o),r.get([`label`,`rotate`]))}ew(m,p,a.getRawValue(n),function(e){return dR(t,e)});var g=r.getModel([`emphasis`]);px(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),gx(e,r),xz(i)&&(e.style.fill=`none`,e.style.stroke=`none`,H(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function wz(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Tz=function(){function e(){}return e}(),Ez=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new Tz},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Wy);function Dz(e,t,n,r){var i=e.getData(),a=i.getLayout(`valueAxisHorizontal`)?1:0,o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new Ez({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new Ez({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,Db(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,Oz),d.on(`mousemove`,Oz)),n&&n.push(d)}var Oz=Sk(function(e){var t=this,n=kz(t,e.offsetX,e.offsetY);Db(t).dataIndex=n>=0?n:null},30,!1);function kz(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function Az(e,t,n){if(OR(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function jz(e,t,n){return new(e.type===`polar`?iS:sb)({shape:Az(t,n,e),silent:!0,z2:0})}var Mz=dz;function Nz(e){e.registerChartView(Mz),e.registerSeriesModel(ez),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Au(LP,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RP(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,XR(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var Pz=Math.PI*2,Fz=Math.PI/180;function Iz(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=VT(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*Fz,d=e.get(`endAngle`),f=e.get(`padAngle`)*Fz;d=d===`auto`?u-Pz:-d*Fz;var p=e.get(`minAngle`)*Fz+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;vy(S,!_),u=S[0],d=S[1];var w=Lz(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?vg(e,b,[c,s]):s}),O=i}),E<Pz&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var Lz=E_();function Rz(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var zz=Math.PI/180;function Bz(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;Hz(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}$I(e,1,c,c+o)&&d(e)}function Vz(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;Kz(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!Kz(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,Hz(m,g,!1)}}Bz(l,t,n,r,1,i,a,o,s,d),Bz(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!Kz(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function Hz(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}Uz(a,r)}}}function Uz(e,t){Gz.rect=e,JI(Gz,t,Wz)}var Wz={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Gz={};function Kz(e){return e.position===`center`}function qz(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*zz,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Q(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Q(T,l);var E=w.get(`length2`);if(E=Q(E,l),Math.abs(d.endAngle-d.startAngle)<o){H(h.states,p),h.ignore=!0,g&&(H(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,I=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=I+k*3,!P){var ee=F+O*(T+c-d.r),L=I+k*(T+c-d.r),R=ee+(O<0?-1:1)*E,te=L;A=x===`edge`?O<0?u+S:u+l-S:R+(O<0?-b:b),j=te,M=[[F,I],[ee,L],[R,te]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ne=Math.PI,re=0,ie=v.get(`rotate`);if(Mu(ie))re=ie*(ne/180);else if(y===`center`)re=0;else if(ie===`radial`||ie===!0)re=O<0?-D+ne:-D;else if(ie===`tangential`&&y!==`outside`&&y!==`outer`){var ae=Math.atan2(O,k);ae<0&&(ae=ne*2+ae),k>0&&(ae=ne+ae),re=ae-ne}if(a=!!re,h.x=A,h.y=j,h.rotation=re,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var oe=h.states.select;oe&&(oe.x+=h.x,oe.y+=h.y)}else{var se=new Af(0,0,0,0);Uz(se,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new ff(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:se,unconstrainedWidth:se.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&Vz(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(H(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(H(v.states,p),v.ignore=!0):(RI(x,g.minTurnAngle),Fne(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new ff(x[0][0],x[0][1])})}}}var Jz=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Eb;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=V(sz(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(GS(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,GS(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,WS(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),GS(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else XS(i),WS(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),gx(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=V({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},sz(s.getModel(`itemStyle`),c)),V(i.ensureState(`select`),{x:p,y:m,shape:sz(o.getModel([`select`,`itemStyle`]),c)}),V(i.ensureState(`blur`),{shape:sz(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&V(g.ensureState(`select`),{x:p,y:m}),V(_.ensureState(`select`),{x:p,y:m}),px(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;HC(r,UC(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new mS,this.setTextGuideLine(d)),BI(this,VI(i),{stroke:s,opacity:Vu(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(iS),Yz=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new iS({shape:_u(Lz(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new Jz(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){YS(a.getItemGraphicEl(t),e,t)}).execute(),qz(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(vk);function Xz(e,t,n){t=G(t)&&{coordDimensions:t}||V({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=RN(r,t).dimensions,a=new LN(i,e);return a.initData(r,n),a}var Zz=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),Qz=E_(),$z=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zz(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Xz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=Qz(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Eg(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){r_(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(ok);ET({fullType:$z.type,getCoord2:function(e){return e.getShallow(`center`)}});var eB=$z;function tB(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(Mu(r)&&!isNaN(r)&&r<0)})}}}function nB(e){e.registerChartView(Yz),e.registerSeriesModel(eB),fA(`pie`,e.registerAction),e.registerLayout(Au(Iz,`pie`)),e.registerProcessor(Rz(`pie`)),e.registerProcessor(tB(`pie`))}var rB=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return tP(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(ok),iB=4,aB=function(){function e(){}return e}(),oB=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new aB},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<iB,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Af(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(Wy),sB=function(){function e(){this.group=new tg}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var n=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;t=new Float32Array(t.buffer,r,n)}e.setShape(`points`,t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`points`),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new oB({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=TA(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<iB;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=Db(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cB=function(e){B(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=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=qR(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new sB:new gR,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(vk),lB={left:0,right:0,top:0,bottom:0},uB=[`25%`,`25%`],dB=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=XT(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&YT(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&YT(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:lB,outerBoundsContain:`all`,outerBoundsClampWidth:uB[0],outerBoundsClampHeight:uB[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(tE),fB=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,A_).models[0]},t.type=`cartesian2dAxis`,t}(tE);Cu(fB,kF);var pB={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},mB=vu({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},pB),hB=vu({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},pB),gB={category:mB,value:hB,time:vu({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},hB),log:bu({logBase:10},hB)},_B={value:1,category:1,time:1,log:1},vB=null;function yB(e){vB||=e}function bB(){return vB}function xB(e,t,n,r){H(_B,function(i,a){var o=vu(vu({},gB[a],!0),r,!0),s=function(e){B(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=JT(this),r=n?XT(e):{};vu(e,t.getTheme().get(a+`Axis`)),vu(e,this.getDefaultOption()),e.type=SB(e),n&&YT(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=yP.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=bB();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,SB)}function SB(e){return e.type||(e.data?`category`:`value`)}var CB=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Eu(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),wB=[`x`,`y`];function TB(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var EB=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=wB,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!TB(e)||!TB(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s;this._invTransform=df([],this._transform=[c,0,0,l,i[0]-n[0]*c,i[1]-r[0]*l])}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Af(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return xd(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return xd(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Af(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(CB),DB=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(yI),OB=`expandAxisBreak`,kB=`collapseAxisBreak`,AB=`toggleAxisBreak`,jB=`axisbreakchanged`,MB={type:OB,event:jB,update:`update`,refineEvent:FB},NB={type:kB,event:jB,update:`update`,refineEvent:FB},PB={type:AB,event:jB,update:`update`,refineEvent:FB};function FB(e,t,n,r){var i=[];return H(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function IB(e){e.registerAction(MB,t),e.registerAction(NB,t),e.registerAction(PB,t);function t(e,t){var n=[],r=O_(t,e);function i(t,i){H(r[t],function(t){H(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(bu((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var LB=Math.PI,RB=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],zB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],BB=E_(),VB=E_(),HB=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 UB(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=pV(e.axisName)&&TF(e.nameLocation);H(r,function(e){var t=qI(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?df(WB,n.transform):af(WB),t.transform&&sf(WB,WB,t.transform),Af.copy(GB,t.localRect),GB.applyTransform(WB),s?s.union(GB):Af.copy(s=new Af(0,0,0,0),GB))}});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 Af(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var WB=rf(),GB=new Af(0,0,0,0),KB=function(e,t,n,r,i,a){if(TF(e.nameLocation)){var o=a.stOccupiedRect;o&&qB(Rne({},o,a.transGroup.transform),r,i)}else JB(a.labelInfoList,a.dirVec,r,i)};function qB(e,t,n){var r=new ff;tL(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&XI(t,r)}function JB(e,t,n,r){for(var i=ff.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||qB(s,n,r)}}var YB=function(){function e(e,t,n,r){this.group=new tg,this._axisModel=e,this._api=t,this._local={},this._shared=r||new HB(KB),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;Y(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=J(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=J(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:J(e.nameDirection,1),tickDirection:J(e.tickDirection,1),labelDirection:J(e.labelDirection,1),labelOffset:J(e.labelOffset,0),silent:J(e.silent,!0),axisName:r,nameLocation:Vu(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:pV(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(Y(a.position!=null),Y(a.rotation!=null)),this._cfg=a;var o=new tg({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 ff(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},H(XB,function(r){e[r]&&ZB[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=Og(t-e),i,a;return kg(r)?(a=n>0?`top`:`bottom`,i=`center`):kg(r-LB)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<LB?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}(),XB=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],ZB={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;Y(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(xd(d,d,u),xd(f,f,u));var m=V({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())bB().buildAxisBreakLine(r,i,a,h);else{var g=new vS(V({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));fC(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);q(_)&&(_=[_,_]),(q(v)||Mu(v))&&(v=[v,v]);var y=DA(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];H([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=TA(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;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){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;Y(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}oV(t,i,s)&&QB(e,t,n,r,i,a,o,JF.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}oV(t,i,s)&&QB(e,t,n,r,i,a,o,JF.determine);var l=iV(e,i,a,r);tV(e,t.labelLayoutList,l),aV(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;Y(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(pV(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new ff(0,0),v=new ff(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=rf();v.transform(lf(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*LB/180);var x,S;TF(d)?x=YB.innerTextLayout(e.rotation,b??e.rotation,f):(x=$B(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=Bu(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new Eb({x:_.x,y:_.y,rotation:x.rotation,silent:YB.isLabelSilent(r),style:WC(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(OC({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=YB.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,Db(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=qI({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:TF(d)?RB[D]:zB[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&Y(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function QB(e,t,n,r,i,a,o,s){cV(t)||sV(e,t,i,s,r,o);var c=t.labelLayoutList;uV(e,r,c,a),hV(r,e.rotation,c);var l=e.optionHideOverlap;eV(r,c,l),l&&eL(Eu(c,function(e){return e&&!e.label.ignore})),UB(e,n,r,c)}function $B(e,t,n,r){var i=Og(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return kg(i-LB/2)?(o=c?`bottom`:`top`,a=`center`):kg(i-LB*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<LB*1.5&&i>LB/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function eV(e,t,n){if(SF(e.axis))return;function r(e,r,i){var a=qI(t[r]),o=qI(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){nV(a.label);return}if(o.suggestIgnore){nV(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=ZI({marginForce:c},a),o=ZI({marginForce:c},o)}tL(a,o,null,{touchThreshold:s})&&nV(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 tV(e,t,n){e.showMinorTicks||H(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=VB(r),a=BB(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){nV(r);return}}})}function nV(e){e&&(e.ignore=!0)}function rV(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&&(xd(o,o,t),xd(s,s,t));var u=new vS({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});fC(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=VB(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function iV(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=rV(i.getTicksCoords(),n.transform,c,bu(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function aV(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=bu(c.getLineStyle(),bu(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=rV(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function oV(e,t,n){if(cV(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&Y(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),lV(e,null,null,null))}return!0}function sV(e,t,n,r,i,a){var o=i.axis,s=Bu(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new tg;n.add(c);var l=YF(r);if(!s||o.scale.isBlank()){lV(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Bu(e.raw.labelRotate,u.get(`rotate`))||0)*LB/180,p=YB.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;H(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];Nu(f)&&f.textStyle&&(l=new mw(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=J(l.getShallow(`alignMinLabel`,!0),b),S=J(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=J(l.getShallow(`verticalAlignMinLabel`,!0),C),T=J(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new Eb({x:0,y:0,rotation:0,silent:YB.isLabelSilent(i),z2:E,style:WC(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:K(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=BB(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,OC({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=YB.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),Db(D).eventData=k,e.break&&mV(i,a,D,e.break)}h.push(D),c.add(D)}),lV(t,U(h,function(e){return{label:e,priority:BB(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function cV(e){return!!e.labelLayoutList}function lV(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function uV(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);H(n,function(n,a){var o=qI(n);if(o){var s=o.label,c=BB(s);o.suggestIgnore=s.ignore,s.ignore=!1,wh(dV,fV),dV.x=t.axis.dataToCoord(c.tickValue),dV.y=e.labelOffset+e.labelDirection*i,dV.rotation=c.layoutRotation,r.add(dV),dV.updateTransform(),r.remove(dV),dV.decomposeTransform(),wh(s,dV),s.markRedraw(),GI(o,!0),qI(o)}})}var dV=new sb,fV=new sb;function pV(e){return!!e}function mV(e,t,n,r){n.on(`click`,function(n){var i={type:OB,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function hV(e,t,n){var r=Pw();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&BB(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&H(i,function(r){bB().adjustBreakLabelPair(e.axis.inverse,t,[qI(n[r[0]]),qI(n[r[1]])])})}}var gV=YB;function _V(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),Bu(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function vV(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function yV(e){var t={xAxisModel:null,yAxisModel:null};return H(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,A_).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+Vu(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function bV(e,t,n,r,i,a){for(var o=_V(e,n),s=!1,c=!1,l=0;l<t.length;l++)rP(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new gV(n,r,o,i)}function xV(e,t,n){var r=_V(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();H(Ou(r),function(e){e!==`position`&&e!==`labelOffset`&&Y(r[e]===i[e])})}e.updateCfg(r)}function SV(e,t,n){var r=wP.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,{expandToNicedExtent:!0}),o=i.length-1,s=r.getInterval.call(n),c=mF(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;e.type===`log`&&(l=pP(e.base,l,!0)),e.setBreaksFromOption(DF(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(l[0]=f[0]),d&&(l[1]=f[1]);var p=r.getInterval.call(e),m=l[0],h=l[1];if(u&&d)p=(h-m)/o;else if(u)for(h=l[0]+p*o;h<l[1]&&isFinite(h)&&isFinite(l[1]);)p=aP(p),h=l[0]+p*o;else if(d)for(m=l[1]-p*o;m>l[0]&&isFinite(m)&&isFinite(l[0]);)p=aP(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=aP(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=xg(h-g),m<0&&l[0]>=0?(m=0,h=xg(g)):h>0&&l[1]<=0&&(h=0,m=-xg(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;if(r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p),process.env.NODE_ENV!==`production`){var y=r.getTicks.call(e);y[1]&&(!nP(p)||wg(y[1].value)>wg(p))&&qg(`The ticks may be not readable when set min: `+t.get(`min`)+`, max: `+t.get(`max`)+(` and alignTicks: true. (`+t.axis?.dim+`AxisIndex: `+t.componentIndex+`)`),!0)}}var CV=[[3,1],[0,2]],wV=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wB,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=Ou(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;rP(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(gF(c,s),rP(c)&&(t=o))}i.length&&(t||(t=i.pop(),gF(t.scale,t.model)),H(i,function(e){SV(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};H(n.x,function(e){EV(n,`y`,e,i)}),H(n.y,function(e){EV(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=GT(e,t),i=this._rect=HT(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(kV(a,i),!n){var c=PV(i,o,a,s,t),l=void 0;if(s)jV?(jV(this._axesList,i),kV(a,i)):(process.env.NODE_ENV!==`production`&&Kg("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=NV(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=IV(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=NV(d,f,p,i,a,c,r))}FV(i,a,JF.determine,null,l,r)}H(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}Nu(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,A_).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,A_).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,xu(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,H(o.x,function(t,n){H(o.y,function(i,a){var o=`x`+n+`y`+a,s=new EB(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(TV(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new DB(t,_F(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){H(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(vV(e)){var r=yV(e),i=r.xAxisModel,a=r.yAxisModel;if(!TV(i,t)||!TV(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){H(CF(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return H(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);xu(t,i)<0&&t.push(i),xu(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){jT({targetModel:e,coordSysType:`cartesian2d`,coordSysProvider:t});function t(){var t=yV(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`Grid "`+Vu(n.get(`gridIndex`),n.get(`gridId`),0)+`" not found`);if(n.getCoordSysModel()!==r.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return i.coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=wB,e}();function TV(e,t){return e.getCoordSysModel()===t}function EV(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)DV(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&DV(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function DV(e){return e&&e.type!==`category`&&e.type!==`time`&&vF(e)}function OV(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function kV(e,t){H(e.x,function(e){return AV(e,t.x,t.width)}),H(e.y,function(e){return AV(e,t.y,t.height)})}function AV(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),OV(e,t)}var jV;function MV(e){jV=e}function NV(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&Y(t===`all`||t===`axisLabel`),FV(r,i,JF.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Du(s,function(e){return e>0})==null;return TC(r,s,!0,!0,n),kV(i,r),c;function l(e){H(i[eC[e]],function(t){if(EF(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(BB(o.label).tickValue);s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=TF(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[eC[n]]-t[eC[n]],a=t[tC[n]]+t[eC[n]]-(e[tC[n]]+e[eC[n]]);i=d(i,1-r),a=d(a,r);var o=CV[n][0],c=CV[n][1];s[o]=gg(s[o],i),s[c]=gg(s[c],a)}function d(e,t){return e>0&&!zu(t)&&t>1e-4&&(e/=t),e}}function PV(e,t,n,r,i){var a=new HB(LV);return H(n,function(n){return H(n,function(n){if(EF(n.model)){var o=!r;n.axisBuilder=bV(e,t,n.model,i,a,o)}})}),a}function FV(e,t,n,r,i,a){var o=n===JF.determine;H(t,function(t){return H(t,function(t){EF(t.model)&&(xV(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[eC[1-t]]=e[tC[t]]<=a.refContainer[tC[t]]*.5?0:1-t==1?2:1}H(t,function(e,t){return H(e,function(e){EF(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function IV(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=HT(e.get(`outerBounds`,!0)||lB,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Jg(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:xu([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Jg(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[bg(J(e.get(`outerBoundsClampWidth`,!0),uB[0]),t.width),bg(J(e.get(`outerBoundsClampHeight`,!0),uB[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var LV=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;KB(e,t,n,r,i,a),TF(e.nameLocation)||H(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&JB(e.labelInfoList,e.dirVec,r,i)})},RV=wV;function zV(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return BV(n,e,t),n.seriesInvolved&&HV(n,e),n}function BV(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];H(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=YV(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(H(n.getAxes(),Au(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)&&H(f.baseAxes,Au(p,d?`cross`:!0,u)),d&&H(f.otherAxes,Au(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!JV(d))){s??=d.get(`triggerTooltip`),d=r?VV(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=YV(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:JV(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=UV(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function VV(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};H(s,function(e){c[e]=_u(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&&bu(l,u.textStyle)}return e.model.getModel(`axisPointer`,new mw(c,n,r))}function HV(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||H(e.coordSysAxesInfo[YV(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 UV(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(WV(a[r+`AxisId`],n.id)||WV(a[r+`AxisIndex`],n.componentIndex)||WV(a[r+`AxisName`],n.name))return i}}function WV(e,t){return e===`all`||G(e)&&xu(e,t)>=0||e===t}function GV(e){var t=KV(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=JV(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 KV(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[YV(e)]}function qV(e){var t=KV(e);return t&&t.axisPointerModel}function JV(e){return!!e.get([`handle`,`show`])}function YV(e){return e.type+`||`+e.id}var XV={},ZV=function(e){B(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&&GV(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=qV(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){if(process.env.NODE_ENV!==`production`&&XV[e])throw Error(`axisPointer `+e+` exists`);XV[e]=t},t.getAxisPointerClass=function(e){return e&&XV[e]},t.type=`axis`,t}(ck),QV=E_();function $V(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=QV(e).splitAreaColors,f=X(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=G(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new sb({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:bu({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}QV(e).splitAreaColors=f}}}function eH(e){QV(e).splitAreaColors=null}var tH=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],nH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new tg,this.group.add(this._axisGroup),EF(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),H(tH,function(e){t.get([e,`show`])&&rH[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||vC(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){eH(this)},t.type=`cartesianAxis`,t}(ZV),rH={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=G(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new vS({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:bu({stroke:c[x]},_),silent:!0});fC(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new vS({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});fC(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){$V(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=bB(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},iH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(nH),aH=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=iH.type,t}return t.type=`yAxis`,t}(nH),oH=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new sb({shape:e.coordinateSystem.getRect(),style:bu({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(ck),sH={offset:0};function cH(e){e.registerComponentView(oH),e.registerComponentModel(dB),e.registerCoordinateSystem(`cartesian2d`,RV),xB(e,`x`,fB,sH),xB(e,`y`,fB,sH),e.registerComponentView(iH),e.registerComponentView(aH),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function lH(e,t){var n=e.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===`cartesian2d`&&a===`ordinal`||r===`single`,s=t.model.get(`jitter`)>0;return o&&s}var uH=E_();function dH(e,t,n,r){if(e instanceof DB){var i=e.scale.type;if(i!==`category`&&i!==`ordinal`)return n}var a=e.model,o=a.get(`jitter`),s=a.get(`jitterOverlap`),c=a.get(`jitterMargin`)||0,l=e.scale.type===`ordinal`?e.getBandWidth():null;return o>0?s?fH(n,o,l,r):pH(e,t,n,r,o,c):n}function fH(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function pH(e,t,n,r,i,a){var o=uH(e);o.items||=[];var s=o.items,c=mH(s,t,n,r,i,a,1),l=mH(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=e.scale.type===`ordinal`?e.getBandWidth():null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?fH(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function mH(e,t,n,r,i,a,o){for(var s=n,c=0;c<e.length;c++){var l=e[c],u=t-l.fixedCoord,d=s-l.floatCoord,f=u*u+d*d,p=r+l.r+a;if(f<p*p){var m=l.floatCoord+Math.sqrt(p*p-u*u)*o;if(Math.abs(m-n)>i/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m<s){s=m,c=-1;continue}}}return s}function hH(e){e.eachSeriesByType(`scatter`,function(e){var t=e.coordinateSystem;if(t&&(t.type===`cartesian2d`||t.type===`single`)){var n=t.getBaseAxis?t.getBaseAxis():null;if(n&&lH(e,n)){var r=e.getData();r.each(function(e){var t=n.dim,i=n.orient,a=i===`horizontal`&&n.type!==`category`||i===`vertical`&&n.type===`category`,o=r.getItemLayout(e),s=r.getItemVisual(e,`symbolSize`),c=s instanceof Array?(s[1]+s[0])/2:s;if(t===`y`||t===`single`&&a){var l=dH(n,o[0],o[1],c/2);r.setItemLayout(e,[o[0],l])}else if(t===`x`||t===`single`&&!a){var l=dH(n,o[1],o[0],c/2);r.setItemLayout(e,[l,o[1]])}})}}})}function gH(e){oN(cH),e.registerSeriesModel(rB),e.registerChartView(cB),e.registerLayout(qR(`scatter`))}function _H(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hH)}function vH(e){e.eachSeriesByType(`radar`,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();H(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=yH(i)?i:bH(r)})}),t.each(function(e){var i=Du(n[e],function(e){return yH(e)})||bH(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function yH(e){return!isNaN(e[0])&&!isNaN(e[1])}function bH(e){return[e.cx,e.cy]}function xH(e){var t=e.polar;if(t){G(t)||(t=[t]);var n=[];H(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],G(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}H(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var SH=function(e){B(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=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=EA(e.getItemVisual(t,`symbolSize`)),i=TA(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),QS[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return U(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new dS,i=new mS,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),GS(r,o,e,t),GS(i,o,e,t);var s=new tg,u=new tg;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),XS(s),XS(i),WS(i,u,e),WS(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(bu(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),gx(r,n,`lineStyle`),gx(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,H([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=_u(l)})}),o.useStyle(bu(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Qy){var r=e.style;e.useStyle(V({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),HC(e,UC(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),px(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=`radar`,t}(vk),CH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zz(W(this.getData,this),W(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Xz(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=qO(this,e);return BO(`section`,{header:o,sortBlocks:!0,blocks:U(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return BO(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(U(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.radar`,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(ok),wH=gB.value;function TH(e,t){return bu({show:t},e)}var EH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`scale`),r=this.get(`axisLine`),i=this.get(`axisTick`),a=this.get(`axisLabel`),o=this.get(`axisName`),s=this.get([`axisName`,`show`]),c=this.get([`axisName`,`formatter`]),l=this.get(`axisNameGap`),u=this.get(`triggerEvent`);this._indicatorModels=U(this.get(`indicator`)||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=bu({color:d.color},o));var p=vu(_u(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(q(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else K(c)&&(p.name=c(p.name,p));var h=new mw(p,null,this.ecModel);return Cu(h,kF.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this)},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:vu({lineStyle:{color:$.color.neutral20}},wH.axisLine),axisLabel:TH(wH.axisLabel,!1),axisTick:TH(wH.axisTick,!1),splitLine:TH(wH.splitLine,!0),splitArea:TH(wH.splitArea,!0),indicator:[]},t}(tE),DH=function(e){B(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){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;H(U(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new gV(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=G(u)?u:[u],p=G(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new zx({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new oS({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=U(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),U(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]?T.push(T[0].slice()):process.env.NODE_ENV!==`production`&&console.error(`Can't draw value axis `+b),c){var x=g(m,f,b);m[x].push(new mS({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new dS({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();H(h,function(e,t){this.group.add(uC(e,{style:bu({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),H(m,function(e,t){this.group.add(uC(e,{style:bu({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(ck),OH=function(e){B(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(yI),kH=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new OH(n,new wP);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer,r=e.get(`center`),i=Math.min(n.width,n.height)/2;this.cx=Q(r[0],n.width)+n.x,this.cy=Q(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var a=e.get(`radius`);(q(a)||Mu(a))&&(a=[0,a]),this.r0=Q(a[0],i),this.r=Q(a[1],i),H(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;H(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType(`radar`,function(t,i){if(!(t.get(`coordinateSystem`)!==`radar`||e.getComponent(`radar`,t.get(`radarIndex`))!==r)){var a=t.getData();H(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get(`splitNumber`),a=new wP;a.setExtent(0,i),a.setInterval(1),H(n,function(e,t){SV(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(`radar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(`radar`,function(e){e.get(`coordinateSystem`)===`radar`&&(e.coordinateSystem=r[e.get(`radarIndex`)||0])}),r},e.dimensions=[],e}();function AH(e){e.registerCoordinateSystem(`radar`,kH),e.registerComponentModel(EH),e.registerComponentView(DH),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}function jH(e){oN(AH),e.registerChartView(SH),e.registerSeriesModel(CH),e.registerLayout(vH),e.registerProcessor(Rz(`radar`)),e.registerPreprocessor(xH)}var MH=E_();function NH(e,t,n){MH(e)[t]=n}function PH(e,t,n){var r=MH(e);r[t]===n&&(r[t]=null)}function FH(e,t){return!!MH(e)[t]}JM({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},td);var IH={axisPointer:1,tooltip:1,brush:1};function LH(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||IH.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=FC(r),o=FC(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var RH=function(e){B(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=FC(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:J(c.z2,-1/0)},p=V({},n.triggerInfo);this._opt=bu(V({},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`)&&(HH(t,`mousedown`,r,f),HH(t,`mousemove`,i,f),HH(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(HH(t,`mousewheel`,o,f),HH(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,UH(t,`mousedown`,r),UH(t,`mousemove`,i),UH(t,`mouseup`,a),UH(t,`mousewheel`,o),UH(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(LH(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(!(Qd(e)||zH(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`||FH(t,`globalPan`)||zH(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!qH(`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&&Zd(e.event),e.__ecRoamConsumed=!0,KH(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!zH(e)){var t=this._zr;if(!Qd(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!zH(e)){var t=qH(`zoomOnMouseWheel`,e,this._opt),n=qH(`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(!(FH(this._zr,`globalPan`)||zH(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)&&(Zd(r.event),r.__ecRoamConsumed=!0,KH(e,t,n,r,i))},t}(Ed);function zH(e){return e.__ecRoamConsumed}var BH=E_();function VH(e){var t=BH(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function HH(e,t,n,r){for(var i=VH(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}),WH(e,t)}function UH(e,t,n){for(var r=VH(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||GH(e,t);return}}function WH(e,t){var n=VH(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 GH(e,t){var n=VH(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function KH(e,t,n,r,i){i.isAvailableBehavior=W(qH,null,n,r),e.trigger(t,i)}function qH(e,t,n){var r=n[e];return!e||r&&(!q(r)||t.event[r+`Key`])}var JH=RH;function YH(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function XH(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;o*=t,o=tU(o,a);var s=o/e.zoom;e.zoom=o,eU(i,n,r,s),i.dirty()}function ZH(e,t,n,r,i,a){var o=new Af(0,0,0,0);r.enable(e.get(`roam`),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,r){return o.copy(n.getBoundingRect()),o.applyTransform(n.getComputedTransform()),o.contain(t,r)},isInClip:function(e,t,n){return!a||a.contain(t,n)}}}),i.zoomLimit=e.get(`scaleLimit`);var s=e.coordinateSystem;i.zoom=s?s.getZoom():1;var c=e.subType+`Roam`;r.off(`pan`).off(`zoom`).on(`pan`,function(n){YH(i,n.dx,n.dy),t.dispatchAction({seriesId:e.id,type:c,dx:n.dx,dy:n.dy})}).on(`zoom`,function(n){XH(i,n.scale,n.originX,n.originY),t.dispatchAction({seriesId:e.id,type:c,zoom:n.scale,originX:n.originX,originY:n.originY}),t.updateLabelLayout()})}function QH(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function $H(e,t,n){var r=e.getZoom(),i=e.getCenter(),a=t.zoom,o=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(QH(e,o))),a!=null&&(a=tU(r*a,n)/r,eU(e,t.originX,t.originY,a),e.updateTransform(),e.setCenter(QH(e,o)),e.setZoom(a*r)),{center:e.getCenter(),zoom:e.getZoom()}}function eU(e,t,n,r){e.x-=(t-e.x)*(r-1),e.y-=(n-e.y)*(r-1),e.scaleX*=r,e.scaleY*=r}function tU(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function nU(e){q(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var rU,iU={fill:`fill`,stroke:`stroke`,"stroke-width":`lineWidth`,opacity:`opacity`,"fill-opacity":`fillOpacity`,"stroke-opacity":`strokeOpacity`,"stroke-dasharray":`lineDash`,"stroke-dashoffset":`lineDashOffset`,"stroke-linecap":`lineCap`,"stroke-linejoin":`lineJoin`,"stroke-miterlimit":`miterLimit`,"font-family":`fontFamily`,"font-size":`fontSize`,"font-style":`fontStyle`,"font-weight":`fontWeight`,"text-anchor":`textAlign`,visibility:`visibility`,display:`display`},aU=Ou(iU),oU={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},sU=Ou(oU),cU=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=nU(e);if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Illegal svg`);this._defsUsePending=[];var r=new tg;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),mU(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;vU(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=bU(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=DU(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new tg,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new sb({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=rU[o];if(l&&Z(rU,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=lU[o];if(f&&Z(lU,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new qy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});fU(t,n),mU(e,n,this._defsUsePending,!1,!1),hU(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){rU={g:function(e,t){var n=new tg;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new sb;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new zx;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new vS;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new Vx;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=pU(n));var i=new dS({shape:{points:r||[]},silent:!0});return fU(t,i),mU(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=pU(n));var i=new mS({shape:{points:r||[]},silent:!0});return fU(t,i),mU(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Qy;return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new tg;return fU(t,o),mU(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new tg;return fU(t,o),mU(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Ix(e.getAttribute(`d`)||``);return fU(t,n),mU(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),lU={lineargradient:function(e){var t=new OS(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return uU(e,t),dU(e,t),t},radialgradient:function(e){var t=new kS(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return uU(e,t),dU(e,t),t}};function uU(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function dU(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};TU(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Xp(o);c&&c[3]&&(c[3]*=Hp(s),o=im(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function fU(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},bu(t.__inheritedStyle,e.__inheritedStyle))}function pU(e){for(var t=bU(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function mU(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(CU(e,t),TU(e,o,s),r||EU(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=_U(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=_U(a,`stroke`,o.stroke,n)),H([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),H([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=U(bU(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function hU(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var gU=/^url\(\s*#(.*?)\)/;function _U(e,t,n,r){var i=n&&n.match(gU);if(i){var a=Wu(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function vU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var yU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bU(e){return e.match(yU)||[]}var xU=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,SU=Math.PI/180;function CU(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(xU,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=bU(o);switch(i||=rf(),s){case`translate`:cf(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:uf(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:lf(i,i,-parseFloat(c[0])*SU,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*SU);sf(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*SU);sf(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var wU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function TU(e,t,n){var r=e.getAttribute(`style`);if(r){wU.lastIndex=0;for(var i;(i=wU.exec(r))!=null;){var a=i[1],o=Z(iU,a)?iU[a]:null;o&&(t[o]=i[2]);var s=Z(oU,a)?oU[a]:null;s&&(n[s]=i[2])}}}function EU(e,t,n){for(var r=0;r<aU.length;r++){var i=aU[r],a=e.getAttribute(i);a!=null&&(t[iU[i]]=a)}for(var r=0;r<sU.length;r++){var i=sU[r],a=e.getAttribute(i);a!=null&&(n[oU[i]]=a)}}function DU(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function OU(e,t){return new cU().parse(e,t)}var kU=X([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),AU=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=X(),this._freedGraphics=[],this._mapName=e,this._parsedXML=nU(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=MU(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&OU(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Y(n!=null)}catch(e){throw Error(`Invalid svg format
|
|
64
|
-
`+e.message)}var r=new tg;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Af(c,l,u,d)}if(o){var p=
|
|
65
|
-
`+e.message)}return RU(t,r),H(r,function(e){var n=e.name;BU(t,e),HU(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function GU(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function KU(e){return q(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var qU=X(),JU={registerMap:function(e,t,n){if(t.svg){var r=new AU(e,t.svg);qU.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new WU(e,i,n);qU.set(e,r)}},getGeoResource:function(e){return qU.get(e)},getMapForUser:function(e){var t=qU.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=qU.get(e);if(!r){process.env.NODE_ENV!==`production`&&console.error(`Map `+e+` not exists. The GeoJSON of the map must be provided.`);return}return r.load(t,n)}},YU=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],XU=X(YU),ZU=X(YU.concat([`g`])),QU=X(YU.concat([`g`])),$U=E_();function eW(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function tW(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var nW=function(){function e(e){var t=this.group=new tg,n=this._transformGroup=new tg;t.add(n),this.uid=gw(`ec_map_draw`),this._controller=new JH(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new tg),n.add(this._svgGroup=new tg)}return e.prototype.draw=function(e,t,n,r,i){var a=e.mainType===`geo`,o=e.getData&&e.getData();a&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=this._regionsGroup,l=this._transformGroup,u=s.getTransformInfo(),d=u.raw,f=u.roam,p=!c.childAt(0)||i,m=e.getShallow(`clip`,!0),h;m?(h=s.getViewRect().clone(),this.group.setClipPath(new sb({shape:h.clone()}))):this.group.removeClipPath(),p?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):WS(l,f,e);var g=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0,_={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(_):s.resourceType===`geoSVG`&&this._buildSVG(_),this._updateController(e,h,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),n=X(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),H(e.geo.regions,function(i){var u=i.name,f=t.get(u),p=n.get(u)||{},m=p.dataIdx,h=p.regionModel;if(!f){f=t.set(u,new tg),r.add(f),m=o?o.indexOfName(u):null,h=e.isGeo?a.getRegionModel(u):o?o.getItemModel(m):null;var g=h.get(`silent`,!0);g!=null&&(f.silent=g),n.set(u,{dataIdx:m,regionModel:h})}var _=[],v=[];H(i.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);c&&(t=cW(t,c)),H(t,function(e){_.push(new dS(d(e)))})}else{var n=e.points;c&&(n=cW(n,c,!0)),H(n,function(e){v.push(new mS(d(e)))})}});var y=l(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new ES({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),rW(e,r,m,h),iW(e,r,u,h,a,m,y),n&&(tW(r),H(r.states,tW))}}b(_),b(v,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;aW(e,t,r,s,a,o),oW(e,t,r,s,a),sW(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=X(),i=!1;H(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);XU.get(s)!=null&&c instanceof zv&&rW(e,c,l,u),c instanceof zv&&(c.culling=!0);var d=u.get(`silent`,!0);d!=null&&(c.silent=d),c.z2EmphasisLift=0,t.namedFrom||(QU.get(s)!=null&&iW(e,c,n,u,a,l,null),aW(e,c,n,u,a,l),oW(e,c,n,u,a),ZU.get(s)!=null&&(sW(e,c,n,u,a)===`self`&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Zb(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=JU.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=JU.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n,r){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get(`scaleLimit`),o.zoom=i.getZoom(),a.enable(e.get(`roam`)||!1,{api:r,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,n){return i.containPoint([t,n])},isInClip:function(e,n,r){return!t||t.contain(n,r)}}});var s=e.mainType;function c(){var t={type:`geoRoam`,componentType:s};return t[s+`Id`]=e.id,t}a.off(`pan`).on(`pan`,function(e){this._mouseDownFlag=!1,YH(o,e.dx,e.dy),r.dispatchAction(V(c(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),a.off(`zoom`).on(`zoom`,function(e){this._mouseDownFlag=!1,XH(o,e.scale,e.originX,e.originY),r.dispatchAction(V(c(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this)},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=$U(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function rW(e,t,n,r){var i=r.getModel(`itemStyle`),a=r.getModel([`emphasis`,`itemStyle`]),o=r.getModel([`blur`,`itemStyle`]),s=r.getModel([`select`,`itemStyle`]),c=eW(i),l=eW(a),u=eW(s),d=eW(o),f=e.data;if(f){var p=f.getItemVisual(n,`style`),m=f.getItemVisual(n,`decal`);e.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=mj(m,e.api))}t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState(`emphasis`).style=l,t.ensureState(`select`).style=u,t.ensureState(`blur`).style=d,Zb(t)}function iW(e,t,n,r,i,a,o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension(`value`),a)),u=s&&s.getItemLayout(a);if(c||l||u&&u.showLabel){var d=c?n:a,f=void 0;(!s||a>=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;HC(t,UC(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&($U(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function aW(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Db(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function oW(e,t,n,r,i){e.data||OC({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function sW(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return px(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&Ite(t,i,n),o}function cW(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),H(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var lW=nW,uW=function(e){B(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,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&r.type===`geoRoam`&&this._mapDraw.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id){var a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new lW(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension(`value`),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new zx({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),u=r.getName(n),d=l.indexOfName(u),f=r.getItemModel(n),p=f.getModel(`label`),m=l.getItemGraphicEl(d);HC(c,UC(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Yb(c,e)}}i.add(c)}}})},t.type=`map`,t}(vk),dW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=Xz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)}),n=X(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return H(JU.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&vu(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(AT(this).kind!==kT.boxCoordSys)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension(`value`);isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return BO(`section`,{header:s.join(`, `),noHeader:!s.length,blocks:[BO(`nameValue`,{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=TA(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(ok);function fW(e,t){var n={};return H(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}function pW(e){var t={};e.eachSeriesByType(`map`,function(e){var n=e.getHostGeoModel(),r=n?`o`+n.id:`i`+e.getMapType();(t[r]=t[r]||[]).push(e)}),H(t,function(e,t){for(var n=fW(U(e,function(e){return e.getData()}),e[0].get(`mapValueCalculation`)),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(var r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=r===0&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function mW(e){var t={};e.eachSeriesByType(`map`,function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};H(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&r.each(r.mapDimension(`value`),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var hW=xd,gW=function(e){B(t,e);function t(t,n){var r=e.call(this)||this;return r.type=`view`,r.dimensions=[`x`,`y`],r._roamTransformable=new Th,r._rawTransformable=new Th,r.name=t,r._opt=n,r}return t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Af(e,t,n,r),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Af(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new Af(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e){var t=this._opt;t&&t.api&&t.ecModel&&t.ecModel.getShallow(`legacyViewCoordSysCenterBase`)&&e&&(e=[Q(e[0],t.api.getWidth()),Q(e[1],t.api.getWidth())]),this._centerOption=_u(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=tU(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,t=this._rect;e&&t&&(this._center=[Q(e[0],t.width,t.x),Q(e[1],t.height,t.y)]);var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=xd([],a,n),i=xd([],i,n),r.originX=a[0],r.originY=a[1],r.x=i[0]-a[0],r.y=i[1]-a[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),of(this.transform||=[],t.transform||rf()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],df(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Th;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n||=[],r?hW(n,e,r):od(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=this.invTransform;return r?hW(n,e,r):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,t,n){var r=_W(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=_W(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=[`x`,`y`],t}(Th);function _W(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var vW=gW,yW={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},bW=[`lng`,`lat`],xW=function(e){B(t,e);function t(t,n,r){var i=e.call(this,t,{api:r.api,ecModel:r.ecModel})||this;i.dimensions=bW,i.type=`geo`,i._nameCoordMap=X(),i.map=n;var a=r.projection,o=JU.load(n,r.nameMap,r.nameProperty),s=JU.getGeoResource(n),c=i.resourceType=s?s.type:null,l=i.regions=o.regions,u=yW[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,process.env.NODE_ENV!==`production`&&a&&(c===`geoSVG`&&(process.env.NODE_ENV!==`production`&&qg(`Map `+n+` with SVG source can't use projection. Only GeoJSON source supports projection.`),a=null),a.project&&a.unproject||(process.env.NODE_ENV!==`production`&&qg(`project and unproject must be both provided in the projeciton.`),a=null)),i.projection=a;var d;if(a)for(var f=0;f<l.length;f++){var p=l[f].getBoundingRect(a);d||=p.clone(),d.union(p)}else d=o.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=a?1:J(r.aspectScale,u.aspectScale),i._invertLongitute=a?!1:u.invertLongitute,i}return t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new Af(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(q(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.pointToProjected(e,n)},t.prototype.pointToProjected=function(t,n){return e.prototype.pointToData.call(this,t,0,n)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=SW(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=SW(t);return r===this?r.pointToData(n):null},t}(vW);Cu(xW,vW);function SW(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,A_).models[0]||{}).coordinateSystem:null}var CW=xW;function wW(e,t){var n=e.get(`boundingCoords`);if(n!=null){var r=n[0],i=n[1];if(!(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!==`production`&&console.error(`Invalid boundingCoords`);else{var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,d=a.project([e+s*u,t+c*u]);Sd(r,r,d),Cd(i,i,d)}};u(o,s,c,s),u(c,s,c,l),u(c,l,o,l),u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),f=e.get(`layoutCenter`),p=e.get(`layoutSize`),m=GT(e,t).refContainer,h=d.width/d.height*this.aspectScale,g=!1,_,v;f&&p&&(_=[Q(f[0],m.width)+m.x,Q(f[1],m.height)+m.y],v=Q(p,Math.min(m.width,m.height)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(v)?g=!0:process.env.NODE_ENV!==`production`&&console.warn(`Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.`));var y;if(g)y={},h>1?(y.width=v,y.height=v/h):(y.height=v,y.width=v*h),y.y=_[1]-y.height/2,y.x=_[0]-y.width/2;else{var b=e.getBoxLayoutParams();b.aspect=h,y=HT(b,m),y=UT(e,y,h)}this.setViewRect(y.x,y.y,y.width,y.height),this.setCenter(e.get(`center`)),this.setZoom(e.get(`zoom`))}function TW(e,t){H(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var EW=new(function(){function e(){this.dimensions=bW}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new CW(o+a,o,V({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));s.zoomLimit=i.get(`scaleLimit`),n.push(s),i.coordinateSystem=s,s.model=i,s.resize=wW,s.resize(i,t)}),e.eachSeries(function(e){jT({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,A_).models[0];return t&&t.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),H(i,function(i,a){var o=new CW(a,a,V({nameMap:yu(U(i,function(e){return e.get(`nameMap`)})),api:t,ecModel:e},r(i[0])));o.zoomLimit=Bu.apply(null,U(i,function(e){return e.get(`scaleLimit`)})),n.push(o),o.resize=wW,o.resize(i[0],t),H(i,function(e){e.coordinateSystem=o,TW(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=X(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return H(JU.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&vu(n,r)}),i},e}()),DW=function(e){B(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,n){this.mergeDefaultAndTheme(e,n);var r=JU.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}r_(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=EW.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Tu(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new mw(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},X()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new mw(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(K(r))return i.status=t,r(i);if(q(r))return r.replace(`{a}`,e??``)},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type=`geo`,t.layoutMode=`box`,t.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},regions:[]},t}(tE),OW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new lW(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;hA(e.target,function(e){return(t=Db(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=Db(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(ck);function kW(e,t,n){JU.registerMap(e,t,n)}function AW(e){e.registerCoordinateSystem(`geo`,EW),e.registerComponentModel(DW),e.registerComponentView(OW),e.registerImpl(`registerMap`,kW),e.registerImpl(`getMap`,function(e){return JU.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;H(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];H(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType;r||(e.geoId==null?e.seriesId!=null&&(r=`series`):r=`geo`),r||=`series`,t.eachComponent({mainType:r,query:e},function(t){var n=t.coordinateSystem;if(n.type===`geo`){var i=$H(n,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),r===`series`&&H(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function jW(e){oN(AW),e.registerChartView(uW),e.registerSeriesModel(dW),e.registerLayout(mW),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,pW),fA(`map`,e.registerAction)}function MW(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function NW(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){LW(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=RW(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function PW(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function FW(e){return arguments.length?e:UW}function IW(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function LW(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function RW(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=zW(s),a=BW(a),s&&a;){i=zW(i),o=BW(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(HW(VW(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!zW(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!BW(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function zW(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function BW(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function VW(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function HW(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function UW(e,t){return e.parentNode===t.parentNode?1:2}var WW=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),GW=function(e){B(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new WW},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=Q(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(Wy),KW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new tg,n}return t.prototype.init=function(e,t){this._controller=new JH(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,null,t,n);var o=this._data;r.diff(o).add(function(t){qW(r,t)&&JW(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!qW(r,t)){i&&QW(o,n,i,a,e);return}JW(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&QW(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get(`nodeScaleRatio`),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];Jv(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=new vW(null,{api:t,ecModel:e.ecModel});c.zoomLimit=e.get(`scaleLimit`),c.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),c.setCenter(e.get(`center`)),c.setZoom(e.get(`zoom`)),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n,r){var i=this;ZH(e,r,this.group,this._controller,this._controllerHost,t),this._controller.on(`zoom`,function(t){i._updateNodeAndLinkScale(e)})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=`tree`,t}(vk);function qW(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function JW(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:$.color.neutral00,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new fR(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,WS(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=T*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Qu(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(Db(n).focus=k),YW(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Yb(n.__edge,t)}})}function YW(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new CS({shape:$W(u,d,f,i,i)}),WS(h,{shape:$W(u,d,f,a,o)},e));else if(l===`polyline`){if(u===`orthogonal`){if(t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new GW({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),WS(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}}else if(process.env.NODE_ENV!==`production`)throw Error(`The polyline edgeShape can only be used in orthogonal layout`)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(bu({strokeNoScale:!0,fill:null},m)),gx(h,c,`lineStyle`),Zb(h),s.add(h))}function XW(e,t,n,r,i){var a=t.tree.root,o=ZW(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?qS(d,{shape:$W(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&qS(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function ZW(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function QW(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=ZW(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};qS(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),a.children.forEach(function(t){XW(t,e,r,i,c)}),XW(a,e,r,i,c)}function $W(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=IW(l,d),m=IW(l,d+(f-d)*n),h=IW(u,f+(d-f)*n),g=IW(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}var eG=KW,tG=E_();function nG(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,lG(t,n,e),H(n,function(n){H(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,Au(rG,e))})}),t.wrapMethod(`cloneShallow`,Au(aG,e)),H(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Au(iG,e))}),Y(n[t.dataType]===t)}function rG(e,t){if(cG(this)){var n=V({},tG(this).datas);n[this.dataType]=t,lG(t,n,e)}else uG(t,this.dataType,tG(this).mainData,e);return t}function iG(e,t){return e.struct&&e.struct.update(),t}function aG(e,t){return H(tG(t).datas,function(n,r){n!==t&&uG(n.cloneShallow(),r,t,e)}),t}function oG(e){var t=tG(this).mainData;return e==null||t==null?t:tG(t).datas[e]}function sG(){var e=tG(this).mainData;return e==null?[{data:e}]:U(Ou(tG(e).datas),function(t){return{type:t,data:tG(e).datas[t]}})}function cG(e){return tG(e).mainData===e}function lG(e,t,n){tG(e).datas={},H(t,function(t,r){uG(t,r,e,n)})}function uG(e,t,n,r){tG(n).datas[t]=e,tG(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=oG,e.getLinkedDataAll=sG}var dG=nG,fG=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){K(e)&&(n=t,t=e,e=null),e||={},q(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}(),pG=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,G(n)?n.length:1),a.push(e);var r=new fG(g_(e.name,``),i);t?mG(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=RN(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new LN(c,n);return l.initData(a),r&&r(l),dG({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function mG(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var hG=pG;function gG(e,t,n){if(e&&xu(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(q(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 _G(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function vG(e,t){return xu(_G(e),t)>=0}function yG(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}var bG=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new mw(e.leaves||{},this,this.ecModel),r=hG.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return BO(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=yG(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(ok);function xG(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function SG(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function CG(e,t){e.eachSeriesByType(`tree`,function(e){wG(e,t)})}function wG(e,t){var n=GT(e,t).refContainer,r=HT(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=FW(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=FW());var c=e.getData().tree.root,l=c.children[0];if(l){MW(c),xG(l,NW,s),c.hierNode.modifier=-l.hierNode.prelim,SG(l,PW);var u=l,d=l,f=l;SG(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),SG(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=IW(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),SG(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),SG(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function TG(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();V(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function EG(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=t.coordinateSystem,r=$H(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}function DG(e){e.registerChartView(eG),e.registerSeriesModel(bG),e.registerLayout(CG),e.registerVisual(TG),EG(e)}var OG=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function kG(e){for(var t=0;t<OG.length;t++)e.registerAction({type:OG[t],update:`updateView`},td);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=gG(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=vG(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function AG(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=PE(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var jG=function(e){B(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};MG(n);var r=e.levels||[],i=new mw({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=NG(r,t);var a=U(r||[],function(e){return new mw(e,i,t)},this),o=hG.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 BO(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=yG(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=X(),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(){AG(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.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:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.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:$.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}(ok);function MG(e){var t=0;H(e.children,function(e){MG(e);var n=e.value;G(n)&&(n=n[0]),t+=n});var n=e.value;G(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),G(e.value)?e.value[0]=n:e.value=n}function NG(e,t){var n=n_(t.get(`color`)),r=n_(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;H(e,function(e){var t=new mw(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}}var PG=jG,FG=8,IG=8,LG=5,RG=function(){function e(e){this.group=new tg,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=GT(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=HT(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),KT(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=g_(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+FG*2,t.emptyItemWidth);t.totalWidth+=o+IG,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 dS({shape:{points:zG(c,0,_,u,m===f.length-1,m===0)},style:bu(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Eb({style:WC(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:Au(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=WC(o,{text:v}),y.ensureState(`emphasis`).style=p,px(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),BG(y,e,g),c+=_+IG}},e.prototype.remove=function(){this.group.removeAll()},e}();function zG(e,t,n,r,i,a){var o=[[i?e:e-LG,t],[e+n,t],[e+n,t+r],[i?e:e-LG,t+r]];return!a&&o.splice(2,0,[e+n+LG,t+r/2]),!i&&o.push([e,t+r/2]),o}function BG(e,t,n){Db(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&&yG(n,t)}}var VG=RG,HG=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 UG(){return new HG}var WG=tg,GG=sb,KG=3,qG=`label`,JG=`upperLabel`,YG=100,XG=20,ZG=30,QG=ev([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),$G=function(e){var t=QG(e);return t.stroke=t.fill=t.lineWidth=null,t},eK=E_(),tK=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=nK(),n}return t.prototype.render=function(e,t,n,r){if(!(xu(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=gG(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 WG,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=nK(),o=nK(),s=this._storage,c=[];function l(e,r,i,l){return rK(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,H(e,function(e,t){!e.isRemoved()&&o(t,t)})):new lN(t,e,a,a).add(o).update(o).remove(Au(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=nK();return e&&H(e,function(e,n){var r=t[n];H(e,function(e){e&&(r.push(e),eK(e).willDelete=!0)})}),t}function h(){H(u,function(e){H(e,function(e){e.parent&&e.parent.remove(e)})}),H(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=(K(i)?0:i)||0,s=(K(a)?null:a)||`cubicOut`,c=UG();H(t.willDeleteEls,function(e,t){H(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=eK(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)}})}),H(this._storage,function(e,n){H(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof tg?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=V({},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 JH(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)>KG||Math.abs(e.dy)>KG)){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 Af(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=rf();cf(m,m,[-t,-n]),uf(m,m,[f,f]),cf(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&&bT(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 VG(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(vG(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=nK(),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}(vk);function nK(){return{nodeGroup:[],background:[],content:[]}}function rK(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`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=ne(`nodeGroup`,WG);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),eK(D).nodeWidth=p,eK(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=ne(`background`,GG,l,XG);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)vx(D)&&_x(D,!1),O&&(_x(O,!M),d.setItemGraphicEl(o.dataIndex,O),mx(O,N,j));else{var P=ne(`content`,GG,l,ZG);P&&ee(D,P),O.disableMorphing=!0,O&&vx(O)&&_x(O,!1),_x(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),mx(D,N,j)}return D;function I(t,n,r){var i=Db(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)L(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=$G(S);c.fill=s;var l=QG(C);l.fill=C.get(`borderColor`);var u=QG(w);u.fill=w.get(`borderColor`);var d=QG(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;R(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,Zb(n)}t.add(n)}function ee(t,n){var r=Db(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:E}),g)L(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=$G(S);l.fill=c,l.decal=s.decal;var u=QG(C),d=QG(w),f=QG(T);R(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Zb(n)}t.add(n)}function L(e){!e.invisible&&a.push(e)}function R(t,n,r,i){var a=f.getModel(i?JG:qG),s=g_(f.get(`name`),null),c=a.getShallow(`show`);HC(t,UC(f,i?JG:qG),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Uu(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`,te(d,i,u);var m=l.getState(`emphasis`);te(m?m.style:null,i,u)}}function te(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 ne(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 zv&&(s.z2=iK(a,o)),ie(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof WG?(n.oldX=t.x,n.oldY=t.y):n.oldShape=V({},t.shape)}function ie(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof tg;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 iK(e,t){return e*YG+t}var aK=tK,oK=H,sK=Nu,cK=-1,lK=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=_u(t);this.type=r,this.mappingMethod=n,this._normalizeData=xK[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(fK(i),uK(i)):n===`category`?i.categories?dK(i):fK(i,!0):(Y(n!==`linear`||i.dataExtent),fK(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 Ou(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){Nu(e)?H(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=G(t)?[]:Nu(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&&oK(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(G(e))e=e.slice();else if(sK(e)){var t=[];oK(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||q(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(SK(u[1],e,l[1]))return a}else if(l[1]===1/0){if(SK(u[0],l[0],e))return a}else if(SK(u[0],l[0],e)&&SK(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:hK(`color`),getColorMapper:function(){var e=this.option;return W(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),gK.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=em(t,e.parsedVisual,r),i?r:im(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return im(em(e,this.option.parsedVisual),`rgba`)},category:gK,piecewise:function(e,t){var n=yK.call(this,t);return n??=im(em(e,this.option.parsedVisual),`rgba`),n},fixed:_K}},colorHue:pK(function(e,t){return nm(e,t)}),colorSaturation:pK(function(e,t){return nm(e,null,t)}),colorLightness:pK(function(e,t){return nm(e,null,null,t)}),colorAlpha:pK(function(e,t){return rm(e,t)}),decal:{applyVisual:hK(`decal`),_normalizedToVisual:{linear:null,category:gK,piecewise:null,fixed:null}},opacity:{applyVisual:hK(`opacity`),_normalizedToVisual:vK([0,1])},liftZ:{applyVisual:hK(`liftZ`),_normalizedToVisual:{linear:_K,category:_K,piecewise:_K,fixed:_K}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:mK,category:gK,piecewise:function(e,t){var n=yK.call(this,t);return n??=mK.call(this,e),n},fixed:_K}},symbolSize:{applyVisual:hK(`symbolSize`),_normalizedToVisual:vK([0,1])}},e}();function uK(e){var t=e.pieceList;e.hasSpecialVisual=!1,H(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function dK(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(oK(t,function(e,t){n[e]=t}),!G(r)){var i=[];Nu(r)?oK(r,function(e,t){var r=n[t];i[r??cK]=e}):i[cK]=r,r=bK(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function fK(e,t){var n=e.visual,r=[];Nu(n)?oK(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]),bK(e,r)}function pK(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:vK([0,1])}}function mK(e){var t=this.option.visual;return t[Math.round(vg(e,[0,1],[0,t.length-1],!0))]||{}}function hK(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function gK(e){var t=this.option.visual;return t[this.option.loop&&e!==cK?e%t.length:e]}function _K(){return this.option.visual[0]}function vK(e){return{linear:function(t){return vg(t,e,this.option.visual,!0)},category:gK,piecewise:function(t,n){var r=yK.call(this,n);return r??=vg(t,e,this.option.visual,!0),r},fixed:_K}}function yK(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[lK.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function bK(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=U(t,function(e){var t=Xp(e);return!t&&process.env.NODE_ENV!==`production`&&qg(`'`+e+`' is an illegal color, fallback to '#000000'`,!0),t||[0,0,0,1]})),t}var xK={linear:function(e){return vg(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=lK.findPieceIndex(e,t,!0);if(n!=null)return vg(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??cK},fixed:td};function SK(e,t,n){return e?t<=n:t<n}var CK=lK,wK=`itemStyle`,TK=E_(),EK={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||DK(t,{},e.getViewRoot().getAncestors(),e)}};function DK(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(wK),c=OK(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=kK(c),u=AK(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=kK(c),l.fill=f;else{var m=MK(e,i,a,s,c,p);H(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&DK(e,PK(i,c,e,t,m,r),n,r)})}}}function OK(e,t,n){var r=V({},t),i=n.designatedVisualItemStyle;return H([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function kK(e){var t=jK(e,`color`);if(t){var n=jK(e,`colorAlpha`),r=jK(e,`colorSaturation`);return r&&(t=nm(t,null,null,r)),n&&(t=rm(t,n)),t}}function AK(e,t){return t==null?null:nm(t,null,null,e)}function jK(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function MK(e,t,n,r,i,a){if(!(!a||!a.length)){var o=NK(t,`color`)||i.color!=null&&i.color!==`none`&&(NK(t,`colorAlpha`)||NK(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 CK(d);return TK(f).drColorMappingBy=u,f}}}function NK(e,t){var n=e.get(t);return G(n)&&n.length?{name:t,range:n}:null}function PK(e,t,n,r,i,a){var o=V({},t);if(i){var s=i.type,c=s===`color`&&TK(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var FK=Math.max,IK=Math.min,LK=Bu,RK=H,zK=[`itemStyle`,`borderWidth`],BK=[`itemStyle`,`gapWidth`],VK=[`upperLabel`,`show`],HK=[`upperLabel`,`height`],UK={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=GT(e,n).refContainer,o=HT(e.getBoxLayoutParams(),a),s=i.size||[],c=Q(LK(o.width,s[0]),a.width),l=Q(LK(o.height,s[1]),a.height),u=r&&r.type,d=gG(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=_G(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?ZK(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),WK(p,_,!1,0),v=p.getLayout(),RK(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(V({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(QK(o,f,d),!0),e.setLayoutInfo(o),$K(y,new Af(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function WK(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(zK),l=s.get(BK)/2,u=eq(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=FK(i-2*f,0),a=FK(a-f-p,0);var m=i*a,h=GK(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=IK(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=YK(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,XK(y,_,g,l,!1),_=IK(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&XK(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++)WK(h[b],t,n,r+1)}}}function GK(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=Eu(o,function(e){return!e.isRemoved()}),qK(o,s);var l=JK(t,o,s);if(l.sum===0||(l.sum=KK(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 KK(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 qK(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 JK(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],RK(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 YK(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?FK(l*r/c,c/(l*i)):1/0}function XK(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]]=FK(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=FK(v-2*r,0);m[s[o]]=n[s[o]]+IK(r,g/2),m[s[a]]=l+IK(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function ZK(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(zK),_=Math.max(g,eq(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 QK(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 $K(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 Af(t.x-a.x,t.y-a.y,t.width,t.height);RK(e.viewChildren||[],function(e){$K(e,c,n,r,i+1)})}}function eq(e){return e.get(VK)?e.get(HK):0}function tq(e){e.registerSeriesModel(PG),e.registerChartView(aK),e.registerVisual(EK),e.registerLayout(UK),kG(e)}function nq(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){Mu(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function rq(e){var t={};e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){q(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);V(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function iq(e){return e instanceof Array||(e=[e,e]),e}function aq(e){e.eachSeriesByType(`graph`,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=iq(e.get(`edgeSymbol`)),i=iq(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=iq(r.getShallow(`symbol`,!0)),o=iq(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(V(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}var oq=`-->`,sq=function(e){return e.get(`autoCurveness`)||null},cq=function(e,t){var n=sq(e),r=20,i=[];if(Mu(n))r=n;else if(G(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},lq=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(oq)},uq=function(e){var t=e.split(oq);return[t[0],t[2],t[1]].join(oq)},dq=function(e,t){var n=lq(e.node1,e.node2,t);return t.__edgeMap[n]},fq=function(e,t){return pq(lq(e.node1,e.node2,t),t)+pq(lq(e.node2,e.node1,t),t)},pq=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function mq(e){sq(e)&&(e.__curvenessList=[],e.__edgeMap={},cq(e))}function hq(e,t,n,r){if(sq(n)){var i=lq(e,t,n),a=n.__edgeMap,o=a[uq(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function gq(e,t,n,r){var i=sq(t),a=G(i);if(!i)return null;var o=dq(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=fq(e,t);cq(t,l),e.lineStyle=e.lineStyle||{};var u=lq(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=pq(uq(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}function _q(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),vq(n,e)}}function vq(e,t){e.eachEdge(function(e,n){var r=Vu(e.getModel().get([`lineStyle`,`curveness`]),-gq(e,t,n,!0),0),i=sd(e.node1.getLayout()),a=sd(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function yq(e,t){e.eachSeriesByType(`graph`,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];H(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}vq(r.graph,e)}else (!t||t===`none`)&&_q(e)})}function bq(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function xq(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Sq=Math.PI,Cq=[];function wq(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];hd(h,h),md(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),Eq(n,e.get([`circular`,`rotateLabel`]),c,l)}Tq[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=Vu(t.getModel().get([`lineStyle`,`curveness`]),gq(t,e,n),0),i=sd(t.node1.getLayout()),a=sd(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var Tq={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;Cq.length=o;var c=bq(e);t.eachNode(function(e){var t=xq(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=Sq/2),Cq[e.dataIndex]=n,s+=n*2});var l=(2*Sq-s)/o/2,u=0;t.eachNode(function(e){var t=l+Cq[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function Eq(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);V(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function Dq(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&wq(e,`symbolSize`)})}var Oq=ud;function kq(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=ad(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=sd(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;dd(t,u.p,s.p);var d=fd(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),hd(t,t),!s.fixed&&Oq(s.p,s.p,t,f*d*p),!u.fixed&&Oq(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(dd(t,c,g.p),Oq(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];dd(t,u.p,s.p);var d=fd(t);d===0&&(cd(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&Oq(s.pp,s.pp,t,v),!u.fixed&&Oq(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(dd(y,g.p,g.pp),Oq(g.p,g.p,y,p),od(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}function Aq(e){e.eachSeriesByType(`graph`,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?_q(e):s===`circular`&&wq(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=G(u)?u:[u,u],p=G(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=vg(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=kq(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=vg(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=Vu(i.getModel().get([`lineStyle`,`curveness`]),-gq(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&od(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],od(f[0],u),od(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function jq(e,t,n){var r=GT(e,t);return UT(e,HT(V(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function Mq(e,t){var n=[];return e.eachSeriesByType(`graph`,function(r){jT({targetModel:r,coordSysType:`view`,coordSysProvider:i,isDefaultDataCoordSys:!0});function i(){var i=r.getData(),a=i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),o=[],s=[];Jv(a,o,s),s[0]-o[0]===0&&(s[0]+=1,--o[0]),s[1]-o[1]===0&&(s[1]+=1,--o[1]);var c=(s[0]-o[0])/(s[1]-o[1]),l=jq(r,t,c);isNaN(c)&&(o=[l.x,l.y],s=[l.x+l.width,l.y+l.height]);var u=s[0]-o[0],d=s[1]-o[1],f=new vW(null,{api:t,ecModel:e});return f.zoomLimit=r.get(`scaleLimit`),f.setBoundingRect(o[0],o[1],u,d),f.setViewRect(l.x,l.y,l.width,l.height),f.setCenter(r.get(`center`)),f.setZoom(r.get(`zoom`)),n.push(f),f}}),n}var Nq=vS.prototype,Pq=CS.prototype,Fq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Fq);function Iq(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Lq=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Fq},t.prototype.buildPath=function(e,t){Iq(t)?Nq.buildPath.call(this,e,t):Pq.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Iq(this.shape)?Nq.pointAt.call(this,e):Pq.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Iq(t)?[t.x2-t.x1,t.y2-t.y1]:Pq.tangentAt.call(this,e);return hd(n,n)},t}(Wy),Rq=[`fromSymbol`,`toSymbol`];function zq(e){return`_`+e+`Type`}function Bq(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=EA(i),l=DA(o||0,c);return r+c+l+(a||``)+(s||``)}function Vq(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=EA(i),l=DA(o||0,c),u=TA(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function Hq(e){var t=new Lq({name:`line`,subPixelOptimize:!0});return Uq(t.shape,e),t}function Uq(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Wq=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=Hq(i);o.shape.percent=0,GS(o,{z2:J(a,0),shape:{percent:1}},r,t),this.add(o),H(Rq,function(n){var r=Vq(n,e,t);this.add(r),this[zq(n)]=Bq(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};Uq(o.shape,a),WS(i,o,r,t),H(Rq,function(n){var r=Bq(n,e,t),i=zq(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=Vq(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=UC(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,H(Rq,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<Nb.length;n++){var r=Nb[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);HC(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||$.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?xg(g):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);G(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),px(this,u,d,l)},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);Uq(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=dd([],l,c);hd(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(tg),Gq=function(){function e(e){this.group=new tg,this._LineCtor=e||Wq}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=qq(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=qq(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!Kq(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r<e.end;r++)if(Yq(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(Yq(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!Yq(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function Kq(e){return e.animators&&e.animators.length>0}function qq(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:UC(t)}}function Jq(e){return isNaN(e[0])||isNaN(e[1])}function Yq(e){return e&&!Jq(e[0])&&!Jq(e[1])}var Xq=Gq,Zq=[],Qq=[],$q=[],eJ=wp,tJ=yd,nJ=Math.abs;function rJ(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){Zq[0]=eJ(r[0],i[0],a[0],u),Zq[1]=eJ(r[1],i[1],a[1],u);var d=nJ(tJ(Zq,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;Qq[0]=eJ(r[0],i[0],a[0],s),Qq[1]=eJ(r[1],i[1],a[1],s),$q[0]=eJ(r[0],i[0],a[0],p),$q[1]=eJ(r[1],i[1],a[1],p);var d=tJ(Qq,t)-c;if(nJ(d)<.01)break;var m=tJ($q,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function iJ(e,t){var n=[],r=Op,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[sd(c[0]),sd(c[1])],c[2]&&c.__original.push(sd(c[2])));var d=c.__original;if(c[2]!=null){if(od(i[0],d[0]),od(i[1],d[2]),od(i[2],d[1]),l&&l!==`none`){var f=xq(e.node1),p=rJ(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=xq(e.node2),p=rJ(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}od(c[0],i[0]),od(c[1],i[2]),od(c[2],i[1])}else{if(od(a[0],d[0]),od(a[1],d[1]),dd(o,a[1],a[0]),hd(o,o),l&&l!==`none`){var f=xq(e.node1);ud(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=xq(e.node2);ud(a[1],a[1],o,-f*t)}od(c[0],a[0]),od(c[1],a[1])}})}var aJ=E_();function oJ(e){if(e)return aJ(e).bridge}function sJ(e,t){e&&(aJ(e).bridge=t)}function cJ(e){return e.type===`view`}var lJ=function(e){B(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){var n=new gR,r=new Xq,i=this.group,a=new tg;this._controller=new JH(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=!1;this._model=e,this._api=n,this._active=!0;var o=this._getThumbnailInfo();o&&o.bridge.reset(n);var s=this._symbolDraw,c=this._lineDraw;if(cJ(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(l):WS(this._mainGroup,l,e)}iJ(e.getGraph(),bq(e));var u=e.getData();s.updateData(u);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),wq(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case`none`:default:u.setItemLayout(i,[a.x,a.y]),vq(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(Db(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(Db(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){Eq(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,t,n){var r=this._controller,i=this._controllerHost,a=t.coordinateSystem;if(!cJ(a)){r.disable();return}r.enable(t.get(`roam`),{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get(`roamTrigger`),isInSelf:function(e,t,n){return a.containPoint([t,n])},isInClip:function(t,n,r){return!e||e.contain(n,r)}}}),i.zoomLimit=t.get(`scaleLimit`),i.zoom=a.getZoom(),r.off(`pan`).off(`zoom`).on(`pan`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,zoom:e.scale,originX:e.originX,originY:e.originY})})},t.prototype.updateViewOnPan=function(e,t,n){this._active&&(YH(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,t,n){this._active&&(XH(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),iJ(e.getGraph(),bq(e)),this._lineDraw.updateLayout(),t.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=bq(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(iJ(e.getGraph(),bq(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=oJ(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new tg,o=n.group.children(),s=r.group.children(),c=new tg,l=new tg;a.add(l),a.add(c);for(var u=0;u<o.length;u++){var d=o[u],f=d.children()[0],p=d.x,m=d.y,h=V(_u(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=_u(f.style),_=new f.constructor({shape:h,style:g,z2:151});l.add(_)}for(var u=0;u<s.length;u++){var d=s[u],v=d.children()[0],g=_u(v.style),h=_u(v.shape),y=new Lq({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:i.coordSys.transform})}},t.type=`graph`,t}(vk);function uJ(e){return`_EC_`+e}var dJ=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(n[uJ(e)]){process.env.NODE_ENV!==`production`&&console.error(`Graph nodes have duplicate name or id`);return}var r=new fJ(e,t);return r.hostGraph=this,this.nodes.push(r),n[uJ(e)]=r,r},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[uJ(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(Mu(e)&&(e=this.nodes[e]),Mu(t)&&(t=this.nodes[t]),e instanceof fJ||(e=r[uJ(e)]),t instanceof fJ||(t=r[uJ(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new pJ(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof fJ&&(e=e.id),t instanceof fJ&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof fJ||(t=this._nodesMap[uJ(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),fJ=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=X(),t=X(),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var l=c.inEdges,u=0,d=l.length,f=void 0,p=void 0;u<d;u++)f=l[u],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s<o.length;){var m=o[s];s++,t.set(m.dataIndex,!0);for(var h=m.outEdges,u=0,g=h.length,_=void 0,v=void 0;u<g;u++)_=h[u],v=_.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),pJ=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=X(),t=X();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,c=o.length,l=void 0,u=void 0;s<c;s++)l=a.inEdges[s],u=l.dataIndex,u>=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i<r.length;){var d=r[i];i++,t.set(d.dataIndex,!0);for(var f=d.outEdges,s=0,c=f.length,p=void 0,m=void 0;s<c;s++)p=d.outEdges[s],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function mJ(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Cu(fJ,mJ(`hostGraph`,`data`)),Cu(pJ,mJ(`hostGraph`,`edgeData`));var hJ=dJ;function gJ(e,t,n,r,i){for(var a=new hJ(r),o=0;o<e.length;o++)a.addNode(Bu(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(Bu(g_(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=tP(e,n);else{var h=NT.get(p),g=h&&h.dimensions||[];xu(g,`value`)<0&&g.concat([`value`]);var _=RN(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new LN(_,n),m.initData(e)}var v=new LN([`value`],n);return v.initData(c,s),i&&i(m,v),dG({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var _J=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Zz(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),r_(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){mq(this);var a=gJ(r,n,this,!0,o);return H(a.edges,function(e){hq(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=mw.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),BO(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return XO({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=U(this.option.categories||[],function(e){return e.value==null?V({value:0},e):e}),t=new LN([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.type=`series.graph`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(ok);function vJ(e){e.registerChartView(lJ),e.registerSeriesModel(_J),e.registerProcessor(nq),e.registerVisual(rq),e.registerVisual(aq),e.registerLayout(yq),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Dq),e.registerLayout(Aq),e.registerCoordinateSystem(`graphView`,{dimensions:vW.dimensions,create:Mq}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},td),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},td),e.registerAction({type:`graphRoam`,event:`graphRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=n.getViewOfSeriesModel(t);r&&(e.dx!=null&&e.dy!=null&&r.updateViewOnPan(t,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&r.updateViewOnZoom(t,n,e));var i=t.coordinateSystem,a=$H(i,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}var yJ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;Db(i).dataType=`node`,i.z2=2;var a=new Eb;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=V(sz(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):WS(d,{shape:u},o,t);var f=V(sz(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),gx(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),gx(d,s,`itemStyle`);var p=c.get(`focus`);px(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=UC(t),u=n.getVisual(`style`);HC(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,Vu(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(iS);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var bJ=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;return Db(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=V(sz(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),xJ(m,o,e,u)):(XS(m),xJ(m,o,e,u),WS(m,{shape:p},a,n)),px(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),gx(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(Wy);function xJ(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(q(s)&&q(c)){var l=e.shape;o.fill=new OS((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var SJ=Math.PI/180,CJ=function(e){B(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){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*SJ;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new yJ(r,e,o);Db(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&YS(s,e,n);return}s?s.updateData(r,t,o):s=new yJ(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&YS(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Q(s[0],n.getWidth()),this.group.originY=Q(s[1],n.getHeight()),GS(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new bJ(n,r,e,t);Db(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&YS(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=`chord`,t}(vk),wJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Zz(W(this.getData,this),W(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return gJ(r,n,this,!0,i).data;function i(e,t){var n=mw.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),BO(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return BO(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.chord`,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(ok),TJ=Math.PI/180;function EJ(e,t){e.eachSeriesByType(`chord`,function(e){DJ(e,t)})}function DJ(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=VT(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*TJ,0),d=Math.max((e.get(`minAngle`)||0)*TJ,0),f=-e.get(`startAngle`)*TJ,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];vy(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)<d?w+=d-Math.abs(n):(D=Math.min(D,Math.abs(n)-d),T+=Math.abs(n)-d,E+=Math.abs(n)),e.setLayout({angle:n,value:t})});var O=!1;if(w>T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*w<d&&(O=!0)}});var A=w;r.eachNode(function(e){if(!(A<=0)){var t=e.getLayout().angle;if(t>d&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function OJ(e){e.registerChartView(CJ),e.registerSeriesModel(wJ),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,EJ),e.registerProcessor(Rz(`chord`))}var kJ=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),AJ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new kJ},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(Wy);function jJ(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Q(n[0],t.getWidth()),cy:Q(n[1],t.getHeight()),r:Q(e.get(`radius`),a/2)}}function MJ(e,t){var n=e==null?``:e+``;return t&&(q(t)?n=t.replace(`{value}`,n):K(t)&&(n=t(e))),n}var NJ=function(e){B(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){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=jJ(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?nz:iS,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];vy(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),H(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=Q(h.get(`length`),f),x=Q(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,M=new vS({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&M.setStyle({stroke:r(A/v)}),l.add(M)}if(_.get(`show`)){var j=_.get(`distance`)+D,N=MJ(xg(A/v*(m-p)+p),_.get(`formatter`)),P=r(A/v),F=O*(f-b-j)+u,I=k*(f-b-j)+d,ee=_.get(`rotate`),L=0;ee===`radial`?(L=-S+2*Math.PI,L>Math.PI/2&&(L+=Math.PI)):ee===`tangential`?L=-S-Math.PI/2:Mu(ee)&&(L=ee*Math.PI/180),L===0?l.add(new Eb({style:WC(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new Eb({style:WC(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:L}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var R=0;R<=y;R++){O=Math.cos(S),k=Math.sin(S);var te=new vS({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&te.setStyle({stroke:r((A+R/y)/v)}),l.add(te),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=Q(r.get(`width`),i.r),o=Q(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=Q(c[0],i.r),u=Q(c[1],i.r),d=r.get(`keepAspect`),f=s?TA(s,l-a/2,u-o,a,o,null,d):new AJ({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?nz:iS,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=vg(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);GS(r,{rotation:-((isNaN(+n)?x[0]:vg(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);GS(i,{shape:{endAngle:vg(n,b,x,m.get(`clip`))}},e),l.add(i),Ob(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,WS(s,{rotation:-((isNaN(+r)?x[0]:vg(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);WS(v,{shape:{endAngle:vg(r,b,x,m.get(`clip`))}},e),l.add(v),Ob(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof Qy){var u=s.style;s.useStyle(V({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(vg(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,gx(s,t),px(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,gx(d,t),px(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=TA(i,t.cx-r/2+Q(a[0],t.r),t.cy-r/2+Q(a[1],t.r),r,r,null,o);s.z2=n.get(`showAbove`)?1:0,s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new tg,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new Eb({silent:!0}),f[e]=new Eb({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new tg,g=r(vg(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+Q(v[0],i.r),b=i.cy+Q(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:WC(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+Q(C[0],i.r),T=i.cy+Q(C[1],i.r),E=Q(S.get(`width`),i.r),D=Q(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:WC(S,{x:w,y:T,text:MJ(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),ew(x,{normal:S},a,function(e){return MJ(e,k)}),p&&tw(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return MJ(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(vk),PJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return Xz(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(ok);function FJ(e){e.registerChartView(NJ),e.registerSeriesModel(PJ)}var IJ=[`itemStyle`,`opacity`],LJ=function(e){B(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new mS,o=new Eb;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(IJ);c??=1,n||XS(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,GS(r,{style:{opacity:c}},i,t)):WS(r,{style:{opacity:c},shape:{points:o.points}},i,t),gx(r,a),this._updateLabel(e,t),px(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;HC(i,UC(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new ff(d[0][0],d[0][1]):null},WS(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),BI(n,VI(o),{stroke:l})},t}(dS),RJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new LJ(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){YS(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(vk),zJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zz(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Xz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)})},t.prototype._defaultLabelLine=function(e){r_(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(ok);function BJ(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return K(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function VJ(e){var t=e.hostModel.get(`orient`);e.each(function(n){var r=e.getItemModel(n),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(n),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,d=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);process.env.NODE_ENV!==`production`&&(t===`vertical`&&[`top`,`bottom`].indexOf(i)>-1&&(i=`left`,console.warn(`Position error: Funnel chart on vertical orient dose not support top and bottom.`)),t===`horizontal`&&[`left`,`right`].indexOf(i)>-1&&(i=`bottom`,console.warn(`Position error: Funnel chart on horizontal orient dose not support left and right.`))),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=t===`horizontal`?s[3][0]:s[1][0],m=t===`horizontal`?s[3][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=t===`horizontal`?s[0][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=t===`horizontal`?s[1][0]:s[3][0],m=t===`horizontal`?s[1][1]:s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),t===`horizontal`?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}function HJ(e,t){e.eachSeriesByType(`funnel`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=GT(e,t),o=HT(e.getBoxLayoutParams(),a.refContainer),s=e.get(`orient`),c=o.width,l=o.height,u=BJ(n,i),d=o.x,f=o.y,p=s===`horizontal`?[Q(e.get(`minSize`),l),Q(e.get(`maxSize`),l)]:[Q(e.get(`minSize`),c),Q(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s===`horizontal`?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s===`horizontal`){var i=vg(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=vg(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s===`horizontal`?d+=c:f+=l,u=u.reverse());for(var x=0;x<u.length;x++){var S=u[x],C=u[x+1],w=n.getItemModel(S);if(s===`horizontal`){var T=w.get([`itemStyle`,`width`]);T==null?T=y:(T=Q(T,c),i===`ascending`&&(T=-T));var E=b(S,d),D=b(C,d+T);d+=T+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}else{var O=w.get([`itemStyle`,`height`]);O==null?O=y:(O=Q(O,l),i===`ascending`&&(O=-O));var E=b(S,f),D=b(C,f+O);f+=O+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}}VJ(n)})}function UJ(e){e.registerChartView(RJ),e.registerSeriesModel(zJ),e.registerLayout(HJ),e.registerProcessor(Rz(`funnel`))}var WJ=.3,GJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new tg,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=YJ(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){XJ(JJ(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n),i=qJ(a,t,c,s);a.setItemGraphicEl(t,r),WS(r,{shape:{points:i}},e,t),XS(r),XJ(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=KJ(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=YJ(t),s=this._progressiveEls=[],c=e.start;c<e.end;c++){var l=JJ(r,this._dataGroup,c,a,i);l.incremental=!0,XJ(l,r,c,o),s.push(l)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(vk);function KJ(e,t,n){var r=e.model,i=e.getRect(),a=new sb({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),GS(a,{shape:{width:i.width,height:i.height}},t,n),a}function qJ(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);ZJ(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function JJ(e,t,n,r,i){var a=new mS({shape:{points:qJ(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function YJ(e){var t=e.get(`smooth`,!0);return t===!0&&(t=WJ),t=Lg(t),zu(t)&&(t=0),{smooth:t}}function XJ(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);gx(e,i,`lineStyle`),px(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function ZJ(e,t){return t===`category`?e==null:e==null||isNaN(e)}var QJ=GJ,$J=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return tP(null,this,{useEncodeDefaulter:W(eY,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type=`series.parallel`,t.dependencies=[`parallel`],t.defaultOption={z:2,coordinateSystem:`parallel`,parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:`solid`},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:`linear`},t}(ok);function eY(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return H(t.dimensions,function(e){n[e]=tY(e)}),n}}function tY(e){return+e.replace(`dim`,``)}var nY=$J,rY=[`lineStyle`,`opacity`],iY={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(rY,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function aY(e){oY(e),sY(e)}function oY(e){if(!e.parallel){var t=!1;H(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function sY(e){H(n_(e.parallelAxis),function(t){if(Nu(t)){var n=t.parallelIndex||0,r=n_(e.parallel)[n];r&&r.parallelAxisDefault&&vu(t,r.parallelAxisDefault,!1)}})}var cY=5,lY=function(e){B(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){this._model=e,this._api=n,this._handlers||(this._handlers={},H(uY,function(e,t){n.getZr().on(t,this._handlers[t]=W(e,this))},this)),Ck(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){wk(this,`_throttledDispatchExpand`),H(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(V({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(ck),uY={mousedown:function(e){dY(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(dY(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>cY)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!dY(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function dY(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var fY=lY,pY=function(e){B(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.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&vu(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){H([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];H(Eu(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=`parallel`,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(tE),mY=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(yI);function hY(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=_Y(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=_Y(s,[0,o]),i=a=_Y(s,[i,a]),r=0}t[0]=_Y(t[0],n),t[1]=_Y(t[1],n);var c=gY(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=_Y(t[r],u);var d=gY(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=gY(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function gY(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 _Y(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var vY=H,yY=Math.min,bY=Math.max,xY=Math.floor,SY=Math.ceil,CY=xg,wY=Math.PI,TY=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;vY(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new mY(e,_F(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();vY(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),gF(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer;this._rect=HT(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=EY(e.get(`axisExpandWidth`),s),u=EY(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=EY(f[1]-f[0],s),f[1]=f[0]+p):(p=EY(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||xY(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[xY(CY(f[0]/l,1))+1,SY(CY(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),vY(n,function(t,n){var a=(r.axisExpandable?OY:DY)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:wY/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=rf();lf(u,u,l),cf(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];H(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return hC([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return _u(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?hY(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[bY(0,a[1]*o/f-f/2)],r[1]=yY(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function EY(e,t){return yY(bY(e,t[0]),t[1])}function DY(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function OY(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}var kY=TY;function AY(e,t){var n=[];return e.eachComponent(`parallel`,function(r,i){var a=new kY(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`parallel`&&(e.coordinateSystem=e.getReferringComponents(`parallel`,A_).models[0].coordinateSystem)}),n}var jY={create:AY},MY=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return ev([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=_u(e);if(t)for(var n=t.length-1;n>=0;n--)Sg(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(tE);Cu(MY,kF);var NY=MY,PY=!0,FY=Math.min,IY=Math.max,LY=Math.pow,RY=1e4,zY=6,BY=6,VY=`globalPan`,HY={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},UY={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},WY={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},GY=0,KY=function(e){B(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!==`production`&&Y(t),n._zr=t,n.group=new tg,n._uid=`brushController_`+ GY++,H(wX,function(e,t){this._handlers[t]=W(e,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!==`production`&&Y(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||NH(t,VY,this._uid),H(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=vu(_u(WY),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;PH(e,VY,this._uid),H(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};H(e,function(e){t[e.panelId]=_u(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},process.env.NODE_ENV!==`production`&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!==`production`&&Y(this._mounted),e=U(e,function(e){return vu(_u(WY),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new lN(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:ZY(i,r[t]=o==null?JY(i,qY(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!==`production`&&!this._mounted))return this.enableBrush(!1),tX(this),this._zr.remove(this.group),process.env.NODE_ENV!==`production`&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ed);function qY(e,t){var n=DX[t.brushType].createCover(e,t);return n.__brushOption=t,XY(n,t),e.group.add(n),n}function JY(e,t){var n=QY(t);return n.endCreating&&(n.endCreating(e,t),XY(t,t.__brushOption)),t}function YY(e,t){var n=t.__brushOption;QY(t).updateCoverShape(e,t,n.range,n)}function XY(e,t){var n=t.z;n??=RY,e.traverse(function(e){e.z=n,e.z2=n})}function ZY(e,t){QY(t).updateCommon(e,t),YY(e,t)}function QY(e){return DX[e.__brushOption.brushType]}function $Y(e,t,n){var r=e._panels;if(!r)return PY;var i,a=e._transform;return H(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function eX(e,t){var n=e._panels;if(!n)return PY;var r=t.__brushOption.panelId;return r==null?PY:n[r]}function tX(e){var t=e._covers,n=t.length;return H(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function nX(e,t){var n=U(e._covers,function(e){var t=e.__brushOption,n=_u(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function rX(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return LY(i*i+a*a,.5)>zY}function iX(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function aX(e,t,n,r){var i=new tg;return i.add(new sb({name:`main`,style:lX(n),silent:!0,draggable:!0,cursor:`move`,drift:Au(mX,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:Au(nX,t,{isEnd:!0})})),H(r,function(n){i.add(new sb({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Au(mX,e,t,i,n),ondragend:Au(nX,t,{isEnd:!0})}))}),i}function oX(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=IY(i,BY),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;cX(e,t,`main`,o,s,m,h),r.transformable&&(cX(e,t,`w`,c,l,a,_),cX(e,t,`e`,f,l,a,_),cX(e,t,`n`,c,l,g,a),cX(e,t,`s`,c,p,g,a),cX(e,t,`nw`,c,l,a,a),cX(e,t,`ne`,f,l,a,a),cX(e,t,`sw`,c,p,a,a),cX(e,t,`se`,f,p,a,a))}function sX(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(lX(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),H([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?fX(e,n[0]):pX(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?UY[a]+`-resize`:null})})}function cX(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(vX(_X(e,t,[[r,i],[r+a,i+o]])))}function lX(e){return bu({strokeNoScale:!0},e.brushStyle)}function uX(e,t,n,r){var i=[FY(e,n),FY(t,r)],a=[IY(e,n),IY(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function dX(e){return mC(e.group)}function fX(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[gC({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],dX(e))]}function pX(e,t){var n=[fX(e,t[0]),fX(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function mX(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=gX(t,i,a);H(r,function(e){var t=HY[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(uX(s[0][0],s[1][0],s[0][1],s[1][1])),ZY(t,n),nX(t,{isEnd:!1})}function hX(e,t,n,r){var i=t.__brushOption.range,a=gX(e,n,r);H(i,function(e){e[0]+=a[0],e[1]+=a[1]}),ZY(e,t),nX(e,{isEnd:!1})}function gX(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function _X(e,t,n){var r=eX(e,t);return r&&r!==PY?r.clipPath(n,e._transform):_u(n)}function vX(e){var t=FY(e[0][0],e[1][0]),n=FY(e[0][1],e[1][1]),r=IY(e[0][0],e[1][0]),i=IY(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function yX(e,t,n){if(!(!e._brushType||EX(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=$Y(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===PY||s.panelId===a.panelId)&&DX[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function bX(e){var t=e.event;t.preventDefault&&t.preventDefault()}function xX(e,t,n){return e.childOfName(`main`).contain(t,n)}function SX(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),rX(e)||i){if(a&&!i){o.brushMode===`single`&&tX(e);var c=_u(o);c.brushType=CX(c.brushType,a),c.panelId=a===PY?null:a.panelId,i=e._creatingCover=qY(e,c),e._covers.push(i)}if(i){var l=DX[CX(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(_X(e,i,e._track)),r&&(JY(e,i),l.updateCommon(e,i)),YY(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&$Y(e,t,n)&&tX(e)&&(s={isEnd:r,removeOnClick:!0});return s}function CX(e,t){return e===`auto`?(process.env.NODE_ENV!==`production`&&Y(t&&t.defaultBrushType,`MUST have defaultBrushType when brushType is "atuo"`),t.defaultBrushType):e}var wX={mousedown:function(e){if(this._dragging)TX(this,e);else if(!e.target||!e.target.draggable){bX(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=$Y(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(yX(this,e,r),this._dragging){bX(e);var i=SX(this,e,r,!1);i&&nX(this,i)}},mouseup:function(e){TX(this,e)}};function TX(e,t){if(e._dragging){bX(t);var n=t.offsetX,r=t.offsetY,i=SX(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&nX(e,i)}}function EX(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var DX={lineX:OX(0),lineY:OX(1),rect:{createCover:function(e,t){function n(e){return e}return aX({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=iX(e);return uX(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){oX(e,t,n,r)},updateCommon:sX,contain:xX},polygon:{createCover:function(e,t){var n=new tg;return n.add(new mS({name:`main`,style:lX(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new dS({name:`main`,draggable:!0,drift:Au(hX,e,t),ondragend:Au(nX,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:_X(e,t,n)})},updateCommon:sX,contain:xX}};function OX(e){return{createCover:function(t,n){return aX({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=iX(t);return[FY(n[0][e],n[1][e]),IY(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=eX(t,n);if(o!==PY&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),oX(t,n,c,i)},updateCommon:sX,contain:xX}}var kX=KY;function AX(e){return e=NX(e),function(t){return yC(t,e)}}function jX(e,t){return e=NX(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function MX(e,t,n){var r=NX(e);return function(e,i){return r.contain(i[0],i[1])&&!LH(e,t,n)}}function NX(e){return Af.create(e)}var PX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new kX(n.getZr())).on(`brush`,W(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!FX(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new tg,this.group.add(this._axisGroup),e.get(`show`)){var a=LX(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=V({strokeContainThreshold:c},u),f=new gV(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),vC(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=Af.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:AX(l),isTargetByCursor:MX(l,a,r),getLinearBrushOtherExtent:jX(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(IX(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=U(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(ck);function FX(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function IX(e){var t=e.axis;return U(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function LX(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var RX=PX,zX={type:`axisAreaSelect`,event:`axisAreaSelected`};function BX(e){e.registerAction(zX,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var VX={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function HX(e){e.registerComponentView(fY),e.registerComponentModel(pY),e.registerCoordinateSystem(`parallel`,jY),e.registerPreprocessor(aY),e.registerComponentModel(NY),e.registerComponentView(RX),xB(e,`parallel`,NY,VX),BX(e)}function UX(e){oN(HX),e.registerChartView(QJ),e.registerSeriesModel(nY),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,iY)}var WX=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),GX=function(e){B(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new WX},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t}(Wy),KX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new tg,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(e,t){this._controller=new JH(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this._mainGroup,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,this._updateViewCoordSys(e,n),ZH(e,n,a,this._controller,this._controllerHost,null),i.eachEdge(function(t){var n=new GX,r=Db(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),qX(n.style,d,t);var k=``+i.get(`value`),A=UC(i,`edgeLabel`);HC(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,Vu(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);gx(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return qX(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);px(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new sb({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});HC(f,UC(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),gx(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),Db(f).dataType=`node`;var p=u.get(`focus`);px(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(JX(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=n.width,i=n.height,a=e.coordinateSystem=new vW(null,{api:t,ecModel:e.ecModel});a.zoomLimit=e.get(`scaleLimit`),a.setBoundingRect(0,0,r,i),a.setCenter(e.get(`center`)),a.setZoom(e.get(`zoom`)),this._controllerHost.target.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY})},t.type=`sankey`,t}(vk);function qX(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);q(r)&&q(i)&&(e.fill=new OS(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function JX(e,t,n){var r=new sb({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return GS(r,{shape:{width:e.width+20}},t,n),r}var YX=KX,XX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)if(i[o].depth!=null&&i[o].depth>=0)a[i[o].depth]=new mw(i[o],this,t);else if(process.env.NODE_ENV!==`production`)throw Error(`levels[i].depth is mandatory and should be natural number`);return gJ(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return BO(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return BO(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(ok);function ZX(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=GT(e,t).refContainer,a=HT(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;$X(l),QX(l,u,n,r,o,s,Eu(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function QX(e,t,n,r,i,a,o,s,c){eZ(e,t,n,i,a,s,c),aZ(e,t,a,i,r,o,s),vZ(e,s)}function $X(e){H(e,function(e){var t=gZ(e.outEdges,hZ),n=gZ(e.inEdges,hZ),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function eZ(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=t.indexOf(y);s[b]=0;var x=y.node2,S=e.indexOf(x);--c[S]===0&&u.indexOf(x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&nZ(e,o,a,C),iZ(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function tZ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function nZ(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}H(e,function(e){tZ(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&rZ(e,r)}function rZ(e,t){H(e,function(e){!tZ(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function iZ(e,t,n){H(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function aZ(e,t,n,r,i,a,o){var s=oZ(e,o);sZ(s,t,n,r,i,o),cZ(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,lZ(s,c,o),cZ(s,i,n,r,o),_Z(s,c,o),cZ(s,i,n,r,o)}function oZ(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=I_(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),H(i.keys,function(e){n.push(i.buckets.get(e))}),n}function sZ(e,t,n,r,i,a){var o=1/0;H(e,function(e){var t=e.length,s=0;H(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),H(e,function(e){H(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),H(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function cZ(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;H(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function lZ(e,t,n){H(e.slice().reverse(),function(e){H(e,function(e){if(e.outEdges.length){var r=gZ(e.outEdges,uZ,n)/gZ(e.outEdges,hZ);if(isNaN(r)){var i=e.outEdges.length;r=i?gZ(e.outEdges,dZ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-mZ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-mZ(e,n))*t;e.setLayout({y:o},!0)}}})})}function uZ(e,t){return mZ(e.node2,t)*e.getValue()}function dZ(e,t){return mZ(e.node2,t)}function fZ(e,t){return mZ(e.node1,t)*e.getValue()}function pZ(e,t){return mZ(e.node1,t)}function mZ(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function hZ(e){return e.getValue()}function gZ(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function _Z(e,t,n){H(e,function(e){H(e,function(e){if(e.inEdges.length){var r=gZ(e.inEdges,fZ,n)/gZ(e.inEdges,hZ);if(isNaN(r)){var i=e.inEdges.length;r=i?gZ(e.inEdges,pZ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-mZ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-mZ(e,n))*t;e.setLayout({y:o},!0)}}})})}function vZ(e,t){var n=t===`vertical`?`x`:`y`;H(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),H(e,function(e){var t=0,n=0;H(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),H(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function yZ(e){e.eachSeriesByType(`sankey`,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;H(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),H(n,function(t){var n=new CK({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&H(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function bZ(e){e.registerChartView(YX),e.registerSeriesModel(XX),e.registerLayout(ZX),e.registerVisual(yZ),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e.registerAction({type:`sankeyRoam`,event:`sankeyRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){var n=t.coordinateSystem,r=$H(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}var xZ=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];H(h,function(e,t){var n;G(e)?(n=e.slice(),e.unshift(t)):G(e.value)?(n=V({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:pN(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:pN(m),dimsDef:_.slice()}];return Xz(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:Au(SE,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),SZ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.boxplot`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:$.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}},animationDuration:800},t}(ok);Cu(SZ,xZ,!0);var CZ=SZ,wZ=function(e){B(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=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=e.get(`layout`)===`horizontal`?1:0;r.diff(a).add(function(e){if(r.hasValue(e)){var t=DZ(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(XS(n),OZ(s,n,r,e)):n=DZ(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(vk),TZ=function(){function e(){}return e}(),EZ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new TZ},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(Wy);function DZ(e,t,n,r,i){var a=e.ends,o=new EZ({shape:{points:i?kZ(a,r,e):a}});return OZ(e,o,t,n,i),o}function OZ(e,t,n,r,i){var a=n.hostModel,o=QS[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);gx(t,s),px(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function kZ(e,t,n){return U(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var AZ=wZ,jZ=H;function MZ(e){jZ(NZ(e),function(e){var t=e.seriesModels;t.length&&(PZ(e),jZ(t,function(t,n){FZ(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}function NZ(e){var t=[],n=[];return e.eachSeriesByType(`boxplot`,function(e){var r=e.getBaseAxis(),i=xu(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}function PZ(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type===`category`)s=t.getBandWidth();else{var c=0;jZ(n,function(e){c=Math.max(c,e.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/c}jZ(n,function(e){var t=e.get(`boxWidth`);G(t)||(t=[t,t]),o.push([Q(t[0],s)||0,Q(t[1],s)||0])});var u=s*.8-2,d=u/r*.3,f=(u-d*(r-1))/r,p=f/2-u/2;jZ(n,function(e,t){a.push(p),p+=d+f,i.push(Math.min(Math.max(f,o[t][0]),o[t][1]))})}function FZ(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.get(`layout`)===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function IZ(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=Sg(e[o].slice()),c=Fg(s,.25),l=Fg(s,.5),u=Fg(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=K(g)?g({value:o}):q(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var LZ={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;if(t.sourceFormat!==`arrayRows`){var n=``;process.env.NODE_ENV!==`production`&&(n=Zg(`source data is not applicable for this boxplot transform. Expect number[][].`)),Qg(n)}var r=IZ(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:r.boxData},{data:r.outliers}]}};function RZ(e){e.registerSeriesModel(CZ),e.registerChartView(AZ),e.registerLayout(MZ),e.registerTransform(LZ)}var zZ=[`itemStyle`,`borderColor`],BZ=[`itemStyle`,`borderColor0`],VZ=[`itemStyle`,`borderColorDoji`],HZ=[`itemStyle`,`color`],UZ=[`itemStyle`,`color0`];function WZ(e,t){return t.get(e>0?HZ:UZ)}function GZ(e,t){return t.get(e===0?VZ:e>0?zZ:BZ)}var KZ={seriesType:`candlestick`,plan:lk(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=WZ(i,r),a.stroke=GZ(i,r)||a.fill,V(t.ensureUniqueItemVisual(n,`style`),a)}}}}},qZ=[`color`,`borderColor`],JZ=function(e){B(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){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&QZ(s,o))return;var c=ZZ(o,n,!0);GS(c,{shape:{points:o.ends}},e,n),$Z(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&QZ(s,u)){r.remove(l);return}l?(WS(l,{shape:{points:u.ends}},e,o),XS(l)):l=ZZ(u,o),$Z(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),rQ(e,this.group);var t=e.get(`clip`,!0)?DR(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=ZZ(n.getItemLayout(i),i);$Z(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){rQ(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(vk),YZ=function(){function e(){}return e}(),XZ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new YZ},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Wy);function ZZ(e,t,n){var r=e.ends;return new XZ({shape:{points:n?eQ(r,e):r},z2:100})}function QZ(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function $Z(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0,e.__simpleBox=r,gx(e,i);var a=t.getItemLayout(n).sign;H(e.states,function(e,t){var n=i.getModel(t),r=WZ(a,n),o=GZ(a,n)||r,s=e.style||={};r&&(s.fill=r),o&&(s.stroke=o)});var o=i.getModel(`emphasis`);px(e,o.get(`focus`),o.get(`blurScope`),o.get(`disabled`))}function eQ(e,t){return U(e,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var tQ=function(){function e(){}return e}(),nQ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new tQ},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(Wy);function rQ(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new nQ({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new nQ({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new nQ({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),iQ(1,o,e,i),iQ(-1,s,e,i),iQ(0,c,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function iQ(e,t,n,r){var i=GZ(e,n)||WZ(e,n),a=n.getModel(`itemStyle`).getItemStyle(qZ);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var aQ=JZ,oQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.candlestick`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(ok);Cu(oQ,xZ,!0);var sQ=oQ;function cQ(e){!e||!G(e.series)||H(e.series,function(e){Nu(e)&&e.type===`k`&&(e.type=`candlestick`)})}var lQ={seriesType:`candlestick`,plan:lk(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=dQ(e,n),i=0,a=1,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=U(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Math.min(m,h),y=Math.max(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:uQ(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=pC(a[i]+r/2,1,!1),o[i]=pC(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=pC(e[i],1),e}}function m(n,r){for(var o=DP(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=uQ(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function uQ(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function dQ(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=Q(J(e.get(`barMaxWidth`),i),i),o=Q(J(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):Q(s,i)}var fQ=lQ;function pQ(e){e.registerChartView(aQ),e.registerSeriesModel(sQ),e.registerPreprocessor(cQ),e.registerVisual(KZ),e.registerLayout(fQ)}function mQ(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var hQ=function(e){B(t,e);function t(t,n){var r=e.call(this)||this,i=new fR(t,n),a=new tg;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=TA(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}mQ(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}mQ(n,e)},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=EA(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=DA(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,px(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(tg),gQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new gR(hQ)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get(`clip`,!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=qR(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=ute(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(vk),_Q=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return tP(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type=`series.effectScatter`,t.dependencies=[`grid`,`polar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,effectType:`ripple`,progressive:0,showEffectOn:`render`,clip:!0,rippleEffect:{period:4,scale:2.5,brushType:`fill`,number:3},universalTransition:{divideShape:`clone`},symbolSize:10},t}(ok);function vQ(e){e.registerChartView(gQ),e.registerSeriesModel(_Q),e.registerLayout(qR(`effectScatter`))}var yQ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new Wq(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);G(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=TA(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=Bu(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=K(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return _d(e.__p1,e.__cp1)+_d(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=wp,c=Tp;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=_d(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*_d(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(tg),bQ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new mS({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;WS(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,px(this,o,s,c)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape(`points`,e.getItemLayout(t))},t}(tg),xQ=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new bQ(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=_d(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(yQ),SQ=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),CQ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new SQ},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(by(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(Sy(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(by(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new Af(n,r,i,a)}return e},t}(Wy),wQ=function(){function e(){this.group=new tg}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout(`linesPoints`),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new CQ({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.getModel(`lineStyle`).getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual(`style`);i&&i.stroke&&e.setStyle(`stroke`,i.stroke),e.setStyle(`fill`,null);var a=Db(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),TQ={seriesType:`lines`,plan:lk(),reset:function(e){var t=e.coordinateSystem;if(!t){process.env.NODE_ENV!==`production`&&Jg(`The lines series must have a coordinate system.`);return}var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}},EQ=function(e){B(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=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=s.painter.getType()===`svg`;c||s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&!c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c?process.env.NODE_ENV!==`production`&&console.warn(`SVG render mode doesn't support lines with trail effect`):s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&DR(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=TQ.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return process.env.NODE_ENV!==`production`&&r&&a&&console.warn(`Large lines not support effect`),(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new wQ:new Xq(i?r?xQ:bQ:r?yQ:Wq),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(vk),DQ=typeof Uint32Array>`u`?Array:Uint32Array,OQ=typeof Float64Array>`u`?Array:Float64Array;function kQ(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(process.env.NODE_ENV!==`production`&&console.warn(`Lines data configuration has been changed to { coords:[[1,2],[2,3]] }`),e.data=U(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),yu([t,e[0],e[1]])}))}var AQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],kQ(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(kQ(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Qu(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Qu(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow(`coords`);if(process.env.NODE_ENV!==`production`&&!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw Error(`Invalid coords `+JSON.stringify(n)+`. Lines must have 2d coords array in data item.`);return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Mu(e[0])){for(var n=e.length,r=new DQ(n),i=new OQ(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];if(i[a++]=d,i[a++]=f,c>n&&process.env.NODE_ENV!==`production`)throw Error(`Invalid data format.`)}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if(process.env.NODE_ENV!==`production`&&!NT.get(e.coordinateSystem))throw Error(`Unknown coordinate system `+e.coordinateSystem);var n=new LN([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get(`name`);if(i)return i;var a=r.get(`fromName`),o=r.get(`toName`),s=[];return a!=null&&s.push(a),o!=null&&s.push(o),BO(`nameValue`,{name:s.join(` > `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(ok);function jQ(e){return e instanceof Array||(e=[e,e]),e}var MQ={seriesType:`lines`,reset:function(e){var t=jQ(e.get(`symbol`)),n=jQ(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=jQ(n.getShallow(`symbol`,!0)),i=jQ(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function NQ(e){e.registerChartView(EQ),e.registerSeriesModel(AQ),e.registerLayout(TQ),e.registerVisual(MQ)}var PQ=256,FQ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null},this.canvas=nu.createCanvas()}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(PQ-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=nu.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function IQ(e,t,n){var r=e[1]-e[0];t=U(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function LQ(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function RQ(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var zQ=function(e){B(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;if(t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),process.env.NODE_ENV!==`production`&&!r)throw Error(`Heatmap must use with visualMap`);this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):RQ(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(RQ(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=OR(a,`cartesian2d`),s=OR(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);if(process.env.NODE_ENV!==`production`){if(!(f.type===`category`&&p.type===`category`))throw Error(`Heatmap on cartesian must have two category axes`);if(!(f.onBand&&p.onBand))throw Error(`Heatmap on cartesian must have two axes with boundaryGap true`)}c=f.getBandWidth()+.5,l=p.getBandWidth()+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=UC(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new sb({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(zu(M.x))continue;D=new sb({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(zu(M.x)||zu(M.y))continue;D=new sb({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=UC(P)}D.shape.r=y;var I=e.getRawValue(E),ee=`-`;I&&I[2]!=null&&(ee=I[2]+``),HC(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ee}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,px(D,S,C,w),D.incremental=i,i&&(D.states.emphasis.hoverLayer=!0),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new FQ;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?LQ(v,n.option.range):IQ(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Qy({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(vk),BQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return tP(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=NT.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(ok);function VQ(e){e.registerChartView(zQ),e.registerSeriesModel(BQ)}var HQ=[`itemStyle`,`borderWidth`],UQ=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],WQ=new zx,GQ=function(e){B(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=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:UQ[+s],categoryDim:UQ[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=KQ(i,e,r$(i,e),l),n=o$(i,l,t);i.setItemGraphicEl(e,n),r.add(n),f$(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=KQ(i,e,r$(i,e),l),s=l$(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?s$(n,l,o):n=o$(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),f$(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&c$(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?DR(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){c$(r,Db(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(vk);function KQ(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};qQ(n,a,i,r,d),YQ(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),XQ(n,d.symbolScale,c,r,d);var f=d.symbolSize;return ZQ(n,f,i,a,o,DA(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function qQ(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(G(o)){var d=[JQ(s,o[0])-c,JQ(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:JQ(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function JQ(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function YQ(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=G(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=Q(m[d.index],f),m[u.index]=Q(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function XQ(e,t,n,r,i){var a=e.get(HQ)||0;a&&(WQ.attr({scaleX:t[0],scaleY:t[1],rotation:n}),WQ.updateTransform(),a/=WQ.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function ZQ(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=Bu(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=Q(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=Rg(r),w=C?r:p$((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?p$((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=m*(g/2),E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=V({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function QQ(e){var t=e.symbolPatternSize,n=TA(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function $Q(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(u$(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?d$(e,null,m(u),n,r):d$(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=QQ(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);d$(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function e$(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?d$(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=QQ(n),i.add(a),d$(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function t$(e,t,n){var r=V({},t.barRectShape),i=e.__pictorialBarRect;i?d$(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new sb({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function n$(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=V({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)WS(i,{shape:a},s,c);else{a[o.wh]=0,i=new sb({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],QS[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function r$(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=i$,n.isAnimationEnabled=a$,n}function i$(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function a$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function o$(e,t,n,r){var i=new tg,a=new tg;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?$Q(i,t,n):e$(i,t,n),t$(i,n,r),n$(i,t,n,r),i.__pictorialShapeStr=l$(e,n),i.__pictorialSymbolMeta=n,i}function s$(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;WS(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?$Q(e,t,n,!0):e$(e,t,n,!0),t$(e,n,!0),n$(e,t,n,!0)}function c$(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];u$(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),H(a,function(e){qS(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function l$(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function u$(e,t,n){H(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function d$(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&QS[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function f$(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);u$(e,function(e){if(e instanceof Qy){var t=e.style;e.useStyle(V({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,HC(m,UC(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:uR(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),px(e,u,d,a.get(`disabled`))}function p$(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var m$=GQ,h$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=yw($R.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:$.color.primary}}}),t}($R);function g$(e){e.registerChartView(m$),e.registerSeriesModel(h$),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Au(LP,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RP(`pictorialBar`))}var _$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new lN(this._layersSeries||[],o,u,u),f=[];d.add(W(p,this,`add`)).update(W(p,this,`update`)).remove(W(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new tg;y=new wR({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(v$(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,WS(y,{shape:{points:l,stackedOnPoints:u}},e),XS(y)}HC(y,UC(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),gx(y,e),px(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=`themeRiver`,t}(vk);function v$(e,t,n){var r=new sb({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return GS(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var y$=_$,b$=2,x$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zz(W(this.getData,this),W(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=I_(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,A_).models[0].get(`type`),r=Eu(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=X(),s=0,c=0;c<i.length;++c)a.push(i[c][b$]),o.get(i[c][b$])||(o.set(i[c][b$],s),s++);var l=RN(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:pN(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new LN(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=I_(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){G(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return BO(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.themeRiver`,t.dependencies=[`singleAxis`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`singleAxis`,boundaryGap:[`10%`,`10%`],singleAxisIndex:0,animationEasing:`linear`,label:{margin:4,show:!0,position:`left`,fontSize:11},emphasis:{label:{show:!0}}},t}(ok);function S$(e,t){e.eachSeriesByType(`themeRiver`,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=Q(a[0],i.height),a[1]=Q(a[1],i.height),C$(t,e,i.height-a[0]-a[1])):(a[0]=Q(a[0],i.width),a[1]=Q(a[1],i.width),C$(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function C$(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=U(i,function(t){return U(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=w$(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function w$(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function T$(e){e.registerChartView(y$),e.registerSeriesModel(x$),e.registerLayout(S$),e.registerProcessor(Rz(`themeRiver`))}var E$=2,D$=4,O$=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=E$,a.textConfig={inside:!0},Db(a).seriesIndex=n.seriesIndex;var o=new Eb({z2:D$,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;Db(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=V({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=mj(d,i)),V(l,sz(o.getModel(`itemStyle`),l,!0)),H(Nb,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=sz(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,GS(a,{shape:{r:c.r}},n,t.dataIndex)):(WS(a,{shape:l},n),XS(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Qu(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;px(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),H(Pb,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=WC(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=wy(w===`tangential`?Math.PI/2-o:o),O=D>T&&!kg(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=a===2*Math.PI&&i.r0===0?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=wy(-o)+(O?Math.PI:0):w===`tangential`?k=wy(Math.PI/2-o)+(O?Math.PI:0):Mu(w)&&(k=w*Math.PI/180),h.rotation=wy(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(iS),k$=`sunburstRootToNode`,A$=`sunburstHighlight`,j$=`sunburstUnhighlight`;function M$(e){e.registerAction({type:k$,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=gG(e,[k$],t);if(r){var i=t.getViewRoot();i&&(e.direction=vG(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:A$,update:`none`},function(e,t,n){e=V({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=gG(e,[A$],t);n&&(e.dataIndex=n.node.dataIndex)}process.env.NODE_ENV!==`production`&&Xg(`sunburstHighlight`,`highlight`),n.dispatchAction(V(e,{type:`highlight`}))}),e.registerAction({type:j$,update:`updateView`},function(e,t,n){e=V({},e),process.env.NODE_ENV!==`production`&&Xg(`sunburstUnhighlight`,`downplay`),n.dispatchAction(V(e,{type:`downplay`}))})}var N$=function(e){B(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,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new lN(t,e,n,n).add(r).update(r).remove(Au(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new O$(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new O$(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&bT(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:k$,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(vk),P$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};F$(n);var r=this._levelModels=U(e.levels||[],function(e){return new mw(e,this,t)},this),i=hG.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=yG(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){AG(this)},t.type=`series.sunburst`,t.defaultOption={z:2,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:`rootToNode`,renderLabelForZeroData:!1,label:{rotate:`radial`,show:!0,opacity:1,align:`center`,position:`inside`,distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:`white`,borderType:`solid`,shadowBlur:0,shadowColor:`rgba(0, 0, 0, 0.2)`,shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:`descendant`},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:`expansion`,animationDuration:1e3,animationDurationUpdate:500,data:[],sort:`desc`},t}(ok);function F$(e){var t=0;H(e.children,function(e){F$(e);var n=e.value;G(n)&&(n=n[0]),t+=n});var n=e.value;G(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),G(e.value)?e.value[0]=n:e.value=n}var I$=P$,L$=Math.PI/180;function R$(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);G(r)||(r=[0,r]),G(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=Q(t[0],i),c=Q(t[1],a),l=Q(r[0],o/2),u=Q(r[1],o/2),d=-e.get(`startAngle`)*L$,f=e.get(`minAngle`)*L$,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&z$(m,g);var _=0;H(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=Q(_,o/2)),x!=null&&(m=Q(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;H(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function z$(e,t){var n=e.children||[];e.children=B$(n,t),n.length&&H(e.children,function(e){z$(e,t)})}function B$(e,t){if(K(t)){var n=U(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),U(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function V$(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&q(a)&&(a=$p(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),V(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function H$(e){e.registerChartView(N$),e.registerSeriesModel(I$),e.registerLayout(Au(R$,`sunburst`)),e.registerProcessor(Au(Rz,`sunburst`)),e.registerVisual(V$),M$(e)}var U$={color:`fill`,borderColor:`stroke`},W$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},G$=E_(),K$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return tP(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=G$(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(ok);function q$(e,t){return t||=[0,0],U([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function J$(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(q$,e)}}}function Y$(e,t){return t||=[0,0],U([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function X$(e){var t=e.getBoundingRect();return{coordSys:{type:`geo`,x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:W(Y$,e)}}}function Z$(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function Q$(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(Z$,e)}}}function $$(e,t){return t||=[0,0],U([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function e1(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:W($$,e)}}}function t1(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function n1(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var r1={};function i1(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||Z(e,`text`)))}function a1(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},Z(r,`text`)&&(o.text=r.text),Z(r,`rich`)&&(o.rich=r.rich),Z(r,`textFill`)&&(o.fill=r.textFill),Z(r,`textStroke`)&&(o.stroke=r.textStroke),Z(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),Z(r,`fontSize`)&&(o.fontSize=r.fontSize),Z(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),Z(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=Z(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),Z(r,`textPosition`)&&(i.position=r.textPosition),Z(r,`textOffset`)&&(i.offset=r.textOffset),Z(r,`textRotation`)&&(i.rotation=r.textRotation),Z(r,`textDistance`)&&(i.distance=r.textDistance)}return o1(o,e),H(o.rich,function(e){o1(e,e)}),{textConfig:i,textContent:a}}function o1(e,t){t&&(t.font=t.textFont||t.font,Z(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),Z(t,`textAlign`)&&(e.align=t.textAlign),Z(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),Z(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),Z(t,`textWidth`)&&(e.width=t.textWidth),Z(t,`textHeight`)&&(e.height=t.textHeight),Z(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),Z(t,`textPadding`)&&(e.padding=t.textPadding),Z(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),Z(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),Z(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),Z(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),Z(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),Z(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Z(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function s1(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||$.color.neutral99;c1(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,H(t.rich,function(e){c1(e,e)}),r}function c1(e,t){t&&(Z(t,`fill`)&&(e.textFill=t.fill),Z(t,`stroke`)&&(e.textStroke=t.fill),Z(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Z(t,`font`)&&(e.font=t.font),Z(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Z(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Z(t,`fontSize`)&&(e.fontSize=t.fontSize),Z(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Z(t,`align`)&&(e.textAlign=t.align),Z(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Z(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Z(t,`width`)&&(e.textWidth=t.width),Z(t,`height`)&&(e.textHeight=t.height),Z(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Z(t,`padding`)&&(e.textPadding=t.padding),Z(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Z(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Z(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Z(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Z(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Z(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Z(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Z(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Z(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Z(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Z(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function l1(e,t){if(process.env.NODE_ENV!==`production`){var n=e+`^_^`+t;r1[n]||(console.warn(`[ECharts] DEPRECATED: "`+e+`" has been deprecated. `+t),r1[n]=!0)}}var u1={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},d1=Ou(u1),f1=Tu(Ch,function(e,t){return e[t]=1,e},{}),p1=Ch.join(`, `),m1=[``,`style`,`shape`,`extra`],h1=E_();function g1(e,t,n,r,i){var a=e+`Animation`,o=HS(e,r,i)||{},s=h1(t).userDuring;return o.duration>0&&(o.during=s?W(D1,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),V(o,n[a]),o}function _1(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=h1(e),l=t.style;c.userDuring=t.during;var u={},d={};if(j1(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];k1(`shape`,h,f[m])}else k1(`shape`,t,d),k1(`extra`,t,d);if(!a&&s&&(A1(e,t,u),O1(`shape`,e,t,u),O1(`extra`,e,t,u),M1(e,t,l,u)),d.style=l,x1(e,d,o),C1(e,t),s)if(a){var g={};H(m1,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),V(e?g[e]:g,n.enterFrom))});var _=g1(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else S1(e,t,i||0,n,u);v1(e,t),l?e.dirty():e.markRedraw()}function v1(e,t){for(var n=h1(e).leaveToProps,r=0;r<m1.length;r++){var i=m1[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=h1(e).leaveToProps={},i&&(n[i]=n[i]||{}),V(i?n[i]:n,a.leaveTo))}}function y1(e,t,n,r){if(e){var i=e.parent,a=h1(e).leaveToProps;if(a){var o=g1(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function b1(e){return e===`all`}function x1(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function S1(e,t,n,r,i){if(i){var a=g1(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function C1(e,t){Z(t,`silent`)&&(e.silent=t.silent),Z(t,`ignore`)&&(e.ignore=t.ignore),e instanceof zv&&Z(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Wy&&Z(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var w1={},T1={setTransform:function(e,t){return process.env.NODE_ENV!==`production`&&Y(Z(f1,e),`Only `+p1+" available in `setTransform`."),w1.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!==`production`&&Y(Z(f1,e),`Only `+p1+" available in `getTransform`."),w1.el[e]},setShape:function(e,t){process.env.NODE_ENV!==`production`&&E1(e);var n=w1.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!==`production`&&E1(e);var t=w1.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!==`production`&&E1(e);var n=w1.el,r=n.style;return r&&(process.env.NODE_ENV!==`production`&&zu(t)&&qg(`style.`+e+` must not be assigned with NaN.`),r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!==`production`&&E1(e);var t=w1.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!==`production`&&E1(e);var n=w1.el.extra||(w1.el.extra={});return n[e]=t,this},getExtra:function(e){process.env.NODE_ENV!==`production`&&E1(e);var t=w1.el.extra;if(t)return t[e]}};function E1(e){if(process.env.NODE_ENV!==`production`&&(e===`transition`||e===`enterFrom`||e===`leaveTo`))throw Error(`key must not be "`+e+`"`)}function D1(){var e=this,t=e.el;if(t){var n=h1(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}w1.el=t,r(T1)}}function O1(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),b1(c))V(o,a);else for(var l=n_(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(b1(s)||xu(s,e)>=0){!o&&(o=r[e]={});for(var p=Ou(a),u=0;u<p.length;u++){var d=p[u],f=a[d];N1(i[d],f)&&(o[d]=f)}}}}}function k1(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Ou(r),o=0;o<a.length;o++){var s=a[o];i[s]=Lm(r[s])}}function A1(e,t,n){for(var r=t.transition,i=b1(r)?Ch:n_(r||[]),a=0;a<i.length;a++){var o=i[a];if(!(o===`style`||o===`shape`||o===`extra`)){var s=e[o];process.env.NODE_ENV!==`production`&&P1(o,`el.transition`),n[o]=s}}}function j1(e,t,n){for(var r=0;r<d1.length;r++){var i=d1[r],a=u1[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Ch.length;r++){var s=Ch[r];t[s]!=null&&(n[s]=t[s])}}function M1(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!b1(o)){var c=n_(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(b1(s)||b1(o)||xu(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=Ou(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function N1(e,t){return wu(e)?e!==t:e!=null&&isFinite(e)}var P1;process.env.NODE_ENV!==`production`&&(P1=function(e,t){Z(f1,e)||qg("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+Ou(f1).join("`, `")+"` are permitted.")});var F1=E_(),I1=[`percent`,`easing`,`shape`,`style`,`extra`];function L1(e){e.stopAnimation(`keyframe`),e.attr(F1(e))}function R1(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(G(t)){H(t,function(t){R1(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=HS(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=F1(e);H(m1,function(n){if(!(n&&!e[n])){var a,s=!1;r.sort(function(e,t){return e.percent-t.percent}),H(r,function(r){var c=e.animators,l=n?r[n]:r;if(process.env.NODE_ENV!==`production`&&r.percent>=1&&(s=!0),l){var u=Ou(l);if(n||(u=Eu(u,function(e){return xu(I1,e)<0})),u.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var d=0;d<c.length;d++)c[d]!==a&&c[d].targetName===a.targetName&&c[d].stopTracks(u);n&&(o[n]=o[n]||{});var f=n?o[n]:o;H(u,function(t){f[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,l,u,r.easing)}}}),a&&(process.env.NODE_ENV!==`production`&&(s||qg(`End frame with percent: 1 is missing in the keyframeAnimation.`,!0)),a.delay(t.delay||0).duration(i).start(t.easing))}})}}}var z1=`emphasis`,B1=`normal`,V1=`blur`,H1=`select`,U1=[B1,z1,V1,H1],W1={normal:[`itemStyle`],emphasis:[z1,`itemStyle`],blur:[V1,`itemStyle`],select:[H1,`itemStyle`]},G1={normal:[`label`],emphasis:[z1,`label`],blur:[V1,`label`],select:[H1,`label`]},K1=[`x`,`y`],q1=`e\0\0`,J1={normal:{},emphasis:{},blur:{},select:{}},Y1={cartesian2d:J$,geo:X$,single:Q$,polar:e1,calendar:t1,matrix:n1};function X1(e){return e instanceof Wy}function Z1(e){return e instanceof zv}function Q1(e,t){t.copyTransform(e),Z1(t)&&Z1(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,X1(t)&&X1(e)&&t.setShape(e.shape))}var $1=function(e){B(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,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=a0(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){s0(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&y1(n,G$(n).option,e)}).update(function(t,c){s0(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?DR(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=a0(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=s0(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(vk);function e0(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=x0(r);n=sC(a,null,i,r.layout||`center`),G$(n).customPathData=a}else if(t===`image`)n=new Qy({}),G$(n).customImagePath=e.style.image;else if(t===`text`)n=new Eb({});else if(t===`group`)n=new tg;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;process.env.NODE_ENV!==`production`&&(o=`shape.paths must be specified in compoundPath`),Qg(o)}n=new ES({shape:{paths:U(r.paths,function(e){if(e.type===`path`)return sC(e.shape.pathData,e,null);var n=oC(e.type);if(!n){var r=``;process.env.NODE_ENV!==`production`&&(r=`graphic type "`+t+`" can not be found.`),Qg(r)}return new n})}})}else{var s=oC(t);if(!s){var o=``;process.env.NODE_ENV!==`production`&&(o=`graphic type "`+t+`" can not be found.`),Qg(o)}n=new s}return G$(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function t0(e,t,n,r,i,a,o){L1(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=K1);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;Z(l,`textFill`)&&(l.fill=l.textFill),Z(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=X1(t)?c.decal:null;e&&d&&(d.dirty=!0,u=mj(d,e)),c.__decalPattern=u}if(Z1(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}_1(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),R1(t,r.keyframeAnimation,a)}function n0(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),Zb(a)}}function r0(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<U1.length;s++)i0(r,t,U1[s])}}function i0(e,t,n){var r=n===B1,i=r?t:p0(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function a0(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=Dj(i);a?i=a:process.env.NODE_ENV!==`production`&&console.warn(`Custom series renderItem '`+i+`' not found.
|
|
66
|
-
Call 'echarts.registerCustomSeries' to register it.`)}var o=e.coordinateSystem,s={};o&&(process.env.NODE_ENV!==`production`&&(Y(i,`series.render is required.`),Y(o.prepareCustoms||Y1[o.type],`This coordSys does not support custom series.`)),s=o.prepareCustoms?o.prepareCustoms(o):Y1[o.type](o));for(var c=bu({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:o0(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<U1.length;g++){var _=U1[g];m[_]=e.getModel(W1[_]),h[_]=e.getModel(G1[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(W1[n])):v(e).getModel(W1[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(G1[n])):v(e).getModel(G1[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(bu({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){process.env.NODE_ENV!==`production`&&l1(`api.style`,`Please write literal style directly instead.`),r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,B1).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:q(a)?a:$.color.neutral99},l=b(r,B1),d=WC(l,null,c,!1,!0);d.text=l.getShallow(`show`)?J(e.getFormattedLabel(r,B1),uR(t,r)):null;var f=GC(l,c,!1);return E(n,s),s=s1(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){process.env.NODE_ENV!==`production`&&l1(`api.styleEmphasis`,`Please write literal style directly instead.`),r??=u;var i=y(r,z1).getItemStyle(),a=b(r,z1),o=WC(a,null,null,!0,!0);o.text=a.getShallow(`show`)?Vu(e.getFormattedLabel(r,z1),e.getFormattedLabel(r,B1),uR(t,r)):null;var s=GC(a,null,!0);return E(n,i),i=s1(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Z(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Z(U$,e)){var r=t.getItemVisual(n,`style`);return r?r[U$[e]]:null}if(Z(W$,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return jP(bu({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return QC(e,n)}}function o0(e){var t={};return H(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function s0(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=c0(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&px(s,r.focus,r.blurScope,r.emphasisDisabled),s}function c0(e,t,n,r,i,a){process.env.NODE_ENV!==`production`&&Y(r,`should not have an null/undefined element setting`);var o=-1,s=t;t&&l0(t,r,i)&&(o=xu(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=e0(r),s&&Q1(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),J1.normal.cfg=J1.normal.conOpt=J1.emphasis.cfg=J1.emphasis.conOpt=J1.blur.cfg=J1.blur.conOpt=J1.select.cfg=J1.select.conOpt=null,J1.isLegacy=!1,d0(l,n,r,i,c,J1),u0(l,n,r,i,c),t0(e,l,n,r,J1,i,c),Z(r,`info`)&&(G$(l).info=r.info);for(var u=0;u<U1.length;u++){var d=U1[u];if(d!==B1){var f=p0(r,d),p=m0(r,f,d);n0(d,l,f,p,J1)}}return r0(l,r,i),r.type===`group`&&h0(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function l0(e,t,n){var r=G$(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&S0(a)&&x0(a)!==r.customPathData||i===`image`&&Z(o,`image`)&&o.image!==r.customImagePath}function u0(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&l0(o,a,r)&&(o=null),o||(o=e0(a),process.env.NODE_ENV!==`production`&&Y(X1(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+`.`),e.setClipPath(o)),t0(null,o,t,a,null,r,i)}}function d0(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){f0(n,null,a),f0(n,z1,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=e0(o),e.setTextContent(u)),t0(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<U1.length;f++){var p=U1[f];if(p!==B1){var m=a[p].conOpt;n0(p,u,m,m0(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function f0(e,t,n){var r=t?p0(e,t):e,i=t?m0(e,r,z1):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?p0(s,t):s:null;if(i&&(n.isLegacy||i1(i,a,!!o,!!c))){n.isLegacy=!0;var l=a1(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`),process.env.NODE_ENV!==`production`&&Y(u.type===`text`,`textContent.type must be "text"`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function p0(e,t){return t?e?e[t]:null:e}function m0(e,t,n){var r=t&&t.style;return r==null&&n===z1&&e&&(r=e.styleEmphasis),r}function h0(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){_0({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,c0(e,f,n,d,i,t)):(process.env.NODE_ENV!==`production`&&Y(f,`renderItem should not return a group containing elements as null/undefined/{} if they do not exist before.`),f.ignore=!0)}for(var p=t.childCount()-1;p>=u;p--)g0(t,t.childAt(p),i)}}function g0(e,t,n){t&&y1(t,G$(e).option,n)}function _0(e){new lN(e.oldChildren,e.newChildren,v0,v0,e).add(y0).update(y0).remove(b0).execute()}function v0(e,t){return(e&&e.name)??q1+t}function y0(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];c0(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function b0(e){var t=this.context,n=t.oldChildren[e];n&&y1(n,G$(n).option,t.seriesModel)}function x0(e){return e&&(e.pathData||e.d)}function S0(e){return e&&(Z(e,`pathData`)||Z(e,`d`))}function C0(e){e.registerChartView($1),e.registerSeriesModel(K$)}var w0=E_(),T0=_u,E0=W,D0=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 tg,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=Au(O0,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}M0(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=KV(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=w0(e).pointerEl=new QS[i.type](T0(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=w0(e).labelEl=new Eb(T0(t.label));e.add(i),A0(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=w0(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=w0(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),A0(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=bC(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Zd(e.event)},onmousedown:E0(this._onHandleDragMove,this,0,0),drift:E0(this._onHandleDragMove,this),ondragend:E0(this._onHandleDragEnd,this)}),n.add(r)),M0(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);G(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ck(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){O0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,j0(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(j0(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(j0(r)),w0(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),wk(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 O0(e,t,n,r){k0(w0(n).lastProp,r)||(w0(n).lastProp=r,t?WS(n,r,e):(n.stopAnimation(),n.attr(r)))}function k0(e,t){if(Nu(e)&&Nu(t)){var n=!0;return H(t,function(t,r){n&&=k0(e[r],t)}),!!n}else return e===t}function A0(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function j0(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function M0(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)})}var N0=D0;function P0(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 F0(e,t,n,r,i){var a=L0(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=fT(o.get(`padding`)||0),c=o.getFont(),l=Nh(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),I0(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:WC(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function I0(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 L0(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:bF(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};H(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),q(o)?a=o.replace(`{value}`,a):K(o)&&(a=o(s))}return a}function R0(e,t,n){var r=rf();return lf(r,r,n.rotation),cf(r,r,n.position),hC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function z0(e,t,n,r,i,a){var o=gV.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),F0(t,r,i,a,{position:R0(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function B0(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function V0(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function H0(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var U0=function(e){B(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=W0(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=P0(r),d=G0[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}z0(t,e,_V(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=_V(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=R0(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=W0(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}(N0);function W0(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var G0={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:B0([t,n[0]],[t,n[1]],K0(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:V0([t-r/2,n[0]],[r,i],K0(e))}}};function K0(e){return e.dim===`x`?0:1}var Bre=U0,q0=function(e){B(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:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.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:$.color.accent40,throttle:40}},t}(tE),J0=E_(),Y0=H;function X0(e,t,n){if(!Ql.node){var r=t.getZr();J0(r).records||(J0(r).records={}),Z0(r,t);var i=J0(r).records[e]||(J0(r).records[e]={});i.handler=n}}function Z0(e,t){if(J0(e).initialized)return;J0(e).initialized=!0,n(`click`,Au(e2,`click`)),n(`mousemove`,Au(e2,`mousemove`)),n(`globalout`,$0);function n(n,r){e.on(n,function(n){var i=t2(t);Y0(J0(e).records,function(e){e&&r(e,n,i.dispatchAction)}),Q0(i.pendings,t)})}}function Q0(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 $0(e,t,n){e.handler(`leave`,null,n)}function e2(e,t,n,r){t.handler(e,n,r)}function t2(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 n2(e,t){if(!Ql.node){var n=t.getZr();(J0(n).records||{})[e]&&(J0(n).records[e]=null)}}var r2=function(e){B(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`;X0(`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){n2(`axisPointer`,t)},t.prototype.dispose=function(e,t){n2(`axisPointer`,t)},t.type=`axisPointer`,t}(ck);function i2(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=T_(a,e);if(o==null||o<0||G(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(U(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}}var a2=E_();function o2(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){g2(i)&&(i=i2({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=g2(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||g2(i),f={},p={},m={list:[],map:{}},h={showPointer:Au(l2,p),showTooltip:Au(u2,m)};H(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);H(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=m2(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&s2(e,o,h,!1,f)}})});var g={};return H(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&H(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,h2(t),h2(e)))),g[e.key]=a}})}),H(g,function(e,t){s2(u[t],e,h,!0,f)}),d2(p,u,f),f2(m,i,e,o),p2(u,o,n),f}}function s2(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=c2(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function c2(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return H(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),H(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function l2(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function u2(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=YV(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 d2(e,t,n){var r=n.axesInfo=[];H(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 f2(e,t,n,r){if(g2(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 p2(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=a2(r)[i]||{},o=a2(r)[i]={};H(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&H(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];H(a,function(e,t){!o[t]&&c.push(e)}),H(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 m2(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 h2(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 g2(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function _2(e){ZV.registerAxisPointerClass(`CartesianAxisPointer`,Bre),e.registerComponentModel(q0),e.registerComponentView(r2),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!G(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=zV(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},o2)}function v2(e){oN(cH),oN(_2)}var y2=function(e){B(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;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=P0(r),d=x2[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}F0(e,n,r,i,b2(t,n,r,o,r.get([`label`,`margin`])))},t}(N0);function b2(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=rf();lf(f,f,s),cf(f,f,[r.cx,r.cy]),l=hC([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=gV.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var x2={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:B0(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:H0(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:H0(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},S2=y2,C2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(tE),w2=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,A_).models[0]},t.type=`polarAxis`,t}(tE);Cu(w2,kF);var T2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(w2),E2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(w2),D2=function(e){B(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(yI);D2.prototype.dataToRadius=yI.prototype.dataToCoord,D2.prototype.radiusToData=yI.prototype.coordToData;var O2=D2,k2=E_(),A2=function(e){B(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=Nh(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=k2(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(yI);A2.prototype.dataToAngle=yI.prototype.dataToCoord,A2.prototype.angleToData=yI.prototype.coordToData;var j2=A2,M2=[`radius`,`angle`],N2=function(){function e(e){this.dimensions=M2,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new O2,this._angleAxis=new j2,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return P2(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return P2(t)===this?this.pointToData(n):null},e}();function P2(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var F2=N2;function I2(e,t,n){var r=t.get(`center`),i=GT(t,n).refContainer;e.cx=Q(r[0],i.width)+i.x,e.cy=Q(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:G(s)||(s=[0,s]);var c=[Q(s[0],o),Q(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function L2(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();H(CF(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),H(CF(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),gF(r.scale,r.model),gF(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function R2(e){return e.mainType===`angleAxis`}function z2(e,t){if(e.type=t.get(`type`),e.scale=_F(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),R2(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var B2={dimensions:M2,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new F2(r+``);i.update=L2;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);z2(a,s),z2(o,c),I2(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.getReferringComponents(`polar`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!t)throw Error(`Polar "`+Bu(e.get(`polarIndex`),e.get(`polarId`),0)+`" not found`);e.coordinateSystem=t.coordinateSystem}}),n}},V2=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function H2(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function U2(e){return e.getRadiusAxis().inverse?0:1}function W2(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var G2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=U(n.getViewLabels(),function(e){e=_u(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});W2(s),W2(a),H(V2,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&K2[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(ZV),K2={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=U2(n),d=u?0:1,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new QS[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new oS({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[U2(n)],l=U(r,function(e){return new vS({shape:H2(n,[c,c+s],e.coord)})});e.add(uC(l,{style:bu(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[U2(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new vS({shape:H2(n,[l,l+c],i[d][f].coord)}));e.add(uC(u,{style:bu(s.getModel(`lineStyle`).getLineStyle(),bu(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);H(o,function(r,i){var o=c,d=r.tickValue,f=a[U2(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];Nu(v)&&v.textStyle&&(o=new mw(v.textStyle,c,c.ecModel))}var y=new Eb({silent:gV.isLabelSilent(t),style:WC(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),OC({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=gV.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,Db(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new vS({shape:H2(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(uC(l[u],{style:bu({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new vS({shape:H2(n,a,i[c][l].coord)}));e.add(uC(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new iS({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(uC(l[h],{style:bu({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},q2=G2,J2=[`splitLine`,`splitArea`,`minorSplitLine`],Y2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this._axisGroup,i=this._axisGroup=new tg;this.group.add(i);var a=e.axis,o=a.polar,s=o.getAngleAxis(),c=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=s.getExtent()[0],d=a.getExtent(),f=new gV(e,n,Z2(o,e,u));f.build(),i.add(f.group),vC(r,i,e),H(J2,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&X2[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(ZV),X2={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new QS[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(uC(p[m],{style:bu({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new zx({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(uC(c,{style:bu({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new iS({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(uC(l[d],{style:bu({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function Z2(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}var Q2=Y2;function $2(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function e4(e,t){return t.dim+e.model.componentIndex}function t4(e,t,n){var r={},i=n4(Eu(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&e.coordinateSystem.type===`polar`}));t.eachSeriesByType(e,function(e){if(e.coordinateSystem.type===`polar`){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=e4(n,a),s=$2(e),c=i[o][s],l=c.offset,u=c.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,p=e.coordinateSystem.cy,m=e.get(`barMinHeight`)||0,h=e.get(`barMinAngle`)||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),_=t.mapDimension(a.dim),v=JN(t,g),y=a.dim!==`radius`||!e.get(`roundCap`,!0),b=d.model.get(`startValue`),x=d.dataToCoord(b||0),S=0,C=t.count();S<C;S++){var w=t.get(g,S),T=t.get(_,S),E=w>=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var M=d.dataToCoord(w)-x,N=a.dataToCoord(T);Math.abs(M)<m&&(M=(M<0?-1:1)*m),O=D,k=D+M,A=N-l,j=A-u,v&&(r[s][T][E]=k)}else{var P=d.dataToCoord(w,y)-x,F=a.dataToCoord(T);Math.abs(P)<h&&(P=(P<0?-1:1)*h),O=F+l,k=O+u,A=D,j=D+P,v&&(r[s][T][E]=j)}t.setItemLayout(S,{cx:f,cy:p,r0:O,r:k,startAngle:-A*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:A>=j})}}})}function n4(e){var t={};H(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=e4(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=$2(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=Q(e.get(`barWidth`),c),p=Q(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return H(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Q(e.categoryGap,i),o=Q(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),H(r,function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)}),l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u=0,d;H(r,function(e,t){e.width||=l,d=e,u+=e.width*(1+o)}),d&&(u-=d.width*o);var f=-u/2;H(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}var r4=t4,i4={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},a4={splitNumber:5},o4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(ck);function s4(e){oN(_2),ZV.registerAxisPointerClass(`PolarAxisPointer`,S2),e.registerCoordinateSystem(`polar`,B2),e.registerComponentModel(C2),e.registerComponentView(o4),xB(e,`angle`,T2,i4),xB(e,`radius`,E2,a4),e.registerComponentView(q2),e.registerComponentView(Q2),e.registerLayout(Au(r4,`bar`))}function c4(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Bu(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=e.get([`axisLabel`,`rotate`]);return i.labelRotate=a===`top`?-u:u,i.z2=1,i}var l4=[`splitArea`,`splitLine`,`breakArea`],u4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new tg;var s=new gV(t,r,c4(t));s.build(),a.add(this._axisGroup),a.add(s.group),H(l4,function(e){t.get([e,`show`])&&d4[e](this,this.group,this._axisGroup,t,r)},this),vC(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){eH(this)},t.type=`singleAxis`,t}(ZV),d4={splitLine:function(e,t,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`);c=c instanceof Array?c:[c];for(var l=s.get(`width`),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),f=[],p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=0;_<m.length;++_){var v=a.toGlobalCoord(m[_].coord);d?(h[0]=v,h[1]=u.y,g[0]=v,g[1]=u.y+u.height):(h[0]=u.x,h[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new vS({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});fC(y.shape,l);var b=p++%c.length;f[b]=f[b]||[],f[b].push(y)}for(var x=s.getLineStyle([`color`]),_=0;_<f.length;++_)t.add(uC(f[_],{style:bu({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){$V(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=bB(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},f4=u4,p4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=`singleAxis`,t.layoutMode=`box`,t.defaultOption={left:`5%`,top:`5%`,right:`5%`,bottom:`5%`,type:`value`,position:`bottom`,orient:`horizontal`,axisLine:{show:!0,lineStyle:{width:1,type:`solid`}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:`auto`},splitLine:{show:!0,lineStyle:{type:`dashed`,opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(tE);Cu(p4,kF.prototype);var m4=p4,h4=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(yI),g4=[`single`],_4=function(){function e(e,t,n){this.type=`single`,this.dimension=`single`,this.dimensions=g4,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new h4(r,_F(e),[0,0],e.get(`type`),e.get(`position`));i.onBand=i.type===`category`&&e.get(`boundaryGap`),i.inverse=e.get(`inverse`),i.orient=e.get(`orient`),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();H(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),gF(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer;this._rect=HT(e.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return n.orient===`horizontal`?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return v4(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return v4(t)===this?this.pointToData(n):null},e}();function v4(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var y4=_4;function b4(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new y4(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,A_).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var x4={create:b4,dimensions:g4},S4=[`x`,`y`],C4=[`width`,`height`],w4=function(e){B(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.coordinateSystem,s=D4(o,1-E4(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=P0(r),d=T4[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}z0(t,e,c4(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=c4(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=R0(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.coordinateSystem,o=E4(i),s=D4(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=D4(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(N0),T4={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:B0([t,n[0]],[t,n[1]],E4(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:V0([t-r/2,n[0]],[r,i],E4(e))}}};function E4(e){return e.isHorizontal()?0:1}function D4(e,t){var n=e.getRect();return[n[S4[t]],n[S4[t]]+n[C4[t]]]}var O4=w4,k4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(ck);function A4(e){oN(_2),ZV.registerAxisPointerClass(`SingleAxisPointer`,O4),e.registerComponentView(k4),e.registerComponentView(f4),e.registerComponentModel(m4),xB(e,`single`,m4,m4.defaultOption),e.registerCoordinateSystem(`single`,x4)}var j4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=XT(t);e.prototype.init.apply(this,arguments),M4(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),M4(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(tE);function M4(e,t){var n=e.cellSize,r=G(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),YT(e,t,{type:`box`,ignoreSize:U([0,1],function(e){return qT(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var N4=j4,P4=function(e){B(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=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new sb({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new mS({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return q(e)&&e?_T(e,t):K(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new Eb({z2:30,style:WC(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||q(a))&&(a&&(t=Aw(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new Eb({z2:30,style:V(WC(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||q(c))&&(c&&(t=Aw(c)||t),c=t.get([`time`,`dayOfWeekShort`])||U(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=Q(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToCalendarLayout([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new Eb({z2:30,style:V(WC(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(ck),F4=864e5,I4=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}return e.getDimensionsInfo=function(){return[{name:`time`,type:`time`},`value`]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=jg(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel(`dayLabel`).get(`firstDay`),this._orient=this._model.get(`orient`),this._lineWidth=this._model.getModel(`itemStyle`).getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];H([0,1],function(e){c(i,e)&&(a[r[e]]=i[e]*o[e])});var s=this._rect=HT(a,{width:t.getWidth(),height:t.getHeight()});H([0,1],function(e){c(i,e)||(i[e]=s[r[e]]/o[e])});function c(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t,n){n||=[],G(e)&&(e=e[0]),t??=!0;var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+F4))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient===`vertical`?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToLayout=function(e,t,n){n||={};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(e,t);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,Af.copy(i,r),TC(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=L4(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=L4(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=L4(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(G(e)&&e.length===1&&(e=e[0]),G(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+`-01-01`,n+`-12-31`]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!==`production`&&gu(`Invalid date range.`),e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/F4)-Math.floor(t[0].time/F4)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){jT({targetModel:t,coordSysType:`calendar`,coordSysProvider:MT})}),r},e.dimensions=[`time`,`value`],e}();function L4(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var R4=I4;function z4(e){e.registerComponentModel(N4),e.registerComponentView(P4),e.registerCoordinateSystem(`calendar`,R4)}var B4={level:1,leaf:2,nonLeaf:3},V4={none:0,all:1,body:2,corner:3};function H4(e,t,n){var r=t[eC[n]].getCell(e);return!r&&Mu(e)&&e<0&&(r=t[eC[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function U4(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function W4(e,t,n,r,i){G4(e[0],t,i,n,r,0),G4(e[1],t,i,n,r,1)}function G4(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=G(o)?o:[o],c=s.length,l=!!n;if(c>=1?(K4(e,t,s,l,i,a,0),c>1&&K4(e,t,s,l,i,a,c-1)):(process.env.NODE_ENV!==`production`&&t&&t.push(`Should be like [["x1", "x2"], ["y1", "y2"]], or ["x1", "y1"], rather than empty.`),e[0]=e[1]=NaN),l){var u=-i[eC[1-a]].getLocatorCount(a),d=i[eC[a]].getLocatorCount(a)-1;n===V4.body?u=gg(0,u):n===V4.corner&&(d=hg(-1,d)),d<u&&(u=d=NaN),zu(e[0])&&(e[0]=u),zu(e[1])&&(e[1]=d),e[0]=gg(hg(e[0],d),u),e[1]=gg(hg(e[1],d),u)}}function K4(e,t,n,r,i,a,o){var s=H4(n[o],i,a);if(!s){process.env.NODE_ENV!==`production`&&!r&&t&&t.push(`Can not find cell by coord[`+a+`][`+o+`].`),e[0]=e[1]=NaN;return}var c=s.id[eC[a]],l=c,u=n3(s);u&&(l+=u.span[eC[a]]-1),e[0]=hg(e[0],c,l),e[1]=gg(e[1],c,l)}function q4(e,t){return zu(e[t][0])||zu(e[t][1])}function J4(e,t,n,r){t||=Y4;for(var i=0;i<r;i++)t[i]=!1;for(;;){for(var a=!1,i=0;i<r;i++){var o=n[i];!t[i]&&o.cellMergeOwner&&X4(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var Y4=[];function X4(e,t){return!Z4(e[0],t[0])||!Z4(e[1],t[1])?!1:(e[0][0]=hg(e[0][0],t[0][0]),e[0][1]=gg(e[0][1],t[0][1]),e[1][0]=hg(e[1][0],t[1][0]),e[1][1]=gg(e[1][1],t[1][1]),!0)}function Z4(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function Q4(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function $4(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function e3(e,t,n,r){var i=H4(t[r][0],n,r),a=H4(t[r][1],n,r);e[eC[r]]=e[tC[r]]=NaN,i&&a&&(e[eC[r]]=i.xy,e[tC[r]]=a.xy+a.wh-i.xy)}function t3(e,t,n,r){return e[eC[t]]=n,e[eC[1-t]]=r,e}function n3(e){return e&&(e.type===B4.leaf||e.type===B4.nonLeaf)?e:null}function r3(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var i3=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=a3(e);var n=t.get(`data`,!0);n!=null&&!G(n)&&(process.env.NODE_ENV!==`production`&&Jg(`Illegal echarts option - matrix.`+this.dim+`.data must be an array if specified.`),n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&H(e,function(e,l){var u=!1,d;q(e)?d={value:e}:Nu(e)?(d=e,e.value!=null&&!q(e.value)&&(u=!0,d={value:null})):(d={value:null},e!=null&&(u=!0)),u&&process.env.NODE_ENV!==`production`&&Jg(`Illegal echarts option - matrix.`+t.dim+`.data[`+l+"] must be `string | {value: string}`.");var f={type:B4.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new ff,span:t3(new ff,t.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:t,rect:r3()};a++,(i[n]||(i[n]=[])).push(f),r[s]||(r[s]={type:B4.level,xy:NaN,wh:NaN,option:null,id:new ff,dim:t});var p=o(d.children,n,s+1),m=Math.max(1,p);f.span[eC[t.dimIdx]]=m,c+=m,n+=m}),c}function s(){for(var e=[];n.length<a;)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=e.length;var s=o.option.value;e.push(s),n.push(o),t._uniqueValueGen.calcDupBase(s)}}t._uniqueValueGen.ensureValueUnique(e,n),t._scale=new xP({ordinalMeta:t._ordinalMeta=new yP({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=B4.leaf,l.span[eC[1-t.dimIdx]]=t._levels.length-l.level}t._initCellsId(),t._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:B4.level,xy:NaN,wh:NaN,option:null,id:new ff,dim:e}],e._initLevelIdOptions(),e._scale=new xP({ordinalMeta:e._ordinalMeta=new yP({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:B4.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new ff,span:t3(new ff,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:r3()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;t3(e.id,n,e.firstLeafLocator,e.level-t)},e.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;H(this._cells,function(n){t3(n.id,t,n.firstLeafLocator,n.level-e)})},e.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get(`levels`,!0);n=G(n)?n:[],H(this._levels,function(r,i){t3(r.id,t,0,i-e),r.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow(`show`,!0)},e.prototype.resetLayoutIterator=function(e,t,n,r){if(e||=new R_,t===this.dimIdx){var i=this._leavesCount,a=n==null?0:Math.max(0,n);r=r==null?i:Math.min(r,i),e.reset(this._cells,a,a+r)}else{var i=this._levels.length,a=n==null?0:Math.max(0,n+i);r=r==null?i:Math.min(r,i),e.reset(this._levels,a,a+r)}return e},e.prototype.resetCellIterator=function(e){return(e||new R_).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new R_).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[eC[t]]=r?r.xy:NaN,e[tC[t]]=r?r.wh:NaN},e.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},e.prototype.getCell=function(e){var t=this._scale.parse(e);return zu(t)?void 0:this._cells[t]},e.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function a3(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=gg(r,+t[1]+1))}function a(){return``+t+ r++}function o(e,t){for(var n=X(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=bu({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var o3=function(){function e(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=X(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!G(n)&&(process.env.NODE_ENV!==`production`&&Jg(`matrix.`+n+`.data must be an array if specified.`),n=null),H(n,function(n,r){if(!Nu(n)||!G(n.coord)){process.env.NODE_ENV!==`production`&&Jg(`Illegal matrix.`+e._kind+`.data[`+r+`], must be a {coord: [...], ...}`);return}var i=U4([]),a=null;if(process.env.NODE_ENV!==`production`&&(a=[]),W4(i,a,n.coord,e._dims,n.coordClamp?V4[e._kind]:V4.none),q4(i,0)||q4(i,1)){process.env.NODE_ENV!==`production`&&Jg(`Can not determine cells by option matrix.`+e._kind+`.data[`+r+`]: `+(``+a.join(` `)));return}var o=n&&n.mergeCells,s={id:new ff,span:new ff,locatorRange:i,option:n,cellMergeOwner:o};Q4(s,i),t.push(s)});for(var i=[],a=0;a<t.length;a++){var o=t[a];if(o.cellMergeOwner){var s=o.locatorRange;J4(s,i,t,a);for(var c=0;c<a;c++)i[c]&&(t[c].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var l=V({},o.option);l.coord=null;var u={id:new ff,span:new ff,locatorRange:s,option:l,cellMergeOwner:!0};Q4(u,s),t.push(u)}}}H(t,function(t){var n=r(t.id.x,t.id.y);if(t.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=t.span,n.locatorRange=t.locatorRange,n.spanRect=r3(),e._cellMergeOwnerList.push(n)),!(!t.cellMergeOwner&&!t.option))for(var i=0;i<t.span.y;i++)for(var a=0;a<t.span.x;a++){var o=r(t.id.x+a,t.id.y+i);o.option=t.option,t.cellMergeOwner&&(o.inSpanOf=n)}})}function r(e,n){var r=c3(e,n),i=t.get(r);return i||=t.set(r,{id:new ff(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(c3(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!q4(e,0)&&!q4(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){s3[0]=e[0][0],s3[1]=e[1][0];var t=this.getCell(s3),n=t&&t.inSpanOf;if(n){$4(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;J4(e,null,r,r.length)},e}(),s3=[];function c3(e,t){return e+`|`+t}var l3={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function u3(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var d3={show:!0,label:l3,itemStyle:u3(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},f3={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:d3,y:d3,body:{label:l3,itemStyle:u3(!1),silent:void 0},corner:{label:l3,itemStyle:u3(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1}},p3=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new m3(this.get(`x`,!0)||{}),y:new m3(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new i3(`x`,e.x),y:e.y.dim=new i3(`y`,e.y)};this._body=new o3(`body`,new mw(this.getShallow(`body`)),t),this._corner=new o3(`corner`,new mw(this.getShallow(`corner`)),t)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type=`matrix`,t.layoutMode=`box`,t.defaultOption=f3,t}(tE),m3=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(mw),h3=p3,g3=Math.round,_3=0,v3=99,y3={normal:25,special:100},b3={normal:50,special:125},x3=function(e){B(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){this.group.removeAll();var n=this.group,r=e.coordinateSystem.getRect(),i=e.getDimensionModel(`x`),a=e.getDimensionModel(`y`),o=i.dim,s=a.dim;S3(n,e,t),C3(n,e,o,s,t);var c=J(e.getShallow(`borderZ2`,!0),v3),l=c-1,u=e.getModel(`backgroundStyle`).getItemStyle([`borderWidth`]);u.lineWidth=0;var d=e.getModel(`backgroundStyle`).getItemStyle([`color`,`decal`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]);d.fill=`none`;var f=k3(r.clone(),u,_3),p=k3(r.clone(),d,c);f.silent=!0,p.silent=!0,n.add(f),n.add(p);var m=o.getUnitLayoutInfo(0,0),h=s.getUnitLayoutInfo(1,0);m&&h&&(o.shouldShow()&&n.add(A3({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(A3({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(ck);function S3(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(eC[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel(`itemStyle`),s=i.getModel(`label`),c=t.getShallow(`tooltip`,!0),l=[],u=a.resetCellIterator();u.next();){var d=u.item,f={};Af.copy(f,d.rect),cd(l,d.id.x,d.id.y),w3(l,t,e,n,d.option,o,s,i,f,d.option.value,b3,c)}}}function C3(e,t,n,r,i){a(`body`,t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a(`corner`,t.getCorner(),r,n);function a(n,r,a,o){var s=new mw(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new R_,d=new R_,f=[],p=t.getShallow(`tooltip`,!0);for(o.resetLayoutIterator(d,1);d.next();)for(a.resetLayoutIterator(u,0);u.next();){var m=u.item,h=d.item;cd(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?Af.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;w3(f,t,e,i,v,c,l,s,_,v?v.value:null,y3,p)}}}}function w3(e,t,n,r,i,a,o,s,c,l,u,d){E3.option=i?i.itemStyle:null,E3.parentModel=a,T3.option=i,T3.parentModel=s;var f=J(T3.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),p=d&&d.show,m=k3(c,E3.getItemStyle(),f);n.add(m);var h=T3.get(`cursor`);h!=null&&m.attr(`cursor`,h);var g;if(l!=null){var _=l+``;if(D3.option=i?i.label:null,D3.parentModel=o,D3.ecModel=r,HC(m,{normal:D3},{defaultText:_,autoOverflowArea:!0,layoutRect:_u(m.shape)}),g=m.getTextContent(),g){g.z2=f+1;var v=g.style;if(v&&v.overflow&&v.overflow!==`none`&&v.lineOverflow){var y={};Af.copy(y,c),TC(y,(m.style?.lineWidth||0)/2,!0,!0),m.updateInnerText(),g.getLocalTransform(O3),df(O3,O3),Af.applyTransform(y,y,O3),g.setClipPath(new sb({shape:y}))}}OC({el:m,componentModel:t,itemName:_,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}if(g){var b=D3.get(`silent`);b??=!p,g.silent=b,g.ignoreHostSilent=!0}var x=T3.get(`silent`);x??=!m.style||m.style.fill===`none`||!m.style.fill,m.silent=x,z_(T3),z_(E3),z_(D3)}var T3=new mw,E3=new mw,D3=new mw,O3=[];function k3(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=rb(e.x,r,!0),e.y=rb(e.y,r,!0),e.width=rb(i,r,!0)-e.x,e.height=rb(a,r,!0)-e.y}return new sb({shape:e,style:t,z2:n})}function A3(e,t,n){var r=t.lineWidth;return r&&(g3(e.x1*2)===g3(e.x2*2)&&(e.x1=e.x2=rb(e.x1,r,!0)),g3(e.y1*2)===g3(e.y2*2)&&(e.y1=e.y2=rb(e.y1,r,!0))),new vS({shape:e,style:t,silent:!0,z2:n})}var j3=x3,M3=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type=`matrix`,this._model=t;var i=this._dimModels={x:t.getDimensionModel(`x`),y:t.getDimensionModel(`y`)};this._dims={x:i.x.dim,y:i.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:`x`,type:`ordinal`},{name:`y`,type:`ordinal`},{name:`value`}]},e.create=function(t,n){var r=[];return t.eachComponent(`matrix`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){jT({targetModel:t,coordSysType:`matrix`,coordSysProvider:MT})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=HT(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});I3(r,n,i,0),I3(r,n,i,1),L3(0,n),L3(1,n),R3(this._model.getBody(),n),R3(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,N3),n[0]=N3.rect.x+N3.rect.width/2,n[1]=N3.rect.y+N3.rect.height/2,n},e.prototype.dataToLayout=function(e,t,n){var r=this._dims;n||={};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=U4(n.matrixXYLocatorRange);return G(e)?(W4(a,null,e,r,J(t&&t.clamp,V4.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==V4.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==V4.body)&&this._model.getCorner().expandRangeByCellMerge(a)),e3(i,a,r,0),e3(i,a,r,1),n):(process.env.NODE_ENV!==`production`&&Jg("Input data must be an array in `convertToLayout`, `convertToPixel`"),n)},e.prototype.pointToData=function(e,t,n){var r=this._dims;return G3(W3,0,r,e,t&&t.clamp),G3(W3,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,W3.y===U3.inCorner&&W3.x===U3.inBody?K3(W3,n,0,r):W3.x===U3.inCorner&&W3.y===U3.inBody?K3(W3,n,1,r):(q3(W3,n,0,r),q3(W3,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=H3(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=H3(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=H3(t);return i===this?i.pointToData(n,r):void 0},e.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},e.dimensions=[`x`,`y`,`value`],e}(),N3={rect:r3()},P3=new R_,F3=new R_;function I3(e,t,n,r){for(var i=1-r,a=t[eC[r]],o=t[eC[i]],s=o.shouldShow(),c=a.resetCellIterator();c.next();)c.item.wh=c.item.xy=NaN;for(var l=o.resetLayoutIterator(null,r);l.next();)l.item.wh=l.item.xy=NaN;for(var u=n[tC[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new mw,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[eC[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new mw,h=a.resetCellIterator();h.next();)h.item.type===B4.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=B3(t,r,n);zu(i)||(e.wh=V3(i,u),u=V3(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[eC[r]],b=a.getLocatorCount(r)-1,x=new R_;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){zu(e.wh)&&(e.wh=_),e.xy=y,e.id[eC[r]]===b&&!v&&(e.wh=n[eC[r]]+n[tC[r]]-e.xy),y+=e.wh}}function L3(e,t){for(var n=t[eC[e]].resetCellIterator();n.next();){var r=n.item;z3(r.rect,e,r.id,r.span,t),z3(r.rect,1-e,r.id,r.span,t),r.type===B4.nonLeaf&&(r.xy=r.rect[eC[e]],r.wh=r.rect[tC[e]])}}function R3(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;z3(r,0,i,n,t),z3(r,1,i,n,t)}})}function z3(e,t,n,r,i){e[tC[t]]=0;var a=n[eC[t]]<0?i[eC[1-t]]:i[eC[t]],o=a.getUnitLayoutInfo(t,n[eC[t]]);if(e[eC[t]]=o.xy,e[tC[t]]=o.wh,r[eC[t]]>1){var s=a.getUnitLayoutInfo(t,n[eC[t]]+r[eC[t]]-1);e[tC[t]]=s.xy+s.wh-o.xy}}function B3(e,t,n){return V3(bg(e,n[tC[t]]),n[tC[t]])}function V3(e,t){return Math.max(Math.min(e,J(t,1/0)),0)}function H3(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var U3={inBody:1,inCorner:2,outside:3},W3={x:null,y:null,point:[]};function G3(e,t,n,r,i){var a=n[eC[t]],o=n[eC[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[eC[t]]=U3.outside;return}if(i===V4.body){c?(e[eC[t]]=U3.inBody,d=hg(s.xy+s.wh,gg(c.xy,d)),e.point[t]=d):e[eC[t]]=U3.outside;return}else if(i===V4.corner){u?(e[eC[t]]=U3.inCorner,d=hg(u.xy+u.wh,gg(l.xy,d)),e.point[t]=d):e[eC[t]]=U3.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(d<p){if(!i){e[eC[t]]=U3.outside;return}d=p}else if(d>m){if(!i){e[eC[t]]=U3.outside;return}d=m}e.point[t]=d,e[eC[t]]=f<=d&&d<=m?U3.inBody:p<=d&&d<=f?U3.inCorner:U3.outside}function K3(e,t,n,r){var i=1-n;if(e[eC[n]]!==U3.outside)for(r[eC[n]].resetCellIterator(F3);F3.next();){var a=F3.item;if(Y3(e.point[n],a.rect,n)&&Y3(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[eC[i]];return}}}function q3(e,t,n,r){if(e[eC[n]]!==U3.outside){for((e[eC[n]]===U3.inCorner?r[eC[1-n]]:r[eC[n]]).resetLayoutIterator(P3,n);P3.next();)if(J3(e.point[n],P3.item)){t[n]=P3.item.id[eC[n]];return}}}function J3(e,t){return t.xy<=e&&e<=t.xy+t.wh}function Y3(e,t,n){return t[eC[n]]<=e&&e<=t[eC[n]]+t[tC[n]]}var X3=M3;function Z3(e){e.registerComponentModel(h3),e.registerComponentView(j3),e.registerCoordinateSystem(`matrix`,X3)}function Q3(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function $3(e,t){var n;return H(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function e6(e,t,n){var r=V({},n),i=e[t],a=n.$action||`merge`;if(a===`merge`)if(i){if(process.env.NODE_ENV!==`production`){var o=n.type;Y(!o||i.type===o,'Please set $action: "replace" to change `type`')}vu(i,r,!0),YT(i,r,{ignoreSize:!0}),ZT(n,i),r6(n,i),r6(n,i,`shape`),r6(n,i,`style`),r6(n,i,`extra`),n.clipPath=i.clipPath}else e[t]=r;else a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var t6=[`transition`,`enterFrom`,`leaveTo`],n6=t6.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function r6(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?t6:n6,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function i6(e,t){if(e&&(e.hv=t.hv=[$3(t,[`left`,`right`]),$3(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var a6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=s_(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];H(o,function(e,t){var n=e.newOption;process.env.NODE_ENV!==`production`&&Y(Nu(n)||e.existing,`Empty graphic option definition`),n&&(s.push(n),Q3(e,n),e6(i,t,n),i6(i[t],n))},this),n.elements=Eu(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){H(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(tE),o6={path:null,compoundPath:null,group:tg,image:Qy,text:Eb},s6=E_(),c6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=X()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);H(t,function(t){var o=g_(t.id,null),s=o==null?null:n.get(o),c=g_(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&i1(d,u,!!p,!!f)){var m=a1(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=p6(t);process.env.NODE_ENV!==`production`&&s&&Y(l===s.parent,`Changing parent is not supported.`);var g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=u6(o,l,t.type,n):(b&&(s6(b).isNew=!1),L1(b)),b&&(_1(b,h,e,{isInit:y}),f6(b,t,i,a))}else if(v){d6(s,t,n,e);var x=u6(o,l,t.type,n);x&&(_1(x,h,e,{isInit:!0}),f6(x,t,i,a))}else g===`remove`&&(v1(s,t),d6(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new Eb(f))}else v&&S.setTextContent(new Eb(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||s6(D).type!==T,E=y?l6(T):D}else v&&(y=!0,E=l6(T));S.setClipPath(E),_1(E,w,e,{isInit:y}),R1(E,w.keyframeAnimation,e)}var O=s6(S);S.setTextConfig(p),O.option=t,m6(S,e,t),OC({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),R1(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=g_(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=s6(d),h=s6(f);m.width=Q(m.option.width,p?a:h.width)||0,m.height=Q(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=g_(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=s6(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=KT(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!s6(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(b1(y)||xu(y,S)>=0)?b[S]=C:d[S]=C}WS(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){d6(n,s6(n).option,t,e._lastGraphicModel)}),this._elMap=X()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(ck);function l6(e){process.env.NODE_ENV!==`production`&&Y(e,`graphic type MUST be set`);var t=Z(o6,e)?o6[e]:oC(e);process.env.NODE_ENV!==`production`&&Y(t,`graphic type `+e+` can not be found`);var n=new t({});return s6(n).type=e,n}function u6(e,t,n,r){var i=l6(n);return t.add(i),r.set(e,i),s6(i).id=e,s6(i).isNew=!0,i}function d6(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){d6(e,t,n,r)}),y1(e,t,r),n.removeKey(s6(e).id))}function f6(e,t,n,r){e.isGroup||H([[`cursor`,zv.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Z(t,r)?e[r]=J(t[r],n[1]):e[r]??(e[r]=n[1])}),H(Ou(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=K(r)?r:null}}),Z(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function p6(e){return e=V({},e),H([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(FT),function(t){delete e[t]}),e}function m6(e,t,n){var r=Db(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Db(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function h6(e){e.registerComponentModel(a6),e.registerComponentView(c6),e.registerPreprocessor(function(e){var t=e.graphic;G(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var g6=[`x`,`y`,`radius`,`angle`,`single`],_6=[`cartesian2d`,`polar`,`singleAxis`];function v6(e){return xu(_6,e.get(`coordinateSystem`))>=0}function y6(e){return process.env.NODE_ENV!==`production`&&Y(e),e+`Axis`}function b6(e,t){var n=X(),r=[],i=X();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function x6(e){var t=e.ecModel,n={infoList:[],infoMap:X()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(y6(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var S6=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),C6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=w6(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=w6(e);vu(this.option,e,!0),vu(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;H([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=X();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return H(g6,function(n){var r=this.getReferringComponents(y6(n),j_);if(r.specified){t=!0;var i=new S6;H(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new S6;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,A_).models[0];o&&H(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,A_).models[0]&&a.add(e.componentIndex)})}}}r&&H(g6,function(t){if(r){var i=n.findComponents({mainType:y6(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new S6;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);H([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(y6(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){H(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&Y(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(y6(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;H([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;H([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!==`production`&&Y(this._orient),this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(tE);function w6(e){var t={};return H([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var T6=C6,E6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(T6),D6=function(e){B(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,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(ck),O6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(D6),k6=H,A6=Sg,j6=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(v6(t)){var n=y6(this._dimName),r=t.getReferringComponents(n,A_).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return _u(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;k6([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u??=i[l],d=n.parse(vg(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=vg(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),A6(o),A6(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;hY(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=vg(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=M6(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;k6(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=U(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else k6(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});k6(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;k6([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=vg(i,[0,100],n,!0)-n[0]):i=vg(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Tg(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function M6(e,t,n){var r=[1/0,-1/0];k6(n,function(e){wF(r,e.getData(),t)});var i=e.getAxisModel(),a=fF(i.axis.scale,i,r).calculate();return[a.min,a.max]}var N6=j6,P6={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(y6(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new N6(t,r,a,e),n.push(i.__dzAxisProxy))});var r=X();return H(n,function(e){H(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function F6(e){e.registerAction(`dataZoom`,function(e,t){H(b6(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var I6=!1;function L6(e){I6||(I6=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,P6),F6(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function R6(e){e.registerComponentModel(E6),e.registerComponentView(O6),L6(e)}var z6=function(){function e(){}return e}(),B6={};function V6(e,t){B6[e]=t}function H6(e){return B6[e]}var U6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;H(this.option.feature,function(e,n){var r=H6(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),vu(e,r.defaultOption))})},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}(tE);function W6(e,t){var n=fT(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new sb({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var G6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];H(s,function(e,t){l.push(t)}),new lN(this._featureNames||[],l).add(u).update(u).remove(Au(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new mw(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(K6(o))m={onclick:p.option.onclick,featureName:o};else{var h=H6(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=gw(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof z6;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?ex:tx)(r[e])},m instanceof z6&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof z6&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;q(d)?(p={},p[c]=d):p=d,q(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};H(p,function(c,d){var f=bC(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Eb({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:QC({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),OC({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?ex:tx)(f),i.add(f),f.on(`click`,W(s.onclick,s,t,n,d)),h[d]=f})}var f=GT(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=HT(p,f,m);RT(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),KT(i,p,f,m),i.add(W6(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!K(c)&&t){var l=c.style||={},u=Nh(t,Eb.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){H(this._features,function(e){e instanceof z6&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){H(this._features,function(n){n instanceof z6&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){H(this._features,function(n){n instanceof z6&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(ck);function K6(e){return e.indexOf(`my`)===0}var q6=G6,J6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Ql.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(z6),Y6=`__ec_magicType_stack__`,X6=[[`line`,`bar`],[`stack`]],Z6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return H(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(Q6[n]){var a={series:[]};H(X6,function(e){xu(e,n)>=0&&H(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=Q6[n](t,i,e,r);o&&(bu(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,A_).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=vu({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(z6),Q6={line:function(e,t,n,r){if(e===`bar`)return vu({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return vu({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===Y6;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),vu({id:t,stack:i?``:Y6},r.get([`option`,`stack`])||{},!0)}};JM({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var $6=Z6,e8=Array(60).join(`-`),t8=` `;function n8(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function r8(e){var t=[];return H(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(U(e.series,function(e){return e.name})),o=[r.model.getCategories()];H(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(t8)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(t8))}t.push(s.join(`
|
|
61
|
+
`];function BO(e,t){return t.type=e,t}function VO(e){return e.type===`section`}function HO(e){return VO(e)?Tne:Ene}function UO(e){if(VO(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return H(e.blocks,function(e){var n=UO(e);n>=t&&(t=n+ +(r&&(!n||VO(e)&&!e.noHeader)))}),t}return 0}function Tne(e,t,n,r){var i=t.noHeader,a=Dne(UO(t)),o=[],s=t.blocks||[];Y(!s||G(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Z(l,c)){var u=new SO(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}H(s,function(n,i){var s=t.valueFormatter,c=HO(n)(s?V(V({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):GO(r,o.join(``),i?n:a.html);if(i)return d;var f=pT(t.header,`ordinal`,e.useUTC),p=zO(r,e.renderMode).nameStyle,m=RO(r);return e.renderMode===`richText`?KO(e,f,p)+a.richText+d:GO(r,`<div style="`+p+`;`+m+`;">`+Bd(f)+`</div>`+d,n)}function Ene(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=G(e)?e:[e],U(e,function(e,t){return pT(e,G(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:pT(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=zO(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:KO(e,f,v))+(o?``:Ane(e,m,h,g,y)):GO(r,(s?``:d)+(a?``:One(f,!s,v))+(o?``:kne(m,h,g,y)),n)}}function WO(e,t,n,r,i,a){if(e)return HO(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Dne(e){return{html:Cne[e],richText:wne[e]}}function GO(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=RO(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function One(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Bd(e)+`</span>`}function kne(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=G(e)?e:[e],`<span style="`+i+`;`+r+`">`+U(e,function(e){return Bd(e)}).join(` `)+`</span>`}function KO(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ane(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(` `):t,a)}function qO(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return yT(n)}function JO(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var YO=function(){function e(){this.richTextStyles={},this._nextStyleNameId=zg()}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=vT({color:t,type:e,renderMode:n,markerId:r});return q(i)?i:(process.env.NODE_ENV!==`production`&&Y(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};G(t)?H(t,function(e){return V(n,e)}):V(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function XO(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=G(s),l=qO(t,n),u,d,f,p;if(o>1||c&&!o){var m=jne(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=dO(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=y_(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return BO(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[BO(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Wu(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function jne(e,t,n,r,i){var a=t.getData(),o=Tu(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?H(r,function(e){u(dO(a,n,e),e)}):H(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(BO(`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 ZO=E_();function QO(e,t){return e.getName(t)||e.getId(t)}var $O=`__universalTransitionEnabled`,ek=function(e){B(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=hO({count:Nne,reset:Pne}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ZO(this).sourceManager=new PO(this)).prepareSource();var r=this.getInitialData(e,n);nk(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&Y(r,`getInitialData returned invalid data.`),ZO(this).dataBeforeProcessed=r,tk(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=JT(this),r=n?XT(e):{},i=this.subType;tE.hasClass(i)&&(i+=`Series`),vu(e,t.getTheme().get(this.subType)),vu(e,this.getDefaultOption()),r_(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&YT(e,r,n)},t.prototype.mergeOption=function(e,t){e=vu(this.option,e,!0),this.fillDataTextStyle(e.data);var n=JT(this);n&&YT(this.option,e,n);var r=ZO(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);nk(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ZO(this).dataBeforeProcessed=i,tk(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Fu(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&r_(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=ik(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ZO(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=ik(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}ZO(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return X(e)},t.prototype.getSourceManager=function(){return ZO(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ZO(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 XO({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ql.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=NE.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=QO(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=Ou(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[QO(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`){Nu(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=QO(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=QO(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 tE.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}(tE);Cu(ek,pO),Cu(ek,NE),J_(ek,tE);function tk(e){var t=e.name;y_(e)||(e.name=Mne(e)||t)}function Mne(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return H(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Nne(e){return e.model.getRawData().count()}function Pne(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Fne}function Fne(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function nk(e,t){H(Qu(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Au(rk,t))})}function rk(e,t){var n=ik(e);return n&&n.setOutputEnd((t||this).count()),t}function ik(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 ak=ek,ok=function(){function e(){this.group=new tg,this.uid=gw(`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}();K_(ok),$_(ok);var sk=ok;function ck(){var e=E_();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 lk=E_(),uk=ck(),dk=function(){function e(){this.group=new tg,this.uid=gw(`viewChart`),this.renderTask=hO({plan:mk,reset:hk}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Jg(`Unknown dataType `+r.dataType);return}pk(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Jg(`Unknown dataType `+r.dataType);return}pk(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){AC(this.group,e)},e.markUpdateMethod=function(e,t){lk(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function fk(e,t,n){e&&vx(e)&&(t===`emphasis`?ex:tx)(e,n)}function pk(e,t,n){var r=T_(e,t),i=t&&t.highlightKey!=null?Lte(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){fk(e,n,i)}):H(n_(r),function(t){fk(e.getItemGraphicEl(t),n,i)})}K_(dk,[`dispose`]),$_(dk);function mk(e){return uk(e.model)}function hk(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&lk(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),gk[c]}var gk={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)}}},_k=dk,vk=`\0__throttleOriginMethod`,yk=`\0__throttleRate`,bk=`\0__throttleType`;function xk(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(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):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 Sk(e,t,n,r){var i=e[t];if(i){var a=i[vk]||i,o=i[bk];if(i[yk]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=xk(a,n,r===`debounce`),i[vk]=a,i[bk]=r,i[yk]=n}return i}}function Ck(e,t){var n=e[t];n&&n[vk]&&(n.clear&&n.clear(),e[t]=n[vk])}var wk=E_(),Tk={itemStyle:ev(uw,!0),lineStyle:ev(sw,!0)},Ek={lineStyle:`stroke`,itemStyle:`fill`};function Dk(e,t){return e.visualStyleMapper||Tk[t]||(console.warn(`Unknown style type '`+t+`'.`),Tk.itemStyle)}function Ok(e,t){return e.visualDrawType||Ek[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var kk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Dk(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Ok(e,r),c=a[s],l=K(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`||K(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||K(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=V({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Ak=new mw,jk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Dk(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Ak.option=n[r];var o=i(Ak);V(e.ensureUniqueItemVisual(t,`style`),o),Ak.option.decal&&(e.setItemVisual(t,`decal`,Ak.option.decal),Ak.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Mk={performRawSeries:!0,overallReset:function(e){var t=X();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)),wk(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=wk(t).scope,o=Ok(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)}})}})}},Nk=Math.PI;function Pk(e,t){t||={},bu(t,{text:`loading`,textColor:$.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tg,r=new sb({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Eb({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 sb({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 TS({shape:{startAngle:-Nk/2,endAngle:-Nk/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:Nk*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Nk*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 Fk=function(){function e(e,t,n,r){this._stageTaskMap=X(),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=X();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;H(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),Y(!(r.reset&&r.overallReset),a),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;H(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=X(),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)||hO({plan:Bk,reset:Vk,count:Wk}));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||hO({reset:Ik});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=X(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),Y(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):(u=!1,H(n.getSeries(),p));function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,hO({reset:Lk,onDirty:zk})));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 K(e)&&(e={overallReset:e,seriesType:Gk(e)}),e.uid=gw(`stageHandler`),t&&(e.visualType=t),e},e}();function Ik(e){e.overallReset(e.ecModel,e.api,e.payload)}function Lk(e){return e.overallProgress&&Rk}function Rk(){this.agent.dirty(),this.getDownstream().dirty()}function zk(){this.agent&&this.agent.dirty()}function Bk(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Vk(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=n_(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?U(t,function(e,t){return Uk(t)}):Hk}var Hk=Uk(0);function Uk(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 Wk(e){return e.data.count()}function Gk(e){Jk=null;try{e(Kk,qk)}catch{}return Jk}var Kk={},qk={},Jk;Yk(Kk,$E),Yk(qk,tD),Kk.eachSeriesByType=Kk.eachRawSeriesByType=function(e){Jk=e},Kk.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Jk=e.subType)};function Yk(e,t){for(var n in t.prototype)e[n]=td}var Xk=Fk,Zk=$.darkColor,Qk=Zk.background,$k=function(){return{axisLine:{lineStyle:{color:Zk.axisLine}},splitLine:{lineStyle:{color:Zk.axisSplitLine}},splitArea:{areaStyle:{color:[Zk.backgroundTint,Zk.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Zk.axisMinorSplitLine}},axisLabel:{color:Zk.axisLabel},axisName:{}}},eA={label:{color:Zk.secondary},itemStyle:{borderColor:Zk.borderTint},dividerLineStyle:{color:Zk.border}},tA={darkMode:!0,color:Zk.theme,backgroundColor:Qk,axisPointer:{lineStyle:{color:Zk.border},crossStyle:{color:Zk.borderShade},label:{color:Zk.tertiary}},legend:{textStyle:{color:Zk.secondary},pageTextStyle:{color:Zk.tertiary}},textStyle:{color:Zk.secondary},title:{textStyle:{color:Zk.primary},subtextStyle:{color:Zk.quaternary}},toolbox:{iconStyle:{borderColor:Zk.accent50}},tooltip:{backgroundColor:Zk.neutral20,defaultBorderColor:Zk.border,textStyle:{color:Zk.tertiary}},dataZoom:{borderColor:Zk.accent10,textStyle:{color:Zk.tertiary},brushStyle:{color:Zk.backgroundTint},handleStyle:{color:Zk.neutral00,borderColor:Zk.accent20},moveHandleStyle:{color:Zk.accent40},emphasis:{handleStyle:{borderColor:Zk.accent50}},dataBackground:{lineStyle:{color:Zk.accent30},areaStyle:{color:Zk.accent20}},selectedDataBackground:{lineStyle:{color:Zk.accent50},areaStyle:{color:Zk.accent30}}},visualMap:{textStyle:{color:Zk.secondary},handleStyle:{borderColor:Zk.neutral30}},timeline:{lineStyle:{color:Zk.accent10},label:{color:Zk.tertiary},controlStyle:{color:Zk.accent30,borderColor:Zk.accent30}},calendar:{itemStyle:{color:Zk.neutral00,borderColor:Zk.neutral20},dayLabel:{color:Zk.tertiary},monthLabel:{color:Zk.secondary},yearLabel:{color:Zk.secondary}},matrix:{x:eA,y:eA,backgroundColor:{borderColor:Zk.axisLine},body:{itemStyle:{borderColor:Zk.borderTint}}},timeAxis:$k(),logAxis:$k(),valueAxis:$k(),categoryAxis:$k(),line:{symbol:`circle`},graph:{color:Zk.theme},gauge:{title:{color:Zk.secondary},axisLine:{lineStyle:{color:[[1,Zk.neutral05]]}},axisLabel:{color:Zk.axisLabel},detail:{color:Zk.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Zk.background}},radar:function(){var e=$k();return e.axisName={color:Zk.axisLabel},e.axisLine.lineStyle.color=Zk.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Zk.neutral20,textStyle:{color:Zk.secondary}},emphasis:{itemStyle:{color:Zk.neutral30}}}},sunburst:{itemStyle:{borderColor:Zk.background}},map:{itemStyle:{borderColor:Zk.border,areaColor:Zk.neutral10},label:{color:Zk.tertiary},emphasis:{label:{color:Zk.primary},itemStyle:{areaColor:Zk.highlight}},select:{label:{color:Zk.primary},itemStyle:{areaColor:Zk.highlight}}},geo:{itemStyle:{borderColor:Zk.border,areaColor:Zk.neutral10},emphasis:{label:{color:Zk.primary},itemStyle:{areaColor:Zk.highlight}},select:{label:{color:Zk.primary},itemStyle:{color:Zk.highlight}}}};tA.categoryAxis.splitLine.show=!1;var nA=tA,rA=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(q(e)){var i=U_(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};H(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}(),iA=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],aA=iA.concat([`symbolKeepAspect`]),oA={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<iA.length;o++){var s=iA[o],c=e.get(s);K(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(V({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=Ou(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}}},sA={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<aA.length;r++){var i=aA[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function cA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function lA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}function uA(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:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function dA(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}H([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=V({},t),process.env.NODE_ENV!==`production`&&Xg(t.type,e[1]),i.dispatchAction(V(t,{type:e[1],seriesIndex:n(r,t)}))})})}function fA(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Yg(`event `+a+` is deprecated.`),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=T_(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:G(l)?c.getName(l[0]):c.getName(l),selected:q(r)?r:V({},r)})}}))}function pA(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(fA(`map`,`selectchanged`,t,r,e),fA(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(fA(`map`,`selected`,t,r,e),fA(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(fA(`map`,`unselected`,t,r,e),fA(`pie`,`unselected`,t,r,e))})}function mA(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var hA=Math.round(Math.random()*9),gA=typeof Object.defineProperty==`function`,_A=function(){function e(){this._id=`__ec_inner_`+ hA++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return gA?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}(),vA=Wy.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()}}),yA={line:vS,rect:sb,roundRect:sb,square:sb,circle:zx,diamond:Wy.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()}}),pin:Wy.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()}}),arrow:Wy.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()}}),triangle:vA},bA={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}},xA={};H(yA,function(e,t){xA[t]=new e});var SA=Wy.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Rh(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=xA[r];i||=(r=`rect`,xA[r]),bA[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function CA(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||$.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function wA(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?cC(e.slice(8),new Af(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?sC(e.slice(7),{},new Af(t,n,r,i),o?`center`:`cover`):new SA({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=CA,a&&c.setColor(a),c}function TA(e){return G(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function EA(e,t){if(e!=null)return G(e)||(e=[e,e]),[Q(e[0],t[0])||0,Q(J(e[1],e[0]),t[1])||0]}function DA(e){return isFinite(e)}function OA(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=DA(r)?r:0,i=DA(i)?i:1,a=DA(a)?a:0,o=DA(o)?o:0,e.createLinearGradient(r,a,i,o)}function kA(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=DA(o)?o:.5,s=DA(s)?s:.5,c=c>=0&&DA(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function AA(e,t,n){for(var r=t.type===`radial`?kA(e,t,n):OA(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function jA(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 MA(e){return parseInt(e,10)}function NA(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]||MA(s[r])||MA(e.style[r]))-(MA(s[a])||0)-(MA(s[o])||0)|0}function PA(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Mu(e)?[e]:G(e)?e:null}function FA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&PA(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=U(n,function(e){return e/i}),r/=i)}return[n,r]}var IA=new yy(!0);function LA(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function RA(e){return typeof e==`string`&&e!==`none`}function zA(e){var t=e.fill;return t!=null&&t!==`none`}function BA(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 VA(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 HA(e,t,n){var r=av(t.image,t.__image,n);if(sv(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)*nd),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function UA(e,t,n,r){var i,a=LA(n),o=zA(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||IA,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?AA(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?AA(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?HA(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?HA(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=FA(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&&VA(e,n),o&&BA(e,n)):(o&&BA(e,n),a&&VA(e,n))),w&&e.setLineDash([])}function WA(e,t,n){var r=t.__image=av(n.image,t.__image,t,t.onload);if(!(!r||!sv(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 GA(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=FA(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(LA(n)&&e.strokeText(i,n.x,n.y),zA(n)&&e.fillText(i,n.x,n.y)):(zA(n)&&e.fillText(i,n.x,n.y),LA(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var KA=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],qA=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function JA(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){aj(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?jv.opacity:o}(r||t.blend!==n.blend)&&(a||=(aj(e,i),!0),e.globalCompositeOperation=t.blend||jv.blend);for(var s=0;s<KA.length;s++){var c=KA[s];(r||t[c]!==n[c])&&(a||=(aj(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(aj(e,i),!0),e.shadowColor=t.shadowColor||jv.shadowColor),a}function YA(e,t,n,r,i){var a=oj(t,i.inHover),o=r?null:n&&oj(n,i.inHover)||{};if(a===o)return!1;var s=JA(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(aj(e,i),!0),RA(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(aj(e,i),!0),RA(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(aj(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||=(aj(e,i),!0),e.lineWidth=c)}for(var l=0;l<qA.length;l++){var u=qA[l],d=u[0];(r||a[d]!==o[d])&&(s||=(aj(e,i),!0),e[d]=a[d]||u[1])}return s}function XA(e,t,n,r,i){return JA(e,oj(t,i.inHover),n&&oj(n,i.inHover),r,i)}function ZA(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 QA(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),ZA(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function $A(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)}var ej=1,tj=2,nj=3,rj=4;function ij(e){var t=zA(e),n=LA(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 aj(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function oj(e,t){return t&&e.__hoverStyle||e.style}function sj(e,t){cj(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cj(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||jA(a,o))&&(o&&o.length&&(aj(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(aj(e,n),e.save(),QA(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 Wy&&t.autoBatch&&ij(t.style);s||$A(i,l.transform)?(aj(e,n),ZA(e,t)):u||aj(e,n);var d=oj(t,n.inHover);t instanceof Wy?(n.lastDrawType!==ej&&(c=!0,n.lastDrawType=ej),YA(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),UA(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof qy?(n.lastDrawType!==nj&&(c=!0,n.lastDrawType=nj),YA(e,t,l,c,n),GA(e,t,d)):t instanceof Qy?(n.lastDrawType!==tj&&(c=!0,n.lastDrawType=tj),XA(e,t,l,c,n),WA(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==rj&&(c=!0,n.lastDrawType=rj),lj(e,t,n)),u&&r&&aj(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function lj(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(),cj(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(),cj(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var uj=new _A,dj=new Ip(100),fj=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function pj(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&uj.delete(e);var a=uj.get(e);if(a)return a;var o=bu(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,uj.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<fj.length;++s){var c=o[fj[s]];if(c!=null&&!G(c)&&!q(c)&&!Mu(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=dj.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=hj(o.dashArrayX),f=gj(o.dashArrayY),p=mj(o.symbol),m=_j(d),h=vj(f),g=!i&&nu.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&dj.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Vg(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Vg(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=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=wA(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else sj(y,u)}}}}function mj(e){if(!e||e.length===0)return[[`rect`]];if(q(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!q(e[n])){t=!1;break}if(t)return mj([e]);for(var r=[],n=0;n<e.length;++n)q(e[n])?r.push([e[n]]):r.push(e[n]);return r}function hj(e){if(!e||e.length===0)return[[0,0]];if(Mu(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Mu(e[r])){n=!1;break}if(n)return hj([e]);for(var i=[],r=0;r<e.length;++r)if(Mu(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=U(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function gj(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Mu(e)){var t=Math.ceil(e);return[t,t]}var n=U(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function _j(e){return U(e,function(e){return vj(e)})}function vj(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function yj(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=pj(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=pj(i,t)}}})}var bj=new Ed,xj={};function Sj(e,t){process.env.NODE_ENV!==`production`&&xj[e]&&Jg(`Already has an implementation of `+e+`.`),xj[e]=t}function Cj(e){return process.env.NODE_ENV!==`production`&&(xj[e]||Jg(`Implementation of `+e+` doesn't exists.`)),xj[e]}var wj={};function Tj(e,t){wj[e]=t}function Ej(e){return wj[e]}var Dj=1,Oj=800,kj=900,Aj=1e3,jj=2e3,Mj=5e3,Nj=1e3,Pj=1100,Fj=2e3,Ij=3e3,Lj=4e3,Rj=4500,zj=4600,Bj=5e3,Vj=6e3,Hj=7e3,Uj={PROCESSOR:{FILTER:Aj,SERIES_FILTER:Oj,STATISTIC:Mj},VISUAL:{LAYOUT:Nj,PROGRESSIVE_LAYOUT:Pj,GLOBAL:Fj,CHART:Ij,POST_CHART_LAYOUT:zj,COMPONENT:Lj,BRUSH:Bj,CHART_ITEM:Rj,ARIA:Vj,DECAL:Hj}},Wj=`__flagInMainProcess`,Gj=`__mainProcessVersion`,Kj=`__pendingUpdate`,qj=`__needsUpdateStatus`,Jj=/^[a-zA-Z0-9_]+$/,Yj=`__connectUpdateStatus`,Xj=0,Zj=1,Qj=2;function $j(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){EM(this.id);return}return tM(this,e,t)}}function eM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return tM(this,e,t)}}function tM(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ed.prototype[t].apply(e,n)}var nM=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ed),rM=nM.prototype;rM.on=eM(`on`),rM.off=eM(`off`);var iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM=function(e){B(t,e);function t(t,n,r){var i=e.call(this,new rA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[Gj]=1,process.env.NODE_ENV!==`production`){var c=Ql.hasGlobalWindow?window:global;c&&(a=J(c.__ECHARTS__DEFAULT__RENDERER__,a),o=J(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=J(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&dg(function(e){var t=Db(e),n=t.dataIndex;if(n!=null){var r=X();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=sg(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:J(r.useDirtyRect,s),useCoarsePointer:J(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=xk(W(l.flush,l),17),i._updateTheme(n),i._locale=kw(r.locale||Dw),i._coordSysMgr=new NT;var u=i._api=vM(i);function d(e,t){return e.__prio-t.__prio}return Qf(MM,d),Qf(AM,d),i._scheduler=new Xk(i,u,AM,MM),i._messageCenter=new nM,i._initEvents(),i.resize=W(i.resize,i),l.animation.on(`frame`,i._onframe,i),pM(l,i),mM(l,i),Ku(i),i}return t.prototype._onframe=function(){if(!this._disposed){xM(this);var e=this._scheduler;if(this[Kj]){var t=this[Kj].silent;this[Wj]=!0,SM(this);try{iM(this),sM.update.call(this,null,this[Kj].updateParams)}catch(e){throw this[Wj]=!1,this[Kj]=null,e}this._zr.flush(),this[Wj]=!1,this[Kj]=null,dM.call(this,t),fM.call(this,t)}else if(e.unfinished){var n=Dj,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),lM(this,r),e.performVisualTasks(r),_M(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[Wj]){process.env.NODE_ENV!==`production`&&Jg("`setOption` should not be called during main process.");return}if(this._disposed){EM(this.id);return}var r,i,a;if(Nu(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Wj]=!0,SM(this),!this._model||t){var o=new cD(this._api),s=this._theme,c=this._model=new $E;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},jM);var l={seriesTransition:a,optionChanged:!0};if(n)this[Kj]={silent:r,updateParams:l},this[Wj]=!1,this.getZr().wakeUp();else{try{iM(this),sM.update.call(this,null,l)}catch(e){throw this[Kj]=null,this[Wj]=!1,e}this._ssr||this._zr.flush(),this[Kj]=null,this[Wj]=!1,dM.call(this,r),fM.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[Wj]){process.env.NODE_ENV!==`production`&&Jg("`setTheme` should not be called during main process.");return}if(this._disposed){EM(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Kj]&&(r??=this[Kj].silent,i=this[Kj].updateParams,this[Kj]=null),this[Wj]=!0,SM(this);try{this._updateTheme(e),n.setTheme(this._theme),iM(this),sM.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Wj]=!1,e}this[Wj]=!1,dM.call(this,r),fM.call(this,r)}},t.prototype._updateTheme=function(e){q(e)&&(e=NM[e]),e&&(e=_u(e),e&&MD(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||Ql.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Xg(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return H(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){EM(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;H(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 H(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){EM(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(IM[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();H(FM,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(_u(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=nu.createCanvas(),h=sg(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return H(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new sb({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),H(u,function(e){var t=new Qy({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return cM(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return cM(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return cM(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){EM(this.id);return}var n=this._model,r;return H(O_(n,e),function(e,n){n.indexOf(`Models`)>=0&&H(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):process.env.NODE_ENV!==`production`&&qg(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&qg(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=O_(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||qg(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?lA(a,t):cA(a,o,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;H(TM,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&mA(i,function(e){var t=Db(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=V({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&qg(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;H(kM,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),pA(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){EM(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){EM(this.id);return}this._disposed=!0,this.getDom()&&N_(this.getDom(),RM,``);var e=this,t=e._api,n=e._model;H(e._componentsViews,function(e){e.dispose(n,t)}),H(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 FM[e.id]},t.prototype.resize=function(e){if(this[Wj]){process.env.NODE_ENV!==`production`&&Jg("`resize` should not be called during main process.");return}if(this._disposed){EM(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[Kj]&&(r??=this[Kj].silent,n=!0,this[Kj]=null),this[Wj]=!0,SM(this);try{n&&iM(this),sM.update.call(this,{type:`resize`,animation:V({duration:0},e&&e.animation)})}catch(e){throw this[Wj]=!1,e}this[Wj]=!1,dM.call(this,r),fM.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){EM(this.id);return}if(Nu(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!PM[e]){process.env.NODE_ENV!==`production`&&qg(`Loading effects `+e+` not exists.`);return}var n=PM[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){EM(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=V({},e);return t.type=OM[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){EM(this.id);return}if(Nu(t)||(t={silent:!!t}),DM[e.type]&&this._model){if(this[Wj]){this._pendingActions.push(e);return}var n=t.silent;uM.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ql.browser.weChat&&this._throttledZrFlush(),dM.call(this,n),fM.call(this,n)}},t.prototype.updateLabelLayout=function(){bj.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){EM(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&Y(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){iM=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),aM(e,!0),aM(e,!1),t.plan()},aM=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=U_(e.type),f=t?sk.getClass(d.main,d.sub):_k.getClass(d.sub);process.env.NODE_ENV!==`production`&&Y(f,d.sub+` does not exist.`),u=new f,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)}},oM=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){H([].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=X(),H(n_(c),function(e){var t=g_(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(bx(n))if(t instanceof ak)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&kte(t,n,e._api);else{var r=ux(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&lx(t.mainType,t.componentIndex,e._api),a&&H(a,function(e){n.type===`highlight`?ex(e):tx(e)})}else yx(n)&&t instanceof ak&&(Mte(t,n,e._api),dx(t),bM(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)}},sM={prepareAndUpdate:function(e){iM(this),sM.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),lM(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),hM(this,r,i,e,n),bj.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=X();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}),_M(this,r,i,e,{},o),bj.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),_k.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),hM(this,n,this._api,e,{}),bj.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()}),_k.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)}),bj.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){sM.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){EM(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=O_(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}process.env.NODE_ENV!==`production`&&qg(`No coordinate system that supports `+t+` found by the given finder.`)}cM=e,lM=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},uM=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=DM[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&U_(s[0]);this[Wj]=!0,SM(this);var u=[e],d=!1;e.batch&&(d=!0,u=U(e.batch,function(t){return t=bu(V({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=yx(e),_=bx(e);if(_&&sx(this._api),H(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=V({},t),p.type=h,f.push(p),_){var a=k_(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;oM(n,c,t,u),bM(n)}else g?(oM(n,c,t,`series`),bM(n)):l&&oM(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Kj]?(iM(this),sM.update.call(this,e),this[Kj]=null):sM[c].call(this,e)}catch(e){throw this[Wj]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[Wj]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Y(Nu(y)),v=bu({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)}},dM=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();uM.call(this,n,e)}},fM=function(e){!e&&this.trigger(`updated`)},pM=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Kj]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},mM=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=mA(n,vx);r&&(Ate(r,e,t._api),bM(t))}).on(`mouseout`,function(e){var n=e.target,r=mA(n,vx);r&&(jte(r,e,t._api),bM(t))}).on(`click`,function(e){var n=e.target,r=mA(n,function(e){return Db(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Db(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;Qf(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),H(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)})}}hM=function(e,t,r,i,a){n(t),gM(e,t,r,i,a),H(e._chartsViews,function(e){e.__alive=!1}),_M(e,t,r,i,a),H(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},gM=function(e,t,n,r,i,a){H(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},_M=function(e,t,n,r,l,u){var d=e._scheduler;l=V(l||{},{updatedSeries:t.getSeries()}),bj.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),dx(t)}),d.unfinished=f||d.unfinished,bj.trigger(`series:layoutlabels`,t,n,l),bj.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),bj.trigger(`series:afterupdate`,t,n,l)},bM=function(e){e[qj]=!0,e.getZr().wakeUp()},SM=function(e){e[Gj]=(e[Gj]+1)%1e3},xM=function(e){e[qj]&&(e.getZr().storage.traverse(function(e){KS(e)||r(e)}),e[qj]=!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 i(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!Ql.node&&!Ql.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 a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=FC(e);t.eachRendered(function(e){return LC(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!KS(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 c(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(KS(e))return;if(e instanceof Wy&&Rte(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)}})}vM=function(e){return new(function(t){B(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){ex(t,n),bM(e)},n.prototype.leaveEmphasis=function(t,n){tx(t,n),bM(e)},n.prototype.enterBlur=function(t){nx(t),bM(e)},n.prototype.leaveBlur=function(t){rx(t),bM(e)},n.prototype.enterSelect=function(t){ix(t),bM(e)},n.prototype.leaveSelect=function(t){ax(t),bM(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[Gj]},n}(tD))(e)},yM=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Yj]=t}}H(OM,function(n,r){e._messageCenter.on(r,function(n){if(IM[e.group]&&e[Yj]!==Xj){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];H(FM,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Xj),H(i,function(e){e[Yj]!==Zj&&e.dispatchAction(r)}),t(i,Qj)}})})}}(),t}(Ed),wM=CM.prototype;wM.on=$j(`on`),wM.off=$j(`off`),wM.one=function(e,t,n){var r=this;Yg(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var TM=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function EM(e){process.env.NODE_ENV!==`production`&&qg(`Instance `+e+` has been disposed`)}var DM={},OM={},kM={},AM=[],jM=[],MM=[],NM={},PM={},FM={},IM={},LM=new Date-0;new Date-0;var RM=`_echarts_instance_`;function zM(e,t,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!==`production`&&!e)throw Error(`Initialize failed: invalid dom.`);var i=BM(e);if(i)return process.env.NODE_ENV!==`production`&&qg(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&Iu(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&qg(`Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.`)}var a=new CM(e,t,n);return a.id=`ec_`+ LM++,FM[a.id]=a,r&&N_(e,RM,a.id),yM(a),bj.trigger(`afterinit`,a),a}function BM(e){return FM[P_(e,RM)]}function VM(e,t){NM[e]=t}function HM(e){xu(jM,e)<0&&jM.push(e)}function UM(e,t){QM(AM,e,t,jj)}function WM(e){KM(`afterinit`,e)}function GM(e){KM(`afterupdate`,e)}function KM(e,t){bj.on(e,t)}function qM(e,t,n){var r,i,a,o,s;K(t)&&(n=t,t=``),Nu(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;DM[r]||(Y(Jj.test(r)&&Jj.test(i)),a&&Y(i!==r),DM[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},kM[i]=1,a&&s&&(kM[l]=1),process.env.NODE_ENV!==`production`&&OM[l]&&Jg(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),OM[l]=r)}function JM(e,t){NT.register(e,t)}function YM(e,t){QM(MM,e,t,Nj,`layout`)}function XM(e,t){QM(MM,e,t,Ij,`visual`)}var ZM=[];function QM(e,t,n,r,i){if((K(t)||Nu(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);H(e,function(e){Y(e.__raw!==n)})}if(!(xu(ZM,n)>=0)){ZM.push(n);var a=Xk.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function $M(e,t){PM[e]=t}function eN(e,t,n){var r=Cj(`registerMap`);r&&r(e,t,n)}var tN=gne;XM(Fj,kk),XM(Rj,jk),XM(Rj,Mk),XM(Fj,oA),XM(Rj,sA),XM(Hj,yj),HM(MD),UM(kj,ND),$M(`default`,Pk),qM({type:Fb,event:Fb,update:Fb},td),qM({type:Ib,event:Ib,update:Ib},td),qM({type:Lb,event:Bb,update:Lb,action:td,refineEvent:nN,publishNonRefinedEvent:!0}),qM({type:Rb,event:Bb,update:Rb,action:td,refineEvent:nN,publishNonRefinedEvent:!0}),qM({type:zb,event:Bb,update:zb,action:td,refineEvent:nN,publishNonRefinedEvent:!0});function nN(e,t,n,r){return{eventContent:{selected:Nte(n),isFromClick:t.isFromClick||!1}}}VM(`default`,{}),VM(`dark`,nA);var rN=[],iN={registerPreprocessor:HM,registerProcessor:UM,registerPostInit:WM,registerPostUpdate:GM,registerUpdateLifecycle:KM,registerAction:qM,registerCoordinateSystem:JM,registerLayout:YM,registerVisual:XM,registerTransform:tN,registerLoading:$M,registerMap:eN,registerImpl:Sj,PRIORITY:Uj,ComponentModel:tE,ComponentView:sk,SeriesModel:ak,ChartView:_k,registerComponentModel:function(e){tE.registerClass(e)},registerComponentView:function(e){sk.registerClass(e)},registerSeriesModel:function(e){ak.registerClass(e)},registerChartView:function(e){_k.registerClass(e)},registerCustomSeries:function(e,t){Tj(e,t)},registerSubTypeDefaulter:function(e,t){tE.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){cg(e,t)}};function aN(e){if(G(e)){H(e,function(e){aN(e)});return}xu(rN,e)>=0||(rN.push(e),K(e)&&(e={install:e}),e.install(iN))}function oN(e){return e==null?0:e.length||1}function sN(e){return e}var cN=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||sN,this._newKeyGetter=r||sN,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=oN(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=oN(c),d=oN(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=oN(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=oN(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),lN=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function uN(e,t){var n={},r=n.encode={},i=X(),a=[],o=[],s={};H(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&Y(dE.get(c)==null);var l=n.coordDimIndex;dN(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),pN(n.type)&&(a[0]=t),dN(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}dE.each(function(e,t){var i=dN(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=U(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new lN(s,t),n}function dN(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function fN(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function pN(e){return!(e===`ordinal`||e===`time`)}var mN=function(){function e(e){this.otherDims={},e!=null&&V(this,e)}return e}(),hN=E_(),gN={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},_N=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=bN(this.source))},e.prototype.getSourceDimensionIndex=function(e){return J(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=GD(this.source),n=!xN(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=gN[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function vN(e){return e instanceof _N}function yN(e){for(var t=X(),n=0;n<(e||[]).length;n++){var r=e[n],i=Nu(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function bN(e){var t=hN(e);return t.dimNameMap||=yN(e.dimensionsDefine)}function xN(e){return e>30}var SN=Nu,CN=U,wN=typeof Int32Array>`u`?Array:Int32Array,TN=`e\0\0`,EN=-1,DN=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],ON=[`_approximateExtent`],kN,AN,jN,MN,NN,PN,FN,IN=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;vN(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=q(u)?new mN({name:u}):u instanceof mN?u:new mN(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;Mu(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),process.env.NODE_ENV!==`production`&&Y(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=X();H(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Mu(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof NO&&(i=e),!i){var a=this.dimensions,o=ID(e)||wu(e)?new QD(e,a.length):e;i=new NO;var s=CN(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=uN(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&FN(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&o_(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=g_(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=g_(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)FN(this,o);kN(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){SN(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=jN(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return AN(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return G(e)?r.getValues(CN(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?EN:r},e.prototype.each=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var r=n||this,i=CN(MN(e),this._getStoreDimIndex,this);this._store.each(i,r?W(t,r):t)},e.prototype.filterSelf=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var r=n||this,i=CN(MN(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Ou(e),i=[];return H(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){K(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=CN(MN(e),this._getStoreDimIndex,this),o=PN(this);return o._store=this._store.map(a,i?W(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&H(MN(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=CN(MN(e),this._getStoreDimIndex,this);this._store.modify(o,a?W(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=PN(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=PN(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=PN(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new mw(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new cN(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return AN(e,t)},function(e){return AN(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},SN(e)?V(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),G(i)?i=i.slice():SN(i)&&(i=V({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,SN(t)?V(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){SN(e)?V(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Ob(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){H(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:CN(this.dimensions,this._getDimInfo,this),this.hostModel),NN(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Hu(arguments)))})},e.internalField=function(){kN=function(e){var t=e._invertedIndicesMap;H(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new wN(a.categories.length);for(var s=0;s<n.length;s++)n[s]=EN;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},jN=function(e,t,n){return g_(e._getCategory(t,n),null)},AN=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=jN(e,e._idDimIdx,t)),n??=TN+t,n},MN=function(e){return G(e)||(e=e==null?[]:[e]),e},PN=function(t){var n=new e(t._schema?t._schema:CN(t.dimensions,t._getDimInfo,t),t.hostModel);return NN(n,t),n},NN=function(e,t){H(DN.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,H(ON,function(n){e[n]=_u(t[n])}),e._calculationInfo=V({},t._calculationInfo)},FN=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=jN(e,i,t)),s==null&&a!=null&&(r[t]=s=jN(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function LN(e,t){ID(e)||(e=RD(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=X(),a=[],o=zN(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xN(o),c=r===e.dimensionsDefine,l=c?bN(e):yN(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=X(u),f=new EO(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=Nu(n)?n:{name:n},o=new mN,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=n_(e).slice();if(n.length===1&&!q(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);H(n,function(e,n){var i=q(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;H(n,function(e){var t,n,r,i;if(q(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=V({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=n_(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}H(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(bu(o,i),t,a),o.name==null&&n){var s=n[a];!Nu(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&bu(o.otherDims,r)})}});function g(e,t,n){dE.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)H(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=BN(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(EE(e,S)===yE.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return RN(a),new _N({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function RN(e){for(var t=X(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function zN(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return H(t,function(e){var t;Nu(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function BN(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var VN=function(){function e(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return e}();function HN(e){var t=e.get(`coordinateSystem`),n=new VN(t),r=UN[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var UN={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,A_).models[0],a=e.getReferringComponents(`yAxis`,A_).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+Bu(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+Bu(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),WN(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),WN(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),WN(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,A_).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),WN(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),WN(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();H(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),WN(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function WN(e){return e.get(`type`)===`category`}function GN(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;KN(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(H(a,function(e,t){q(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;H(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function KN(e){return!vN(e.schema)}function qN(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function JN(e,t){return qN(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function YN(e,t){var n=e.get(`coordinateSystem`),r=NT.get(n),i;return t&&t.coordSysDims&&(i=U(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=fN(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function XN(e,t,n){var r,i;return n&&H(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function ZN(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=RD(e)):(i=r.getSource(),a=i.sourceFormat===fE);var o=HN(t),s=YN(t,o),c=n.useEncodeDefaulter,l=K(c)?c:c?Au(SE,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=LN(i,u),f=XN(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=GN(t,{schema:d,store:p}),h=new IN(d,t);h.setCalculationInfo(m);var g=f!=null&&QN(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function QN(e){if(e.sourceFormat===`original`)return!G(a_($N(e.data||[])))}function $N(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var eP=ZN;function tP(e){var t=10**Ng(Math.abs(e)),n=Math.abs(e/t);return n===0||n===1||n===2||n===3||n===5}function nP(e){return e.type===`interval`||e.type===`log`}function rP(e,t,n,r,i){var a={},o=a.interval=Pg(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=aP(o);return sP(a.niceTickExtent=[xg(Math.ceil(e[0]/o)*o,s),xg(Math.floor(e[1]/o)*o,s)],e),a}function iP(e){var t=10**Ng(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,xg(n*t)}function aP(e){return Cg(e)+2}function oP(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function sP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),oP(e,0,t),oP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function cP(e,t){return e>=t[0]&&e<=t[1]}var lP=function(){function e(){this.normalize=uP,this.scale=dP}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=W(e.normalize,e),this.scale=W(e.scale,e)):(this.normalize=uP,this.scale=dP)},e}();function uP(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function dP(e,t){return e*(t[1]-t[0])+t[0]}function fP(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 pP=function(){function e(e){this._calculator=new lP,this._setting=e||{},this._extent=[1/0,-1/0];var t=Pw();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=Pw();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}();$_(pP);var mP=pP,hP=0,gP=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++hP,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&U(r,_P);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(!q(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||=X(this.categories)},e}();function _P(e){return Nu(e)&&e.value!=null?e.value:e+``}var vP=gP,yP=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new vP({}),G(r)&&(r=new vP({categories:U(r,function(e){return Nu(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:q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return cP(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}(mP);mP.registerClass(yP);var bP=yP,xP=xg,SP=function(e){B(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 cP(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=aP(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=Pw(),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:xP(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=xP(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=xP(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:xP(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=aP(l);s<e-1;){var d=xP(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=Pw();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=Cg(e.value)||0:n===`auto`&&(n=this._intervalPrecision),uT(xP(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=rP(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]=xP(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=xP(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}(mP);mP.registerClass(SP);var CP=SP,wP=typeof Float32Array<`u`,TP=wP?Float32Array:Array;function EP(e){return G(e)?wP?new Float32Array(e):e:new TP(e)}var DP=`__ec_stack_`;function OP(e){return e.get(`stack`)||DP+e.seriesIndex}function kP(e){return e.dim+e.index}function AP(e){var t=[],n=e.axis,r=`axis0`;if(n.type===`category`){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(bu({bandWidth:i,axisKey:r,stackId:DP+a},e));for(var o=PP(t),s=[],a=0;a<e.count;a++){var c=o[r][DP+a];c.offsetCenter=c.offset+c.width/2,s.push(c)}return s}}function jP(e,t){var n=[];return t.eachSeriesByType(e,function(e){RP(e)&&n.push(e)}),n}function MP(e){var t={};H(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 NP(e){var t=MP(e),n=[];return H(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=Q(e.get(`barWidth`),a),f=Q(e.get(`barMaxWidth`),a),p=Q(e.get(`barMinWidth`)||(zP(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:kP(r),stackId:OP(e)})}),PP(n)}function PP(e){var t={};H(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 H(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=Ou(r).length;a=Math.max(35-o*4,15)+`%`}var s=Q(a,i),c=Q(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),H(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;H(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;H(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function FP(e,t,n){if(e&&t){var r=e[kP(t)];return r!=null&&n!=null?r[OP(n)]:r}}function IP(e,t){var n=jP(e,t),r=NP(n);H(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=OP(e),a=r[kP(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function LP(e){return{seriesType:e,plan:ck(),reset:function(e){if(RP(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=qN(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=BP(r,i),p=zP(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&EP(r*3),c=p&&s&&EP(r*3),l=p&&EP(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var M=n.dataToPoint([E,w]);T=M[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var M=n.dataToPoint([w,E]);T=M[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function RP(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function zP(e){return e.pipelineContext&&e.pipelineContext.large}function BP(e,t){var n=t.model.get(`startValue`);return n||=0,t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var VP=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},HP=function(e){B(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 Jw(e.value,Ww[ine(qw(this._minLevelUnit))]||Ww.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return ane(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=Pw(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return Pw().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=Yw(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=QP(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=Yw(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=Gw.length-1,d=0;return H(i,function(e){u=Math.min(u,xu(Gw,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&Pw().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&Pw().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(xu(Gw,Yw(e.vmin,l)),xu(Gw,Yw(e.vmax,l))),n=0,r=0;r<Gw.length;r++)if(!WP(Gw[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:Gw[Math.max(i,t)],upperTimeUnit:Gw[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=Rw,t[1]+=Rw),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]-Rw}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=UP.length,i=Math.min(VP(UP,this._approxInterval,0,r),r-1);this._interval=UP[i][1],this._intervalPrecision=aP(this._interval),this._minLevelUnit=UP[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return Mu(e)?e:+jg(e)},t.prototype.contain=function(e){return cP(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}(CP),UP=[[`second`,Fw],[`minute`,Iw],[`hour`,Lw],[`quarter-day`,Lw*6],[`half-day`,Lw*12],[`day`,Rw*1.2],[`half-week`,Rw*3.5],[`week`,Rw*7],[`month`,Rw*31],[`quarter`,Rw*95],[`half-year`,zw/2],[`year`,zw]];function WP(e,t,n,r){return Xw(new Date(t),e,r).getTime()===Xw(new Date(n),e,r).getTime()}function GP(e,t){return e/=Rw,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KP(e){var t=30*Rw;return e/=t,e>6?6:e>3?3:e>2?2:1}function qP(e){return e/=Lw,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function JP(e,t){return e/=t?Iw:Fw,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function YP(e){return Pg(e,!0)}function XP(e,t,n){var r=Math.max(0,xu(Gw,t)-1);return Xw(new Date(e),Gw[r],n).getTime()}function ZP(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 QP(e,t,n,r,i,a){var o=1e4,s=ene,c=0;function l(e,t,n,i,s,l,u){for(var d=ZP(s,e),f=t,p=new Date(f);f<n&&f<=r[1];){if(u.push({value:f}),c++>o){process.env.NODE_ENV!==`production`&&qg(`Exceed safe limit in time scale.`);break}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(!WP(qw(e),r[0],r[1],n)){s&&(i=[{value:XP(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/Rw/365)),p=Zw(n),m=one(n);break;case`half-year`:case`quarter`:case`month`:f=KP(t),p=Qw(n),m=iT(n);break;case`week`:case`half-week`:case`day`:f=GP(t,31),p=$w(n),m=aT(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=qP(t),p=eT(n),m=oT(n);break;case`minute`:f=JP(t,!0),p=tT(n),m=sT(n);break;case`second`:f=JP(t,!1),p=nT(n),m=cT(n);break;case`millisecond`:f=YP(t),p=rT(n),m=lT(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=qw(s[h]);if(rne(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?qw(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=Eu(U(d,function(e){return Eu(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=Yw(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}mP.registerClass(HP);var $P=HP,eF=xg,tF=Math.floor,nF=Math.ceil,rF=Math.pow,iF=Math.log,aF=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new CP,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=Pw();return U(i,function(e){var t=e.value,i=null,c=rF(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,oF);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=oF(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=fP(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]=rF(t,n[0]),n[1]=rF(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=oF(n[0],r[0])),this._fixMax&&(n[1]=oF(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=fP(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=Mg(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[eF(nF(t[0]/r)*r),eF(tF(t[1]/r)*r)];this._interval=r,this._intervalPrecision=aP(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=iF(t)/iF(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=iF(t)/iF(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),rF(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=Pw();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}(CP);function oF(e,t){return eF(e,Cg(t))}mP.registerClass(aF);var sF=aF,cF=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;K(a)?this._modelMinNum=fF(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=fF(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(K(o)?this._modelMaxNum=fF(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=fF(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=G(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?(process.env.NODE_ENV!==`production`&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.`),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Lh(c[0],1),Lh(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=zu(o)||zu(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){process.env.NODE_ENV!==`production`&&Y(!this.frozen),this[uF[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=lF[e];process.env.NODE_ENV!==`production`&&Y(!this.frozen&&this[n]==null),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),lF={min:`_determinedMin`,max:`_determinedMax`},uF={min:`_dataMin`,max:`_dataMax`};function dF(e,t,n){var r=e.rawExtentInfo;return r||(r=new cF(e,t,n),e.rawExtentInfo=r,r)}function fF(e,t){return t==null?null:zu(t)?NaN:e.parse(t)}function pF(e,t){var n=e.type,r=dF(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=jP(`bar`,o),c=!1;if(H(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=NP(s),u=mF(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function mF(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=FP(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;H(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;H(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+=d*(c/l),e-=d*(s/l),{min:e,max:t}}function hF(e,t){var n=t,r=pF(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof sF&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(EF(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 gF(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new bP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new $P({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((mP.getClass(t))||CP)}}function _F(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function vF(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=tne(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(q(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(K(t)){if(e.type===`category`)return function(n,r){return t(yF(e,n),n.value-e.scale.getExtent()[0],null)};var r=Pw();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(yF(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function yF(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function bF(e){return e.get(`interval`)??`auto`}function xF(e){return e.type===`category`&&bF(e.getLabelModel())===0}function SF(e,t){var n={};return H(e.mapDimensionsAll(t),function(t){n[JN(e,t)]=!0}),Ou(n)}function CF(e,t,n){t&&H(SF(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}function wF(e){return e===`middle`||e===`center`}function TF(e){return e.getShallow(`show`)}function EF(e){var t=e.get(`breaks`,!0);if(t!=null){if(!Pw()){process.env.NODE_ENV!==`production`&&Jg('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!DF(e.axis)){process.env.NODE_ENV!==`production`&&Jg(`Axis '`+e.axis.dim+`'-'`+e.axis.type+`' does not support break.`);return}return t}}function DF(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var OF=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),kF=1e-8;function AF(e,t){return Math.abs(e-t)<kF}function jF(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+=Dy(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!AF(i[0],s[0])||!AF(i[1],s[1]))&&(r+=Dy(i[0],i[1],s[0],s[1],t,n)),r!==0}var MF=[];function NF(e,t){for(var n=0;n<e.length;n++)xd(e[n],e[n],t)}function PF(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])&&(Sd(t,t,a),Cd(n,n,a))}}function FF(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 IF=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}(),LF=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),RF=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),zF=function(e){B(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 FF(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 H(i,function(t){t.type===`polygon`?PF(t.exterior,n,r,e):H(t.points,function(t){PF(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 Af(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(jF(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(jF(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 Af(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(NF(u.exterior,s),H(u.interiors,function(e){NF(e,s)})):H(u.points,function(e){NF(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}(IF),BF=function(e){B(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=af(MF),i=e;i&&!i.isGeoSVGGraphicRoot;)sf(r,i.getLocalTransform(),r),i=i.parent;return df(r,r),xd(n,n,r),n},t}(IF);function VF(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return H(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=UF(i,r,n);break;case`Polygon`:HF(i,r,n);break;case`MultiLineString`:HF(i,r,n);break;case`MultiPolygon`:H(i,function(e,t){return HF(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function HF(e,t,n){for(var r=0;r<e.length;r++)e[r]=UF(e[r],t[r],n)}function UF(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 WF(e,t){return e=VF(e),U(Eu(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 LF(a[0],a.slice(1)));break;case`MultiPolygon`:H(r.coordinates,function(e){e[0]&&i.push(new LF(e[0],e.slice(1)))});break;case`LineString`:i.push(new RF([r.coordinates]));break;case`MultiLineString`:i.push(new RF(r.coordinates))}var o=new zF(n[t||`name`],i,n.cp);return o.properties=n,o})}var GF=E_(),KF=E_(),qF={estimate:1,determine:2};function JF(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function YF(e,t){var n=U(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 XF(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=vF(e),i=e.scale.getExtent();return{labels:U(Eu(YF(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`?QF(e,t):tI(e)}function ZF(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:Eu(YF(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?eI(e,t):{ticks:U(e.scale.getTicks(n),function(e){return e.value})}}function QF(e,t){var n=e.getLabelModel(),r=$F(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function $F(e,t,n){var r=rI(e),i=bF(t),a=n.kind===qF.estimate;if(!a){var o=aI(r,i);if(o)return o}var s,c;K(i)?s=pI(e,i):(c=i===`auto`?sI(e,n):i,s=fI(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return oI(r,i,l),!0}):oI(r,i,l),l}function eI(e,t){var n=nI(e),r=bF(t),i=aI(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),K(r))a=pI(e,r,!0);else if(r===`auto`){var s=$F(e,e.getLabelModel(),JF(qF.determine));o=s.labelCategoryInterval,a=U(s.labels,function(e){return e.tickValue})}else o=r,a=fI(e,o,!0);return oI(n,r,{ticks:a,tickCategoryInterval:o})}function tI(e){var t=e.scale.getTicks(),n=vF(e);return{labels:U(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var nI=iI(`axisTick`),rI=iI(`axisLabel`);function iI(e){return function(t){return KF(t)[e]||(KF(t)[e]={list:[]})}}function aI(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function oI(e,t,n){return e.list.push({key:t,value:n}),n}function sI(e,t){if(t.kind===qF.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return KF(e).autoInterval=n,!0}),n}return KF(e).autoInterval??(KF(e).autoInterval=e.calculateCategoryInterval(t))}function cI(e,t){var n=t.kind,r=dI(e),i=vF(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=Nh(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===qF.estimate?(t.out.noPxChangeTryDetermine.push(W(lI,null,e,S,c)),S):uI(e,S,c)??S}function lI(e,t,n){return uI(e,t,n)==null}function uI(e,t,n){var r=GF(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 dI(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 fI(e,t,n){var r=vF(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=xF(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 pI(e,t,n){var r=e.scale,i=vF(e),a=[];return H(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 mI=[0,1],hI=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 Tg(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(),gI(n,r.count())),vg(e,mI,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),gI(n,r.count()));var i=vg(e,n,mI,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=ZF(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=U(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return _I(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),U(this.scale.getMinorTicks(e),function(e){return U(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=JF(qF.determine),XF(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||=JF(qF.determine),cI(this,e)},e}();function gI(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function _I(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;H(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=xg(e),t=xg(t),d?e>t:e<t}}var vI=hI,yI=Math.PI*2,bI=yy.CMD,xI=[`top`,`right`,`bottom`,`left`];function SI(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 CI(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)%yI<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=wy(i),i=wy(f)}else r=wy(r),i=wy(i);r>i&&(i+=yI);var p=Math.atan2(s,o);if(p<0&&(p+=yI),p>=r&&p<=i||p+yI>=r&&p+yI<=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 wI(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 TI(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))}var EI=[];function DI(e,t,n){var r=TI(t.x,t.y,t.width,t.height,e.x,e.y,EI);return n.set(EI[0],EI[1]),r}function OI(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 bI.M:a=u[p++],o=u[p++],r=a,i=o;break;case bI.L:h=wI(r,i,u[p],u[p+1],d,f,EI,!0),r=u[p++],i=u[p++];break;case bI.C:h=Sp(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,EI),r=u[p++],i=u[p++];break;case bI.Q:h=kp(r,i,u[p++],u[p++],u[p],u[p+1],d,f,EI),r=u[p++],i=u[p++];break;case bI.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=CI(g,_,y,b,b+x,S,C,f,EI),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case bI.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=TI(a,o,w,T,d,f,EI);break;case bI.Z:h=wI(r,i,a,o,d,f,EI,!0),r=a,i=o;break}h<l&&(l=h,n.set(EI[0],EI[1]))}return l}var kI=new ff,AI=new ff,jI=new ff,MI=new ff,NI=new ff;function PI(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||xI,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&df([],u),f=t.get(`length2`)||0;l&&jI.copy(l);for(var p=0;p<o.length;p++){var m=o[p];SI(m,0,s,kI,MI),ff.scaleAndAdd(AI,kI,MI,f),AI.transform(d);var h=e.getBoundingRect(),g=l?l.distance(AI):e instanceof Wy?OI(AI,e.path,jI):DI(AI,h,jI);g<c&&(c=g,AI.transform(u),jI.transform(u),jI.toArray(a[0]),AI.toArray(a[1]),kI.toArray(a[2]))}LI(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var FI=[],II=new ff;function LI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,kI.fromArray(e[0]),AI.fromArray(e[1]),jI.fromArray(e[2]),ff.sub(MI,kI,AI),ff.sub(NI,jI,AI);var n=MI.len(),r=NI.len();if(!(n<.001||r<.001)){MI.scale(1/n),NI.scale(1/r);var i=MI.dot(NI);if(Math.cos(t)<i){var a=wI(AI.x,AI.y,jI.x,jI.y,kI.x,kI.y,FI,!1);II.fromArray(FI),II.scaleAndAdd(NI,a/Math.tan(Math.PI-t));var o=jI.x===AI.x?(II.y-AI.y)/(jI.y-AI.y):(II.x-AI.x)/(jI.x-AI.x);if(isNaN(o))return;o<0?ff.copy(II,AI):o>1&&ff.copy(II,jI),II.toArray(e[1])}}}}function Ine(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,kI.fromArray(e[0]),AI.fromArray(e[1]),jI.fromArray(e[2]),ff.sub(MI,AI,kI),ff.sub(NI,jI,AI);var r=MI.len(),i=NI.len();if(!(r<.001||i<.001)&&(MI.scale(1/r),NI.scale(1/i),MI.dot(t)<Math.cos(n))){var a=wI(AI.x,AI.y,jI.x,jI.y,kI.x,kI.y,FI,!1);II.fromArray(FI);var o=Math.PI/2,s=o+Math.acos(NI.dot(t))-n;if(s>=o)ff.copy(II,jI);else{II.scaleAndAdd(NI,a/Math.tan(Math.PI/2-s));var c=jI.x===AI.x?(II.y-AI.y)/(jI.y-AI.y):(II.x-AI.x)/(jI.x-AI.x);if(isNaN(c))return;c<0?ff.copy(II,AI):c>1&&ff.copy(II,jI)}II.toArray(e[1])}}}function RI(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 Lne(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=_d(r[0],r[1]),a=_d(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=bd([],r[1],r[0],o/i),c=bd([],r[1],r[2],o/a),l=bd([],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 zI(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<Pb.length;c++){var l=Pb[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:J(i.states[l]&&i.states[l].ignore,s))||!J(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&RI(r,!0,l,u);continue}r||(r=new mS,e.setTextGuideLine(r),!d&&(s||!o)&&RI(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),RI(r,!1,l,u)}}if(r){bu(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Lne}}function BI(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Nb.length;r++){var i=Nb[r];n[i]=e.getModel([i,t])}return n}var VI=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Rne=1,HI=2,UI=Rne|HI;function WI(e,t,n){n||=UI,t?e.dirty|=n:e.dirty&=~n}function GI(e,t){return t||=UI,e.dirty==null||!!(e.dirty&t)}function KI(e){if(e)return GI(e)&&qI(e,e.label,e),e}function qI(e,t,n){var r=t.getComputedTransform();e.transform=PC(e.transform,r);var i=e.localRect=NC(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=nw.textMargin);for(var d=0;d<4;d++)JI[d]=u===nw.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===nw.textMargin&&TC(i,JI,!1,!1);var f=e.rect=NC(e.rect,i);return r&&f.applyTransform(r),u===nw.minMargin&&TC(f,JI,!1,!1),e.axisAligned=jC(r),(e.label=e.label||{}).ignore=t.ignore,WI(e,!1),WI(e,!0,HI),e}var JI=[0,0,0,0];function zne(e,t,n){return e.transform=PC(e.transform,n),e.localRect=NC(e.localRect,t),e.rect=NC(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=jC(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function YI(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 XI(e,t){for(var n=0;n<VI.length;n++){var r=VI[n];e[r]??(e[r]=t[r])}return KI(e)}function ZI(e){var t=e.obb;return(!t||GI(e,HI))&&(e.obb=t||=new RS,t.fromBoundingRect(e.localRect,e.transform),WI(e,!1,HI)),t}function QI(e,t,n,r,i){var a=e.length,o=eC[t],s=tC[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 Bne(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 $I(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=KI(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(eL(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function eL(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:ZI(e).intersect(ZI(t),n,r)}function Vne(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function Hne(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:Vne(r&&r.shape.points)}}var tL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],nL=new Th,rL=E_(),Une=E_();function iL(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var aL=[`x`,`y`,`rotation`],Wne=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();Af.applyTransform(c,c,s),s?nL.setLocalTransform(s):(nL.x=nL.y=nL.rotation=nL.originX=nL.originY=0,nL.scaleX=nL.scaleY=1),nL.rotation=wy(nL.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Af.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:nL.x,y:nL.y,scaleX:nL.scaleX,scaleY:nL.scaleY,rotation:nL.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`);(K(r)||Ou(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Db(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(){PI(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=K(a.layoutOptionOrCb)?a.layoutOptionOrCb(Hne(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=Q(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Q(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=rL(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<tL.length;m++){var h=tL[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=[];H(this._labelList,function(e){e.defaultAttr.ignore||r.push(XI({},e))});var i=Eu(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=Eu(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});QI(i,0,0,t),QI(a,1,0,n);var o=Eu(r,function(e){return e.layoutOption.hideOverlap});Bne(o),$I(o)},e.prototype.processLabelsOverall=function(){var e=this;H(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=rL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Db(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`);zI(e,BI(o),s),PI(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&&!KS(e))){var i=rL(n),a=i.oldLayout,o=Db(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&&(xu(u,`select`)>=0&&n.attr(i.oldLayoutSelect),xu(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),WS(n,c,t,s)}else if(n.attr(c),!$C(n).valueAnimation){var d=J(n.style.opacity,1);n.style.opacity=0,GS(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};iL(f,c,aL),iL(f,n.states.select,aL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};iL(p,c,aL),iL(p,n.states.emphasis,aL)}tw(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=Une(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),WS(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,GS(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),oL=E_();function Gne(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=oL(t).labelManager;r||=oL(t).labelManager=new Wne,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=oL(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var sL=Math.sin,cL=Math.cos,lL=Math.PI,uL=Math.PI*2,Kne=180/lL,dL=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=dm(u-uL)||(l?c>=uL:-c>=uL),f=c>0?c%uL:c%uL+uL,p=!1;p=d?!0:dm(u)?!1:f>=lL==!!l;var m=e+n*cL(a),h=t+r*sL(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Kne);if(d){var _=1/this._p,v=(l?1:-1)*(uL-_);this._add(`A`,n,r,g,1,+l,e+n*cL(a+v),t+r*sL(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*cL(o),b=t+r*sL(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),fL=`none`,qne=Math.round;function Jne(e){var t=e.fill;return t!=null&&t!==fL}function Yne(e){var t=e.stroke;return t!=null&&t!==fL}var pL=[`lineCap`,`miterLimit`,`lineJoin`],Xne=U(pL,function(e){return`stroke-`+e.toLowerCase()});function Zne(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Qy){e(`opacity`,i);return}if(Jne(t)){var a=lm(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,fL);if(Yne(t)){var s=lm(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=FA(n),p=f[0],m=f[1];p&&(m=qne(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,fL);for(var h=0;h<pL.length;h++){var g=pL[h];if(r||t[g]!==Vy[g]){var _=t[g]||Vy[g];_&&e(Xne[h],_)}}}else r&&e(`stroke`,fL)}var mL=`http://www.w3.org/2000/svg`,hL=`http://www.w3.org/1999/xlink`,Qne=`http://www.w3.org/2000/xmlns/`,$ne=`http://www.w3.org/XML/1998/namespace`,ere=`ecmeta_`;function gL(e){return document.createElementNS(mL,e)}function _L(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function tre(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function nre(e){return`</`+e+`>`}function vL(e,t){t||={};var n=t.newline?`
|
|
62
|
+
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return tre(i,a)+(i===`style`?o||``:Bd(o))+(t?``+n+U(t,function(e){return r(e)}).join(n)+n:``)+nre(i)}return r(e)}function rre(e,t,n){n||={};var r=n.newline?`
|
|
63
|
+
`:``,i=` {`+r,a=r+`}`,o=U(Ou(e),function(t){return t+i+U(Ou(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=U(Ou(t),function(e){return`@keyframes `+e+i+U(Ou(t[e]),function(n){return n+i+U(Ou(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function yL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bL(e,t,n,r){return _L(`svg`,`root`,{width:e,height:t,xmlns:mL,"xmlns:xlink":hL,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var ire=0;function xL(){return ire++}var SL={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},CL=`transform-origin`;function are(e,t,n){var r=V({},e.shape);V(r,t),e.buildPath(n,r);var i=new dL;return i.reset(Em(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function ore(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[CL]=n+`px `+r+`px`)}var sre={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function wL(e,t){var n=t.zrId+`-ani-`+ t.cssAnimIdx++;return t.cssAnims[n]=e,n}function cre(e,t,n){var r=e.shape.paths,i={},a,o;if(H(r,function(e){var t=yL(n.zrId);t.animation=!0,EL(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=Ou(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=wL(i,n);return a.replace(o,s)}}function TL(e){return q(e)?SL[e]?`cubic-bezier(`+SL[e]+`)`:Mp(e)?e:``:``}function EL(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof ES){var s=cre(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=TL(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=TL(d.easing),m=d.rawValue;(q(m)||Mu(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};wh(g,e),V(g,s[h]);var _=Dm(g),v=s[h][u];l[h]=_?{transform:_}:{},ore(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new yy);var S=y.len();y.reset(),l[h].d=are(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return sre[e]})}for(var w=Ou(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][CL]!==l[O][CL]){T=!1;break}E=l[D][CL]}if(T&&E){for(var h in l)l[h][CL]&&delete l[h][CL];t[CL]=E}if(Eu(w,function(e){return Ou(l[e]).length>0}).length)return wL(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+xL();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function lre(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};DL(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=sm(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),DL(r,t,n,!0)}}function DL(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+xL(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var OL=Math.round;function kL(e){return e&&q(e.src)}function AL(e){return e&&K(e.toDataURL)}function jL(e,t,n,r){Zne(function(i,a){var o=i===`fill`||i===`stroke`;o&&wm(a)?zL(t,e,i,r):o&&xm(a)?BL(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),gre(n,e,r)}function ML(e,t){var n=ug(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[ere+`silent`]=`true`))}function NL(e){return dm(e[0]-1)&&dm(e[1])&&dm(e[2])&&dm(e[3]-1)}function ure(e){return dm(e[4])&&dm(e[5])}function PL(e,t,n){if(t&&!(ure(t)&&NL(t))){var r=n?10:1e4;e.transform=NL(t)?`translate(`+OL(t[4]*r)/r+` `+OL(t[5]*r)/r+`)`:mm(t)}}function FL(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(OL(r[a][0]*n)/n),i.push(OL(r[a][1]*n)/n);t.points=i.join(` `)}function IL(e){return!e.smooth}function dre(e){var t=U(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=OL(o*r)/r)}}}var fre={circle:[dre([`cx`,`cy`,`r`])],polyline:[FL,IL],polygon:[FL,IL]};function pre(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function LL(e,t){var n=e.style,r=e.shape,i=fre[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Em(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&pre(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new dL,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return PL(a,e.transform),jL(a,n,e,t),ML(a,e),t.animation&&EL(e,a,t),t.emphasis&&lre(e,a,t),_L(s,e.id+``,a)}function mre(e,t){var n=e.style,r=n.image;if(r&&!q(r)&&(kL(r)?r=r.src:AL(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),PL(c,e.transform),jL(c,n,e,t),ML(c,e),t.animation&&EL(e,c,t),_L(`image`,e.id+``,c)}}function hre(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=gm(n.y||0,Ih(i),n.textBaseline),s=hm[n.textAlign]||n.textAlign,c={"dominant-baseline":`central`,"text-anchor":s};if(vb(n)){var l=``,u=n.fontStyle,d=gb(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||`sans-serif`,p=n.fontWeight;l+=`font-size:`+d+`;font-family:`+f+`;`,u&&u!==`normal`&&(l+=`font-style:`+u+`;`),p&&p!==`normal`&&(l+=`font-weight:`+p+`;`),c.style=l}else c.style=`font: `+i;return r.match(/\s/)&&(c[`xml:space`]=`preserve`),a&&(c.x=a),o&&(c.y=o),PL(c,e.transform),jL(c,n,e,t),ML(c,e),t.animation&&EL(e,c,t),_L(`text`,e.id+``,c,void 0,r)}}function RL(e,t){if(e instanceof Wy)return LL(e,t);if(e instanceof Qy)return mre(e,t);if(e instanceof qy)return hre(e,t)}function gre(e,t,n){var r=e.style;if(_m(r)){var i=vm(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=lm(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+ n.shadowIdx++,n.defs[o]=_L(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[_L(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Tm(o)}}function zL(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Sm(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Cm(i))a=`radialGradient`,o.cx=J(i.x,.5),o.cy=J(i.y,.5),o.r=J(i.r,.5);else{process.env.NODE_ENV!==`production`&&gu(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=pm(s[l].offset)*100+`%`,f=s[l].color,p=lm(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(_L(`stop`,l+``,g))}var _=vL(_L(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+ r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=_L(a,y,o,c)),t[n]=Tm(y)}function BL(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(ym(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(q(h)?m=h:kL(h)?m=h.src:AL(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Y(f,g),Y(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=av(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=_L(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=_u(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Dm(i);x&&(o.patternTransform=x);var S=_L(`pattern`,``,o,[d]),C=vL(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+ r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=_L(`pattern`,T,o,[d])),t[n]=Tm(T)}}function _re(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+ n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=_L(`clipPath`,a,o,[LL(e,n)])}t[`clip-path`]=Tm(a)}function VL(e){return document.createTextNode(e)}function HL(e,t,n){e.insertBefore(t,n)}function UL(e,t){e.removeChild(t)}function WL(e,t){e.appendChild(t)}function GL(e){return e.parentNode}function KL(e){return e.nextSibling}function qL(e,t){e.textContent=t}var JL=58,vre=120,yre=_L(``,``);function YL(e){return e===void 0}function XL(e){return e!==void 0}function bre(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function ZL(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function QL(e){var t,n=e.children,r=e.tag;if(XL(r)){var i=e.elm=gL(r);if(tR(yre,e),G(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&WL(i,QL(a))}else XL(e.text)&&!Nu(e.text)&&WL(i,VL(e.text))}else e.elm=VL(e.text);return e.elm}function $L(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&HL(e,QL(a),t)}}function eR(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(XL(i.tag)?UL(GL(i.elm),i.elm):UL(e,i.elm))}}function tR(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===vre?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(Qne,n,o):n.charCodeAt(3)===JL?r.setAttributeNS($ne,n,o):n.charCodeAt(5)===JL?r.setAttributeNS(hL,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function xre(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:ZL(o,l)?(nR(o,l),o=t[++r],l=n[++i]):ZL(s,u)?(nR(s,u),s=t[--a],u=n[--c]):ZL(o,u)?(nR(o,u),HL(e,o.elm,KL(s.elm)),o=t[++r],u=n[--c]):ZL(s,l)?(nR(s,l),HL(e,s.elm,o.elm),s=t[--a],l=n[++i]):(YL(d)&&(d=bre(t,r,a)),f=d[l.key],YL(f)?HL(e,QL(l),o.elm):(p=t[f],p.tag===l.tag?(nR(p,l),t[f]=void 0,HL(e,p.elm,o.elm)):HL(e,QL(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,$L(e,m,n,i,c)):eR(e,t,r,a))}function nR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(tR(e,t),YL(t.text)?XL(r)&&XL(i)?r!==i&&xre(n,r,i):XL(i)?(XL(e.text)&&qL(n,``),$L(n,null,i,0,i.length-1)):XL(r)?eR(n,r,0,r.length-1):XL(e.text)&&qL(n,``):e.text!==t.text&&(XL(r)&&eR(n,r,0,r.length-1),qL(n,t.text)))}function Sre(e,t){if(ZL(e,t))nR(e,t);else{var n=e.elm,r=GL(n);QL(t),r!==null&&(HL(r,t.elm,KL(n)),eR(r,[e],0,0))}return t}var Cre=0,wre=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=rR(`refreshHover`),this.configLayer=rR(`configLayer`),this.storage=t,this._opts=n=V({},n),this.root=e,this._id=`zr`+ Cre++,this._oldVNode=bL(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=gL(`svg`);tR(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Sre(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return RL(e,yL(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=yL(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=Tre(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=_L(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=U(Ou(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(_L(`defs`,`defs`,{},c)),e.animation){var l=rre(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=_L(`style`,`stl`,{},[],l);a.push(u)}}return bL(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},vL(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};_re(d[g],_,t);var v=_L(`g`,`clip-g-`+ c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=RL(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=NA(r,0,n),t=NA(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(xm(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=Om(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function rR(e){return function(){process.env.NODE_ENV!==`production`&&gu(`In SVG mode painter not support method "`+e+`"`)}}function Tre(e,t,n,r){var i;if(n&&n!==`none`)if(i=_L(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),wm(n))zL({fill:n},i.attrs,`fill`,r);else if(xm(n))BL({style:{fill:n},dirty:td,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=lm(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}var Ere=wre;function Dre(e){e.registerPainter(`svg`,Ere)}function iR(e,t,n){var r=nu.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 aR=function(e){id(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||=fh,typeof t==`string`?a=iR(t,n,r):Nu(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ed(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=iR(`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 Af(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Af(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 Af(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 Af(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;Lu(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||AA(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):lte(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=HA(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&&H(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(Ed),oR=1e5,sR=314159,cR=.01,Ore=.001;function kre(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function Are(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 jre=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=V({},n||{}),this.dpr=n.devicePixelRatio||fh,this._singleCanvas=i,this.root=e,e.style&&(ed(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 aR(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[sR]=u,u.zlevel=sR,a.push(sR),this._domRoot=e}else{this._width=NA(e,0,n),this._height=NA(e,1,n);var d=this._domRoot=Are(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(oR),i||(i=n.ctx,i.save()),cj(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(oR)},e.prototype.paintOne=function(e,t){sj(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;rp(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(sR).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 Ql.wxa&&H(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))&&(cj(o,e,i,a),e.setPrevPaintRect(s))}else cj(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=sR);var n=this._layers[e];return n||(n=new aR(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?vu(n,this._layerConfig[e],!0):this._layerConfig[e-cR]&&vu(n,this._layerConfig[e-cR],!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]){process.env.NODE_ENV!==`production`&&gu(`ZLevel `+e+` has been used already`);return}if(!kre(t)){process.env.NODE_ENV!==`production`&&gu(`Layer of zlevel `+e+` is not valid`);return}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+Ore,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?cR:0),this._needsManuallyCompositing),l.__builtin__||gu(`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,H(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?vu(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+cR){var a=this._layers[i];vu(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(xu(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=NA(i,0,r),t=NA(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(sR).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[sR].dom;var t=new aR(`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];cj(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 Mre(e){e.registerPainter(`canvas`,jre)}var Nre=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!==`production`){var t=e.coordinateSystem;if(t!==`polar`&&t!==`cartesian2d`)throw Error(`Line not support coordinateSystem besides cartesian and polar`)}return eP(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new tg,n=wA(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=wA(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(ak);function lR(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=dO(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(dO(e,t,n[o]));return a.join(` `)}}function uR(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!G(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var Pre=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=wA(e,-1,-1,2,2,null,a);o.attr({z2:J(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Fre,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ex(this.childAt(0))},t.prototype.downplay=function(){tx(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):WS(f,p,o,n),XS(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,GS(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=UC(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=EA(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Qy){var S=a.style;a.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(V({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;HC(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):lR(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),px(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Db(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&qS(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();qS(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return TA(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(tg);function Fre(e,t){this.parent.drift(e,t)}var dR=Pre;function fR(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function pR(e){return e!=null&&!Nu(e)&&(e={isIgnore:e}),e||{}}function mR(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:UC(t),cursorStyle:t.get(`cursor`)}}var hR=function(){function e(e){this.group=new tg,this._SymbolCtor=e||dR}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=pR(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=mR(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(fR(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!fR(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):WS(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=mR(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=pR(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(fR(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function gR(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Ire(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=s===`x`||s===`radius`?1:0,d=U(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return qN(t,d[0])&&(f=!0,d[0]=p),qN(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Ire(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Mu(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function _R(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function Lre(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Rre(e,t,n,r,i,a,o,s){for(var c=Lre(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=gR(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=_R(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=EP(M),P=EP(M),F=EP(M),I=EP(M),ee=[],y=0;y<m.length;y++){var L=m[y],R=y*2,te=L*2;N[R]=l[te],N[R+1]=l[te+1],P[R]=u[te],P[R+1]=u[te+1],F[R]=d[te],F[R+1]=d[te+1],I[R]=f[te],I[R+1]=f[te+1],ee[y]=p[L]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:I,status:ee}}var vR=Math.min,yR=Math.max;function bR(e,t){return isNaN(e)||isNaN(t)}function xR(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(bR(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;bR(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||bR(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var ee=D>0?1:-1;p=_,m=v-ee*P*o,O=_,k=v+ee*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=vR(O,yR(S,_)),k=vR(k,yR(C,v)),O=yR(O,vR(S,_)),k=yR(k,vR(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=vR(p,yR(l,_)),m=vR(m,yR(u,v)),p=yR(p,vR(l,_)),m=yR(m,vR(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var SR=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zre=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new SR},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&bR(n[i*2-2],n[i*2-1]);i--);for(;r<i&&bR(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=xR(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=yy.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?yp(i,u,f,m,e,s):yp(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?_p(a,d,p,h,b):_p(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Wy),Bre=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(SR),CR=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new Bre},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&bR(n[a*2-2],n[a*2-1]);a--);for(;i<a&&bR(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=xR(e,n,i,a,a,1,t.smooth,o,t.connectNulls);xR(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Wy);function wR(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new sb({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=K(i)?function(e){i(e,d)}:null;GS(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function TR(e,t,n){var r=e.getArea(),i=xg(r.r0,1),a=xg(r.r,1),o=new iS({shape:{cx:xg(e.cx,1),cy:xg(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,GS(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function ER(e,t,n,r,i){if(e){if(e.type===`polar`)return TR(e,t,n);if(e.type===`cartesian2d`)return wR(e,t,n,r,i)}else return null;return null}function DR(e,t){return e.type===t}function OR(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function kR(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function AR(e,t){var n=kR(e),r=n[0],i=n[1],a=kR(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function jR(e){return Mu(e)?e:e?.5:0}function MR(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=EP(r*2),a=0;a<r;a++){var o=_R(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function NR(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function PR(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:tm((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function FR(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())){if(t.type!==`cartesian2d`){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style is only supported on cartesian2d.`);return}for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(!a){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style only support x or y dimension.`);return}var c=t.getAxis(i),l=U(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=PR(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;H(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new OS(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}function IR(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&LR(a,t))){var o=t.mapDimension(a.dim),s={};return H(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function LR(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(dR.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function RR(e,t){return isNaN(e)||isNaN(t)}function zR(e){for(var t=e.length/2;t>0&&RR(e[t*2-2],e[t*2-1]);t--);return t-1}function BR(e,t){return[e[t*2],e[t*2+1]]}function VR(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function HR(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Nb.length;t++)if(e.get([Nb[t],`endLabel`,`show`]))return!0;return!1}function UR(e,t,n,r){if(DR(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=HR(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=wR(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return process.env.NODE_ENV!==`production`&&r.get([`endLabel`,`show`])&&console.warn(`endLabel is not supported for lines in polar systems.`),TR(t,n,r)}function WR(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var GR=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new tg,t=new hR;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=W(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=gR(r,a,_),y=g&&MR(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&IR(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=FR(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=NR(y,c,r,w,x),c=NR(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,yT(E)),m.setClipPath(UR(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,yT(E));var D=m.getClipPath();D?GS(D,{shape:UR(this,r,!1,e).shape},e):m.setClipPath(UR(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!OR(this._stackedOnPoints,y)||!OR(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=NR(y,c,r,w,x),c=NR(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(bu(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),gx(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}Db(f).seriesIndex=e.seriesIndex,px(f,k,A,j);var N=jR(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(bu(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=jR(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),gx(p,e,`areaStyle`),Db(p).seriesIndex=e.seriesIndex,px(p,k,A,j)}var ee=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ee)}),this._polyline.onHoverStateChange=ee,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Db(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=T_(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new dR(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else _k.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=T_(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else _k.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Yb(this._polyline,e),t&&Yb(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new zre({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new CR({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);K(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=K(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=K(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(HR(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Eb({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=zR(o);c>=0&&(HC(a,UC(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?lR(i,e):uR(i,n)},enableTextSetter:!0},WR(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=VR(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=BR(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=L_(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=BR(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=$C(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Rre(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=NR(u.stackedOnCurrent,u.current,n,i,o),d=NR(u.current,null,n,i,o),m=NR(u.stackedOnNext,u.next,n,i,o),p=NR(u.next,null,n,i,o)),AR(d,p)>3e3||c&&AR(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),WS(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),WS(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(_k);function KR(e,t){return{seriesType:e,plan:ck(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=U(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);qN(n,o[0])&&(o[0]=c),qN(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&EP(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var qR={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},JR=function(e){return Math.round(e.length/2)};function YR(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;q(i)?p=qR[i]:K(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,JR))}}}}}function XR(e){e.registerChartView(GR),e.registerSeriesModel(Nre),e.registerLayout(KR(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,YR(`line`))}var ZR=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return eP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)H(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[c?1:0]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=r.getBaseAxis().isHorizontal()?0:1;a[l]+=s+c/2}return a}return[NaN,NaN]},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(ak);ak.registerClass(ZR);var QR=ZR,$R=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return eP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=yw(QR.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}(QR),ez=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),tz=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new ez},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Wy);function nz(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Rh(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+iz(m,s+_,!1),x=u+p*y(m)+az(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+iz(m,-s+_,!1),x=u+p*y(m)+az(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+iz(h,s+_,!0),x=u+p*y(h)+az(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+iz(h,-s+_,!0),x=u+p*y(h)+az(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Rh(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function rz(e,t,n,r){if(Mu(r)){e.setTextConfig({rotation:r});return}else if(G(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function iz(e,t,n){return t*Math.sin(e)*(n?-1:1)}function az(e,t,n){return t*Math.cos(e)*(n?1:-1)}function oz(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;G(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(r,function(e){return Lh(e,i)})}}var sz=Math.max,cz=Math.min;function lz(e,t){var n=e.getArea&&e.getArea();if(DR(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var uz=function(e){B(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&qg(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=pz(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=lz(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=yz[s.type](a,e);if(!t)return null;var n=Az(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=yz[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!vz[s.type](r)))){var o=!1;f&&(o=dz[s.type](p,r));var g=fz[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),Sz(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?mz(d,u,g,r,t,l,!1,!1):GS(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=yz[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=yz[s.type](a,t),E=kz(l,T,s);WS(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!vz[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=dz[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&YS(D,e,n),D=null),D?XS(D):D=fz[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=$C(k);A.prevValue!=null&&(A.prevValue=A.value)}}else Sz(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?mz(d,u,D,C,t,l,!0,x):WS(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&YS(n,e,t)}).execute();var C=this._backgroundGroup||=new tg;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Ez(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Ez(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&ER(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:U(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){YS(t,e,Db(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(_k),dz={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=sz(t.x,e.x),s=cz(t.x+t.width,i),c=sz(t.y,e.y),l=cz(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=cz(t.r,e.r),a=sz(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},fz={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new sb({shape:V({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?tz:iS,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=nz(xz(i),{isRoundCap:l===tz}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?WS:GS)(u,{shape:p},a)}return u}};function pz(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&qg("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&qg("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function mz(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?WS:GS)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?WS:GS)(n,{shape:l},u,i)}function hz(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var gz=[`x`,`y`,`width`,`height`],_z=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],vz={cartesian2d:function(e){return!hz(e,gz)},polar:function(e){return!hz(e,_z)}},yz={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?Cz(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bz(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function xz(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Sz(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(s){if(!a.get(`roundCap`)){var l=e.shape;V(l,oz(r.getModel(`itemStyle`),l,!0)),e.setShape(l)}}else{var u=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=UC(r);HC(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:lR(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,rz(e,h===`outside`?f:h,xz(o),r.get([`label`,`rotate`]))}ew(m,p,a.getRawValue(n),function(e){return uR(t,e)});var g=r.getModel([`emphasis`]);px(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),gx(e,r),bz(i)&&(e.style.fill=`none`,e.style.stroke=`none`,H(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Cz(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var wz=function(){function e(){}return e}(),Tz=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new wz},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Wy);function Ez(e,t,n,r){var i=e.getData(),a=i.getLayout(`valueAxisHorizontal`)?1:0,o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new Tz({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new Tz({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,Db(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,Dz),d.on(`mousemove`,Dz)),n&&n.push(d)}var Dz=xk(function(e){var t=this,n=Oz(t,e.offsetX,e.offsetY);Db(t).dataIndex=n>=0?n:null},30,!1);function Oz(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function kz(e,t,n){if(DR(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Az(e,t,n){return new(e.type===`polar`?iS:sb)({shape:kz(t,n,e),silent:!0,z2:0})}var jz=uz;function Mz(e){e.registerChartView(jz),e.registerSeriesModel($R),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Au(IP,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LP(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,YR(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var Nz=Math.PI*2,Pz=Math.PI/180;function Fz(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=VT(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*Pz,d=e.get(`endAngle`),f=e.get(`padAngle`)*Pz;d=d===`auto`?u-Nz:-d*Pz;var p=e.get(`minAngle`)*Pz+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;vy(S,!_),u=S[0],d=S[1];var w=Iz(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?vg(e,b,[c,s]):s}),O=i}),E<Nz&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var Iz=E_();function Lz(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var Rz=Math.PI/180;function zz(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;Vz(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}QI(e,1,c,c+o)&&d(e)}function Bz(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;Gz(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!Gz(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,Vz(m,g,!1)}}zz(l,t,n,r,1,i,a,o,s,d),zz(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!Gz(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function Vz(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}Hz(a,r)}}}function Hz(e,t){Wz.rect=e,qI(Wz,t,Uz)}var Uz={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Wz={};function Gz(e){return e.position===`center`}function Kz(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*Rz,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Q(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Q(T,l);var E=w.get(`length2`);if(E=Q(E,l),Math.abs(d.endAngle-d.startAngle)<o){H(h.states,p),h.ignore=!0,g&&(H(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,I=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=I+k*3,!P){var ee=F+O*(T+c-d.r),L=I+k*(T+c-d.r),R=ee+(O<0?-1:1)*E,te=L;A=x===`edge`?O<0?u+S:u+l-S:R+(O<0?-b:b),j=te,M=[[F,I],[ee,L],[R,te]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ne=Math.PI,re=0,ie=v.get(`rotate`);if(Mu(ie))re=ie*(ne/180);else if(y===`center`)re=0;else if(ie===`radial`||ie===!0)re=O<0?-D+ne:-D;else if(ie===`tangential`&&y!==`outside`&&y!==`outer`){var ae=Math.atan2(O,k);ae<0&&(ae=ne*2+ae),k>0&&(ae=ne+ae),re=ae-ne}if(a=!!re,h.x=A,h.y=j,h.rotation=re,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var oe=h.states.select;oe&&(oe.x+=h.x,oe.y+=h.y)}else{var se=new Af(0,0,0,0);Hz(se,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new ff(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:se,unconstrainedWidth:se.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&Bz(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(H(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(H(v.states,p),v.ignore=!0):(LI(x,g.minTurnAngle),Ine(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new ff(x[0][0],x[0][1])})}}}var qz=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Eb;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=V(oz(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(GS(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,GS(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,WS(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),GS(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else XS(i),WS(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),gx(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=V({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},oz(s.getModel(`itemStyle`),c)),V(i.ensureState(`select`),{x:p,y:m,shape:oz(o.getModel([`select`,`itemStyle`]),c)}),V(i.ensureState(`blur`),{shape:oz(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&V(g.ensureState(`select`),{x:p,y:m}),V(_.ensureState(`select`),{x:p,y:m}),px(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;HC(r,UC(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new mS,this.setTextGuideLine(d)),zI(this,BI(i),{stroke:s,opacity:Vu(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(iS),Jz=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new iS({shape:_u(Iz(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new qz(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){YS(a.getItemGraphicEl(t),e,t)}).execute(),Kz(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(_k);function Yz(e,t,n){t=G(t)&&{coordDimensions:t}||V({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=LN(r,t).dimensions,a=new IN(i,e);return a.initData(r,n),a}var Xz=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),Zz=E_(),Qz=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xz(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Yz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=Zz(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Eg(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){r_(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(ak);ET({fullType:Qz.type,getCoord2:function(e){return e.getShallow(`center`)}});var $z=Qz;function eB(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(Mu(r)&&!isNaN(r)&&r<0)})}}}function tB(e){e.registerChartView(Jz),e.registerSeriesModel($z),dA(`pie`,e.registerAction),e.registerLayout(Au(Fz,`pie`)),e.registerProcessor(Lz(`pie`)),e.registerProcessor(eB(`pie`))}var nB=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return eP(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(ak),rB=4,iB=function(){function e(){}return e}(),aB=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new iB},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<rB,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Af(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(Wy),oB=function(){function e(){this.group=new tg}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var n=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;t=new Float32Array(t.buffer,r,n)}e.setShape(`points`,t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`points`),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new aB({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=wA(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<rB;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=Db(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),sB=function(e){B(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=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=KR(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new oB:new hR,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(_k),cB={left:0,right:0,top:0,bottom:0},lB=[`25%`,`25%`],uB=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=XT(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&YT(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&YT(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:cB,outerBoundsContain:`all`,outerBoundsClampWidth:lB[0],outerBoundsClampHeight:lB[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(tE),dB=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,A_).models[0]},t.type=`cartesian2dAxis`,t}(tE);Cu(dB,OF);var fB={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},pB=vu({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},fB),mB=vu({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},fB),hB={category:pB,value:mB,time:vu({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},mB),log:bu({logBase:10},mB)},gB={value:1,category:1,time:1,log:1},_B=null;function vB(e){_B||=e}function yB(){return _B}function bB(e,t,n,r){H(gB,function(i,a){var o=vu(vu({},hB[a],!0),r,!0),s=function(e){B(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=JT(this),r=n?XT(e):{};vu(e,t.getTheme().get(a+`Axis`)),vu(e,this.getDefaultOption()),e.type=xB(e),n&&YT(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=vP.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=yB();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,xB)}function xB(e){return e.type||(e.data?`category`:`value`)}var SB=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Eu(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),CB=[`x`,`y`];function wB(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var TB=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=CB,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!wB(e)||!wB(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s;this._invTransform=df([],this._transform=[c,0,0,l,i[0]-n[0]*c,i[1]-r[0]*l])}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Af(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return xd(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return xd(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Af(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(SB),EB=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(vI),DB=`expandAxisBreak`,OB=`collapseAxisBreak`,kB=`toggleAxisBreak`,AB=`axisbreakchanged`,jB={type:DB,event:AB,update:`update`,refineEvent:PB},MB={type:OB,event:AB,update:`update`,refineEvent:PB},NB={type:kB,event:AB,update:`update`,refineEvent:PB};function PB(e,t,n,r){var i=[];return H(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function FB(e){e.registerAction(jB,t),e.registerAction(MB,t),e.registerAction(NB,t);function t(e,t){var n=[],r=O_(t,e);function i(t,i){H(r[t],function(t){H(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(bu((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var IB=Math.PI,LB=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],RB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],zB=E_(),BB=E_(),VB=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 HB(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=fV(e.axisName)&&wF(e.nameLocation);H(r,function(e){var t=KI(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?df(UB,n.transform):af(UB),t.transform&&sf(UB,UB,t.transform),Af.copy(WB,t.localRect),WB.applyTransform(UB),s?s.union(WB):Af.copy(s=new Af(0,0,0,0),WB))}});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 Af(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var UB=rf(),WB=new Af(0,0,0,0),GB=function(e,t,n,r,i,a){if(wF(e.nameLocation)){var o=a.stOccupiedRect;o&&KB(zne({},o,a.transGroup.transform),r,i)}else qB(a.labelInfoList,a.dirVec,r,i)};function KB(e,t,n){var r=new ff;eL(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&YI(t,r)}function qB(e,t,n,r){for(var i=ff.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||KB(s,n,r)}}var JB=function(){function e(e,t,n,r){this.group=new tg,this._axisModel=e,this._api=t,this._local={},this._shared=r||new VB(GB),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;Y(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=J(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=J(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:J(e.nameDirection,1),tickDirection:J(e.tickDirection,1),labelDirection:J(e.labelDirection,1),labelOffset:J(e.labelOffset,0),silent:J(e.silent,!0),axisName:r,nameLocation:Vu(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:fV(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(Y(a.position!=null),Y(a.rotation!=null)),this._cfg=a;var o=new tg({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 ff(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},H(YB,function(r){e[r]&&XB[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=Og(t-e),i,a;return kg(r)?(a=n>0?`top`:`bottom`,i=`center`):kg(r-IB)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<IB?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}(),YB=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],XB={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;Y(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(xd(d,d,u),xd(f,f,u));var m=V({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())yB().buildAxisBreakLine(r,i,a,h);else{var g=new vS(V({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));fC(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);q(_)&&(_=[_,_]),(q(v)||Mu(v))&&(v=[v,v]);var y=EA(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];H([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=wA(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;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){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;Y(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}aV(t,i,s)&&ZB(e,t,n,r,i,a,o,qF.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}aV(t,i,s)&&ZB(e,t,n,r,i,a,o,qF.determine);var l=rV(e,i,a,r);eV(e,t.labelLayoutList,l),iV(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;Y(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(fV(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new ff(0,0),v=new ff(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=rf();v.transform(lf(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*IB/180);var x,S;wF(d)?x=JB.innerTextLayout(e.rotation,b??e.rotation,f):(x=QB(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=Bu(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new Eb({x:_.x,y:_.y,rotation:x.rotation,silent:JB.isLabelSilent(r),style:WC(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(OC({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=JB.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,Db(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=KI({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:wF(d)?LB[D]:RB[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&Y(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function ZB(e,t,n,r,i,a,o,s){sV(t)||oV(e,t,i,s,r,o);var c=t.labelLayoutList;lV(e,r,c,a),mV(r,e.rotation,c);var l=e.optionHideOverlap;$B(r,c,l),l&&$I(Eu(c,function(e){return e&&!e.label.ignore})),HB(e,n,r,c)}function QB(e,t,n,r){var i=Og(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return kg(i-IB/2)?(o=c?`bottom`:`top`,a=`center`):kg(i-IB*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<IB*1.5&&i>IB/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function $B(e,t,n){if(xF(e.axis))return;function r(e,r,i){var a=KI(t[r]),o=KI(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){tV(a.label);return}if(o.suggestIgnore){tV(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=XI({marginForce:c},a),o=XI({marginForce:c},o)}eL(a,o,null,{touchThreshold:s})&&tV(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 eV(e,t,n){e.showMinorTicks||H(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=BB(r),a=zB(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){tV(r);return}}})}function tV(e){e&&(e.ignore=!0)}function nV(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&&(xd(o,o,t),xd(s,s,t));var u=new vS({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});fC(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=BB(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function rV(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=nV(i.getTicksCoords(),n.transform,c,bu(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function iV(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=bu(c.getLineStyle(),bu(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=nV(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function aV(e,t,n){if(sV(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&Y(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),cV(e,null,null,null))}return!0}function oV(e,t,n,r,i,a){var o=i.axis,s=Bu(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new tg;n.add(c);var l=JF(r);if(!s||o.scale.isBlank()){cV(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Bu(e.raw.labelRotate,u.get(`rotate`))||0)*IB/180,p=JB.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;H(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];Nu(f)&&f.textStyle&&(l=new mw(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=J(l.getShallow(`alignMinLabel`,!0),b),S=J(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=J(l.getShallow(`verticalAlignMinLabel`,!0),C),T=J(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new Eb({x:0,y:0,rotation:0,silent:JB.isLabelSilent(i),z2:E,style:WC(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:K(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=zB(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,OC({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=JB.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),Db(D).eventData=k,e.break&&pV(i,a,D,e.break)}h.push(D),c.add(D)}),cV(t,U(h,function(e){return{label:e,priority:zB(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function sV(e){return!!e.labelLayoutList}function cV(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function lV(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);H(n,function(n,a){var o=KI(n);if(o){var s=o.label,c=zB(s);o.suggestIgnore=s.ignore,s.ignore=!1,wh(uV,dV),uV.x=t.axis.dataToCoord(c.tickValue),uV.y=e.labelOffset+e.labelDirection*i,uV.rotation=c.layoutRotation,r.add(uV),uV.updateTransform(),r.remove(uV),uV.decomposeTransform(),wh(s,uV),s.markRedraw(),WI(o,!0),KI(o)}})}var uV=new sb,dV=new sb;function fV(e){return!!e}function pV(e,t,n,r){n.on(`click`,function(n){var i={type:DB,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function mV(e,t,n){var r=Pw();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&zB(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&H(i,function(r){yB().adjustBreakLabelPair(e.axis.inverse,t,[KI(n[r[0]]),KI(n[r[1]])])})}}var hV=JB;function gV(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),Bu(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function _V(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function vV(e){var t={xAxisModel:null,yAxisModel:null};return H(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,A_).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+Vu(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function yV(e,t,n,r,i,a){for(var o=gV(e,n),s=!1,c=!1,l=0;l<t.length;l++)nP(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new hV(n,r,o,i)}function bV(e,t,n){var r=gV(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();H(Ou(r),function(e){e!==`position`&&e!==`labelOffset`&&Y(r[e]===i[e])})}e.updateCfg(r)}function xV(e,t,n){var r=CP.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,{expandToNicedExtent:!0}),o=i.length-1,s=r.getInterval.call(n),c=pF(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;e.type===`log`&&(l=fP(e.base,l,!0)),e.setBreaksFromOption(EF(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(l[0]=f[0]),d&&(l[1]=f[1]);var p=r.getInterval.call(e),m=l[0],h=l[1];if(u&&d)p=(h-m)/o;else if(u)for(h=l[0]+p*o;h<l[1]&&isFinite(h)&&isFinite(l[1]);)p=iP(p),h=l[0]+p*o;else if(d)for(m=l[1]-p*o;m>l[0]&&isFinite(m)&&isFinite(l[0]);)p=iP(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=iP(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=xg(h-g),m<0&&l[0]>=0?(m=0,h=xg(g)):h>0&&l[1]<=0&&(h=0,m=-xg(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;if(r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p),process.env.NODE_ENV!==`production`){var y=r.getTicks.call(e);y[1]&&(!tP(p)||wg(y[1].value)>wg(p))&&qg(`The ticks may be not readable when set min: `+t.get(`min`)+`, max: `+t.get(`max`)+(` and alignTicks: true. (`+t.axis?.dim+`AxisIndex: `+t.componentIndex+`)`),!0)}}var SV=[[3,1],[0,2]],CV=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=CB,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=Ou(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;nP(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(hF(c,s),nP(c)&&(t=o))}i.length&&(t||(t=i.pop(),hF(t.scale,t.model)),H(i,function(e){xV(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};H(n.x,function(e){TV(n,`y`,e,i)}),H(n.y,function(e){TV(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=GT(e,t),i=this._rect=HT(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(OV(a,i),!n){var c=NV(i,o,a,s,t),l=void 0;if(s)AV?(AV(this._axesList,i),OV(a,i)):(process.env.NODE_ENV!==`production`&&Kg("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=MV(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=FV(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=MV(d,f,p,i,a,c,r))}PV(i,a,qF.determine,null,l,r)}H(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}Nu(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,A_).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,A_).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,xu(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,H(o.x,function(t,n){H(o.y,function(i,a){var o=`x`+n+`y`+a,s=new TB(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(wV(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new EB(t,gF(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){H(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(_V(e)){var r=vV(e),i=r.xAxisModel,a=r.yAxisModel;if(!wV(i,t)||!wV(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){H(SF(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return H(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);xu(t,i)<0&&t.push(i),xu(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){jT({targetModel:e,coordSysType:`cartesian2d`,coordSysProvider:t});function t(){var t=vV(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`Grid "`+Vu(n.get(`gridIndex`),n.get(`gridId`),0)+`" not found`);if(n.getCoordSysModel()!==r.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return i.coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=CB,e}();function wV(e,t){return e.getCoordSysModel()===t}function TV(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)EV(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&EV(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function EV(e){return e&&e.type!==`category`&&e.type!==`time`&&_F(e)}function DV(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function OV(e,t){H(e.x,function(e){return kV(e,t.x,t.width)}),H(e.y,function(e){return kV(e,t.y,t.height)})}function kV(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),DV(e,t)}var AV;function jV(e){AV=e}function MV(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&Y(t===`all`||t===`axisLabel`),PV(r,i,qF.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Du(s,function(e){return e>0})==null;return TC(r,s,!0,!0,n),OV(i,r),c;function l(e){H(i[eC[e]],function(t){if(TF(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(zB(o.label).tickValue);s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=wF(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[eC[n]]-t[eC[n]],a=t[tC[n]]+t[eC[n]]-(e[tC[n]]+e[eC[n]]);i=d(i,1-r),a=d(a,r);var o=SV[n][0],c=SV[n][1];s[o]=gg(s[o],i),s[c]=gg(s[c],a)}function d(e,t){return e>0&&!zu(t)&&t>1e-4&&(e/=t),e}}function NV(e,t,n,r,i){var a=new VB(IV);return H(n,function(n){return H(n,function(n){if(TF(n.model)){var o=!r;n.axisBuilder=yV(e,t,n.model,i,a,o)}})}),a}function PV(e,t,n,r,i,a){var o=n===qF.determine;H(t,function(t){return H(t,function(t){TF(t.model)&&(bV(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[eC[1-t]]=e[tC[t]]<=a.refContainer[tC[t]]*.5?0:1-t==1?2:1}H(t,function(e,t){return H(e,function(e){TF(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function FV(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=HT(e.get(`outerBounds`,!0)||cB,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Jg(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:xu([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Jg(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[bg(J(e.get(`outerBoundsClampWidth`,!0),lB[0]),t.width),bg(J(e.get(`outerBoundsClampHeight`,!0),lB[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var IV=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;GB(e,t,n,r,i,a),wF(e.nameLocation)||H(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&qB(e.labelInfoList,e.dirVec,r,i)})},LV=CV;function RV(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return zV(n,e,t),n.seriesInvolved&&VV(n,e),n}function zV(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];H(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=JV(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(H(n.getAxes(),Au(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)&&H(f.baseAxes,Au(p,d?`cross`:!0,u)),d&&H(f.otherAxes,Au(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!qV(d))){s??=d.get(`triggerTooltip`),d=r?BV(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=JV(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:qV(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=HV(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function BV(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};H(s,function(e){c[e]=_u(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&&bu(l,u.textStyle)}return e.model.getModel(`axisPointer`,new mw(c,n,r))}function VV(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||H(e.coordSysAxesInfo[JV(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 HV(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(UV(a[r+`AxisId`],n.id)||UV(a[r+`AxisIndex`],n.componentIndex)||UV(a[r+`AxisName`],n.name))return i}}function UV(e,t){return e===`all`||G(e)&&xu(e,t)>=0||e===t}function WV(e){var t=GV(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=qV(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 GV(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[JV(e)]}function KV(e){var t=GV(e);return t&&t.axisPointerModel}function qV(e){return!!e.get([`handle`,`show`])}function JV(e){return e.type+`||`+e.id}var YV={},XV=function(e){B(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&&WV(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=KV(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){if(process.env.NODE_ENV!==`production`&&YV[e])throw Error(`axisPointer `+e+` exists`);YV[e]=t},t.getAxisPointerClass=function(e){return e&&YV[e]},t.type=`axis`,t}(sk),ZV=E_();function QV(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=ZV(e).splitAreaColors,f=X(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=G(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new sb({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:bu({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}ZV(e).splitAreaColors=f}}}function $V(e){ZV(e).splitAreaColors=null}var eH=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],tH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new tg,this.group.add(this._axisGroup),TF(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),H(eH,function(e){t.get([e,`show`])&&nH[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||vC(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){$V(this)},t.type=`cartesianAxis`,t}(XV),nH={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=G(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new vS({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:bu({stroke:c[x]},_),silent:!0});fC(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new vS({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});fC(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){QV(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=yB(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},rH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(tH),iH=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=rH.type,t}return t.type=`yAxis`,t}(tH),aH=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new sb({shape:e.coordinateSystem.getRect(),style:bu({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(sk),oH={offset:0};function sH(e){e.registerComponentView(aH),e.registerComponentModel(uB),e.registerCoordinateSystem(`cartesian2d`,LV),bB(e,`x`,dB,oH),bB(e,`y`,dB,oH),e.registerComponentView(rH),e.registerComponentView(iH),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function cH(e,t){var n=e.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===`cartesian2d`&&a===`ordinal`||r===`single`,s=t.model.get(`jitter`)>0;return o&&s}var lH=E_();function uH(e,t,n,r){if(e instanceof EB){var i=e.scale.type;if(i!==`category`&&i!==`ordinal`)return n}var a=e.model,o=a.get(`jitter`),s=a.get(`jitterOverlap`),c=a.get(`jitterMargin`)||0,l=e.scale.type===`ordinal`?e.getBandWidth():null;return o>0?s?dH(n,o,l,r):fH(e,t,n,r,o,c):n}function dH(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function fH(e,t,n,r,i,a){var o=lH(e);o.items||=[];var s=o.items,c=pH(s,t,n,r,i,a,1),l=pH(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=e.scale.type===`ordinal`?e.getBandWidth():null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?dH(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function pH(e,t,n,r,i,a,o){for(var s=n,c=0;c<e.length;c++){var l=e[c],u=t-l.fixedCoord,d=s-l.floatCoord,f=u*u+d*d,p=r+l.r+a;if(f<p*p){var m=l.floatCoord+Math.sqrt(p*p-u*u)*o;if(Math.abs(m-n)>i/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m<s){s=m,c=-1;continue}}}return s}function mH(e){e.eachSeriesByType(`scatter`,function(e){var t=e.coordinateSystem;if(t&&(t.type===`cartesian2d`||t.type===`single`)){var n=t.getBaseAxis?t.getBaseAxis():null;if(n&&cH(e,n)){var r=e.getData();r.each(function(e){var t=n.dim,i=n.orient,a=i===`horizontal`&&n.type!==`category`||i===`vertical`&&n.type===`category`,o=r.getItemLayout(e),s=r.getItemVisual(e,`symbolSize`),c=s instanceof Array?(s[1]+s[0])/2:s;if(t===`y`||t===`single`&&a){var l=uH(n,o[0],o[1],c/2);r.setItemLayout(e,[o[0],l])}else if(t===`x`||t===`single`&&!a){var l=uH(n,o[1],o[0],c/2);r.setItemLayout(e,[l,o[1]])}})}}})}function hH(e){aN(sH),e.registerSeriesModel(nB),e.registerChartView(sB),e.registerLayout(KR(`scatter`))}function gH(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,mH)}function _H(e){e.eachSeriesByType(`radar`,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();H(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=vH(i)?i:yH(r)})}),t.each(function(e){var i=Du(n[e],function(e){return vH(e)})||yH(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function vH(e){return!isNaN(e[0])&&!isNaN(e[1])}function yH(e){return[e.cx,e.cy]}function bH(e){var t=e.polar;if(t){G(t)||(t=[t]);var n=[];H(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],G(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}H(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var xH=function(e){B(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=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=TA(e.getItemVisual(t,`symbolSize`)),i=wA(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),QS[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return U(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new dS,i=new mS,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),GS(r,o,e,t),GS(i,o,e,t);var s=new tg,u=new tg;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),XS(s),XS(i),WS(i,u,e),WS(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(bu(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),gx(r,n,`lineStyle`),gx(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,H([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=_u(l)})}),o.useStyle(bu(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Qy){var r=e.style;e.useStyle(V({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),HC(e,UC(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),px(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=`radar`,t}(_k),SH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xz(W(this.getData,this),W(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Yz(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=qO(this,e);return BO(`section`,{header:o,sortBlocks:!0,blocks:U(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return BO(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(U(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.radar`,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(ak),CH=hB.value;function wH(e,t){return bu({show:t},e)}var TH=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`scale`),r=this.get(`axisLine`),i=this.get(`axisTick`),a=this.get(`axisLabel`),o=this.get(`axisName`),s=this.get([`axisName`,`show`]),c=this.get([`axisName`,`formatter`]),l=this.get(`axisNameGap`),u=this.get(`triggerEvent`);this._indicatorModels=U(this.get(`indicator`)||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=bu({color:d.color},o));var p=vu(_u(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(q(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else K(c)&&(p.name=c(p.name,p));var h=new mw(p,null,this.ecModel);return Cu(h,OF.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this)},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:vu({lineStyle:{color:$.color.neutral20}},CH.axisLine),axisLabel:wH(CH.axisLabel,!1),axisTick:wH(CH.axisTick,!1),splitLine:wH(CH.splitLine,!0),splitArea:wH(CH.splitArea,!0),indicator:[]},t}(tE),EH=function(e){B(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){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;H(U(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new hV(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=G(u)?u:[u],p=G(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new zx({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new oS({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=U(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),U(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]?T.push(T[0].slice()):process.env.NODE_ENV!==`production`&&console.error(`Can't draw value axis `+b),c){var x=g(m,f,b);m[x].push(new mS({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new dS({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();H(h,function(e,t){this.group.add(uC(e,{style:bu({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),H(m,function(e,t){this.group.add(uC(e,{style:bu({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(sk),DH=function(e){B(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(vI),OH=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new DH(n,new CP);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer,r=e.get(`center`),i=Math.min(n.width,n.height)/2;this.cx=Q(r[0],n.width)+n.x,this.cy=Q(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var a=e.get(`radius`);(q(a)||Mu(a))&&(a=[0,a]),this.r0=Q(a[0],i),this.r=Q(a[1],i),H(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;H(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType(`radar`,function(t,i){if(!(t.get(`coordinateSystem`)!==`radar`||e.getComponent(`radar`,t.get(`radarIndex`))!==r)){var a=t.getData();H(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get(`splitNumber`),a=new CP;a.setExtent(0,i),a.setInterval(1),H(n,function(e,t){xV(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(`radar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(`radar`,function(e){e.get(`coordinateSystem`)===`radar`&&(e.coordinateSystem=r[e.get(`radarIndex`)||0])}),r},e.dimensions=[],e}();function kH(e){e.registerCoordinateSystem(`radar`,OH),e.registerComponentModel(TH),e.registerComponentView(EH),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}function AH(e){aN(kH),e.registerChartView(xH),e.registerSeriesModel(SH),e.registerLayout(_H),e.registerProcessor(Lz(`radar`)),e.registerPreprocessor(bH)}var jH=E_();function MH(e,t,n){jH(e)[t]=n}function NH(e,t,n){var r=jH(e);r[t]===n&&(r[t]=null)}function PH(e,t){return!!jH(e)[t]}qM({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},td);var FH={axisPointer:1,tooltip:1,brush:1};function IH(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||FH.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=FC(r),o=FC(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var LH=function(e){B(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=FC(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:J(c.z2,-1/0)},p=V({},n.triggerInfo);this._opt=bu(V({},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`)&&(VH(t,`mousedown`,r,f),VH(t,`mousemove`,i,f),VH(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(VH(t,`mousewheel`,o,f),VH(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,HH(t,`mousedown`,r),HH(t,`mousemove`,i),HH(t,`mouseup`,a),HH(t,`mousewheel`,o),HH(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(IH(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(!(Qd(e)||RH(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`||PH(t,`globalPan`)||RH(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!KH(`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&&Zd(e.event),e.__ecRoamConsumed=!0,GH(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!RH(e)){var t=this._zr;if(!Qd(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!RH(e)){var t=KH(`zoomOnMouseWheel`,e,this._opt),n=KH(`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(!(PH(this._zr,`globalPan`)||RH(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)&&(Zd(r.event),r.__ecRoamConsumed=!0,GH(e,t,n,r,i))},t}(Ed);function RH(e){return e.__ecRoamConsumed}var zH=E_();function BH(e){var t=zH(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function VH(e,t,n,r){for(var i=BH(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}),UH(e,t)}function HH(e,t,n){for(var r=BH(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||WH(e,t);return}}function UH(e,t){var n=BH(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 WH(e,t){var n=BH(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function GH(e,t,n,r,i){i.isAvailableBehavior=W(KH,null,n,r),e.trigger(t,i)}function KH(e,t,n){var r=n[e];return!e||r&&(!q(r)||t.event[r+`Key`])}var qH=LH;function JH(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function YH(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;o*=t,o=eU(o,a);var s=o/e.zoom;e.zoom=o,$H(i,n,r,s),i.dirty()}function XH(e,t,n,r,i,a){var o=new Af(0,0,0,0);r.enable(e.get(`roam`),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,r){return o.copy(n.getBoundingRect()),o.applyTransform(n.getComputedTransform()),o.contain(t,r)},isInClip:function(e,t,n){return!a||a.contain(t,n)}}}),i.zoomLimit=e.get(`scaleLimit`);var s=e.coordinateSystem;i.zoom=s?s.getZoom():1;var c=e.subType+`Roam`;r.off(`pan`).off(`zoom`).on(`pan`,function(n){JH(i,n.dx,n.dy),t.dispatchAction({seriesId:e.id,type:c,dx:n.dx,dy:n.dy})}).on(`zoom`,function(n){YH(i,n.scale,n.originX,n.originY),t.dispatchAction({seriesId:e.id,type:c,zoom:n.scale,originX:n.originX,originY:n.originY}),t.updateLabelLayout()})}function ZH(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function QH(e,t,n){var r=e.getZoom(),i=e.getCenter(),a=t.zoom,o=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(ZH(e,o))),a!=null&&(a=eU(r*a,n)/r,$H(e,t.originX,t.originY,a),e.updateTransform(),e.setCenter(ZH(e,o)),e.setZoom(a*r)),{center:e.getCenter(),zoom:e.getZoom()}}function $H(e,t,n,r){e.x-=(t-e.x)*(r-1),e.y-=(n-e.y)*(r-1),e.scaleX*=r,e.scaleY*=r}function eU(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function tU(e){q(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var nU,rU={fill:`fill`,stroke:`stroke`,"stroke-width":`lineWidth`,opacity:`opacity`,"fill-opacity":`fillOpacity`,"stroke-opacity":`strokeOpacity`,"stroke-dasharray":`lineDash`,"stroke-dashoffset":`lineDashOffset`,"stroke-linecap":`lineCap`,"stroke-linejoin":`lineJoin`,"stroke-miterlimit":`miterLimit`,"font-family":`fontFamily`,"font-size":`fontSize`,"font-style":`fontStyle`,"font-weight":`fontWeight`,"text-anchor":`textAlign`,visibility:`visibility`,display:`display`},iU=Ou(rU),aU={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},oU=Ou(aU),sU=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=tU(e);if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Illegal svg`);this._defsUsePending=[];var r=new tg;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),pU(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;_U(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=yU(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=EU(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new tg,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new sb({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=nU[o];if(l&&Z(nU,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=cU[o];if(f&&Z(cU,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new qy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});dU(t,n),pU(e,n,this._defsUsePending,!1,!1),mU(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){nU={g:function(e,t){var n=new tg;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new sb;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new zx;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new vS;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new Vx;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=fU(n));var i=new dS({shape:{points:r||[]},silent:!0});return dU(t,i),pU(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=fU(n));var i=new mS({shape:{points:r||[]},silent:!0});return dU(t,i),pU(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Qy;return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new tg;return dU(t,o),pU(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new tg;return dU(t,o),pU(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Ix(e.getAttribute(`d`)||``);return dU(t,n),pU(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),cU={lineargradient:function(e){var t=new OS(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return lU(e,t),uU(e,t),t},radialgradient:function(e){var t=new kS(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return lU(e,t),uU(e,t),t}};function lU(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function uU(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};wU(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Xp(o);c&&c[3]&&(c[3]*=Hp(s),o=im(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function dU(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},bu(t.__inheritedStyle,e.__inheritedStyle))}function fU(e){for(var t=yU(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function pU(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(SU(e,t),wU(e,o,s),r||TU(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=gU(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=gU(a,`stroke`,o.stroke,n)),H([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),H([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=U(yU(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function mU(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var hU=/^url\(\s*#(.*?)\)/;function gU(e,t,n,r){var i=n&&n.match(hU);if(i){var a=Wu(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function _U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var vU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yU(e){return e.match(vU)||[]}var bU=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xU=Math.PI/180;function SU(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(bU,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=yU(o);switch(i||=rf(),s){case`translate`:cf(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:uf(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:lf(i,i,-parseFloat(c[0])*xU,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*xU);sf(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*xU);sf(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var CU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wU(e,t,n){var r=e.getAttribute(`style`);if(r){CU.lastIndex=0;for(var i;(i=CU.exec(r))!=null;){var a=i[1],o=Z(rU,a)?rU[a]:null;o&&(t[o]=i[2]);var s=Z(aU,a)?aU[a]:null;s&&(n[s]=i[2])}}}function TU(e,t,n){for(var r=0;r<iU.length;r++){var i=iU[r],a=e.getAttribute(i);a!=null&&(t[rU[i]]=a)}for(var r=0;r<oU.length;r++){var i=oU[r],a=e.getAttribute(i);a!=null&&(n[aU[i]]=a)}}function EU(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function DU(e,t){return new sU().parse(e,t)}var OU=X([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),kU=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=X(),this._freedGraphics=[],this._mapName=e,this._parsedXML=tU(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=jU(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&DU(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Y(n!=null)}catch(e){throw Error(`Invalid svg format
|
|
64
|
+
`+e.message)}var r=new tg;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Af(c,l,u,d)}if(o){var p=EU(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new sb({shape:s.plain()}));var m=[];return H(t.named,function(e){OU.get(e.svgNodeTagLower)!=null&&(m.push(e),AU(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function AU(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function jU(e){var t=[],n=X();return H(e,function(e){if(e.namedFrom==null){var r=new BF(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var MU=[126,25],NU=`南海诸岛`,PU=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],FU=0;FU<PU.length;FU++)for(var IU=0;IU<PU[FU].length;IU++)PU[FU][IU][0]/=10.5,PU[FU][IU][1]/=-10.5/.75,PU[FU][IU][0]+=MU[0],PU[FU][IU][1]+=MU[1];function LU(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===NU)return;t.push(new zF(NU,U(PU,function(e){return{type:`polygon`,exterior:e}}),MU))}}var RU={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function zU(e,t){if(e===`china`){var n=RU[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var BU=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function VU(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:BU[0]})}var HU=`name`,UU=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=X(),this._mapName=e,this._specialAreas=n,this._geoJSON=GU(t)}return e.prototype.load=function(e,t){t||=HU;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:WU(r)})}var i=X(),a=[];return H(n.regions,function(t){var n=t.name;e&&Z(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new Af(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?WF(n,e):[]}catch(e){throw Error(`Invalid geoJson format
|
|
65
|
+
`+e.message)}return LU(t,r),H(r,function(e){var n=e.name;zU(t,e),VU(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function WU(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function GU(e){return q(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var KU=X(),qU={registerMap:function(e,t,n){if(t.svg){var r=new kU(e,t.svg);KU.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new UU(e,i,n);KU.set(e,r)}},getGeoResource:function(e){return KU.get(e)},getMapForUser:function(e){var t=KU.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=KU.get(e);if(!r){process.env.NODE_ENV!==`production`&&console.error(`Map `+e+` not exists. The GeoJSON of the map must be provided.`);return}return r.load(t,n)}},JU=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],YU=X(JU),XU=X(JU.concat([`g`])),ZU=X(JU.concat([`g`])),QU=E_();function $U(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function eW(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var tW=function(){function e(e){var t=this.group=new tg,n=this._transformGroup=new tg;t.add(n),this.uid=gw(`ec_map_draw`),this._controller=new qH(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new tg),n.add(this._svgGroup=new tg)}return e.prototype.draw=function(e,t,n,r,i){var a=e.mainType===`geo`,o=e.getData&&e.getData();a&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=this._regionsGroup,l=this._transformGroup,u=s.getTransformInfo(),d=u.raw,f=u.roam,p=!c.childAt(0)||i,m=e.getShallow(`clip`,!0),h;m?(h=s.getViewRect().clone(),this.group.setClipPath(new sb({shape:h.clone()}))):this.group.removeClipPath(),p?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):WS(l,f,e);var g=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0,_={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(_):s.resourceType===`geoSVG`&&this._buildSVG(_),this._updateController(e,h,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),n=X(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),H(e.geo.regions,function(i){var u=i.name,f=t.get(u),p=n.get(u)||{},m=p.dataIdx,h=p.regionModel;if(!f){f=t.set(u,new tg),r.add(f),m=o?o.indexOfName(u):null,h=e.isGeo?a.getRegionModel(u):o?o.getItemModel(m):null;var g=h.get(`silent`,!0);g!=null&&(f.silent=g),n.set(u,{dataIdx:m,regionModel:h})}var _=[],v=[];H(i.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);c&&(t=sW(t,c)),H(t,function(e){_.push(new dS(d(e)))})}else{var n=e.points;c&&(n=sW(n,c,!0)),H(n,function(e){v.push(new mS(d(e)))})}});var y=l(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new ES({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),nW(e,r,m,h),rW(e,r,u,h,a,m,y),n&&(eW(r),H(r.states,eW))}}b(_),b(v,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;iW(e,t,r,s,a,o),aW(e,t,r,s,a),oW(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=X(),i=!1;H(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);YU.get(s)!=null&&c instanceof zv&&nW(e,c,l,u),c instanceof zv&&(c.culling=!0);var d=u.get(`silent`,!0);d!=null&&(c.silent=d),c.z2EmphasisLift=0,t.namedFrom||(ZU.get(s)!=null&&rW(e,c,n,u,a,l,null),iW(e,c,n,u,a,l),aW(e,c,n,u,a),XU.get(s)!=null&&(oW(e,c,n,u,a)===`self`&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Zb(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=qU.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=qU.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n,r){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get(`scaleLimit`),o.zoom=i.getZoom(),a.enable(e.get(`roam`)||!1,{api:r,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,n){return i.containPoint([t,n])},isInClip:function(e,n,r){return!t||t.contain(n,r)}}});var s=e.mainType;function c(){var t={type:`geoRoam`,componentType:s};return t[s+`Id`]=e.id,t}a.off(`pan`).on(`pan`,function(e){this._mouseDownFlag=!1,JH(o,e.dx,e.dy),r.dispatchAction(V(c(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),a.off(`zoom`).on(`zoom`,function(e){this._mouseDownFlag=!1,YH(o,e.scale,e.originX,e.originY),r.dispatchAction(V(c(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this)},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=QU(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function nW(e,t,n,r){var i=r.getModel(`itemStyle`),a=r.getModel([`emphasis`,`itemStyle`]),o=r.getModel([`blur`,`itemStyle`]),s=r.getModel([`select`,`itemStyle`]),c=$U(i),l=$U(a),u=$U(s),d=$U(o),f=e.data;if(f){var p=f.getItemVisual(n,`style`),m=f.getItemVisual(n,`decal`);e.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=pj(m,e.api))}t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState(`emphasis`).style=l,t.ensureState(`select`).style=u,t.ensureState(`blur`).style=d,Zb(t)}function rW(e,t,n,r,i,a,o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension(`value`),a)),u=s&&s.getItemLayout(a);if(c||l||u&&u.showLabel){var d=c?n:a,f=void 0;(!s||a>=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;HC(t,UC(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(QU(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function iW(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Db(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function aW(e,t,n,r,i){e.data||OC({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function oW(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return px(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&Ite(t,i,n),o}function sW(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),H(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var cW=tW,lW=function(e){B(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,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&r.type===`geoRoam`&&this._mapDraw.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id){var a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new cW(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension(`value`),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new zx({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),u=r.getName(n),d=l.indexOfName(u),f=r.getItemModel(n),p=f.getModel(`label`),m=l.getItemGraphicEl(d);HC(c,UC(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Yb(c,e)}}i.add(c)}}})},t.type=`map`,t}(_k),uW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=Yz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)}),n=X(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return H(qU.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&vu(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(AT(this).kind!==kT.boxCoordSys)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension(`value`);isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return BO(`section`,{header:s.join(`, `),noHeader:!s.length,blocks:[BO(`nameValue`,{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=wA(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(ak);function dW(e,t){var n={};return H(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}function fW(e){var t={};e.eachSeriesByType(`map`,function(e){var n=e.getHostGeoModel(),r=n?`o`+n.id:`i`+e.getMapType();(t[r]=t[r]||[]).push(e)}),H(t,function(e,t){for(var n=dW(U(e,function(e){return e.getData()}),e[0].get(`mapValueCalculation`)),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(var r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=r===0&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function pW(e){var t={};e.eachSeriesByType(`map`,function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};H(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&r.each(r.mapDimension(`value`),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var mW=xd,hW=function(e){B(t,e);function t(t,n){var r=e.call(this)||this;return r.type=`view`,r.dimensions=[`x`,`y`],r._roamTransformable=new Th,r._rawTransformable=new Th,r.name=t,r._opt=n,r}return t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Af(e,t,n,r),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Af(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new Af(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e){var t=this._opt;t&&t.api&&t.ecModel&&t.ecModel.getShallow(`legacyViewCoordSysCenterBase`)&&e&&(e=[Q(e[0],t.api.getWidth()),Q(e[1],t.api.getWidth())]),this._centerOption=_u(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=eU(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,t=this._rect;e&&t&&(this._center=[Q(e[0],t.width,t.x),Q(e[1],t.height,t.y)]);var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=xd([],a,n),i=xd([],i,n),r.originX=a[0],r.originY=a[1],r.x=i[0]-a[0],r.y=i[1]-a[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),of(this.transform||=[],t.transform||rf()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],df(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Th;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n||=[],r?mW(n,e,r):od(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=this.invTransform;return r?mW(n,e,r):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,t,n){var r=gW(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=gW(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=[`x`,`y`],t}(Th);function gW(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var _W=hW,vW={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},yW=[`lng`,`lat`],bW=function(e){B(t,e);function t(t,n,r){var i=e.call(this,t,{api:r.api,ecModel:r.ecModel})||this;i.dimensions=yW,i.type=`geo`,i._nameCoordMap=X(),i.map=n;var a=r.projection,o=qU.load(n,r.nameMap,r.nameProperty),s=qU.getGeoResource(n),c=i.resourceType=s?s.type:null,l=i.regions=o.regions,u=vW[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,process.env.NODE_ENV!==`production`&&a&&(c===`geoSVG`&&(process.env.NODE_ENV!==`production`&&qg(`Map `+n+` with SVG source can't use projection. Only GeoJSON source supports projection.`),a=null),a.project&&a.unproject||(process.env.NODE_ENV!==`production`&&qg(`project and unproject must be both provided in the projeciton.`),a=null)),i.projection=a;var d;if(a)for(var f=0;f<l.length;f++){var p=l[f].getBoundingRect(a);d||=p.clone(),d.union(p)}else d=o.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=a?1:J(r.aspectScale,u.aspectScale),i._invertLongitute=a?!1:u.invertLongitute,i}return t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new Af(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(q(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.pointToProjected(e,n)},t.prototype.pointToProjected=function(t,n){return e.prototype.pointToData.call(this,t,0,n)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=xW(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=xW(t);return r===this?r.pointToData(n):null},t}(_W);Cu(bW,_W);function xW(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,A_).models[0]||{}).coordinateSystem:null}var SW=bW;function CW(e,t){var n=e.get(`boundingCoords`);if(n!=null){var r=n[0],i=n[1];if(!(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!==`production`&&console.error(`Invalid boundingCoords`);else{var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,d=a.project([e+s*u,t+c*u]);Sd(r,r,d),Cd(i,i,d)}};u(o,s,c,s),u(c,s,c,l),u(c,l,o,l),u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),f=e.get(`layoutCenter`),p=e.get(`layoutSize`),m=GT(e,t).refContainer,h=d.width/d.height*this.aspectScale,g=!1,_,v;f&&p&&(_=[Q(f[0],m.width)+m.x,Q(f[1],m.height)+m.y],v=Q(p,Math.min(m.width,m.height)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(v)?g=!0:process.env.NODE_ENV!==`production`&&console.warn(`Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.`));var y;if(g)y={},h>1?(y.width=v,y.height=v/h):(y.height=v,y.width=v*h),y.y=_[1]-y.height/2,y.x=_[0]-y.width/2;else{var b=e.getBoxLayoutParams();b.aspect=h,y=HT(b,m),y=UT(e,y,h)}this.setViewRect(y.x,y.y,y.width,y.height),this.setCenter(e.get(`center`)),this.setZoom(e.get(`zoom`))}function wW(e,t){H(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var TW=new(function(){function e(){this.dimensions=yW}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new SW(o+a,o,V({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));s.zoomLimit=i.get(`scaleLimit`),n.push(s),i.coordinateSystem=s,s.model=i,s.resize=CW,s.resize(i,t)}),e.eachSeries(function(e){jT({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,A_).models[0];return t&&t.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),H(i,function(i,a){var o=new SW(a,a,V({nameMap:yu(U(i,function(e){return e.get(`nameMap`)})),api:t,ecModel:e},r(i[0])));o.zoomLimit=Bu.apply(null,U(i,function(e){return e.get(`scaleLimit`)})),n.push(o),o.resize=CW,o.resize(i[0],t),H(i,function(e){e.coordinateSystem=o,wW(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=X(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return H(qU.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&vu(n,r)}),i},e}()),EW=function(e){B(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,n){this.mergeDefaultAndTheme(e,n);var r=qU.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}r_(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=TW.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Tu(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new mw(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},X()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new mw(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(K(r))return i.status=t,r(i);if(q(r))return r.replace(`{a}`,e??``)},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type=`geo`,t.layoutMode=`box`,t.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},regions:[]},t}(tE),DW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new cW(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;mA(e.target,function(e){return(t=Db(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=Db(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(sk);function OW(e,t,n){qU.registerMap(e,t,n)}function kW(e){e.registerCoordinateSystem(`geo`,TW),e.registerComponentModel(EW),e.registerComponentView(DW),e.registerImpl(`registerMap`,OW),e.registerImpl(`getMap`,function(e){return qU.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;H(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];H(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType;r||(e.geoId==null?e.seriesId!=null&&(r=`series`):r=`geo`),r||=`series`,t.eachComponent({mainType:r,query:e},function(t){var n=t.coordinateSystem;if(n.type===`geo`){var i=QH(n,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),r===`series`&&H(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function AW(e){aN(kW),e.registerChartView(lW),e.registerSeriesModel(uW),e.registerLayout(pW),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fW),dA(`map`,e.registerAction)}function jW(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function MW(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){IW(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=LW(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function NW(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function PW(e){return arguments.length?e:HW}function FW(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function IW(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function LW(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=RW(s),a=zW(a),s&&a;){i=RW(i),o=zW(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(VW(BW(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!RW(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!zW(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function RW(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function zW(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function BW(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function VW(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function HW(e,t){return e.parentNode===t.parentNode?1:2}var UW=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),WW=function(e){B(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new UW},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=Q(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(Wy),GW=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new tg,n}return t.prototype.init=function(e,t){this._controller=new qH(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,null,t,n);var o=this._data;r.diff(o).add(function(t){KW(r,t)&&qW(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!KW(r,t)){i&&ZW(o,n,i,a,e);return}qW(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&ZW(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get(`nodeScaleRatio`),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];Jv(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=new _W(null,{api:t,ecModel:e.ecModel});c.zoomLimit=e.get(`scaleLimit`),c.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),c.setCenter(e.get(`center`)),c.setZoom(e.get(`zoom`)),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n,r){var i=this;XH(e,r,this.group,this._controller,this._controllerHost,t),this._controller.on(`zoom`,function(t){i._updateNodeAndLinkScale(e)})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=`tree`,t}(_k);function KW(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function qW(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:$.color.neutral00,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new dR(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,WS(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=T*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Qu(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(Db(n).focus=k),JW(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Yb(n.__edge,t)}})}function JW(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new CS({shape:QW(u,d,f,i,i)}),WS(h,{shape:QW(u,d,f,a,o)},e));else if(l===`polyline`){if(u===`orthogonal`){if(t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new WW({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),WS(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}}else if(process.env.NODE_ENV!==`production`)throw Error(`The polyline edgeShape can only be used in orthogonal layout`)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(bu({strokeNoScale:!0,fill:null},m)),gx(h,c,`lineStyle`),Zb(h),s.add(h))}function YW(e,t,n,r,i){var a=t.tree.root,o=XW(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?qS(d,{shape:QW(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&qS(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function XW(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function ZW(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=XW(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};qS(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),a.children.forEach(function(t){YW(t,e,r,i,c)}),YW(a,e,r,i,c)}function QW(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=FW(l,d),m=FW(l,d+(f-d)*n),h=FW(u,f+(d-f)*n),g=FW(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}var $W=GW,eG=E_();function tG(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,cG(t,n,e),H(n,function(n){H(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,Au(nG,e))})}),t.wrapMethod(`cloneShallow`,Au(iG,e)),H(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Au(rG,e))}),Y(n[t.dataType]===t)}function nG(e,t){if(sG(this)){var n=V({},eG(this).datas);n[this.dataType]=t,cG(t,n,e)}else lG(t,this.dataType,eG(this).mainData,e);return t}function rG(e,t){return e.struct&&e.struct.update(),t}function iG(e,t){return H(eG(t).datas,function(n,r){n!==t&&lG(n.cloneShallow(),r,t,e)}),t}function aG(e){var t=eG(this).mainData;return e==null||t==null?t:eG(t).datas[e]}function oG(){var e=eG(this).mainData;return e==null?[{data:e}]:U(Ou(eG(e).datas),function(t){return{type:t,data:eG(e).datas[t]}})}function sG(e){return eG(e).mainData===e}function cG(e,t,n){eG(e).datas={},H(t,function(t,r){lG(t,r,e,n)})}function lG(e,t,n,r){eG(n).datas[t]=e,eG(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=aG,e.getLinkedDataAll=oG}var uG=tG,dG=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){K(e)&&(n=t,t=e,e=null),e||={},q(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}(),fG=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,G(n)?n.length:1),a.push(e);var r=new dG(g_(e.name,``),i);t?pG(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=LN(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new IN(c,n);return l.initData(a),r&&r(l),uG({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function pG(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var mG=fG;function hG(e,t,n){if(e&&xu(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(q(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 gG(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function _G(e,t){return xu(gG(e),t)>=0}function vG(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}var yG=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new mw(e.leaves||{},this,this.ecModel),r=mG.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return BO(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=vG(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(ak);function bG(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function xG(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function SG(e,t){e.eachSeriesByType(`tree`,function(e){CG(e,t)})}function CG(e,t){var n=GT(e,t).refContainer,r=HT(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=PW(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=PW());var c=e.getData().tree.root,l=c.children[0];if(l){jW(c),bG(l,MW,s),c.hierNode.modifier=-l.hierNode.prelim,xG(l,NW);var u=l,d=l,f=l;xG(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),xG(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=FW(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),xG(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),xG(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function wG(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();V(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function TG(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=t.coordinateSystem,r=QH(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}function EG(e){e.registerChartView($W),e.registerSeriesModel(yG),e.registerLayout(SG),e.registerVisual(wG),TG(e)}var DG=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function OG(e){for(var t=0;t<DG.length;t++)e.registerAction({type:DG[t],update:`updateView`},td);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=hG(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=_G(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function kG(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=PE(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var AG=function(e){B(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};jG(n);var r=e.levels||[],i=new mw({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=MG(r,t);var a=U(r||[],function(e){return new mw(e,i,t)},this),o=mG.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 BO(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=vG(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=X(),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(){kG(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.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:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.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:$.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}(ak);function jG(e){var t=0;H(e.children,function(e){jG(e);var n=e.value;G(n)&&(n=n[0]),t+=n});var n=e.value;G(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),G(e.value)?e.value[0]=n:e.value=n}function MG(e,t){var n=n_(t.get(`color`)),r=n_(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;H(e,function(e){var t=new mw(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}}var NG=AG,PG=8,FG=8,IG=5,LG=function(){function e(e){this.group=new tg,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=GT(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=HT(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),KT(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=g_(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+PG*2,t.emptyItemWidth);t.totalWidth+=o+FG,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 dS({shape:{points:RG(c,0,_,u,m===f.length-1,m===0)},style:bu(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Eb({style:WC(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:Au(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=WC(o,{text:v}),y.ensureState(`emphasis`).style=p,px(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),zG(y,e,g),c+=_+FG}},e.prototype.remove=function(){this.group.removeAll()},e}();function RG(e,t,n,r,i,a){var o=[[i?e:e-IG,t],[e+n,t],[e+n,t+r],[i?e:e-IG,t+r]];return!a&&o.splice(2,0,[e+n+IG,t+r/2]),!i&&o.push([e,t+r/2]),o}function zG(e,t,n){Db(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&&vG(n,t)}}var BG=LG,VG=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 HG(){return new VG}var UG=tg,WG=sb,GG=3,KG=`label`,qG=`upperLabel`,JG=100,YG=20,XG=30,ZG=ev([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),QG=function(e){var t=ZG(e);return t.stroke=t.fill=t.lineWidth=null,t},$G=E_(),eK=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=tK(),n}return t.prototype.render=function(e,t,n,r){if(!(xu(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=hG(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 UG,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=tK(),o=tK(),s=this._storage,c=[];function l(e,r,i,l){return nK(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,H(e,function(e,t){!e.isRemoved()&&o(t,t)})):new cN(t,e,a,a).add(o).update(o).remove(Au(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=tK();return e&&H(e,function(e,n){var r=t[n];H(e,function(e){e&&(r.push(e),$G(e).willDelete=!0)})}),t}function h(){H(u,function(e){H(e,function(e){e.parent&&e.parent.remove(e)})}),H(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=(K(i)?0:i)||0,s=(K(a)?null:a)||`cubicOut`,c=HG();H(t.willDeleteEls,function(e,t){H(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=$G(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)}})}),H(this._storage,function(e,n){H(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof tg?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=V({},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 qH(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)>GG||Math.abs(e.dy)>GG)){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 Af(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=rf();cf(m,m,[-t,-n]),uf(m,m,[f,f]),cf(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&&bT(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 BG(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(_G(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=tK(),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}(_k);function tK(){return{nodeGroup:[],background:[],content:[]}}function nK(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`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=ne(`nodeGroup`,UG);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),$G(D).nodeWidth=p,$G(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=ne(`background`,WG,l,YG);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)vx(D)&&_x(D,!1),O&&(_x(O,!M),d.setItemGraphicEl(o.dataIndex,O),mx(O,N,j));else{var P=ne(`content`,WG,l,XG);P&&ee(D,P),O.disableMorphing=!0,O&&vx(O)&&_x(O,!1),_x(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),mx(D,N,j)}return D;function I(t,n,r){var i=Db(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)L(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=QG(S);c.fill=s;var l=ZG(C);l.fill=C.get(`borderColor`);var u=ZG(w);u.fill=w.get(`borderColor`);var d=ZG(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;R(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,Zb(n)}t.add(n)}function ee(t,n){var r=Db(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:E}),g)L(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=QG(S);l.fill=c,l.decal=s.decal;var u=ZG(C),d=ZG(w),f=ZG(T);R(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Zb(n)}t.add(n)}function L(e){!e.invisible&&a.push(e)}function R(t,n,r,i){var a=f.getModel(i?qG:KG),s=g_(f.get(`name`),null),c=a.getShallow(`show`);HC(t,UC(f,i?qG:KG),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Uu(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`,te(d,i,u);var m=l.getState(`emphasis`);te(m?m.style:null,i,u)}}function te(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 ne(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 zv&&(s.z2=rK(a,o)),ie(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof UG?(n.oldX=t.x,n.oldY=t.y):n.oldShape=V({},t.shape)}function ie(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof tg;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 rK(e,t){return e*JG+t}var iK=eK,aK=H,oK=Nu,sK=-1,cK=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=_u(t);this.type=r,this.mappingMethod=n,this._normalizeData=bK[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(dK(i),lK(i)):n===`category`?i.categories?uK(i):dK(i,!0):(Y(n!==`linear`||i.dataExtent),dK(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 Ou(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){Nu(e)?H(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=G(t)?[]:Nu(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&&aK(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(G(e))e=e.slice();else if(oK(e)){var t=[];aK(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||q(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(xK(u[1],e,l[1]))return a}else if(l[1]===1/0){if(xK(u[0],l[0],e))return a}else if(xK(u[0],l[0],e)&&xK(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:mK(`color`),getColorMapper:function(){var e=this.option;return W(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),hK.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=em(t,e.parsedVisual,r),i?r:im(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return im(em(e,this.option.parsedVisual),`rgba`)},category:hK,piecewise:function(e,t){var n=vK.call(this,t);return n??=im(em(e,this.option.parsedVisual),`rgba`),n},fixed:gK}},colorHue:fK(function(e,t){return nm(e,t)}),colorSaturation:fK(function(e,t){return nm(e,null,t)}),colorLightness:fK(function(e,t){return nm(e,null,null,t)}),colorAlpha:fK(function(e,t){return rm(e,t)}),decal:{applyVisual:mK(`decal`),_normalizedToVisual:{linear:null,category:hK,piecewise:null,fixed:null}},opacity:{applyVisual:mK(`opacity`),_normalizedToVisual:_K([0,1])},liftZ:{applyVisual:mK(`liftZ`),_normalizedToVisual:{linear:gK,category:gK,piecewise:gK,fixed:gK}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:pK,category:hK,piecewise:function(e,t){var n=vK.call(this,t);return n??=pK.call(this,e),n},fixed:gK}},symbolSize:{applyVisual:mK(`symbolSize`),_normalizedToVisual:_K([0,1])}},e}();function lK(e){var t=e.pieceList;e.hasSpecialVisual=!1,H(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function uK(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(aK(t,function(e,t){n[e]=t}),!G(r)){var i=[];Nu(r)?aK(r,function(e,t){var r=n[t];i[r??sK]=e}):i[sK]=r,r=yK(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function dK(e,t){var n=e.visual,r=[];Nu(n)?aK(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]),yK(e,r)}function fK(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:_K([0,1])}}function pK(e){var t=this.option.visual;return t[Math.round(vg(e,[0,1],[0,t.length-1],!0))]||{}}function mK(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function hK(e){var t=this.option.visual;return t[this.option.loop&&e!==sK?e%t.length:e]}function gK(){return this.option.visual[0]}function _K(e){return{linear:function(t){return vg(t,e,this.option.visual,!0)},category:hK,piecewise:function(t,n){var r=vK.call(this,n);return r??=vg(t,e,this.option.visual,!0),r},fixed:gK}}function vK(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[cK.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function yK(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=U(t,function(e){var t=Xp(e);return!t&&process.env.NODE_ENV!==`production`&&qg(`'`+e+`' is an illegal color, fallback to '#000000'`,!0),t||[0,0,0,1]})),t}var bK={linear:function(e){return vg(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=cK.findPieceIndex(e,t,!0);if(n!=null)return vg(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??sK},fixed:td};function xK(e,t,n){return e?t<=n:t<n}var SK=cK,CK=`itemStyle`,wK=E_(),TK={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||EK(t,{},e.getViewRoot().getAncestors(),e)}};function EK(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(CK),c=DK(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=OK(c),u=kK(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=OK(c),l.fill=f;else{var m=jK(e,i,a,s,c,p);H(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&EK(e,NK(i,c,e,t,m,r),n,r)})}}}function DK(e,t,n){var r=V({},t),i=n.designatedVisualItemStyle;return H([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function OK(e){var t=AK(e,`color`);if(t){var n=AK(e,`colorAlpha`),r=AK(e,`colorSaturation`);return r&&(t=nm(t,null,null,r)),n&&(t=rm(t,n)),t}}function kK(e,t){return t==null?null:nm(t,null,null,e)}function AK(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function jK(e,t,n,r,i,a){if(!(!a||!a.length)){var o=MK(t,`color`)||i.color!=null&&i.color!==`none`&&(MK(t,`colorAlpha`)||MK(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 SK(d);return wK(f).drColorMappingBy=u,f}}}function MK(e,t){var n=e.get(t);return G(n)&&n.length?{name:t,range:n}:null}function NK(e,t,n,r,i,a){var o=V({},t);if(i){var s=i.type,c=s===`color`&&wK(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var PK=Math.max,FK=Math.min,IK=Bu,LK=H,RK=[`itemStyle`,`borderWidth`],zK=[`itemStyle`,`gapWidth`],BK=[`upperLabel`,`show`],VK=[`upperLabel`,`height`],HK={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=GT(e,n).refContainer,o=HT(e.getBoxLayoutParams(),a),s=i.size||[],c=Q(IK(o.width,s[0]),a.width),l=Q(IK(o.height,s[1]),a.height),u=r&&r.type,d=hG(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=gG(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?XK(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),UK(p,_,!1,0),v=p.getLayout(),LK(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(V({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(ZK(o,f,d),!0),e.setLayoutInfo(o),QK(y,new Af(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function UK(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(RK),l=s.get(zK)/2,u=$K(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=PK(i-2*f,0),a=PK(a-f-p,0);var m=i*a,h=WK(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=FK(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=JK(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,YK(y,_,g,l,!1),_=FK(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&YK(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++)UK(h[b],t,n,r+1)}}}function WK(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=Eu(o,function(e){return!e.isRemoved()}),KK(o,s);var l=qK(t,o,s);if(l.sum===0||(l.sum=GK(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 GK(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 KK(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 qK(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],LK(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 JK(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?PK(l*r/c,c/(l*i)):1/0}function YK(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]]=PK(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=PK(v-2*r,0);m[s[o]]=n[s[o]]+FK(r,g/2),m[s[a]]=l+FK(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function XK(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(RK),_=Math.max(g,$K(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 ZK(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 QK(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 Af(t.x-a.x,t.y-a.y,t.width,t.height);LK(e.viewChildren||[],function(e){QK(e,c,n,r,i+1)})}}function $K(e){return e.get(BK)?e.get(VK):0}function eq(e){e.registerSeriesModel(NG),e.registerChartView(iK),e.registerVisual(TK),e.registerLayout(HK),OG(e)}function tq(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){Mu(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function nq(e){var t={};e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){q(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);V(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function rq(e){return e instanceof Array||(e=[e,e]),e}function iq(e){e.eachSeriesByType(`graph`,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=rq(e.get(`edgeSymbol`)),i=rq(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=rq(r.getShallow(`symbol`,!0)),o=rq(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(V(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}var aq=`-->`,oq=function(e){return e.get(`autoCurveness`)||null},sq=function(e,t){var n=oq(e),r=20,i=[];if(Mu(n))r=n;else if(G(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},cq=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(aq)},lq=function(e){var t=e.split(aq);return[t[0],t[2],t[1]].join(aq)},uq=function(e,t){var n=cq(e.node1,e.node2,t);return t.__edgeMap[n]},dq=function(e,t){return fq(cq(e.node1,e.node2,t),t)+fq(cq(e.node2,e.node1,t),t)},fq=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function pq(e){oq(e)&&(e.__curvenessList=[],e.__edgeMap={},sq(e))}function mq(e,t,n,r){if(oq(n)){var i=cq(e,t,n),a=n.__edgeMap,o=a[lq(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function hq(e,t,n,r){var i=oq(t),a=G(i);if(!i)return null;var o=uq(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=dq(e,t);sq(t,l),e.lineStyle=e.lineStyle||{};var u=cq(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=fq(lq(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}function gq(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),_q(n,e)}}function _q(e,t){e.eachEdge(function(e,n){var r=Vu(e.getModel().get([`lineStyle`,`curveness`]),-hq(e,t,n,!0),0),i=sd(e.node1.getLayout()),a=sd(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function vq(e,t){e.eachSeriesByType(`graph`,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];H(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}_q(r.graph,e)}else (!t||t===`none`)&&gq(e)})}function yq(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function bq(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var xq=Math.PI,Sq=[];function Cq(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];hd(h,h),md(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),Tq(n,e.get([`circular`,`rotateLabel`]),c,l)}wq[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=Vu(t.getModel().get([`lineStyle`,`curveness`]),hq(t,e,n),0),i=sd(t.node1.getLayout()),a=sd(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var wq={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;Sq.length=o;var c=yq(e);t.eachNode(function(e){var t=bq(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=xq/2),Sq[e.dataIndex]=n,s+=n*2});var l=(2*xq-s)/o/2,u=0;t.eachNode(function(e){var t=l+Sq[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function Tq(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);V(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function Eq(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&Cq(e,`symbolSize`)})}var Dq=ud;function Oq(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=ad(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=sd(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;dd(t,u.p,s.p);var d=fd(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),hd(t,t),!s.fixed&&Dq(s.p,s.p,t,f*d*p),!u.fixed&&Dq(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(dd(t,c,g.p),Dq(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];dd(t,u.p,s.p);var d=fd(t);d===0&&(cd(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&Dq(s.pp,s.pp,t,v),!u.fixed&&Dq(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(dd(y,g.p,g.pp),Dq(g.p,g.p,y,p),od(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}function kq(e){e.eachSeriesByType(`graph`,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?gq(e):s===`circular`&&Cq(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=G(u)?u:[u,u],p=G(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=vg(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=Oq(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=vg(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=Vu(i.getModel().get([`lineStyle`,`curveness`]),-hq(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&od(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],od(f[0],u),od(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function Aq(e,t,n){var r=GT(e,t);return UT(e,HT(V(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function jq(e,t){var n=[];return e.eachSeriesByType(`graph`,function(r){jT({targetModel:r,coordSysType:`view`,coordSysProvider:i,isDefaultDataCoordSys:!0});function i(){var i=r.getData(),a=i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),o=[],s=[];Jv(a,o,s),s[0]-o[0]===0&&(s[0]+=1,--o[0]),s[1]-o[1]===0&&(s[1]+=1,--o[1]);var c=(s[0]-o[0])/(s[1]-o[1]),l=Aq(r,t,c);isNaN(c)&&(o=[l.x,l.y],s=[l.x+l.width,l.y+l.height]);var u=s[0]-o[0],d=s[1]-o[1],f=new _W(null,{api:t,ecModel:e});return f.zoomLimit=r.get(`scaleLimit`),f.setBoundingRect(o[0],o[1],u,d),f.setViewRect(l.x,l.y,l.width,l.height),f.setCenter(r.get(`center`)),f.setZoom(r.get(`zoom`)),n.push(f),f}}),n}var Mq=vS.prototype,Nq=CS.prototype,Pq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Pq);function Fq(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Iq=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Pq},t.prototype.buildPath=function(e,t){Fq(t)?Mq.buildPath.call(this,e,t):Nq.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Fq(this.shape)?Mq.pointAt.call(this,e):Nq.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Fq(t)?[t.x2-t.x1,t.y2-t.y1]:Nq.tangentAt.call(this,e);return hd(n,n)},t}(Wy),Lq=[`fromSymbol`,`toSymbol`];function Rq(e){return`_`+e+`Type`}function zq(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=TA(i),l=EA(o||0,c);return r+c+l+(a||``)+(s||``)}function Bq(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=TA(i),l=EA(o||0,c),u=wA(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function Vq(e){var t=new Iq({name:`line`,subPixelOptimize:!0});return Hq(t.shape,e),t}function Hq(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Uq=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=Vq(i);o.shape.percent=0,GS(o,{z2:J(a,0),shape:{percent:1}},r,t),this.add(o),H(Lq,function(n){var r=Bq(n,e,t);this.add(r),this[Rq(n)]=zq(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};Hq(o.shape,a),WS(i,o,r,t),H(Lq,function(n){var r=zq(n,e,t),i=Rq(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=Bq(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=UC(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,H(Lq,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<Nb.length;n++){var r=Nb[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);HC(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||$.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?xg(g):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);G(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),px(this,u,d,l)},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);Hq(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=dd([],l,c);hd(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(tg),Wq=function(){function e(e){this.group=new tg,this._LineCtor=e||Uq}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=Kq(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Kq(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!Gq(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r<e.end;r++)if(Jq(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(Jq(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!Jq(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function Gq(e){return e.animators&&e.animators.length>0}function Kq(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:UC(t)}}function qq(e){return isNaN(e[0])||isNaN(e[1])}function Jq(e){return e&&!qq(e[0])&&!qq(e[1])}var Yq=Wq,Xq=[],Zq=[],Qq=[],$q=wp,eJ=yd,tJ=Math.abs;function nJ(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){Xq[0]=$q(r[0],i[0],a[0],u),Xq[1]=$q(r[1],i[1],a[1],u);var d=tJ(eJ(Xq,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;Zq[0]=$q(r[0],i[0],a[0],s),Zq[1]=$q(r[1],i[1],a[1],s),Qq[0]=$q(r[0],i[0],a[0],p),Qq[1]=$q(r[1],i[1],a[1],p);var d=eJ(Zq,t)-c;if(tJ(d)<.01)break;var m=eJ(Qq,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function rJ(e,t){var n=[],r=Op,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[sd(c[0]),sd(c[1])],c[2]&&c.__original.push(sd(c[2])));var d=c.__original;if(c[2]!=null){if(od(i[0],d[0]),od(i[1],d[2]),od(i[2],d[1]),l&&l!==`none`){var f=bq(e.node1),p=nJ(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=bq(e.node2),p=nJ(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}od(c[0],i[0]),od(c[1],i[2]),od(c[2],i[1])}else{if(od(a[0],d[0]),od(a[1],d[1]),dd(o,a[1],a[0]),hd(o,o),l&&l!==`none`){var f=bq(e.node1);ud(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=bq(e.node2);ud(a[1],a[1],o,-f*t)}od(c[0],a[0]),od(c[1],a[1])}})}var iJ=E_();function aJ(e){if(e)return iJ(e).bridge}function oJ(e,t){e&&(iJ(e).bridge=t)}function sJ(e){return e.type===`view`}var cJ=function(e){B(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){var n=new hR,r=new Yq,i=this.group,a=new tg;this._controller=new qH(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=!1;this._model=e,this._api=n,this._active=!0;var o=this._getThumbnailInfo();o&&o.bridge.reset(n);var s=this._symbolDraw,c=this._lineDraw;if(sJ(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(l):WS(this._mainGroup,l,e)}rJ(e.getGraph(),yq(e));var u=e.getData();s.updateData(u);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),Cq(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case`none`:default:u.setItemLayout(i,[a.x,a.y]),_q(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(Db(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(Db(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){Tq(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,t,n){var r=this._controller,i=this._controllerHost,a=t.coordinateSystem;if(!sJ(a)){r.disable();return}r.enable(t.get(`roam`),{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get(`roamTrigger`),isInSelf:function(e,t,n){return a.containPoint([t,n])},isInClip:function(t,n,r){return!e||e.contain(n,r)}}}),i.zoomLimit=t.get(`scaleLimit`),i.zoom=a.getZoom(),r.off(`pan`).off(`zoom`).on(`pan`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,zoom:e.scale,originX:e.originX,originY:e.originY})})},t.prototype.updateViewOnPan=function(e,t,n){this._active&&(JH(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,t,n){this._active&&(YH(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),rJ(e.getGraph(),yq(e)),this._lineDraw.updateLayout(),t.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=yq(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(rJ(e.getGraph(),yq(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=aJ(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new tg,o=n.group.children(),s=r.group.children(),c=new tg,l=new tg;a.add(l),a.add(c);for(var u=0;u<o.length;u++){var d=o[u],f=d.children()[0],p=d.x,m=d.y,h=V(_u(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=_u(f.style),_=new f.constructor({shape:h,style:g,z2:151});l.add(_)}for(var u=0;u<s.length;u++){var d=s[u],v=d.children()[0],g=_u(v.style),h=_u(v.shape),y=new Iq({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:i.coordSys.transform})}},t.type=`graph`,t}(_k);function lJ(e){return`_EC_`+e}var uJ=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(n[lJ(e)]){process.env.NODE_ENV!==`production`&&console.error(`Graph nodes have duplicate name or id`);return}var r=new dJ(e,t);return r.hostGraph=this,this.nodes.push(r),n[lJ(e)]=r,r},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[lJ(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(Mu(e)&&(e=this.nodes[e]),Mu(t)&&(t=this.nodes[t]),e instanceof dJ||(e=r[lJ(e)]),t instanceof dJ||(t=r[lJ(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new fJ(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof dJ&&(e=e.id),t instanceof dJ&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof dJ||(t=this._nodesMap[lJ(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),dJ=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=X(),t=X(),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var l=c.inEdges,u=0,d=l.length,f=void 0,p=void 0;u<d;u++)f=l[u],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s<o.length;){var m=o[s];s++,t.set(m.dataIndex,!0);for(var h=m.outEdges,u=0,g=h.length,_=void 0,v=void 0;u<g;u++)_=h[u],v=_.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),fJ=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=X(),t=X();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,c=o.length,l=void 0,u=void 0;s<c;s++)l=a.inEdges[s],u=l.dataIndex,u>=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i<r.length;){var d=r[i];i++,t.set(d.dataIndex,!0);for(var f=d.outEdges,s=0,c=f.length,p=void 0,m=void 0;s<c;s++)p=d.outEdges[s],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function pJ(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Cu(dJ,pJ(`hostGraph`,`data`)),Cu(fJ,pJ(`hostGraph`,`edgeData`));var mJ=uJ;function hJ(e,t,n,r,i){for(var a=new mJ(r),o=0;o<e.length;o++)a.addNode(Bu(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(Bu(g_(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=eP(e,n);else{var h=NT.get(p),g=h&&h.dimensions||[];xu(g,`value`)<0&&g.concat([`value`]);var _=LN(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new IN(_,n),m.initData(e)}var v=new IN([`value`],n);return v.initData(c,s),i&&i(m,v),uG({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var gJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Xz(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),r_(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){pq(this);var a=hJ(r,n,this,!0,o);return H(a.edges,function(e){mq(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=mw.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),BO(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return XO({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=U(this.option.categories||[],function(e){return e.value==null?V({value:0},e):e}),t=new IN([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.type=`series.graph`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(ak);function _J(e){e.registerChartView(cJ),e.registerSeriesModel(gJ),e.registerProcessor(tq),e.registerVisual(nq),e.registerVisual(iq),e.registerLayout(vq),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Eq),e.registerLayout(kq),e.registerCoordinateSystem(`graphView`,{dimensions:_W.dimensions,create:jq}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},td),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},td),e.registerAction({type:`graphRoam`,event:`graphRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=n.getViewOfSeriesModel(t);r&&(e.dx!=null&&e.dy!=null&&r.updateViewOnPan(t,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&r.updateViewOnZoom(t,n,e));var i=t.coordinateSystem,a=QH(i,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}var vJ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;Db(i).dataType=`node`,i.z2=2;var a=new Eb;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=V(oz(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):WS(d,{shape:u},o,t);var f=V(oz(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),gx(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),gx(d,s,`itemStyle`);var p=c.get(`focus`);px(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=UC(t),u=n.getVisual(`style`);HC(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,Vu(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(iS);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var yJ=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;return Db(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=V(oz(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),bJ(m,o,e,u)):(XS(m),bJ(m,o,e,u),WS(m,{shape:p},a,n)),px(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),gx(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(Wy);function bJ(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(q(s)&&q(c)){var l=e.shape;o.fill=new OS((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var xJ=Math.PI/180,SJ=function(e){B(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){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*xJ;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new vJ(r,e,o);Db(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&YS(s,e,n);return}s?s.updateData(r,t,o):s=new vJ(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&YS(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Q(s[0],n.getWidth()),this.group.originY=Q(s[1],n.getHeight()),GS(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new yJ(n,r,e,t);Db(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&YS(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=`chord`,t}(_k),CJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Xz(W(this.getData,this),W(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return hJ(r,n,this,!0,i).data;function i(e,t){var n=mw.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),BO(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return BO(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.chord`,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(ak),wJ=Math.PI/180;function TJ(e,t){e.eachSeriesByType(`chord`,function(e){EJ(e,t)})}function EJ(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=VT(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*wJ,0),d=Math.max((e.get(`minAngle`)||0)*wJ,0),f=-e.get(`startAngle`)*wJ,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];vy(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)<d?w+=d-Math.abs(n):(D=Math.min(D,Math.abs(n)-d),T+=Math.abs(n)-d,E+=Math.abs(n)),e.setLayout({angle:n,value:t})});var O=!1;if(w>T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*w<d&&(O=!0)}});var A=w;r.eachNode(function(e){if(!(A<=0)){var t=e.getLayout().angle;if(t>d&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function DJ(e){e.registerChartView(SJ),e.registerSeriesModel(CJ),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,TJ),e.registerProcessor(Lz(`chord`))}var OJ=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),kJ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new OJ},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(Wy);function AJ(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Q(n[0],t.getWidth()),cy:Q(n[1],t.getHeight()),r:Q(e.get(`radius`),a/2)}}function jJ(e,t){var n=e==null?``:e+``;return t&&(q(t)?n=t.replace(`{value}`,n):K(t)&&(n=t(e))),n}var MJ=function(e){B(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){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=AJ(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?tz:iS,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];vy(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),H(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=Q(h.get(`length`),f),x=Q(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,M=new vS({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&M.setStyle({stroke:r(A/v)}),l.add(M)}if(_.get(`show`)){var j=_.get(`distance`)+D,N=jJ(xg(A/v*(m-p)+p),_.get(`formatter`)),P=r(A/v),F=O*(f-b-j)+u,I=k*(f-b-j)+d,ee=_.get(`rotate`),L=0;ee===`radial`?(L=-S+2*Math.PI,L>Math.PI/2&&(L+=Math.PI)):ee===`tangential`?L=-S-Math.PI/2:Mu(ee)&&(L=ee*Math.PI/180),L===0?l.add(new Eb({style:WC(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new Eb({style:WC(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:L}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var R=0;R<=y;R++){O=Math.cos(S),k=Math.sin(S);var te=new vS({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&te.setStyle({stroke:r((A+R/y)/v)}),l.add(te),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=Q(r.get(`width`),i.r),o=Q(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=Q(c[0],i.r),u=Q(c[1],i.r),d=r.get(`keepAspect`),f=s?wA(s,l-a/2,u-o,a,o,null,d):new kJ({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?tz:iS,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=vg(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);GS(r,{rotation:-((isNaN(+n)?x[0]:vg(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);GS(i,{shape:{endAngle:vg(n,b,x,m.get(`clip`))}},e),l.add(i),Ob(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,WS(s,{rotation:-((isNaN(+r)?x[0]:vg(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);WS(v,{shape:{endAngle:vg(r,b,x,m.get(`clip`))}},e),l.add(v),Ob(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof Qy){var u=s.style;s.useStyle(V({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(vg(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,gx(s,t),px(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,gx(d,t),px(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=wA(i,t.cx-r/2+Q(a[0],t.r),t.cy-r/2+Q(a[1],t.r),r,r,null,o);s.z2=n.get(`showAbove`)?1:0,s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new tg,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new Eb({silent:!0}),f[e]=new Eb({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new tg,g=r(vg(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+Q(v[0],i.r),b=i.cy+Q(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:WC(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+Q(C[0],i.r),T=i.cy+Q(C[1],i.r),E=Q(S.get(`width`),i.r),D=Q(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:WC(S,{x:w,y:T,text:jJ(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),ew(x,{normal:S},a,function(e){return jJ(e,k)}),p&&tw(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return jJ(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(_k),NJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return Yz(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(ak);function PJ(e){e.registerChartView(MJ),e.registerSeriesModel(NJ)}var FJ=[`itemStyle`,`opacity`],IJ=function(e){B(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new mS,o=new Eb;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(FJ);c??=1,n||XS(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,GS(r,{style:{opacity:c}},i,t)):WS(r,{style:{opacity:c},shape:{points:o.points}},i,t),gx(r,a),this._updateLabel(e,t),px(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;HC(i,UC(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new ff(d[0][0],d[0][1]):null},WS(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),zI(n,BI(o),{stroke:l})},t}(dS),LJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new IJ(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){YS(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(_k),RJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xz(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Yz(this,{coordDimensions:[`value`],encodeDefaulter:Au(CE,this)})},t.prototype._defaultLabelLine=function(e){r_(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(ak);function zJ(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return K(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function BJ(e){var t=e.hostModel.get(`orient`);e.each(function(n){var r=e.getItemModel(n),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(n),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,d=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);process.env.NODE_ENV!==`production`&&(t===`vertical`&&[`top`,`bottom`].indexOf(i)>-1&&(i=`left`,console.warn(`Position error: Funnel chart on vertical orient dose not support top and bottom.`)),t===`horizontal`&&[`left`,`right`].indexOf(i)>-1&&(i=`bottom`,console.warn(`Position error: Funnel chart on horizontal orient dose not support left and right.`))),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=t===`horizontal`?s[3][0]:s[1][0],m=t===`horizontal`?s[3][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=t===`horizontal`?s[0][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=t===`horizontal`?s[1][0]:s[3][0],m=t===`horizontal`?s[1][1]:s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),t===`horizontal`?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}function VJ(e,t){e.eachSeriesByType(`funnel`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=GT(e,t),o=HT(e.getBoxLayoutParams(),a.refContainer),s=e.get(`orient`),c=o.width,l=o.height,u=zJ(n,i),d=o.x,f=o.y,p=s===`horizontal`?[Q(e.get(`minSize`),l),Q(e.get(`maxSize`),l)]:[Q(e.get(`minSize`),c),Q(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s===`horizontal`?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s===`horizontal`){var i=vg(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=vg(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s===`horizontal`?d+=c:f+=l,u=u.reverse());for(var x=0;x<u.length;x++){var S=u[x],C=u[x+1],w=n.getItemModel(S);if(s===`horizontal`){var T=w.get([`itemStyle`,`width`]);T==null?T=y:(T=Q(T,c),i===`ascending`&&(T=-T));var E=b(S,d),D=b(C,d+T);d+=T+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}else{var O=w.get([`itemStyle`,`height`]);O==null?O=y:(O=Q(O,l),i===`ascending`&&(O=-O));var E=b(S,f),D=b(C,f+O);f+=O+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}}BJ(n)})}function HJ(e){e.registerChartView(LJ),e.registerSeriesModel(RJ),e.registerLayout(VJ),e.registerProcessor(Lz(`funnel`))}var UJ=.3,WJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new tg,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=JJ(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){YJ(qJ(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n),i=KJ(a,t,c,s);a.setItemGraphicEl(t,r),WS(r,{shape:{points:i}},e,t),XS(r),YJ(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=GJ(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=JJ(t),s=this._progressiveEls=[],c=e.start;c<e.end;c++){var l=qJ(r,this._dataGroup,c,a,i);l.incremental=!0,YJ(l,r,c,o),s.push(l)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(_k);function GJ(e,t,n){var r=e.model,i=e.getRect(),a=new sb({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),GS(a,{shape:{width:i.width,height:i.height}},t,n),a}function KJ(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);XJ(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function qJ(e,t,n,r,i){var a=new mS({shape:{points:KJ(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function JJ(e){var t=e.get(`smooth`,!0);return t===!0&&(t=UJ),t=Lg(t),zu(t)&&(t=0),{smooth:t}}function YJ(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);gx(e,i,`lineStyle`),px(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function XJ(e,t){return t===`category`?e==null:e==null||isNaN(e)}var ZJ=WJ,QJ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return eP(null,this,{useEncodeDefaulter:W($J,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type=`series.parallel`,t.dependencies=[`parallel`],t.defaultOption={z:2,coordinateSystem:`parallel`,parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:`solid`},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:`linear`},t}(ak);function $J(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return H(t.dimensions,function(e){n[e]=eY(e)}),n}}function eY(e){return+e.replace(`dim`,``)}var tY=QJ,nY=[`lineStyle`,`opacity`],rY={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(nY,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function iY(e){aY(e),oY(e)}function aY(e){if(!e.parallel){var t=!1;H(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function oY(e){H(n_(e.parallelAxis),function(t){if(Nu(t)){var n=t.parallelIndex||0,r=n_(e.parallel)[n];r&&r.parallelAxisDefault&&vu(t,r.parallelAxisDefault,!1)}})}var sY=5,cY=function(e){B(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){this._model=e,this._api=n,this._handlers||(this._handlers={},H(lY,function(e,t){n.getZr().on(t,this._handlers[t]=W(e,this))},this)),Sk(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){Ck(this,`_throttledDispatchExpand`),H(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(V({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(sk),lY={mousedown:function(e){uY(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(uY(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>sY)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!uY(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function uY(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var dY=cY,fY=function(e){B(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.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&vu(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){H([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];H(Eu(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=`parallel`,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(tE),pY=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(vI);function mY(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=gY(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=gY(s,[0,o]),i=a=gY(s,[i,a]),r=0}t[0]=gY(t[0],n),t[1]=gY(t[1],n);var c=hY(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=gY(t[r],u);var d=hY(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=hY(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function hY(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 gY(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var _Y=H,vY=Math.min,yY=Math.max,bY=Math.floor,xY=Math.ceil,SY=xg,CY=Math.PI,wY=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;_Y(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new pY(e,gF(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();_Y(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),hF(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer;this._rect=HT(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=TY(e.get(`axisExpandWidth`),s),u=TY(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=TY(f[1]-f[0],s),f[1]=f[0]+p):(p=TY(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||bY(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[bY(SY(f[0]/l,1))+1,xY(SY(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),_Y(n,function(t,n){var a=(r.axisExpandable?DY:EY)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:CY/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=rf();lf(u,u,l),cf(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];H(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return hC([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return _u(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?mY(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[yY(0,a[1]*o/f-f/2)],r[1]=vY(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function TY(e,t){return vY(yY(e,t[0]),t[1])}function EY(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function DY(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}var OY=wY;function kY(e,t){var n=[];return e.eachComponent(`parallel`,function(r,i){var a=new OY(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`parallel`&&(e.coordinateSystem=e.getReferringComponents(`parallel`,A_).models[0].coordinateSystem)}),n}var AY={create:kY},jY=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return ev([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=_u(e);if(t)for(var n=t.length-1;n>=0;n--)Sg(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(tE);Cu(jY,OF);var MY=jY,NY=!0,PY=Math.min,FY=Math.max,IY=Math.pow,LY=1e4,RY=6,zY=6,BY=`globalPan`,VY={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},HY={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},UY={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},WY=0,GY=function(e){B(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!==`production`&&Y(t),n._zr=t,n.group=new tg,n._uid=`brushController_`+ WY++,H(CX,function(e,t){this._handlers[t]=W(e,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!==`production`&&Y(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||MH(t,BY,this._uid),H(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=vu(_u(UY),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;NH(e,BY,this._uid),H(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};H(e,function(e){t[e.panelId]=_u(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},process.env.NODE_ENV!==`production`&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!==`production`&&Y(this._mounted),e=U(e,function(e){return vu(_u(UY),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new cN(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:XY(i,r[t]=o==null?qY(i,KY(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!==`production`&&!this._mounted))return this.enableBrush(!1),eX(this),this._zr.remove(this.group),process.env.NODE_ENV!==`production`&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ed);function KY(e,t){var n=EX[t.brushType].createCover(e,t);return n.__brushOption=t,YY(n,t),e.group.add(n),n}function qY(e,t){var n=ZY(t);return n.endCreating&&(n.endCreating(e,t),YY(t,t.__brushOption)),t}function JY(e,t){var n=t.__brushOption;ZY(t).updateCoverShape(e,t,n.range,n)}function YY(e,t){var n=t.z;n??=LY,e.traverse(function(e){e.z=n,e.z2=n})}function XY(e,t){ZY(t).updateCommon(e,t),JY(e,t)}function ZY(e){return EX[e.__brushOption.brushType]}function QY(e,t,n){var r=e._panels;if(!r)return NY;var i,a=e._transform;return H(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function $Y(e,t){var n=e._panels;if(!n)return NY;var r=t.__brushOption.panelId;return r==null?NY:n[r]}function eX(e){var t=e._covers,n=t.length;return H(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function tX(e,t){var n=U(e._covers,function(e){var t=e.__brushOption,n=_u(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function nX(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return IY(i*i+a*a,.5)>RY}function rX(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function iX(e,t,n,r){var i=new tg;return i.add(new sb({name:`main`,style:cX(n),silent:!0,draggable:!0,cursor:`move`,drift:Au(pX,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:Au(tX,t,{isEnd:!0})})),H(r,function(n){i.add(new sb({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Au(pX,e,t,i,n),ondragend:Au(tX,t,{isEnd:!0})}))}),i}function aX(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=FY(i,zY),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;sX(e,t,`main`,o,s,m,h),r.transformable&&(sX(e,t,`w`,c,l,a,_),sX(e,t,`e`,f,l,a,_),sX(e,t,`n`,c,l,g,a),sX(e,t,`s`,c,p,g,a),sX(e,t,`nw`,c,l,a,a),sX(e,t,`ne`,f,l,a,a),sX(e,t,`sw`,c,p,a,a),sX(e,t,`se`,f,p,a,a))}function oX(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(cX(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),H([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?dX(e,n[0]):fX(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?HY[a]+`-resize`:null})})}function sX(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(_X(gX(e,t,[[r,i],[r+a,i+o]])))}function cX(e){return bu({strokeNoScale:!0},e.brushStyle)}function lX(e,t,n,r){var i=[PY(e,n),PY(t,r)],a=[FY(e,n),FY(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function uX(e){return mC(e.group)}function dX(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[gC({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],uX(e))]}function fX(e,t){var n=[dX(e,t[0]),dX(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function pX(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=hX(t,i,a);H(r,function(e){var t=VY[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(lX(s[0][0],s[1][0],s[0][1],s[1][1])),XY(t,n),tX(t,{isEnd:!1})}function mX(e,t,n,r){var i=t.__brushOption.range,a=hX(e,n,r);H(i,function(e){e[0]+=a[0],e[1]+=a[1]}),XY(e,t),tX(e,{isEnd:!1})}function hX(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function gX(e,t,n){var r=$Y(e,t);return r&&r!==NY?r.clipPath(n,e._transform):_u(n)}function _X(e){var t=PY(e[0][0],e[1][0]),n=PY(e[0][1],e[1][1]),r=FY(e[0][0],e[1][0]),i=FY(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function vX(e,t,n){if(!(!e._brushType||TX(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=QY(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===NY||s.panelId===a.panelId)&&EX[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function yX(e){var t=e.event;t.preventDefault&&t.preventDefault()}function bX(e,t,n){return e.childOfName(`main`).contain(t,n)}function xX(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),nX(e)||i){if(a&&!i){o.brushMode===`single`&&eX(e);var c=_u(o);c.brushType=SX(c.brushType,a),c.panelId=a===NY?null:a.panelId,i=e._creatingCover=KY(e,c),e._covers.push(i)}if(i){var l=EX[SX(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(gX(e,i,e._track)),r&&(qY(e,i),l.updateCommon(e,i)),JY(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&QY(e,t,n)&&eX(e)&&(s={isEnd:r,removeOnClick:!0});return s}function SX(e,t){return e===`auto`?(process.env.NODE_ENV!==`production`&&Y(t&&t.defaultBrushType,`MUST have defaultBrushType when brushType is "atuo"`),t.defaultBrushType):e}var CX={mousedown:function(e){if(this._dragging)wX(this,e);else if(!e.target||!e.target.draggable){yX(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=QY(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(vX(this,e,r),this._dragging){yX(e);var i=xX(this,e,r,!1);i&&tX(this,i)}},mouseup:function(e){wX(this,e)}};function wX(e,t){if(e._dragging){yX(t);var n=t.offsetX,r=t.offsetY,i=xX(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&tX(e,i)}}function TX(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var EX={lineX:DX(0),lineY:DX(1),rect:{createCover:function(e,t){function n(e){return e}return iX({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=rX(e);return lX(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){aX(e,t,n,r)},updateCommon:oX,contain:bX},polygon:{createCover:function(e,t){var n=new tg;return n.add(new mS({name:`main`,style:cX(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new dS({name:`main`,draggable:!0,drift:Au(mX,e,t),ondragend:Au(tX,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:gX(e,t,n)})},updateCommon:oX,contain:bX}};function DX(e){return{createCover:function(t,n){return iX({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=rX(t);return[PY(n[0][e],n[1][e]),FY(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=$Y(t,n);if(o!==NY&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),aX(t,n,c,i)},updateCommon:oX,contain:bX}}var OX=GY;function kX(e){return e=MX(e),function(t){return yC(t,e)}}function AX(e,t){return e=MX(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function jX(e,t,n){var r=MX(e);return function(e,i){return r.contain(i[0],i[1])&&!IH(e,t,n)}}function MX(e){return Af.create(e)}var NX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new OX(n.getZr())).on(`brush`,W(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!PX(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new tg,this.group.add(this._axisGroup),e.get(`show`)){var a=IX(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=V({strokeContainThreshold:c},u),f=new hV(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),vC(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=Af.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:kX(l),isTargetByCursor:jX(l,a,r),getLinearBrushOtherExtent:AX(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(FX(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=U(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(sk);function PX(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function FX(e){var t=e.axis;return U(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function IX(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var LX=NX,RX={type:`axisAreaSelect`,event:`axisAreaSelected`};function zX(e){e.registerAction(RX,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var BX={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function VX(e){e.registerComponentView(dY),e.registerComponentModel(fY),e.registerCoordinateSystem(`parallel`,AY),e.registerPreprocessor(iY),e.registerComponentModel(MY),e.registerComponentView(LX),bB(e,`parallel`,MY,BX),zX(e)}function HX(e){aN(VX),e.registerChartView(ZJ),e.registerSeriesModel(tY),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,rY)}var UX=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),WX=function(e){B(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new UX},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t}(Wy),GX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new tg,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(e,t){this._controller=new qH(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this._mainGroup,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,this._updateViewCoordSys(e,n),XH(e,n,a,this._controller,this._controllerHost,null),i.eachEdge(function(t){var n=new WX,r=Db(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),KX(n.style,d,t);var k=``+i.get(`value`),A=UC(i,`edgeLabel`);HC(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,Vu(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);gx(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return KX(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);px(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new sb({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});HC(f,UC(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),gx(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),Db(f).dataType=`node`;var p=u.get(`focus`);px(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(qX(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=n.width,i=n.height,a=e.coordinateSystem=new _W(null,{api:t,ecModel:e.ecModel});a.zoomLimit=e.get(`scaleLimit`),a.setBoundingRect(0,0,r,i),a.setCenter(e.get(`center`)),a.setZoom(e.get(`zoom`)),this._controllerHost.target.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY})},t.type=`sankey`,t}(_k);function KX(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);q(r)&&q(i)&&(e.fill=new OS(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function qX(e,t,n){var r=new sb({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return GS(r,{shape:{width:e.width+20}},t,n),r}var JX=GX,YX=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)if(i[o].depth!=null&&i[o].depth>=0)a[i[o].depth]=new mw(i[o],this,t);else if(process.env.NODE_ENV!==`production`)throw Error(`levels[i].depth is mandatory and should be natural number`);return hJ(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return BO(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return BO(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(ak);function XX(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=GT(e,t).refContainer,a=HT(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;QX(l),ZX(l,u,n,r,o,s,Eu(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function ZX(e,t,n,r,i,a,o,s,c){$X(e,t,n,i,a,s,c),iZ(e,t,a,i,r,o,s),_Z(e,s)}function QX(e){H(e,function(e){var t=hZ(e.outEdges,mZ),n=hZ(e.inEdges,mZ),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function $X(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=t.indexOf(y);s[b]=0;var x=y.node2,S=e.indexOf(x);--c[S]===0&&u.indexOf(x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&tZ(e,o,a,C),rZ(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function eZ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function tZ(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}H(e,function(e){eZ(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&nZ(e,r)}function nZ(e,t){H(e,function(e){!eZ(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function rZ(e,t,n){H(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function iZ(e,t,n,r,i,a,o){var s=aZ(e,o);oZ(s,t,n,r,i,o),sZ(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,cZ(s,c,o),sZ(s,i,n,r,o),gZ(s,c,o),sZ(s,i,n,r,o)}function aZ(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=I_(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),H(i.keys,function(e){n.push(i.buckets.get(e))}),n}function oZ(e,t,n,r,i,a){var o=1/0;H(e,function(e){var t=e.length,s=0;H(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),H(e,function(e){H(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),H(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function sZ(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;H(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function cZ(e,t,n){H(e.slice().reverse(),function(e){H(e,function(e){if(e.outEdges.length){var r=hZ(e.outEdges,lZ,n)/hZ(e.outEdges,mZ);if(isNaN(r)){var i=e.outEdges.length;r=i?hZ(e.outEdges,uZ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-pZ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-pZ(e,n))*t;e.setLayout({y:o},!0)}}})})}function lZ(e,t){return pZ(e.node2,t)*e.getValue()}function uZ(e,t){return pZ(e.node2,t)}function dZ(e,t){return pZ(e.node1,t)*e.getValue()}function fZ(e,t){return pZ(e.node1,t)}function pZ(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function mZ(e){return e.getValue()}function hZ(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function gZ(e,t,n){H(e,function(e){H(e,function(e){if(e.inEdges.length){var r=hZ(e.inEdges,dZ,n)/hZ(e.inEdges,mZ);if(isNaN(r)){var i=e.inEdges.length;r=i?hZ(e.inEdges,fZ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-pZ(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-pZ(e,n))*t;e.setLayout({y:o},!0)}}})})}function _Z(e,t){var n=t===`vertical`?`x`:`y`;H(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),H(e,function(e){var t=0,n=0;H(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),H(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function vZ(e){e.eachSeriesByType(`sankey`,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;H(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),H(n,function(t){var n=new SK({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&H(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function yZ(e){e.registerChartView(JX),e.registerSeriesModel(YX),e.registerLayout(XX),e.registerVisual(vZ),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e.registerAction({type:`sankeyRoam`,event:`sankeyRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){var n=t.coordinateSystem,r=QH(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}var bZ=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];H(h,function(e,t){var n;G(e)?(n=e.slice(),e.unshift(t)):G(e.value)?(n=V({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:fN(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:fN(m),dimsDef:_.slice()}];return Yz(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:Au(SE,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),xZ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.boxplot`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:$.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}},animationDuration:800},t}(ak);Cu(xZ,bZ,!0);var SZ=xZ,CZ=function(e){B(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=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=e.get(`layout`)===`horizontal`?1:0;r.diff(a).add(function(e){if(r.hasValue(e)){var t=EZ(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(XS(n),DZ(s,n,r,e)):n=EZ(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(_k),wZ=function(){function e(){}return e}(),TZ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new wZ},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(Wy);function EZ(e,t,n,r,i){var a=e.ends,o=new TZ({shape:{points:i?OZ(a,r,e):a}});return DZ(e,o,t,n,i),o}function DZ(e,t,n,r,i){var a=n.hostModel,o=QS[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);gx(t,s),px(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function OZ(e,t,n){return U(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var kZ=CZ,AZ=H;function jZ(e){AZ(MZ(e),function(e){var t=e.seriesModels;t.length&&(NZ(e),AZ(t,function(t,n){PZ(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}function MZ(e){var t=[],n=[];return e.eachSeriesByType(`boxplot`,function(e){var r=e.getBaseAxis(),i=xu(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}function NZ(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type===`category`)s=t.getBandWidth();else{var c=0;AZ(n,function(e){c=Math.max(c,e.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/c}AZ(n,function(e){var t=e.get(`boxWidth`);G(t)||(t=[t,t]),o.push([Q(t[0],s)||0,Q(t[1],s)||0])});var u=s*.8-2,d=u/r*.3,f=(u-d*(r-1))/r,p=f/2-u/2;AZ(n,function(e,t){a.push(p),p+=d+f,i.push(Math.min(Math.max(f,o[t][0]),o[t][1]))})}function PZ(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.get(`layout`)===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function FZ(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=Sg(e[o].slice()),c=Fg(s,.25),l=Fg(s,.5),u=Fg(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=K(g)?g({value:o}):q(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var IZ={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;if(t.sourceFormat!==`arrayRows`){var n=``;process.env.NODE_ENV!==`production`&&(n=Zg(`source data is not applicable for this boxplot transform. Expect number[][].`)),Qg(n)}var r=FZ(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:r.boxData},{data:r.outliers}]}};function LZ(e){e.registerSeriesModel(SZ),e.registerChartView(kZ),e.registerLayout(jZ),e.registerTransform(IZ)}var RZ=[`itemStyle`,`borderColor`],zZ=[`itemStyle`,`borderColor0`],BZ=[`itemStyle`,`borderColorDoji`],VZ=[`itemStyle`,`color`],HZ=[`itemStyle`,`color0`];function UZ(e,t){return t.get(e>0?VZ:HZ)}function WZ(e,t){return t.get(e===0?BZ:e>0?RZ:zZ)}var GZ={seriesType:`candlestick`,plan:ck(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=UZ(i,r),a.stroke=WZ(i,r)||a.fill,V(t.ensureUniqueItemVisual(n,`style`),a)}}}}},KZ=[`color`,`borderColor`],qZ=function(e){B(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){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&ZZ(s,o))return;var c=XZ(o,n,!0);GS(c,{shape:{points:o.ends}},e,n),QZ(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&ZZ(s,u)){r.remove(l);return}l?(WS(l,{shape:{points:u.ends}},e,o),XS(l)):l=XZ(u,o),QZ(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),nQ(e,this.group);var t=e.get(`clip`,!0)?ER(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=XZ(n.getItemLayout(i),i);QZ(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){nQ(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(_k),JZ=function(){function e(){}return e}(),YZ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new JZ},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Wy);function XZ(e,t,n){var r=e.ends;return new YZ({shape:{points:n?$Z(r,e):r},z2:100})}function ZZ(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function QZ(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0,e.__simpleBox=r,gx(e,i);var a=t.getItemLayout(n).sign;H(e.states,function(e,t){var n=i.getModel(t),r=UZ(a,n),o=WZ(a,n)||r,s=e.style||={};r&&(s.fill=r),o&&(s.stroke=o)});var o=i.getModel(`emphasis`);px(e,o.get(`focus`),o.get(`blurScope`),o.get(`disabled`))}function $Z(e,t){return U(e,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var eQ=function(){function e(){}return e}(),tQ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new eQ},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(Wy);function nQ(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new tQ({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new tQ({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new tQ({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),rQ(1,o,e,i),rQ(-1,s,e,i),rQ(0,c,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function rQ(e,t,n,r){var i=WZ(e,n)||UZ(e,n),a=n.getModel(`itemStyle`).getItemStyle(KZ);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var iQ=qZ,aQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.candlestick`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(ak);Cu(aQ,bZ,!0);var oQ=aQ;function sQ(e){!e||!G(e.series)||H(e.series,function(e){Nu(e)&&e.type===`k`&&(e.type=`candlestick`)})}var cQ={seriesType:`candlestick`,plan:ck(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=uQ(e,n),i=0,a=1,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=U(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Math.min(m,h),y=Math.max(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:lQ(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=pC(a[i]+r/2,1,!1),o[i]=pC(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=pC(e[i],1),e}}function m(n,r){for(var o=EP(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=lQ(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function lQ(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function uQ(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=Q(J(e.get(`barMaxWidth`),i),i),o=Q(J(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):Q(s,i)}var dQ=cQ;function fQ(e){e.registerChartView(iQ),e.registerSeriesModel(oQ),e.registerPreprocessor(sQ),e.registerVisual(GZ),e.registerLayout(dQ)}function pQ(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var mQ=function(e){B(t,e);function t(t,n){var r=e.call(this)||this,i=new dR(t,n),a=new tg;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=wA(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}pQ(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}pQ(n,e)},t.prototype.highlight=function(){ex(this)},t.prototype.downplay=function(){tx(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=TA(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=EA(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,px(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(tg),hQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new hR(mQ)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get(`clip`,!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=KR(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=ute(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(_k),gQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return eP(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type=`series.effectScatter`,t.dependencies=[`grid`,`polar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,effectType:`ripple`,progressive:0,showEffectOn:`render`,clip:!0,rippleEffect:{period:4,scale:2.5,brushType:`fill`,number:3},universalTransition:{divideShape:`clone`},symbolSize:10},t}(ak);function _Q(e){e.registerChartView(hQ),e.registerSeriesModel(gQ),e.registerLayout(KR(`effectScatter`))}var vQ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new Uq(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);G(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=wA(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=Bu(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=K(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return _d(e.__p1,e.__cp1)+_d(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=wp,c=Tp;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=_d(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*_d(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(tg),yQ=function(e){B(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new mS({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;WS(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,px(this,o,s,c)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape(`points`,e.getItemLayout(t))},t}(tg),bQ=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new yQ(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=_d(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(vQ),xQ=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),SQ=function(e){B(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new xQ},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(by(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(Sy(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(by(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new Af(n,r,i,a)}return e},t}(Wy),CQ=function(){function e(){this.group=new tg}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout(`linesPoints`),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new SQ({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.getModel(`lineStyle`).getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual(`style`);i&&i.stroke&&e.setStyle(`stroke`,i.stroke),e.setStyle(`fill`,null);var a=Db(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),wQ={seriesType:`lines`,plan:ck(),reset:function(e){var t=e.coordinateSystem;if(!t){process.env.NODE_ENV!==`production`&&Jg(`The lines series must have a coordinate system.`);return}var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}},TQ=function(e){B(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=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=s.painter.getType()===`svg`;c||s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&!c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c?process.env.NODE_ENV!==`production`&&console.warn(`SVG render mode doesn't support lines with trail effect`):s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&ER(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=wQ.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return process.env.NODE_ENV!==`production`&&r&&a&&console.warn(`Large lines not support effect`),(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new CQ:new Yq(i?r?bQ:yQ:r?vQ:Uq),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(_k),EQ=typeof Uint32Array>`u`?Array:Uint32Array,DQ=typeof Float64Array>`u`?Array:Float64Array;function OQ(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(process.env.NODE_ENV!==`production`&&console.warn(`Lines data configuration has been changed to { coords:[[1,2],[2,3]] }`),e.data=U(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),yu([t,e[0],e[1]])}))}var kQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],OQ(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(OQ(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Qu(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Qu(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow(`coords`);if(process.env.NODE_ENV!==`production`&&!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw Error(`Invalid coords `+JSON.stringify(n)+`. Lines must have 2d coords array in data item.`);return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Mu(e[0])){for(var n=e.length,r=new EQ(n),i=new DQ(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];if(i[a++]=d,i[a++]=f,c>n&&process.env.NODE_ENV!==`production`)throw Error(`Invalid data format.`)}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if(process.env.NODE_ENV!==`production`&&!NT.get(e.coordinateSystem))throw Error(`Unknown coordinate system `+e.coordinateSystem);var n=new IN([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get(`name`);if(i)return i;var a=r.get(`fromName`),o=r.get(`toName`),s=[];return a!=null&&s.push(a),o!=null&&s.push(o),BO(`nameValue`,{name:s.join(` > `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(ak);function AQ(e){return e instanceof Array||(e=[e,e]),e}var jQ={seriesType:`lines`,reset:function(e){var t=AQ(e.get(`symbol`)),n=AQ(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=AQ(n.getShallow(`symbol`,!0)),i=AQ(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function MQ(e){e.registerChartView(TQ),e.registerSeriesModel(kQ),e.registerLayout(wQ),e.registerVisual(jQ)}var NQ=256,PQ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null},this.canvas=nu.createCanvas()}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(NQ-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=nu.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function FQ(e,t,n){var r=e[1]-e[0];t=U(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function IQ(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function LQ(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var RQ=function(e){B(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;if(t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),process.env.NODE_ENV!==`production`&&!r)throw Error(`Heatmap must use with visualMap`);this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):LQ(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(LQ(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=DR(a,`cartesian2d`),s=DR(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);if(process.env.NODE_ENV!==`production`){if(!(f.type===`category`&&p.type===`category`))throw Error(`Heatmap on cartesian must have two category axes`);if(!(f.onBand&&p.onBand))throw Error(`Heatmap on cartesian must have two axes with boundaryGap true`)}c=f.getBandWidth()+.5,l=p.getBandWidth()+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=UC(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new sb({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(zu(M.x))continue;D=new sb({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(zu(M.x)||zu(M.y))continue;D=new sb({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=UC(P)}D.shape.r=y;var I=e.getRawValue(E),ee=`-`;I&&I[2]!=null&&(ee=I[2]+``),HC(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ee}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,px(D,S,C,w),D.incremental=i,i&&(D.states.emphasis.hoverLayer=!0),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new PQ;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?IQ(v,n.option.range):FQ(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Qy({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(_k),zQ=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return eP(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=NT.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(ak);function BQ(e){e.registerChartView(RQ),e.registerSeriesModel(zQ)}var VQ=[`itemStyle`,`borderWidth`],HQ=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],UQ=new zx,WQ=function(e){B(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=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:HQ[+s],categoryDim:HQ[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=GQ(i,e,n$(i,e),l),n=a$(i,l,t);i.setItemGraphicEl(e,n),r.add(n),d$(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=GQ(i,e,n$(i,e),l),s=c$(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?o$(n,l,o):n=a$(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),d$(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&s$(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?ER(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){s$(r,Db(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(_k);function GQ(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};KQ(n,a,i,r,d),JQ(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),YQ(n,d.symbolScale,c,r,d);var f=d.symbolSize;return XQ(n,f,i,a,o,EA(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function KQ(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(G(o)){var d=[qQ(s,o[0])-c,qQ(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:qQ(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function qQ(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function JQ(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=G(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=Q(m[d.index],f),m[u.index]=Q(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function YQ(e,t,n,r,i){var a=e.get(VQ)||0;a&&(UQ.attr({scaleX:t[0],scaleY:t[1],rotation:n}),UQ.updateTransform(),a/=UQ.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function XQ(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=Bu(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=Q(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=Rg(r),w=C?r:f$((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?f$((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=m*(g/2),E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=V({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function ZQ(e){var t=e.symbolPatternSize,n=wA(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function QQ(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(l$(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?u$(e,null,m(u),n,r):u$(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=ZQ(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);u$(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function $Q(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?u$(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=ZQ(n),i.add(a),u$(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function e$(e,t,n){var r=V({},t.barRectShape),i=e.__pictorialBarRect;i?u$(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new sb({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function t$(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=V({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)WS(i,{shape:a},s,c);else{a[o.wh]=0,i=new sb({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],QS[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function n$(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=r$,n.isAnimationEnabled=i$,n}function r$(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function i$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function a$(e,t,n,r){var i=new tg,a=new tg;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?QQ(i,t,n):$Q(i,t,n),e$(i,n,r),t$(i,t,n,r),i.__pictorialShapeStr=c$(e,n),i.__pictorialSymbolMeta=n,i}function o$(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;WS(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?QQ(e,t,n,!0):$Q(e,t,n,!0),e$(e,n,!0),t$(e,t,n,!0)}function s$(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];l$(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),H(a,function(e){qS(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function c$(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function l$(e,t,n){H(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function u$(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&QS[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function d$(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);l$(e,function(e){if(e instanceof Qy){var t=e.style;e.useStyle(V({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,HC(m,UC(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:lR(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),px(e,u,d,a.get(`disabled`))}function f$(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var p$=WQ,m$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=yw(QR.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:$.color.primary}}}),t}(QR);function h$(e){e.registerChartView(p$),e.registerSeriesModel(m$),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Au(IP,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LP(`pictorialBar`))}var g$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new cN(this._layersSeries||[],o,u,u),f=[];d.add(W(p,this,`add`)).update(W(p,this,`update`)).remove(W(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new tg;y=new CR({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(_$(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,WS(y,{shape:{points:l,stackedOnPoints:u}},e),XS(y)}HC(y,UC(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),gx(y,e),px(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=`themeRiver`,t}(_k);function _$(e,t,n){var r=new sb({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return GS(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var v$=g$,y$=2,b$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xz(W(this.getData,this),W(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=I_(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,A_).models[0].get(`type`),r=Eu(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=X(),s=0,c=0;c<i.length;++c)a.push(i[c][y$]),o.get(i[c][y$])||(o.set(i[c][y$],s),s++);var l=LN(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:fN(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new IN(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=I_(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){G(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return BO(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.themeRiver`,t.dependencies=[`singleAxis`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`singleAxis`,boundaryGap:[`10%`,`10%`],singleAxisIndex:0,animationEasing:`linear`,label:{margin:4,show:!0,position:`left`,fontSize:11},emphasis:{label:{show:!0}}},t}(ak);function x$(e,t){e.eachSeriesByType(`themeRiver`,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=Q(a[0],i.height),a[1]=Q(a[1],i.height),S$(t,e,i.height-a[0]-a[1])):(a[0]=Q(a[0],i.width),a[1]=Q(a[1],i.width),S$(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function S$(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=U(i,function(t){return U(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=C$(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function C$(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function w$(e){e.registerChartView(v$),e.registerSeriesModel(b$),e.registerLayout(x$),e.registerProcessor(Lz(`themeRiver`))}var T$=2,E$=4,D$=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=T$,a.textConfig={inside:!0},Db(a).seriesIndex=n.seriesIndex;var o=new Eb({z2:E$,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;Db(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=V({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=pj(d,i)),V(l,oz(o.getModel(`itemStyle`),l,!0)),H(Nb,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=oz(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,GS(a,{shape:{r:c.r}},n,t.dataIndex)):(WS(a,{shape:l},n),XS(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Qu(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;px(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),H(Pb,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=WC(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=wy(w===`tangential`?Math.PI/2-o:o),O=D>T&&!kg(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=a===2*Math.PI&&i.r0===0?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=wy(-o)+(O?Math.PI:0):w===`tangential`?k=wy(Math.PI/2-o)+(O?Math.PI:0):Mu(w)&&(k=w*Math.PI/180),h.rotation=wy(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(iS),O$=`sunburstRootToNode`,k$=`sunburstHighlight`,A$=`sunburstUnhighlight`;function j$(e){e.registerAction({type:O$,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=hG(e,[O$],t);if(r){var i=t.getViewRoot();i&&(e.direction=_G(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:k$,update:`none`},function(e,t,n){e=V({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=hG(e,[k$],t);n&&(e.dataIndex=n.node.dataIndex)}process.env.NODE_ENV!==`production`&&Xg(`sunburstHighlight`,`highlight`),n.dispatchAction(V(e,{type:`highlight`}))}),e.registerAction({type:A$,update:`updateView`},function(e,t,n){e=V({},e),process.env.NODE_ENV!==`production`&&Xg(`sunburstUnhighlight`,`downplay`),n.dispatchAction(V(e,{type:`downplay`}))})}var M$=function(e){B(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,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new cN(t,e,n,n).add(r).update(r).remove(Au(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new D$(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new D$(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&bT(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:O$,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(_k),N$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};P$(n);var r=this._levelModels=U(e.levels||[],function(e){return new mw(e,this,t)},this),i=mG.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=vG(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){kG(this)},t.type=`series.sunburst`,t.defaultOption={z:2,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:`rootToNode`,renderLabelForZeroData:!1,label:{rotate:`radial`,show:!0,opacity:1,align:`center`,position:`inside`,distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:`white`,borderType:`solid`,shadowBlur:0,shadowColor:`rgba(0, 0, 0, 0.2)`,shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:`descendant`},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:`expansion`,animationDuration:1e3,animationDurationUpdate:500,data:[],sort:`desc`},t}(ak);function P$(e){var t=0;H(e.children,function(e){P$(e);var n=e.value;G(n)&&(n=n[0]),t+=n});var n=e.value;G(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),G(e.value)?e.value[0]=n:e.value=n}var F$=N$,I$=Math.PI/180;function L$(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);G(r)||(r=[0,r]),G(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=Q(t[0],i),c=Q(t[1],a),l=Q(r[0],o/2),u=Q(r[1],o/2),d=-e.get(`startAngle`)*I$,f=e.get(`minAngle`)*I$,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&R$(m,g);var _=0;H(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=Q(_,o/2)),x!=null&&(m=Q(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;H(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function R$(e,t){var n=e.children||[];e.children=z$(n,t),n.length&&H(e.children,function(e){R$(e,t)})}function z$(e,t){if(K(t)){var n=U(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),U(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function B$(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&q(a)&&(a=$p(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),V(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function V$(e){e.registerChartView(M$),e.registerSeriesModel(F$),e.registerLayout(Au(L$,`sunburst`)),e.registerProcessor(Au(Lz,`sunburst`)),e.registerVisual(B$),j$(e)}var H$={color:`fill`,borderColor:`stroke`},U$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},W$=E_(),G$=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return eP(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=W$(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(ak);function K$(e,t){return t||=[0,0],U([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function q$(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(K$,e)}}}function J$(e,t){return t||=[0,0],U([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function Y$(e){var t=e.getBoundingRect();return{coordSys:{type:`geo`,x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:W(J$,e)}}}function X$(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function Z$(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:W(X$,e)}}}function Q$(e,t){return t||=[0,0],U([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function $$(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:W(Q$,e)}}}function e1(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function t1(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var n1={};function r1(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||Z(e,`text`)))}function i1(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},Z(r,`text`)&&(o.text=r.text),Z(r,`rich`)&&(o.rich=r.rich),Z(r,`textFill`)&&(o.fill=r.textFill),Z(r,`textStroke`)&&(o.stroke=r.textStroke),Z(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),Z(r,`fontSize`)&&(o.fontSize=r.fontSize),Z(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),Z(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=Z(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),Z(r,`textPosition`)&&(i.position=r.textPosition),Z(r,`textOffset`)&&(i.offset=r.textOffset),Z(r,`textRotation`)&&(i.rotation=r.textRotation),Z(r,`textDistance`)&&(i.distance=r.textDistance)}return a1(o,e),H(o.rich,function(e){a1(e,e)}),{textConfig:i,textContent:a}}function a1(e,t){t&&(t.font=t.textFont||t.font,Z(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),Z(t,`textAlign`)&&(e.align=t.textAlign),Z(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),Z(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),Z(t,`textWidth`)&&(e.width=t.textWidth),Z(t,`textHeight`)&&(e.height=t.textHeight),Z(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),Z(t,`textPadding`)&&(e.padding=t.textPadding),Z(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),Z(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),Z(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),Z(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),Z(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),Z(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Z(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function o1(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||$.color.neutral99;s1(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,H(t.rich,function(e){s1(e,e)}),r}function s1(e,t){t&&(Z(t,`fill`)&&(e.textFill=t.fill),Z(t,`stroke`)&&(e.textStroke=t.fill),Z(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Z(t,`font`)&&(e.font=t.font),Z(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Z(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Z(t,`fontSize`)&&(e.fontSize=t.fontSize),Z(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Z(t,`align`)&&(e.textAlign=t.align),Z(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Z(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Z(t,`width`)&&(e.textWidth=t.width),Z(t,`height`)&&(e.textHeight=t.height),Z(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Z(t,`padding`)&&(e.textPadding=t.padding),Z(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Z(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Z(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Z(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Z(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Z(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Z(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Z(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Z(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Z(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Z(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function c1(e,t){if(process.env.NODE_ENV!==`production`){var n=e+`^_^`+t;n1[n]||(console.warn(`[ECharts] DEPRECATED: "`+e+`" has been deprecated. `+t),n1[n]=!0)}}var l1={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},u1=Ou(l1),d1=Tu(Ch,function(e,t){return e[t]=1,e},{}),f1=Ch.join(`, `),p1=[``,`style`,`shape`,`extra`],m1=E_();function h1(e,t,n,r,i){var a=e+`Animation`,o=HS(e,r,i)||{},s=m1(t).userDuring;return o.duration>0&&(o.during=s?W(E1,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),V(o,n[a]),o}function g1(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=m1(e),l=t.style;c.userDuring=t.during;var u={},d={};if(A1(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];O1(`shape`,h,f[m])}else O1(`shape`,t,d),O1(`extra`,t,d);if(!a&&s&&(k1(e,t,u),D1(`shape`,e,t,u),D1(`extra`,e,t,u),j1(e,t,l,u)),d.style=l,b1(e,d,o),S1(e,t),s)if(a){var g={};H(p1,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),V(e?g[e]:g,n.enterFrom))});var _=h1(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else x1(e,t,i||0,n,u);_1(e,t),l?e.dirty():e.markRedraw()}function _1(e,t){for(var n=m1(e).leaveToProps,r=0;r<p1.length;r++){var i=p1[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=m1(e).leaveToProps={},i&&(n[i]=n[i]||{}),V(i?n[i]:n,a.leaveTo))}}function v1(e,t,n,r){if(e){var i=e.parent,a=m1(e).leaveToProps;if(a){var o=h1(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function y1(e){return e===`all`}function b1(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function x1(e,t,n,r,i){if(i){var a=h1(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function S1(e,t){Z(t,`silent`)&&(e.silent=t.silent),Z(t,`ignore`)&&(e.ignore=t.ignore),e instanceof zv&&Z(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Wy&&Z(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var C1={},w1={setTransform:function(e,t){return process.env.NODE_ENV!==`production`&&Y(Z(d1,e),`Only `+f1+" available in `setTransform`."),C1.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!==`production`&&Y(Z(d1,e),`Only `+f1+" available in `getTransform`."),C1.el[e]},setShape:function(e,t){process.env.NODE_ENV!==`production`&&T1(e);var n=C1.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!==`production`&&T1(e);var t=C1.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!==`production`&&T1(e);var n=C1.el,r=n.style;return r&&(process.env.NODE_ENV!==`production`&&zu(t)&&qg(`style.`+e+` must not be assigned with NaN.`),r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!==`production`&&T1(e);var t=C1.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!==`production`&&T1(e);var n=C1.el.extra||(C1.el.extra={});return n[e]=t,this},getExtra:function(e){process.env.NODE_ENV!==`production`&&T1(e);var t=C1.el.extra;if(t)return t[e]}};function T1(e){if(process.env.NODE_ENV!==`production`&&(e===`transition`||e===`enterFrom`||e===`leaveTo`))throw Error(`key must not be "`+e+`"`)}function E1(){var e=this,t=e.el;if(t){var n=m1(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}C1.el=t,r(w1)}}function D1(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),y1(c))V(o,a);else for(var l=n_(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(y1(s)||xu(s,e)>=0){!o&&(o=r[e]={});for(var p=Ou(a),u=0;u<p.length;u++){var d=p[u],f=a[d];M1(i[d],f)&&(o[d]=f)}}}}}function O1(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Ou(r),o=0;o<a.length;o++){var s=a[o];i[s]=Lm(r[s])}}function k1(e,t,n){for(var r=t.transition,i=y1(r)?Ch:n_(r||[]),a=0;a<i.length;a++){var o=i[a];if(!(o===`style`||o===`shape`||o===`extra`)){var s=e[o];process.env.NODE_ENV!==`production`&&N1(o,`el.transition`),n[o]=s}}}function A1(e,t,n){for(var r=0;r<u1.length;r++){var i=u1[r],a=l1[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Ch.length;r++){var s=Ch[r];t[s]!=null&&(n[s]=t[s])}}function j1(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!y1(o)){var c=n_(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(y1(s)||y1(o)||xu(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=Ou(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function M1(e,t){return wu(e)?e!==t:e!=null&&isFinite(e)}var N1;process.env.NODE_ENV!==`production`&&(N1=function(e,t){Z(d1,e)||qg("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+Ou(d1).join("`, `")+"` are permitted.")});var P1=E_(),F1=[`percent`,`easing`,`shape`,`style`,`extra`];function I1(e){e.stopAnimation(`keyframe`),e.attr(P1(e))}function L1(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(G(t)){H(t,function(t){L1(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=HS(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=P1(e);H(p1,function(n){if(!(n&&!e[n])){var a,s=!1;r.sort(function(e,t){return e.percent-t.percent}),H(r,function(r){var c=e.animators,l=n?r[n]:r;if(process.env.NODE_ENV!==`production`&&r.percent>=1&&(s=!0),l){var u=Ou(l);if(n||(u=Eu(u,function(e){return xu(F1,e)<0})),u.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var d=0;d<c.length;d++)c[d]!==a&&c[d].targetName===a.targetName&&c[d].stopTracks(u);n&&(o[n]=o[n]||{});var f=n?o[n]:o;H(u,function(t){f[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,l,u,r.easing)}}}),a&&(process.env.NODE_ENV!==`production`&&(s||qg(`End frame with percent: 1 is missing in the keyframeAnimation.`,!0)),a.delay(t.delay||0).duration(i).start(t.easing))}})}}}var R1=`emphasis`,z1=`normal`,B1=`blur`,V1=`select`,H1=[z1,R1,B1,V1],U1={normal:[`itemStyle`],emphasis:[R1,`itemStyle`],blur:[B1,`itemStyle`],select:[V1,`itemStyle`]},W1={normal:[`label`],emphasis:[R1,`label`],blur:[B1,`label`],select:[V1,`label`]},G1=[`x`,`y`],K1=`e\0\0`,q1={normal:{},emphasis:{},blur:{},select:{}},J1={cartesian2d:q$,geo:Y$,single:Z$,polar:$$,calendar:e1,matrix:t1};function Y1(e){return e instanceof Wy}function X1(e){return e instanceof zv}function Z1(e,t){t.copyTransform(e),X1(t)&&X1(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Y1(t)&&Y1(e)&&t.setShape(e.shape))}var Q1=function(e){B(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,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=i0(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){o0(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&v1(n,W$(n).option,e)}).update(function(t,c){o0(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?ER(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=i0(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=o0(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){AC(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(_k);function $1(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=b0(r);n=sC(a,null,i,r.layout||`center`),W$(n).customPathData=a}else if(t===`image`)n=new Qy({}),W$(n).customImagePath=e.style.image;else if(t===`text`)n=new Eb({});else if(t===`group`)n=new tg;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;process.env.NODE_ENV!==`production`&&(o=`shape.paths must be specified in compoundPath`),Qg(o)}n=new ES({shape:{paths:U(r.paths,function(e){if(e.type===`path`)return sC(e.shape.pathData,e,null);var n=oC(e.type);if(!n){var r=``;process.env.NODE_ENV!==`production`&&(r=`graphic type "`+t+`" can not be found.`),Qg(r)}return new n})}})}else{var s=oC(t);if(!s){var o=``;process.env.NODE_ENV!==`production`&&(o=`graphic type "`+t+`" can not be found.`),Qg(o)}n=new s}return W$(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function e0(e,t,n,r,i,a,o){I1(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=G1);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;Z(l,`textFill`)&&(l.fill=l.textFill),Z(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=Y1(t)?c.decal:null;e&&d&&(d.dirty=!0,u=pj(d,e)),c.__decalPattern=u}if(X1(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}g1(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),L1(t,r.keyframeAnimation,a)}function t0(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),Zb(a)}}function n0(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<H1.length;s++)r0(r,t,H1[s])}}function r0(e,t,n){var r=n===z1,i=r?t:f0(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function i0(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=Ej(i);a?i=a:process.env.NODE_ENV!==`production`&&console.warn(`Custom series renderItem '`+i+`' not found.
|
|
66
|
+
Call 'echarts.registerCustomSeries' to register it.`)}var o=e.coordinateSystem,s={};o&&(process.env.NODE_ENV!==`production`&&(Y(i,`series.render is required.`),Y(o.prepareCustoms||J1[o.type],`This coordSys does not support custom series.`)),s=o.prepareCustoms?o.prepareCustoms(o):J1[o.type](o));for(var c=bu({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:a0(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<H1.length;g++){var _=H1[g];m[_]=e.getModel(U1[_]),h[_]=e.getModel(W1[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(U1[n])):v(e).getModel(U1[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(W1[n])):v(e).getModel(W1[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(bu({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){process.env.NODE_ENV!==`production`&&c1(`api.style`,`Please write literal style directly instead.`),r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,z1).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:q(a)?a:$.color.neutral99},l=b(r,z1),d=WC(l,null,c,!1,!0);d.text=l.getShallow(`show`)?J(e.getFormattedLabel(r,z1),lR(t,r)):null;var f=GC(l,c,!1);return E(n,s),s=o1(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){process.env.NODE_ENV!==`production`&&c1(`api.styleEmphasis`,`Please write literal style directly instead.`),r??=u;var i=y(r,R1).getItemStyle(),a=b(r,R1),o=WC(a,null,null,!0,!0);o.text=a.getShallow(`show`)?Vu(e.getFormattedLabel(r,R1),e.getFormattedLabel(r,z1),lR(t,r)):null;var s=GC(a,null,!0);return E(n,i),i=o1(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Z(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Z(H$,e)){var r=t.getItemVisual(n,`style`);return r?r[H$[e]]:null}if(Z(U$,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return AP(bu({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return QC(e,n)}}function a0(e){var t={};return H(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function o0(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=s0(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&px(s,r.focus,r.blurScope,r.emphasisDisabled),s}function s0(e,t,n,r,i,a){process.env.NODE_ENV!==`production`&&Y(r,`should not have an null/undefined element setting`);var o=-1,s=t;t&&c0(t,r,i)&&(o=xu(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=$1(r),s&&Z1(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),q1.normal.cfg=q1.normal.conOpt=q1.emphasis.cfg=q1.emphasis.conOpt=q1.blur.cfg=q1.blur.conOpt=q1.select.cfg=q1.select.conOpt=null,q1.isLegacy=!1,u0(l,n,r,i,c,q1),l0(l,n,r,i,c),e0(e,l,n,r,q1,i,c),Z(r,`info`)&&(W$(l).info=r.info);for(var u=0;u<H1.length;u++){var d=H1[u];if(d!==z1){var f=f0(r,d),p=p0(r,f,d);t0(d,l,f,p,q1)}}return n0(l,r,i),r.type===`group`&&m0(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function c0(e,t,n){var r=W$(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&x0(a)&&b0(a)!==r.customPathData||i===`image`&&Z(o,`image`)&&o.image!==r.customImagePath}function l0(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&c0(o,a,r)&&(o=null),o||(o=$1(a),process.env.NODE_ENV!==`production`&&Y(Y1(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+`.`),e.setClipPath(o)),e0(null,o,t,a,null,r,i)}}function u0(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){d0(n,null,a),d0(n,R1,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=$1(o),e.setTextContent(u)),e0(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<H1.length;f++){var p=H1[f];if(p!==z1){var m=a[p].conOpt;t0(p,u,m,p0(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function d0(e,t,n){var r=t?f0(e,t):e,i=t?p0(e,r,R1):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?f0(s,t):s:null;if(i&&(n.isLegacy||r1(i,a,!!o,!!c))){n.isLegacy=!0;var l=i1(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`),process.env.NODE_ENV!==`production`&&Y(u.type===`text`,`textContent.type must be "text"`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function f0(e,t){return t?e?e[t]:null:e}function p0(e,t,n){var r=t&&t.style;return r==null&&n===R1&&e&&(r=e.styleEmphasis),r}function m0(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){g0({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,s0(e,f,n,d,i,t)):(process.env.NODE_ENV!==`production`&&Y(f,`renderItem should not return a group containing elements as null/undefined/{} if they do not exist before.`),f.ignore=!0)}for(var p=t.childCount()-1;p>=u;p--)h0(t,t.childAt(p),i)}}function h0(e,t,n){t&&v1(t,W$(e).option,n)}function g0(e){new cN(e.oldChildren,e.newChildren,_0,_0,e).add(v0).update(v0).remove(y0).execute()}function _0(e,t){return(e&&e.name)??K1+t}function v0(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];s0(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function y0(e){var t=this.context,n=t.oldChildren[e];n&&v1(n,W$(n).option,t.seriesModel)}function b0(e){return e&&(e.pathData||e.d)}function x0(e){return e&&(Z(e,`pathData`)||Z(e,`d`))}function S0(e){e.registerChartView(Q1),e.registerSeriesModel(G$)}var C0=E_(),w0=_u,T0=W,E0=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 tg,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=Au(D0,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}j0(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=GV(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=C0(e).pointerEl=new QS[i.type](w0(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=C0(e).labelEl=new Eb(w0(t.label));e.add(i),k0(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=C0(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=C0(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),k0(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=bC(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Zd(e.event)},onmousedown:T0(this._onHandleDragMove,this,0,0),drift:T0(this._onHandleDragMove,this),ondragend:T0(this._onHandleDragEnd,this)}),n.add(r)),j0(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);G(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Sk(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){D0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,A0(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(A0(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(A0(r)),C0(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),Ck(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 D0(e,t,n,r){O0(C0(n).lastProp,r)||(C0(n).lastProp=r,t?WS(n,r,e):(n.stopAnimation(),n.attr(r)))}function O0(e,t){if(Nu(e)&&Nu(t)){var n=!0;return H(t,function(t,r){n&&=O0(e[r],t)}),!!n}else return e===t}function k0(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function A0(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function j0(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)})}var M0=E0;function N0(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 P0(e,t,n,r,i){var a=I0(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=fT(o.get(`padding`)||0),c=o.getFont(),l=Nh(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),F0(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:WC(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function F0(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 I0(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:yF(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};H(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),q(o)?a=o.replace(`{value}`,a):K(o)&&(a=o(s))}return a}function L0(e,t,n){var r=rf();return lf(r,r,n.rotation),cf(r,r,n.position),hC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function R0(e,t,n,r,i,a){var o=hV.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),P0(t,r,i,a,{position:L0(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function z0(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function B0(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function V0(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var H0=function(e){B(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=U0(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=N0(r),d=W0[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}R0(t,e,gV(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=gV(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=L0(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=U0(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}(M0);function U0(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var W0={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:z0([t,n[0]],[t,n[1]],G0(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:B0([t-r/2,n[0]],[r,i],G0(e))}}};function G0(e){return e.dim===`x`?0:1}var K0=H0,q0=function(e){B(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:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.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:$.color.accent40,throttle:40}},t}(tE),J0=E_(),Y0=H;function X0(e,t,n){if(!Ql.node){var r=t.getZr();J0(r).records||(J0(r).records={}),Z0(r,t);var i=J0(r).records[e]||(J0(r).records[e]={});i.handler=n}}function Z0(e,t){if(J0(e).initialized)return;J0(e).initialized=!0,n(`click`,Au(e2,`click`)),n(`mousemove`,Au(e2,`mousemove`)),n(`globalout`,$0);function n(n,r){e.on(n,function(n){var i=Vre(t);Y0(J0(e).records,function(e){e&&r(e,n,i.dispatchAction)}),Q0(i.pendings,t)})}}function Q0(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 $0(e,t,n){e.handler(`leave`,null,n)}function e2(e,t,n,r){t.handler(e,n,r)}function Vre(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 t2(e,t){if(!Ql.node){var n=t.getZr();(J0(n).records||{})[e]&&(J0(n).records[e]=null)}}var n2=function(e){B(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`;X0(`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){t2(`axisPointer`,t)},t.prototype.dispose=function(e,t){t2(`axisPointer`,t)},t.type=`axisPointer`,t}(sk);function r2(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=T_(a,e);if(o==null||o<0||G(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(U(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}}var i2=E_();function a2(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){h2(i)&&(i=r2({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=h2(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||h2(i),f={},p={},m={list:[],map:{}},h={showPointer:Au(c2,p),showTooltip:Au(l2,m)};H(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);H(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=p2(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&o2(e,o,h,!1,f)}})});var g={};return H(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&H(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,m2(t),m2(e)))),g[e.key]=a}})}),H(g,function(e,t){o2(u[t],e,h,!0,f)}),u2(p,u,f),d2(m,i,e,o),f2(u,o,n),f}}function o2(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=s2(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function s2(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return H(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),H(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function c2(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function l2(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=JV(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 u2(e,t,n){var r=n.axesInfo=[];H(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 d2(e,t,n,r){if(h2(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 f2(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=i2(r)[i]||{},o=i2(r)[i]={};H(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&H(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];H(a,function(e,t){!o[t]&&c.push(e)}),H(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 p2(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 m2(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 h2(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function g2(e){XV.registerAxisPointerClass(`CartesianAxisPointer`,K0),e.registerComponentModel(q0),e.registerComponentView(n2),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!G(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=RV(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},a2)}function _2(e){aN(sH),aN(g2)}var v2=function(e){B(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;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=N0(r),d=b2[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}P0(e,n,r,i,y2(t,n,r,o,r.get([`label`,`margin`])))},t}(M0);function y2(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=rf();lf(f,f,s),cf(f,f,[r.cx,r.cy]),l=hC([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=hV.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var b2={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:z0(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:V0(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:V0(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},x2=v2,S2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(tE),C2=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,A_).models[0]},t.type=`polarAxis`,t}(tE);Cu(C2,OF);var w2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(C2),T2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(C2),E2=function(e){B(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(vI);E2.prototype.dataToRadius=vI.prototype.dataToCoord,E2.prototype.radiusToData=vI.prototype.coordToData;var D2=E2,O2=E_(),k2=function(e){B(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=Nh(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=O2(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(vI);k2.prototype.dataToAngle=vI.prototype.dataToCoord,k2.prototype.angleToData=vI.prototype.coordToData;var A2=k2,j2=[`radius`,`angle`],M2=function(){function e(e){this.dimensions=j2,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new D2,this._angleAxis=new A2,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return N2(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return N2(t)===this?this.pointToData(n):null},e}();function N2(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var P2=M2;function F2(e,t,n){var r=t.get(`center`),i=GT(t,n).refContainer;e.cx=Q(r[0],i.width)+i.x,e.cy=Q(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:G(s)||(s=[0,s]);var c=[Q(s[0],o),Q(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function I2(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();H(SF(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),H(SF(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),hF(r.scale,r.model),hF(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function L2(e){return e.mainType===`angleAxis`}function R2(e,t){if(e.type=t.get(`type`),e.scale=gF(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),L2(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var z2={dimensions:j2,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new P2(r+``);i.update=I2;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);R2(a,s),R2(o,c),F2(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.getReferringComponents(`polar`,A_).models[0];if(process.env.NODE_ENV!==`production`&&!t)throw Error(`Polar "`+Bu(e.get(`polarIndex`),e.get(`polarId`),0)+`" not found`);e.coordinateSystem=t.coordinateSystem}}),n}},B2=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function V2(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function H2(e){return e.getRadiusAxis().inverse?0:1}function U2(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var W2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=U(n.getViewLabels(),function(e){e=_u(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});U2(s),U2(a),H(B2,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&G2[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(XV),G2={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=H2(n),d=u?0:1,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new QS[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new oS({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[H2(n)],l=U(r,function(e){return new vS({shape:V2(n,[c,c+s],e.coord)})});e.add(uC(l,{style:bu(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[H2(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new vS({shape:V2(n,[l,l+c],i[d][f].coord)}));e.add(uC(u,{style:bu(s.getModel(`lineStyle`).getLineStyle(),bu(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);H(o,function(r,i){var o=c,d=r.tickValue,f=a[H2(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];Nu(v)&&v.textStyle&&(o=new mw(v.textStyle,c,c.ecModel))}var y=new Eb({silent:hV.isLabelSilent(t),style:WC(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),OC({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=hV.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,Db(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new vS({shape:V2(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(uC(l[u],{style:bu({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new vS({shape:V2(n,a,i[c][l].coord)}));e.add(uC(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new iS({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(uC(l[h],{style:bu({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},K2=W2,q2=[`splitLine`,`splitArea`,`minorSplitLine`],J2=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this._axisGroup,i=this._axisGroup=new tg;this.group.add(i);var a=e.axis,o=a.polar,s=o.getAngleAxis(),c=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=s.getExtent()[0],d=a.getExtent(),f=new hV(e,n,X2(o,e,u));f.build(),i.add(f.group),vC(r,i,e),H(q2,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&Y2[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(XV),Y2={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new QS[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(uC(p[m],{style:bu({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new zx({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(uC(c,{style:bu({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new iS({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(uC(l[d],{style:bu({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function X2(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}var Z2=J2;function Q2(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function $2(e,t){return t.dim+e.model.componentIndex}function e4(e,t,n){var r={},i=t4(Eu(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&e.coordinateSystem.type===`polar`}));t.eachSeriesByType(e,function(e){if(e.coordinateSystem.type===`polar`){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=$2(n,a),s=Q2(e),c=i[o][s],l=c.offset,u=c.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,p=e.coordinateSystem.cy,m=e.get(`barMinHeight`)||0,h=e.get(`barMinAngle`)||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),_=t.mapDimension(a.dim),v=qN(t,g),y=a.dim!==`radius`||!e.get(`roundCap`,!0),b=d.model.get(`startValue`),x=d.dataToCoord(b||0),S=0,C=t.count();S<C;S++){var w=t.get(g,S),T=t.get(_,S),E=w>=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var M=d.dataToCoord(w)-x,N=a.dataToCoord(T);Math.abs(M)<m&&(M=(M<0?-1:1)*m),O=D,k=D+M,A=N-l,j=A-u,v&&(r[s][T][E]=k)}else{var P=d.dataToCoord(w,y)-x,F=a.dataToCoord(T);Math.abs(P)<h&&(P=(P<0?-1:1)*h),O=F+l,k=O+u,A=D,j=D+P,v&&(r[s][T][E]=j)}t.setItemLayout(S,{cx:f,cy:p,r0:O,r:k,startAngle:-A*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:A>=j})}}})}function t4(e){var t={};H(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=$2(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=Q2(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=Q(e.get(`barWidth`),c),p=Q(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return H(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Q(e.categoryGap,i),o=Q(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),H(r,function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)}),l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u=0,d;H(r,function(e,t){e.width||=l,d=e,u+=e.width*(1+o)}),d&&(u-=d.width*o);var f=-u/2;H(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}var n4=e4,r4={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},i4={splitNumber:5},a4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(sk);function o4(e){aN(g2),XV.registerAxisPointerClass(`PolarAxisPointer`,x2),e.registerCoordinateSystem(`polar`,z2),e.registerComponentModel(S2),e.registerComponentView(a4),bB(e,`angle`,w2,r4),bB(e,`radius`,T2,i4),e.registerComponentView(K2),e.registerComponentView(Z2),e.registerLayout(Au(n4,`bar`))}function s4(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Bu(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=e.get([`axisLabel`,`rotate`]);return i.labelRotate=a===`top`?-u:u,i.z2=1,i}var c4=[`splitArea`,`splitLine`,`breakArea`],l4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new tg;var s=new hV(t,r,s4(t));s.build(),a.add(this._axisGroup),a.add(s.group),H(c4,function(e){t.get([e,`show`])&&u4[e](this,this.group,this._axisGroup,t,r)},this),vC(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){$V(this)},t.type=`singleAxis`,t}(XV),u4={splitLine:function(e,t,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`);c=c instanceof Array?c:[c];for(var l=s.get(`width`),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),f=[],p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=0;_<m.length;++_){var v=a.toGlobalCoord(m[_].coord);d?(h[0]=v,h[1]=u.y,g[0]=v,g[1]=u.y+u.height):(h[0]=u.x,h[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new vS({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});fC(y.shape,l);var b=p++%c.length;f[b]=f[b]||[],f[b].push(y)}for(var x=s.getLineStyle([`color`]),_=0;_<f.length;++_)t.add(uC(f[_],{style:bu({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){QV(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=yB(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},d4=l4,f4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=`singleAxis`,t.layoutMode=`box`,t.defaultOption={left:`5%`,top:`5%`,right:`5%`,bottom:`5%`,type:`value`,position:`bottom`,orient:`horizontal`,axisLine:{show:!0,lineStyle:{width:1,type:`solid`}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:`auto`},splitLine:{show:!0,lineStyle:{type:`dashed`,opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(tE);Cu(f4,OF.prototype);var p4=f4,m4=function(e){B(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(vI),h4=[`single`],g4=function(){function e(e,t,n){this.type=`single`,this.dimension=`single`,this.dimensions=h4,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new m4(r,gF(e),[0,0],e.get(`type`),e.get(`position`));i.onBand=i.type===`category`&&e.get(`boundaryGap`),i.inverse=e.get(`inverse`),i.orient=e.get(`orient`),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();H(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),hF(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){var n=GT(e,t).refContainer;this._rect=HT(e.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return n.orient===`horizontal`?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return _4(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return _4(t)===this?this.pointToData(n):null},e}();function _4(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var v4=g4;function y4(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new v4(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,A_).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var b4={create:y4,dimensions:h4},x4=[`x`,`y`],S4=[`width`,`height`],C4=function(e){B(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.coordinateSystem,s=E4(o,1-T4(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=N0(r),d=w4[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}R0(t,e,s4(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=s4(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=L0(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.coordinateSystem,o=T4(i),s=E4(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=E4(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(M0),w4={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:z0([t,n[0]],[t,n[1]],T4(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:B0([t-r/2,n[0]],[r,i],T4(e))}}};function T4(e){return e.isHorizontal()?0:1}function E4(e,t){var n=e.getRect();return[n[x4[t]],n[x4[t]]+n[S4[t]]]}var D4=C4,O4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(sk);function k4(e){aN(g2),XV.registerAxisPointerClass(`SingleAxisPointer`,D4),e.registerComponentView(O4),e.registerComponentView(d4),e.registerComponentModel(p4),bB(e,`single`,p4,p4.defaultOption),e.registerCoordinateSystem(`single`,b4)}var A4=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=XT(t);e.prototype.init.apply(this,arguments),j4(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),j4(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(tE);function j4(e,t){var n=e.cellSize,r=G(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),YT(e,t,{type:`box`,ignoreSize:U([0,1],function(e){return qT(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var M4=A4,N4=function(e){B(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=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new sb({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new mS({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return q(e)&&e?_T(e,t):K(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new Eb({z2:30,style:WC(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||q(a))&&(a&&(t=Aw(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new Eb({z2:30,style:V(WC(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||q(c))&&(c&&(t=Aw(c)||t),c=t.get([`time`,`dayOfWeekShort`])||U(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=Q(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToCalendarLayout([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new Eb({z2:30,style:V(WC(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(sk),P4=864e5,F4=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}return e.getDimensionsInfo=function(){return[{name:`time`,type:`time`},`value`]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=jg(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel(`dayLabel`).get(`firstDay`),this._orient=this._model.get(`orient`),this._lineWidth=this._model.getModel(`itemStyle`).getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];H([0,1],function(e){c(i,e)&&(a[r[e]]=i[e]*o[e])});var s=this._rect=HT(a,{width:t.getWidth(),height:t.getHeight()});H([0,1],function(e){c(i,e)||(i[e]=s[r[e]]/o[e])});function c(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t,n){n||=[],G(e)&&(e=e[0]),t??=!0;var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+P4))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient===`vertical`?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToLayout=function(e,t,n){n||={};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(e,t);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,Af.copy(i,r),TC(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=I4(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=I4(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=I4(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(G(e)&&e.length===1&&(e=e[0]),G(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+`-01-01`,n+`-12-31`]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!==`production`&&gu(`Invalid date range.`),e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/P4)-Math.floor(t[0].time/P4)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){jT({targetModel:t,coordSysType:`calendar`,coordSysProvider:MT})}),r},e.dimensions=[`time`,`value`],e}();function I4(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var L4=F4;function R4(e){e.registerComponentModel(M4),e.registerComponentView(N4),e.registerCoordinateSystem(`calendar`,L4)}var z4={level:1,leaf:2,nonLeaf:3},B4={none:0,all:1,body:2,corner:3};function V4(e,t,n){var r=t[eC[n]].getCell(e);return!r&&Mu(e)&&e<0&&(r=t[eC[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function H4(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function U4(e,t,n,r,i){W4(e[0],t,i,n,r,0),W4(e[1],t,i,n,r,1)}function W4(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=G(o)?o:[o],c=s.length,l=!!n;if(c>=1?(G4(e,t,s,l,i,a,0),c>1&&G4(e,t,s,l,i,a,c-1)):(process.env.NODE_ENV!==`production`&&t&&t.push(`Should be like [["x1", "x2"], ["y1", "y2"]], or ["x1", "y1"], rather than empty.`),e[0]=e[1]=NaN),l){var u=-i[eC[1-a]].getLocatorCount(a),d=i[eC[a]].getLocatorCount(a)-1;n===B4.body?u=gg(0,u):n===B4.corner&&(d=hg(-1,d)),d<u&&(u=d=NaN),zu(e[0])&&(e[0]=u),zu(e[1])&&(e[1]=d),e[0]=gg(hg(e[0],d),u),e[1]=gg(hg(e[1],d),u)}}function G4(e,t,n,r,i,a,o){var s=V4(n[o],i,a);if(!s){process.env.NODE_ENV!==`production`&&!r&&t&&t.push(`Can not find cell by coord[`+a+`][`+o+`].`),e[0]=e[1]=NaN;return}var c=s.id[eC[a]],l=c,u=t3(s);u&&(l+=u.span[eC[a]]-1),e[0]=hg(e[0],c,l),e[1]=gg(e[1],c,l)}function K4(e,t){return zu(e[t][0])||zu(e[t][1])}function q4(e,t,n,r){t||=J4;for(var i=0;i<r;i++)t[i]=!1;for(;;){for(var a=!1,i=0;i<r;i++){var o=n[i];!t[i]&&o.cellMergeOwner&&Y4(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var J4=[];function Y4(e,t){return!X4(e[0],t[0])||!X4(e[1],t[1])?!1:(e[0][0]=hg(e[0][0],t[0][0]),e[0][1]=gg(e[0][1],t[0][1]),e[1][0]=hg(e[1][0],t[1][0]),e[1][1]=gg(e[1][1],t[1][1]),!0)}function X4(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function Z4(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function Q4(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function $4(e,t,n,r){var i=V4(t[r][0],n,r),a=V4(t[r][1],n,r);e[eC[r]]=e[tC[r]]=NaN,i&&a&&(e[eC[r]]=i.xy,e[tC[r]]=a.xy+a.wh-i.xy)}function e3(e,t,n,r){return e[eC[t]]=n,e[eC[1-t]]=r,e}function t3(e){return e&&(e.type===z4.leaf||e.type===z4.nonLeaf)?e:null}function n3(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var r3=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=i3(e);var n=t.get(`data`,!0);n!=null&&!G(n)&&(process.env.NODE_ENV!==`production`&&Jg(`Illegal echarts option - matrix.`+this.dim+`.data must be an array if specified.`),n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&H(e,function(e,l){var u=!1,d;q(e)?d={value:e}:Nu(e)?(d=e,e.value!=null&&!q(e.value)&&(u=!0,d={value:null})):(d={value:null},e!=null&&(u=!0)),u&&process.env.NODE_ENV!==`production`&&Jg(`Illegal echarts option - matrix.`+t.dim+`.data[`+l+"] must be `string | {value: string}`.");var f={type:z4.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new ff,span:e3(new ff,t.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:t,rect:n3()};a++,(i[n]||(i[n]=[])).push(f),r[s]||(r[s]={type:z4.level,xy:NaN,wh:NaN,option:null,id:new ff,dim:t});var p=o(d.children,n,s+1),m=Math.max(1,p);f.span[eC[t.dimIdx]]=m,c+=m,n+=m}),c}function s(){for(var e=[];n.length<a;)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=e.length;var s=o.option.value;e.push(s),n.push(o),t._uniqueValueGen.calcDupBase(s)}}t._uniqueValueGen.ensureValueUnique(e,n),t._scale=new bP({ordinalMeta:t._ordinalMeta=new vP({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=z4.leaf,l.span[eC[1-t.dimIdx]]=t._levels.length-l.level}t._initCellsId(),t._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:z4.level,xy:NaN,wh:NaN,option:null,id:new ff,dim:e}],e._initLevelIdOptions(),e._scale=new bP({ordinalMeta:e._ordinalMeta=new vP({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:z4.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new ff,span:e3(new ff,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:n3()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;e3(e.id,n,e.firstLeafLocator,e.level-t)},e.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;H(this._cells,function(n){e3(n.id,t,n.firstLeafLocator,n.level-e)})},e.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get(`levels`,!0);n=G(n)?n:[],H(this._levels,function(r,i){e3(r.id,t,0,i-e),r.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow(`show`,!0)},e.prototype.resetLayoutIterator=function(e,t,n,r){if(e||=new R_,t===this.dimIdx){var i=this._leavesCount,a=n==null?0:Math.max(0,n);r=r==null?i:Math.min(r,i),e.reset(this._cells,a,a+r)}else{var i=this._levels.length,a=n==null?0:Math.max(0,n+i);r=r==null?i:Math.min(r,i),e.reset(this._levels,a,a+r)}return e},e.prototype.resetCellIterator=function(e){return(e||new R_).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new R_).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[eC[t]]=r?r.xy:NaN,e[tC[t]]=r?r.wh:NaN},e.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},e.prototype.getCell=function(e){var t=this._scale.parse(e);return zu(t)?void 0:this._cells[t]},e.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function i3(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=gg(r,+t[1]+1))}function a(){return``+t+ r++}function o(e,t){for(var n=X(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=bu({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var a3=function(){function e(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=X(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!G(n)&&(process.env.NODE_ENV!==`production`&&Jg(`matrix.`+n+`.data must be an array if specified.`),n=null),H(n,function(n,r){if(!Nu(n)||!G(n.coord)){process.env.NODE_ENV!==`production`&&Jg(`Illegal matrix.`+e._kind+`.data[`+r+`], must be a {coord: [...], ...}`);return}var i=H4([]),a=null;if(process.env.NODE_ENV!==`production`&&(a=[]),U4(i,a,n.coord,e._dims,n.coordClamp?B4[e._kind]:B4.none),K4(i,0)||K4(i,1)){process.env.NODE_ENV!==`production`&&Jg(`Can not determine cells by option matrix.`+e._kind+`.data[`+r+`]: `+(``+a.join(` `)));return}var o=n&&n.mergeCells,s={id:new ff,span:new ff,locatorRange:i,option:n,cellMergeOwner:o};Z4(s,i),t.push(s)});for(var i=[],a=0;a<t.length;a++){var o=t[a];if(o.cellMergeOwner){var s=o.locatorRange;q4(s,i,t,a);for(var c=0;c<a;c++)i[c]&&(t[c].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var l=V({},o.option);l.coord=null;var u={id:new ff,span:new ff,locatorRange:s,option:l,cellMergeOwner:!0};Z4(u,s),t.push(u)}}}H(t,function(t){var n=r(t.id.x,t.id.y);if(t.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=t.span,n.locatorRange=t.locatorRange,n.spanRect=n3(),e._cellMergeOwnerList.push(n)),!(!t.cellMergeOwner&&!t.option))for(var i=0;i<t.span.y;i++)for(var a=0;a<t.span.x;a++){var o=r(t.id.x+a,t.id.y+i);o.option=t.option,t.cellMergeOwner&&(o.inSpanOf=n)}})}function r(e,n){var r=s3(e,n),i=t.get(r);return i||=t.set(r,{id:new ff(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(s3(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!K4(e,0)&&!K4(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){o3[0]=e[0][0],o3[1]=e[1][0];var t=this.getCell(o3),n=t&&t.inSpanOf;if(n){Q4(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;q4(e,null,r,r.length)},e}(),o3=[];function s3(e,t){return e+`|`+t}var c3={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function l3(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var u3={show:!0,label:c3,itemStyle:l3(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},d3={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:u3,y:u3,body:{label:c3,itemStyle:l3(!1),silent:void 0},corner:{label:c3,itemStyle:l3(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1}},f3=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new p3(this.get(`x`,!0)||{}),y:new p3(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new r3(`x`,e.x),y:e.y.dim=new r3(`y`,e.y)};this._body=new a3(`body`,new mw(this.getShallow(`body`)),t),this._corner=new a3(`corner`,new mw(this.getShallow(`corner`)),t)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type=`matrix`,t.layoutMode=`box`,t.defaultOption=d3,t}(tE),p3=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(mw),m3=f3,h3=Math.round,g3=0,_3=99,v3={normal:25,special:100},y3={normal:50,special:125},b3=function(e){B(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){this.group.removeAll();var n=this.group,r=e.coordinateSystem.getRect(),i=e.getDimensionModel(`x`),a=e.getDimensionModel(`y`),o=i.dim,s=a.dim;x3(n,e,t),S3(n,e,o,s,t);var c=J(e.getShallow(`borderZ2`,!0),_3),l=c-1,u=e.getModel(`backgroundStyle`).getItemStyle([`borderWidth`]);u.lineWidth=0;var d=e.getModel(`backgroundStyle`).getItemStyle([`color`,`decal`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]);d.fill=`none`;var f=O3(r.clone(),u,g3),p=O3(r.clone(),d,c);f.silent=!0,p.silent=!0,n.add(f),n.add(p);var m=o.getUnitLayoutInfo(0,0),h=s.getUnitLayoutInfo(1,0);m&&h&&(o.shouldShow()&&n.add(k3({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(k3({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(sk);function x3(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(eC[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel(`itemStyle`),s=i.getModel(`label`),c=t.getShallow(`tooltip`,!0),l=[],u=a.resetCellIterator();u.next();){var d=u.item,f={};Af.copy(f,d.rect),cd(l,d.id.x,d.id.y),C3(l,t,e,n,d.option,o,s,i,f,d.option.value,y3,c)}}}function S3(e,t,n,r,i){a(`body`,t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a(`corner`,t.getCorner(),r,n);function a(n,r,a,o){var s=new mw(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new R_,d=new R_,f=[],p=t.getShallow(`tooltip`,!0);for(o.resetLayoutIterator(d,1);d.next();)for(a.resetLayoutIterator(u,0);u.next();){var m=u.item,h=d.item;cd(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?Af.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;C3(f,t,e,i,v,c,l,s,_,v?v.value:null,v3,p)}}}}function C3(e,t,n,r,i,a,o,s,c,l,u,d){T3.option=i?i.itemStyle:null,T3.parentModel=a,w3.option=i,w3.parentModel=s;var f=J(w3.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),p=d&&d.show,m=O3(c,T3.getItemStyle(),f);n.add(m);var h=w3.get(`cursor`);h!=null&&m.attr(`cursor`,h);var g;if(l!=null){var _=l+``;if(E3.option=i?i.label:null,E3.parentModel=o,E3.ecModel=r,HC(m,{normal:E3},{defaultText:_,autoOverflowArea:!0,layoutRect:_u(m.shape)}),g=m.getTextContent(),g){g.z2=f+1;var v=g.style;if(v&&v.overflow&&v.overflow!==`none`&&v.lineOverflow){var y={};Af.copy(y,c),TC(y,(m.style?.lineWidth||0)/2,!0,!0),m.updateInnerText(),g.getLocalTransform(D3),df(D3,D3),Af.applyTransform(y,y,D3),g.setClipPath(new sb({shape:y}))}}OC({el:m,componentModel:t,itemName:_,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}if(g){var b=E3.get(`silent`);b??=!p,g.silent=b,g.ignoreHostSilent=!0}var x=w3.get(`silent`);x??=!m.style||m.style.fill===`none`||!m.style.fill,m.silent=x,z_(w3),z_(T3),z_(E3)}var w3=new mw,T3=new mw,E3=new mw,D3=[];function O3(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=rb(e.x,r,!0),e.y=rb(e.y,r,!0),e.width=rb(i,r,!0)-e.x,e.height=rb(a,r,!0)-e.y}return new sb({shape:e,style:t,z2:n})}function k3(e,t,n){var r=t.lineWidth;return r&&(h3(e.x1*2)===h3(e.x2*2)&&(e.x1=e.x2=rb(e.x1,r,!0)),h3(e.y1*2)===h3(e.y2*2)&&(e.y1=e.y2=rb(e.y1,r,!0))),new vS({shape:e,style:t,silent:!0,z2:n})}var A3=b3,j3=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type=`matrix`,this._model=t;var i=this._dimModels={x:t.getDimensionModel(`x`),y:t.getDimensionModel(`y`)};this._dims={x:i.x.dim,y:i.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:`x`,type:`ordinal`},{name:`y`,type:`ordinal`},{name:`value`}]},e.create=function(t,n){var r=[];return t.eachComponent(`matrix`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){jT({targetModel:t,coordSysType:`matrix`,coordSysProvider:MT})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=HT(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});F3(r,n,i,0),F3(r,n,i,1),I3(0,n),I3(1,n),L3(this._model.getBody(),n),L3(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,M3),n[0]=M3.rect.x+M3.rect.width/2,n[1]=M3.rect.y+M3.rect.height/2,n},e.prototype.dataToLayout=function(e,t,n){var r=this._dims;n||={};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=H4(n.matrixXYLocatorRange);return G(e)?(U4(a,null,e,r,J(t&&t.clamp,B4.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==B4.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==B4.body)&&this._model.getCorner().expandRangeByCellMerge(a)),$4(i,a,r,0),$4(i,a,r,1),n):(process.env.NODE_ENV!==`production`&&Jg("Input data must be an array in `convertToLayout`, `convertToPixel`"),n)},e.prototype.pointToData=function(e,t,n){var r=this._dims;return W3(U3,0,r,e,t&&t.clamp),W3(U3,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,U3.y===H3.inCorner&&U3.x===H3.inBody?G3(U3,n,0,r):U3.x===H3.inCorner&&U3.y===H3.inBody?G3(U3,n,1,r):(K3(U3,n,0,r),K3(U3,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=V3(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=V3(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=V3(t);return i===this?i.pointToData(n,r):void 0},e.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},e.dimensions=[`x`,`y`,`value`],e}(),M3={rect:n3()},N3=new R_,P3=new R_;function F3(e,t,n,r){for(var i=1-r,a=t[eC[r]],o=t[eC[i]],s=o.shouldShow(),c=a.resetCellIterator();c.next();)c.item.wh=c.item.xy=NaN;for(var l=o.resetLayoutIterator(null,r);l.next();)l.item.wh=l.item.xy=NaN;for(var u=n[tC[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new mw,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[eC[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new mw,h=a.resetCellIterator();h.next();)h.item.type===z4.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=z3(t,r,n);zu(i)||(e.wh=B3(i,u),u=B3(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[eC[r]],b=a.getLocatorCount(r)-1,x=new R_;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){zu(e.wh)&&(e.wh=_),e.xy=y,e.id[eC[r]]===b&&!v&&(e.wh=n[eC[r]]+n[tC[r]]-e.xy),y+=e.wh}}function I3(e,t){for(var n=t[eC[e]].resetCellIterator();n.next();){var r=n.item;R3(r.rect,e,r.id,r.span,t),R3(r.rect,1-e,r.id,r.span,t),r.type===z4.nonLeaf&&(r.xy=r.rect[eC[e]],r.wh=r.rect[tC[e]])}}function L3(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;R3(r,0,i,n,t),R3(r,1,i,n,t)}})}function R3(e,t,n,r,i){e[tC[t]]=0;var a=n[eC[t]]<0?i[eC[1-t]]:i[eC[t]],o=a.getUnitLayoutInfo(t,n[eC[t]]);if(e[eC[t]]=o.xy,e[tC[t]]=o.wh,r[eC[t]]>1){var s=a.getUnitLayoutInfo(t,n[eC[t]]+r[eC[t]]-1);e[tC[t]]=s.xy+s.wh-o.xy}}function z3(e,t,n){return B3(bg(e,n[tC[t]]),n[tC[t]])}function B3(e,t){return Math.max(Math.min(e,J(t,1/0)),0)}function V3(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var H3={inBody:1,inCorner:2,outside:3},U3={x:null,y:null,point:[]};function W3(e,t,n,r,i){var a=n[eC[t]],o=n[eC[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[eC[t]]=H3.outside;return}if(i===B4.body){c?(e[eC[t]]=H3.inBody,d=hg(s.xy+s.wh,gg(c.xy,d)),e.point[t]=d):e[eC[t]]=H3.outside;return}else if(i===B4.corner){u?(e[eC[t]]=H3.inCorner,d=hg(u.xy+u.wh,gg(l.xy,d)),e.point[t]=d):e[eC[t]]=H3.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(d<p){if(!i){e[eC[t]]=H3.outside;return}d=p}else if(d>m){if(!i){e[eC[t]]=H3.outside;return}d=m}e.point[t]=d,e[eC[t]]=f<=d&&d<=m?H3.inBody:p<=d&&d<=f?H3.inCorner:H3.outside}function G3(e,t,n,r){var i=1-n;if(e[eC[n]]!==H3.outside)for(r[eC[n]].resetCellIterator(P3);P3.next();){var a=P3.item;if(J3(e.point[n],a.rect,n)&&J3(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[eC[i]];return}}}function K3(e,t,n,r){if(e[eC[n]]!==H3.outside){for((e[eC[n]]===H3.inCorner?r[eC[1-n]]:r[eC[n]]).resetLayoutIterator(N3,n);N3.next();)if(q3(e.point[n],N3.item)){t[n]=N3.item.id[eC[n]];return}}}function q3(e,t){return t.xy<=e&&e<=t.xy+t.wh}function J3(e,t,n){return t[eC[n]]<=e&&e<=t[eC[n]]+t[tC[n]]}var Y3=j3;function X3(e){e.registerComponentModel(m3),e.registerComponentView(A3),e.registerCoordinateSystem(`matrix`,Y3)}function Z3(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Q3(e,t){var n;return H(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function $3(e,t,n){var r=V({},n),i=e[t],a=n.$action||`merge`;if(a===`merge`)if(i){if(process.env.NODE_ENV!==`production`){var o=n.type;Y(!o||i.type===o,'Please set $action: "replace" to change `type`')}vu(i,r,!0),YT(i,r,{ignoreSize:!0}),ZT(n,i),n6(n,i),n6(n,i,`shape`),n6(n,i,`style`),n6(n,i,`extra`),n.clipPath=i.clipPath}else e[t]=r;else a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var e6=[`transition`,`enterFrom`,`leaveTo`],t6=e6.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function n6(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?e6:t6,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function r6(e,t){if(e&&(e.hv=t.hv=[Q3(t,[`left`,`right`]),Q3(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var i6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=s_(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];H(o,function(e,t){var n=e.newOption;process.env.NODE_ENV!==`production`&&Y(Nu(n)||e.existing,`Empty graphic option definition`),n&&(s.push(n),Z3(e,n),$3(i,t,n),r6(i[t],n))},this),n.elements=Eu(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){H(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(tE),a6={path:null,compoundPath:null,group:tg,image:Qy,text:Eb},o6=E_(),s6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=X()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);H(t,function(t){var o=g_(t.id,null),s=o==null?null:n.get(o),c=g_(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&r1(d,u,!!p,!!f)){var m=i1(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=f6(t);process.env.NODE_ENV!==`production`&&s&&Y(l===s.parent,`Changing parent is not supported.`);var g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=l6(o,l,t.type,n):(b&&(o6(b).isNew=!1),I1(b)),b&&(g1(b,h,e,{isInit:y}),d6(b,t,i,a))}else if(v){u6(s,t,n,e);var x=l6(o,l,t.type,n);x&&(g1(x,h,e,{isInit:!0}),d6(x,t,i,a))}else g===`remove`&&(_1(s,t),u6(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new Eb(f))}else v&&S.setTextContent(new Eb(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||o6(D).type!==T,E=y?c6(T):D}else v&&(y=!0,E=c6(T));S.setClipPath(E),g1(E,w,e,{isInit:y}),L1(E,w.keyframeAnimation,e)}var O=o6(S);S.setTextConfig(p),O.option=t,p6(S,e,t),OC({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),L1(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=g_(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=o6(d),h=o6(f);m.width=Q(m.option.width,p?a:h.width)||0,m.height=Q(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=g_(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=o6(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=KT(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!o6(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(y1(y)||xu(y,S)>=0)?b[S]=C:d[S]=C}WS(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){u6(n,o6(n).option,t,e._lastGraphicModel)}),this._elMap=X()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(sk);function c6(e){process.env.NODE_ENV!==`production`&&Y(e,`graphic type MUST be set`);var t=Z(a6,e)?a6[e]:oC(e);process.env.NODE_ENV!==`production`&&Y(t,`graphic type `+e+` can not be found`);var n=new t({});return o6(n).type=e,n}function l6(e,t,n,r){var i=c6(n);return t.add(i),r.set(e,i),o6(i).id=e,o6(i).isNew=!0,i}function u6(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){u6(e,t,n,r)}),v1(e,t,r),n.removeKey(o6(e).id))}function d6(e,t,n,r){e.isGroup||H([[`cursor`,zv.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Z(t,r)?e[r]=J(t[r],n[1]):e[r]??(e[r]=n[1])}),H(Ou(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=K(r)?r:null}}),Z(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function f6(e){return e=V({},e),H([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(FT),function(t){delete e[t]}),e}function p6(e,t,n){var r=Db(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Db(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function m6(e){e.registerComponentModel(i6),e.registerComponentView(s6),e.registerPreprocessor(function(e){var t=e.graphic;G(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var h6=[`x`,`y`,`radius`,`angle`,`single`],g6=[`cartesian2d`,`polar`,`singleAxis`];function _6(e){return xu(g6,e.get(`coordinateSystem`))>=0}function v6(e){return process.env.NODE_ENV!==`production`&&Y(e),e+`Axis`}function y6(e,t){var n=X(),r=[],i=X();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function b6(e){var t=e.ecModel,n={infoList:[],infoMap:X()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(v6(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var x6=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),S6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=C6(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=C6(e);vu(this.option,e,!0),vu(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;H([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=X();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return H(h6,function(n){var r=this.getReferringComponents(v6(n),j_);if(r.specified){t=!0;var i=new x6;H(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new x6;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,A_).models[0];o&&H(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,A_).models[0]&&a.add(e.componentIndex)})}}}r&&H(h6,function(t){if(r){var i=n.findComponents({mainType:v6(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new x6;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);H([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(v6(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){H(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&Y(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(v6(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;H([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;H([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!==`production`&&Y(this._orient),this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(tE);function C6(e){var t={};return H([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var w6=S6,T6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(w6),E6=function(e){B(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,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(sk),D6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(E6),O6=H,k6=Sg,A6=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(_6(t)){var n=v6(this._dimName),r=t.getReferringComponents(n,A_).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return _u(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;O6([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u??=i[l],d=n.parse(vg(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=vg(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),k6(o),k6(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;mY(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=vg(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=j6(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;O6(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=U(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else O6(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});O6(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;O6([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=vg(i,[0,100],n,!0)-n[0]):i=vg(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Tg(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function j6(e,t,n){var r=[1/0,-1/0];O6(n,function(e){CF(r,e.getData(),t)});var i=e.getAxisModel(),a=dF(i.axis.scale,i,r).calculate();return[a.min,a.max]}var M6=A6,N6={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(v6(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new M6(t,r,a,e),n.push(i.__dzAxisProxy))});var r=X();return H(n,function(e){H(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function P6(e){e.registerAction(`dataZoom`,function(e,t){H(y6(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var F6=!1;function I6(e){F6||(F6=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,N6),P6(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function L6(e){e.registerComponentModel(T6),e.registerComponentView(D6),I6(e)}var R6=function(){function e(){}return e}(),z6={};function B6(e,t){z6[e]=t}function V6(e){return z6[e]}var H6=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;H(this.option.feature,function(e,n){var r=V6(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),vu(e,r.defaultOption))})},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}(tE);function U6(e,t){var n=fT(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new sb({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var W6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];H(s,function(e,t){l.push(t)}),new cN(this._featureNames||[],l).add(u).update(u).remove(Au(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new mw(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(G6(o))m={onclick:p.option.onclick,featureName:o};else{var h=V6(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=gw(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof R6;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?ex:tx)(r[e])},m instanceof R6&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof R6&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;q(d)?(p={},p[c]=d):p=d,q(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};H(p,function(c,d){var f=bC(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Eb({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:QC({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),OC({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?ex:tx)(f),i.add(f),f.on(`click`,W(s.onclick,s,t,n,d)),h[d]=f})}var f=GT(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=HT(p,f,m);RT(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),KT(i,p,f,m),i.add(U6(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!K(c)&&t){var l=c.style||={},u=Nh(t,Eb.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){H(this._features,function(e){e instanceof R6&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){H(this._features,function(n){n instanceof R6&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){H(this._features,function(n){n instanceof R6&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(sk);function G6(e){return e.indexOf(`my`)===0}var K6=W6,q6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Ql.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(R6),J6=`__ec_magicType_stack__`,Y6=[[`line`,`bar`],[`stack`]],X6=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return H(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(Z6[n]){var a={series:[]};H(Y6,function(e){xu(e,n)>=0&&H(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=Z6[n](t,i,e,r);o&&(bu(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,A_).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=vu({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(R6),Z6={line:function(e,t,n,r){if(e===`bar`)return vu({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return vu({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===J6;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),vu({id:t,stack:i?``:J6},r.get([`option`,`stack`])||{},!0)}};qM({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var Q6=X6,$6=Array(60).join(`-`),e8=` `;function t8(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function n8(e){var t=[];return H(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(U(e.series,function(e){return e.name})),o=[r.model.getCategories()];H(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(e8)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(e8))}t.push(s.join(`
|
|
67
67
|
`))}),t.join(`
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
`+$6+`
|
|
70
70
|
|
|
71
|
-
`)}function
|
|
71
|
+
`)}function r8(e){return U(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+e8:``)+r.join(e8))}),n.join(`
|
|
72
72
|
`)}).join(`
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
`+$6+`
|
|
75
75
|
|
|
76
|
-
`)}function
|
|
76
|
+
`)}function i8(e){var t=t8(e);return{value:Eu([n8(t.seriesGroupByCategoryAxis),r8(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
`+$6+`
|
|
79
79
|
|
|
80
|
-
`),meta:t.meta}}function
|
|
81
|
-
`)).indexOf(
|
|
82
|
-
|
|
83
|
-
*`,`g`)),r={series:[]};return H(n,function(e,n){if(s8(e)){var i=l8(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=u8(e);r.series.push(i)}}),r}var f8=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||$.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=a8(e);if(K(l)){var f=l(t.getOption());q(f)?s.innerHTML=f:Iu(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}Yd(_,`click`,b),Yd(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){process.env.NODE_ENV!==`production`&&qg("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var e;try{e=K(u)?u(s,t.getOption()):d8(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:$.color.background,textColor:$.color.primary,textareaColor:$.color.background,textareaBorderColor:$.color.border,buttonColor:$.color.accent50,buttonTextColor:$.color.neutral00}},t}(z6);function p8(e,t){return U(e,function(e,n){var r=t&&t[n];if(Nu(r)&&!G(r)){Nu(e)&&!G(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=bu(e,r),i&&delete e.name,e}else return e})}JM({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];H(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(V({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:p8(e.data,i)})}}),t.mergeOption(bu({series:n},e.newOption))});var Vre=f8,m8=H,h8=E_();function Hre(e,t){var n=g8(e);m8(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function Ure(e){var t=g8(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return m8(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function Wre(e){h8(e).snapshots=null}function Gre(e){return g8(e).length}function g8(e){var t=h8(e);return t.snapshots||=[{}],t.snapshots}var Kre=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){Wre(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(z6);JM({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var qre=Kre,Jre=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],Yre=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=v8(t,e);H(Xre,function(e,t){(!n||!n.include||xu(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=x8[e.brushType](0,n,t);e.__rangeOffset={offset:C8[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){H(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&H(r.coordSyses,function(r){n(e,x8[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){H(e,function(e){var n=this.findTargetInfo(e,t);if(process.env.NODE_ENV!==`production`&&(Y(!n||n===!0||e.coordRange,`coordRange must be specified when coord index specified.`),Y(!n||n!==!0||e.range,`range must be specified in global brush.`)),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=x8[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?C8[e.brushType](r.values,i.offset,Zre(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:AX(r),isTargetByCursor:MX(r,e,n.coordSysModel),getLinearBrushOtherExtent:jX(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&xu(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=v8(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<y8.length;s++)if(y8[s](r,a))return a}return!0},e}();function _8(e){return e[0]>e[1]&&e.reverse(),e}function v8(e,t){return O_(e,t,{includeMainTypes:Jre})}var Xre={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=X(),o={},s={};!n&&!r&&!i||(H(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),H(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),H(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];H(i.getCartesians(),function(e,t){(xu(n,e.getAxis(`x`).model)>=0||xu(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:b8.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){H(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:b8.geo})})}},y8=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],b8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(mC(e)),t}},x8={lineX:Au(S8,0),lineY:Au(S8,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[_8([i[0],a[0]]),_8([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:U(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function S8(e,t,n,r){process.env.NODE_ENV!==`production`&&Y(n.type===`cartesian2d`,`lineX/lineY brush is available only in cartesian2d.`);var i=n.getAxis([`x`,`y`][e]),a=_8(U([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var C8={lineX:Au(w8,0),lineY:Au(w8,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return U(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function w8(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Zre(e,t){var n=T8(e),r=T8(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function T8(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var E8=Yre,D8=H,Qre=x_(`toolbox-dataZoom_`),$re=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new kX(n.getZr()),this._brushController.on(`brush`,W(this._onBrush,this)).mount()),nie(e,t,this,r,n),tie(e,t)},t.prototype.onclick=function(e,t,n){eie[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new E8(O8(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),Hre(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=hY(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];D8(e,function(e,n){t.push(_u(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(z6),eie={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Ure(this.ecModel))}};function O8(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function tie(e,t){e.setIconStatus(`back`,Gre(t)>1?`emphasis`:`normal`)}function nie(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new E8(O8(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}kE(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=O_(e,O8(r));D8(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),D8(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:Qre+t+a};o[n]=a,i.push(o)}return i});var rie=$re;function iie(e){e.registerComponentModel(U6),e.registerComponentView(q6),V6(`saveAsImage`,J6),V6(`magicType`,$6),V6(`dataView`,Vre),V6(`dataZoom`,rie),V6(`restore`,qre),oN(R6)}var aie=function(e){B(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:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(tE);function k8(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function A8(e){if(Ql.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var j8=A8([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),oie=A8([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function M8(e,t){if(!e)return t;t=dT(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function sie(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var cie=M8(oie,`transition`),N8=M8(j8,`transform`),lie=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(Ql.transform3dSupported?`will-change:transform;`:``);function uie(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function die(e,t,n){if(!q(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=yT(t);var a=uie(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=N8+`:`,l;xu([`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 fie(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?`,`:``)+(Ql.transformSupported?``+N8+i:`,left`+i+`,top`+i)),cie+`:`+a}function P8(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ql.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ql.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+N8+`:`+o+`;`:[[`top`,0],[`left`,0],[j8,o]]}function pie(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=J(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),H([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function mie(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=JO(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(fie(a,n,r)),o&&i.push(`background-color:`+o),H([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=dT(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(pie(d)),f!=null&&i.push(`padding:`+fT(f).join(`px `)+`px`),i.join(`;`)+`;`}function F8(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Md(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 hie=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,Ql.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&&(q(i)?document.querySelector(i):Iu(i)?i:K(i)&&i(e.getDom()));F8(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;qd(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=sie(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=lie+mie(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+P8(i[0],i[1],!0)+(`border-color:`+yT(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(q(i)&&n.get(`trigger`)===`item`&&!k8(n)&&(o=die(n,r,i)),q(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,G(e)||(e=[e]);for(var s=0;s<e.length;s++)Iu(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(F8(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;H(P8(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`,Ql.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;Nd(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}(),gie=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),R8(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;Nu(e)&&Qg(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Eb({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:JO(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),H([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),H([`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=L8(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;R8(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=I8(i.borderWidth||0),o=L8(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 I8(e){return Math.max(0,e)}function L8(e){var t=I8(e.shadowBlur||0),n=I8(e.shadowOffsetX||0),r=I8(e.shadowOffsetY||0);return{left:I8(t-n),right:I8(t+n),top:I8(t-r),bottom:I8(t+r)}}function R8(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _ie=gie,vie=new sb({shape:{x:-1,y:-1,width:2,height:2}}),yie=function(e){B(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(!(Ql.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=F_(n.get(`renderMode`)))===`richText`?new _ie(t):new hie(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(Ql.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`)?Ck(this,`_updatePosition`,50,`fixRate`):wk(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);X0(`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||Ql.node||!n.getDom())){var i=B8(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Cie(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=vie;c.x=r.x,c.y=r.y,c.update(),Db(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=i2(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(B8(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&&z8([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(Db(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;hA(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Db(e).dataIndex==null?Db(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=z8([t.tooltipOption],r),o=this._renderMode,s=[],c=BO(`section`,{blocks:[],noHeader:!0}),l=[],u=new YO;H(e,function(e){H(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=L0(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=BO(`section`,{header:a,noHeader:!Wu(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),H(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=bF(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,yT(m.color),o);var h=mO(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=z8([f],r).get(`valueFormatter`);d.blocks.push(_?V({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=WO(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
80
|
+
`),meta:t.meta}}function a8(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function o8(e){if(e.slice(0,e.indexOf(`
|
|
81
|
+
`)).indexOf(e8)>=0)return!0}var s8=RegExp(`[`+e8+`]+`,`g`);function c8(e){for(var t=e.split(/\n+/g),n=a8(t.shift()).split(s8),r=[],i=U(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=a8(t[a]).split(s8);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function l8(e){for(var t=e.split(/\n+/g),n=a8(t.shift()),r=[],i=0;i<t.length;i++){var a=a8(t[i]);if(a){var o=a.split(s8),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function u8(e,t){var n=e.split(RegExp(`
|
|
82
|
+
*`+$6+`
|
|
83
|
+
*`,`g`)),r={series:[]};return H(n,function(e,n){if(o8(e)){var i=c8(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=l8(e);r.series.push(i)}}),r}var d8=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||$.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=i8(e);if(K(l)){var f=l(t.getOption());q(f)?s.innerHTML=f:Iu(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}Yd(_,`click`,b),Yd(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){process.env.NODE_ENV!==`production`&&qg("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var e;try{e=K(u)?u(s,t.getOption()):u8(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:$.color.background,textColor:$.color.primary,textareaColor:$.color.background,textareaBorderColor:$.color.border,buttonColor:$.color.accent50,buttonTextColor:$.color.neutral00}},t}(R6);function f8(e,t){return U(e,function(e,n){var r=t&&t[n];if(Nu(r)&&!G(r)){Nu(e)&&!G(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=bu(e,r),i&&delete e.name,e}else return e})}qM({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];H(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(V({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:f8(e.data,i)})}}),t.mergeOption(bu({series:n},e.newOption))});var Hre=d8,p8=H,m8=E_();function Ure(e,t){var n=h8(e);p8(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function Wre(e){var t=h8(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return p8(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function Gre(e){m8(e).snapshots=null}function Kre(e){return h8(e).length}function h8(e){var t=m8(e);return t.snapshots||=[{}],t.snapshots}var qre=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){Gre(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(R6);qM({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var Jre=qre,Yre=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],Xre=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=_8(t,e);H(Zre,function(e,t){(!n||!n.include||xu(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=b8[e.brushType](0,n,t);e.__rangeOffset={offset:S8[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){H(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&H(r.coordSyses,function(r){n(e,b8[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){H(e,function(e){var n=this.findTargetInfo(e,t);if(process.env.NODE_ENV!==`production`&&(Y(!n||n===!0||e.coordRange,`coordRange must be specified when coord index specified.`),Y(!n||n!==!0||e.range,`range must be specified in global brush.`)),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=b8[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?S8[e.brushType](r.values,i.offset,Qre(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:kX(r),isTargetByCursor:jX(r,e,n.coordSysModel),getLinearBrushOtherExtent:AX(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&xu(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=_8(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<v8.length;s++)if(v8[s](r,a))return a}return!0},e}();function g8(e){return e[0]>e[1]&&e.reverse(),e}function _8(e,t){return O_(e,t,{includeMainTypes:Yre})}var Zre={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=X(),o={},s={};!n&&!r&&!i||(H(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),H(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),H(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];H(i.getCartesians(),function(e,t){(xu(n,e.getAxis(`x`).model)>=0||xu(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:y8.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){H(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:y8.geo})})}},v8=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],y8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(mC(e)),t}},b8={lineX:Au(x8,0),lineY:Au(x8,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[g8([i[0],a[0]]),g8([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:U(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function x8(e,t,n,r){process.env.NODE_ENV!==`production`&&Y(n.type===`cartesian2d`,`lineX/lineY brush is available only in cartesian2d.`);var i=n.getAxis([`x`,`y`][e]),a=g8(U([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var S8={lineX:Au(C8,0),lineY:Au(C8,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return U(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function C8(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Qre(e,t){var n=w8(e),r=w8(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function w8(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var T8=Xre,E8=H,$re=x_(`toolbox-dataZoom_`),eie=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new OX(n.getZr()),this._brushController.on(`brush`,W(this._onBrush,this)).mount()),rie(e,t,this,r,n),nie(e,t)},t.prototype.onclick=function(e,t,n){tie[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new T8(D8(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),Ure(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=mY(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];E8(e,function(e,n){t.push(_u(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(R6),tie={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Wre(this.ecModel))}};function D8(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function nie(e,t){e.setIconStatus(`back`,Kre(t)>1?`emphasis`:`normal`)}function rie(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new T8(D8(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}kE(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=O_(e,D8(r));E8(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),E8(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:$re+t+a};o[n]=a,i.push(o)}return i});var iie=eie;function aie(e){e.registerComponentModel(H6),e.registerComponentView(K6),B6(`saveAsImage`,q6),B6(`magicType`,Q6),B6(`dataView`,Hre),B6(`dataZoom`,iie),B6(`restore`,Jre),aN(L6)}var oie=function(e){B(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:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(tE);function O8(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function k8(e){if(Ql.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var A8=k8([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),sie=k8([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function j8(e,t){if(!e)return t;t=dT(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function cie(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var lie=j8(sie,`transition`),M8=j8(A8,`transform`),uie=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(Ql.transform3dSupported?`will-change:transform;`:``);function die(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function fie(e,t,n){if(!q(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=yT(t);var a=die(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=M8+`:`,l;xu([`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 pie(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?`,`:``)+(Ql.transformSupported?``+M8+i:`,left`+i+`,top`+i)),lie+`:`+a}function N8(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ql.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ql.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+M8+`:`+o+`;`:[[`top`,0],[`left`,0],[A8,o]]}function mie(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=J(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),H([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function hie(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=JO(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(pie(a,n,r)),o&&i.push(`background-color:`+o),H([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=dT(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(mie(d)),f!=null&&i.push(`padding:`+fT(f).join(`px `)+`px`),i.join(`;`)+`;`}function P8(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Md(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 gie=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,Ql.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&&(q(i)?document.querySelector(i):Iu(i)?i:K(i)&&i(e.getDom()));P8(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;qd(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=cie(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=uie+hie(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+N8(i[0],i[1],!0)+(`border-color:`+yT(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(q(i)&&n.get(`trigger`)===`item`&&!O8(n)&&(o=fie(n,r,i)),q(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,G(e)||(e=[e]);for(var s=0;s<e.length;s++)Iu(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(P8(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;H(N8(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`,Ql.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;Nd(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}(),_ie=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),L8(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;Nu(e)&&Qg(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Eb({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:JO(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),H([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),H([`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=I8(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;L8(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=F8(i.borderWidth||0),o=I8(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 F8(e){return Math.max(0,e)}function I8(e){var t=F8(e.shadowBlur||0),n=F8(e.shadowOffsetX||0),r=F8(e.shadowOffsetY||0);return{left:F8(t-n),right:F8(t+n),top:F8(t-r),bottom:F8(t+r)}}function L8(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var vie=_ie,yie=new sb({shape:{x:-1,y:-1,width:2,height:2}}),bie=function(e){B(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(!(Ql.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=F_(n.get(`renderMode`)))===`richText`?new vie(t):new gie(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(Ql.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`)?Sk(this,`_updatePosition`,50,`fixRate`):Ck(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);X0(`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||Ql.node||!n.getDom())){var i=z8(r,n);this._ticket=``;var a=r.dataByCoordSys,o=wie(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=yie;c.x=r.x,c.y=r.y,c.update(),Db(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=r2(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(z8(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&&R8([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(Db(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;mA(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Db(e).dataIndex==null?Db(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=R8([t.tooltipOption],r),o=this._renderMode,s=[],c=BO(`section`,{blocks:[],noHeader:!0}),l=[],u=new YO;H(e,function(e){H(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=I0(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=BO(`section`,{header:a,noHeader:!Wu(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),H(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=yF(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,yT(m.color),o);var h=mO(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=R8([f],r).get(`valueFormatter`);d.blocks.push(_?V({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=WO(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
84
84
|
|
|
85
|
-
`:`<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=Db(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=z8([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 YO;h.marker=g.makeTooltipMarker(`item`,yT(h.color),d);var _=mO(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?WO(y?V({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=Db(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(q(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=_u(a),a.content=Bd(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=z8(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new YO;this._showOrMove(d,function(){var n=_u(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(q(u)){var p=e.ecModel.get(`useUTC`),m=G(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Jw(m.axisValue,d,p)),d=gT(d,n,!0)}else if(K(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`||G(t))return{color:r||i};if(!G(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),K(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),G(t))n=Q(t[0],s),r=Q(t[1],c);else if(Nu(t)){var p=t;p.width=l[0],p.height=l[1];var m=HT(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(q(t)&&o){var h=Sie(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=bie(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=V8(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=V8(d)?l[1]/2:d===`bottom`?l[1]:0),k8(e)){var h=xie(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&&H(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&H(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&&H(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&H(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){Ql.node||!t.getDom()||(wk(this,`_updatePosition`),this._tooltipContent.dispose(),n2(`itemTooltip`,t))},t.type=`tooltip`,t}(ck);function z8(e,t,n){var r=t.ecModel,i;n?(i=new mw(n,r,r),i=new mw(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof mw&&(o=o.get(`tooltip`,!0)),q(o)&&(o={formatter:o}),o&&(i=new mw(o,i,r)))}return i}function B8(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function bie(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 xie(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 Sie(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 V8(e){return e===`center`||e===`middle`}function Cie(e,t,n){var r=k_(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=M_(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=Db(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}var wie=yie;function Tie(e){oN(_2),e.registerComponentModel(aie),e.registerComponentView(wie),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},td),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},td)}var Eie=[`rect`,`polygon`,`keep`,`clear`];function Die(e,t){var n=n_(e?e.brush:[]);if(n.length){var r=[];H(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;G(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),Oie(s),t&&!s.length&&s.push.apply(s,Eie)}}function Oie(e){var t={};H(e,function(e){t[e]=1}),e.length=0,H(t,function(t,n){e.push(n)})}var H8=H;function U8(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function W8(e,t,n){var r={};return H8(t,function(t){var a=r[t]=i();H8(e[t],function(e,r){if(CK.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new CK(i),r===`opacity`&&(i=_u(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new CK(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function G8(e,t,n){var r;H(n,function(e){t.hasOwnProperty(e)&&U8(t[e])&&(r=!0)}),r&&H(n,function(n){t.hasOwnProperty(n)&&U8(t[n])?e[n]=_u(t[n]):delete e[n]})}function kie(e,t,n,r,i,a){var o={};H(e,function(e){o[e]=CK.prepareVisualTypes(t[e])});var s;function c(e){return lA(n,s,e)}function l(e,t){dA(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function Aie(e,t,n,r){var i={};return H(e,function(e){i[e]=CK.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return lA(a,l,e)}function c(e,t){dA(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)}}}}}function jie(e){var t=e.brushType,n={point:function(r){return K8[t].point(r,n,e)},rect:function(r){return K8[t].rect(r,n,e)}};return n}var K8={lineX:q8(0),lineY:q8(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&MF(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(MF(r,i,a)||MF(r,i+o,a)||MF(r,i,a+s)||MF(r,i+o,a+s)||Af.create(e).contain(c[0],c[1])||xC(i,a,i+o,a,r)||xC(i,a,i,a+s,r)||xC(i+o,a,i+o,a+s,r)||xC(i,a+s,i+o,a+s,r))return!0}}};function q8(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return J8(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),J8(s[0],o)||J8(s[1],o)||J8(o[0],s)||J8(o[1],s)}}}}function J8(e,t){return t[0]<=e&&e<=t[1]}var Y8=[`inBrush`,`outOfBrush`],X8=`__ecBrushSelect`,Z8=`__ecInBrushSelectEvent`;function Q8(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new E8(t.option,e)).setInputRanges(t.areas,e)})}function Mie(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),Q8(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:_u(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=U(t.areas,function(e){var t=Iie[e.brushType],n=bu({boundingRect:t?t(e):void 0},e);return n.selectors=jie(n),n}),m=W8(t.option,Y8,function(e){e.mappingMethod=`fixed`});G(c)&&H(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||Fie(t,r))&&(H(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){$8(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return $8(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&kie(Y8,m,i,a)})}),Nie(t,i,a,r,n)}function Nie(e,t,n,r,i){if(i){var a=e.getZr();a[Z8]||(a[X8]||(a[X8]=Pie),Ck(a,X8,n,t)(e,r))}}function Pie(e,t){if(!e.isDisposed()){var n=e.getZr();n[Z8]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[Z8]=!1}}function $8(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function Fie(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(G(n)?xu(n,t)<0:t!==n)}var Iie={rect:function(e){return e5(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&e5(t)}};function e5(e){return new Af(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Lie=function(e){B(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){this.ecModel=e,this.api=t,this.model,(this._brushController=new kX(t.getZr())).on(`brush`,W(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){Q8(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:_u(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:_u(n),$from:t})},t.type=`brush`,t}(ck),Rie=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&G8(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){process.env.NODE_ENV!==`production`&&(Y(G(e)),H(e,function(e){Y(e.brushType,`Illegal areas`)})),e&&(this.areas=U(e,function(e){return t5(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=t5(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(tE);function t5(e,t){return vu({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new mw(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var zie=Rie,Bie=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],Vie=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,H(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return H(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:Bie.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(z6);function Hie(e){e.registerComponentView(Lie),e.registerComponentModel(zie),e.registerPreprocessor(Die),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Mie),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},td),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},td),V6(`brush`,Vie)}var Uie=function(e){B(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:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(tE),Wie=function(e){B(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=J(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Eb({style:WC(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Eb({style:WC(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(){bT(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){bT(p,`_`+e.get(`subtarget`))}),Db(c).eventData=Db(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 _=HT(g,GT(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 sb({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}(ck);function Gie(e){e.registerComponentModel(Uie),e.registerComponentView(Wie)}var n5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],H(t,function(e,t){var n=g_(a_(e),``),a;Nu(e)?(a=_u(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t,(this._data=new LN([{name:`value`,type:{category:`ordinal`,time:`time`,value:`number`}[n]||`number`}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(tE),r5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=yw(n5.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(n5);Cu(r5,pO.prototype);var Kie=r5,qie=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(ck),Jie=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(yI),i5=Math.PI,a5=E_(),Yie=function(e){B(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){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return BO(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},H([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=Zie(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:q(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:i5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*i5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=rf(),o=i.x,s=i.y+i.height;cf(a,a,[-o,-s]),lf(a,a,-i5/2),cf(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||q(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=Xie(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new Jie(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new tg;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new vS({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:V({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new vS({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:bu({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],H(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=o5(s,c,t,{x:o,y:0,onclick:W(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),fx(d);var f=Db(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],H(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new Eb({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:W(i._changeTimeline,i,o),silent:!1,style:WC(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=WC(l),d.ensureState(`progress`).style=WC(u),t.add(d),fx(d),a5(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,W(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,W(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,W(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=Lh(J(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=Qie(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),fx(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this;this._currentPointer=o5(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=W(s._handlePointerDrag,s),e.ondragend=W(s._handlePointerDragend,s),s5(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){s5(e,s._progressLine,a,n,r)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Sg(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return hC(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,a5(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(qie);function Xie(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new xP({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case`time`:return new eF({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new wP}}function Zie(e,t){return HT(e.getBoxLayoutParams(),GT(e,t).refContainer,e.get(`padding`))}function Qie(e,t,n,r){var i=r.style,a=bC(e.get([`controlStyle`,t]),r||{},new Af(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function o5(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=TA(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=vu({rectHover:!0,z2:100},r,!0);var c=EA(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=DA(e.get(`symbolOffset`),c);return l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]),r.rotation=(e.get(`symbolRotate`)||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function s5(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}var $ie=Yie;function eae(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),bu({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function tae(e){var t=e&&e.timeline;G(t)||(t=t?[t]:[]),H(t,function(e){e&&nae(e)})}function nae(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),c5(e),l5(e,`controlPosition`)){var r=e.controlStyle||={};l5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!l5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}H(e.data||[],function(e){Nu(e)&&!G(e)&&(!l5(e,`value`)&&l5(e,`name`)&&(e.value=e.name),c5(e))})}function c5(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};H(r,function(e,t){!a[t]&&!l5(i,t)&&(i[t]=e)}),n.label&&!l5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function l5(e,t){return e.hasOwnProperty(t)}function rae(e){e.registerComponentModel(Kie),e.registerComponentView($ie),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),eae(e),e.registerPreprocessor(tae)}function u5(e,t){if(!e)return!1;for(var n=G(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function d5(e){r_(e,`label`,[`show`])}var f5=E_(),p5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){if(process.env.NODE_ENV!==`production`&&this.type===`marker`)throw Error(`Marker component is abstract component. Use markLine, markPoint, markArea instead.`);this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ql.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=f5(e)[i];if(!n||!n.data){f5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&d5(n),H(n.data,function(e){e instanceof Array?(d5(e[0]),d5(e[1])):d5(e)}),a=this.createMarkerModelFromSeries(n,this,t),V(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),f5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return BO(`section`,{header:this.name,blocks:[BO(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=pO.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return f5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(tE);Cu(p5,pO.prototype);var m5=p5,iae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markPoint`,t.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(m5);function h5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function aae(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function g5(e,t,n,r,i,a,o){var s=[],c=JN(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=S5(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=Cg(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var _5={min:Au(g5,`min`),max:Au(g5,`max`),average:Au(g5,`average`),median:Au(g5,`median`)};function v5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!aae(t)&&!G(t.coord)&&G(i)){var a=y5(t,n,r,e);if(t=_u(t),t.type&&_5[t.type]&&a.baseAxis&&a.valueAxis){var o=xu(i,a.baseAxis.dim),s=xu(i,a.valueAxis.dim),c=_5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!G(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&_5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=S5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)_5[d[f]]&&(d[f]=S5(n,n.mapDimension(i[f]),d[f]));return t}}function y5(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(oae(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function oae(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function b5(e,t){return e&&e.containData&&t.coord&&!h5(t)?e.containData(t.coord):!0}function sae(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!h5(t)&&!h5(n)?e.containZone(t.coord,n.coord):!0}function x5(e,t){return e?function(e,n,r,i){return vO(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return vO(e.value,t[i])}}function S5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[n===`max`?1:0]}var C5=E_(),cae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=X()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){C5(e).keep=!1}),t.eachSeries(function(e){var i=m5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!C5(e).keep&&r.group.remove(e.group)}),lae(t,i,this.type)},t.prototype.markKeep=function(e){C5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;H(e,function(e){var r=m5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?nx(e):rx(e))})})},t.type=`marker`,t}(ck);function lae(e,t,n){e.eachSeries(function(e){var r=m5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=FC(r),o=a.z,s=a.zlevel;LC(i.group,o,s)}})}var w5=cae;function T5(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=Q(s.get(`x`),l)+d,h=Q(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var uae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=m5.getMarkerModelFromSeries(e,`markPoint`);t&&(T5(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new gR),l=dae(i,e,t);t.setData(l),T5(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(K(r)||K(i)||K(a)||K(s)){var u=t.getRawValue(e),d=t.getDataParams(e);K(r)&&(r=r(u,d)),K(i)&&(i=i(u,d)),K(a)&&(a=a(u,d)),K(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=uA(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:J(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){Db(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(w5);function dae(e,t,n){var r=e?U(e&&e.dimensions,function(e){return V(V({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new LN(r,n),a=U(n.get(`data`),Au(v5,t));e&&(a=Eu(a,Au(b5,e)));var o=x5(!!e,r);return i.initData(a,null,o),i}var fae=uae;function pae(e){e.registerComponentModel(iae),e.registerComponentView(fae),e.registerPreprocessor(function(e){u5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var mae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(m5),E5=E_(),hae=function(e,t,n,r){var i=e.getData(),a;if(G(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=Bu(r.yAxis,r.xAxis);else{var l=y5(r,i,t,e);s=l.valueAxis,c=S5(i,YN(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=_u(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&Mu(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else process.env.NODE_ENV!==`production`&&gu(`Invalid markLine data.`),a=[]}var h=[v5(e,a[0]),v5(e,a[1]),V({},a[2])];return h[2].type=h[2].type||null,vu(h[2],h[0]),vu(h[2],h[1]),h};function D5(e){return!isNaN(e)&&!isFinite(e)}function O5(e,t,n,r){var i=1-e,a=r.dimensions[e];return D5(t[i])&&D5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function gae(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(O5(1,n,r,e)||O5(0,n,r,e)))return!0}return b5(e,t[0])&&b5(e,t[1])}function k5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Q(o.get(`x`),i.getWidth()),l=Q(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(OR(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;D5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):D5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var _ae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=m5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=E5(t).from,a=E5(t).to;i.each(function(t){k5(i,t,!0,e,n),k5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Xq);this.group.add(c.group);var l=vae(i,e,t),u=l.from,d=l.to,f=l.line;E5(t).from=u,E5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);G(p)||(p=[p,p]),G(m)||(m=[m,m]),G(h)||(h=[h,h]),G(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:J(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){Db(e).dataModel=t,e.traverse(function(e){Db(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);k5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=uA(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:J(a.get(`symbolOffset`,!0),g[i?0:1]),symbolRotate:J(a.get(`symbolRotate`,!0),h[i?0:1]),symbolSize:J(a.get(`symbolSize`),m[i?0:1]),symbol:J(a.get(`symbol`,!0),p[i?0:1]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(w5);function vae(e,t,n){var r=e?U(e&&e.dimensions,function(e){return V(V({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new LN(r,n),a=new LN(r,n),o=new LN([],n),s=U(n.get(`data`),Au(hae,t,e,n));e&&(s=Eu(s,Au(gae,e)));var c=x5(!!e,r);return i.initData(U(s,function(e){return e[0]}),null,c),a.initData(U(s,function(e){return e[1]}),null,c),o.initData(U(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}var yae=_ae;function bae(e){e.registerComponentModel(mae),e.registerComponentView(yae),e.registerPreprocessor(function(e){u5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var xae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(m5),A5=E_(),Sae=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=v5(e,i),s=v5(e,a),c=o.coord,l=s.coord;c[0]=Bu(c[0],-1/0),c[1]=Bu(c[1],-1/0),l[0]=Bu(l[0],1/0),l[1]=Bu(l[1],1/0);var u=yu([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function j5(e){return!isNaN(e)&&!isFinite(e)}function M5(e,t,n,r){var i=1-e;return j5(t[i])&&j5(n[i])}function Cae(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return OR(e,`cartesian2d`)?n&&r&&(M5(1,n,r,e)||M5(0,n,r,e))?!0:sae(e,i,a):b5(e,i)||b5(e,a)}function N5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Q(o.get(n[0]),i.getWidth()),l=Q(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(OR(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);j5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):j5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var P5=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],wae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=m5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=U(P5,function(i){return N5(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new tg});this.group.add(c.group),this.markKeep(c);var l=Tae(i,e,t);t.setData(l),l.each(function(t){var n=U(P5,function(n){return N5(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];Sg(d),Sg(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t),h=m.getModel(`itemStyle`).getItemStyle(),g=m.get(`z2`),_=uA(o,`color`);h.fill||(h.fill=_,q(h.fill)&&(h.fill=rm(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,J(g,0))}),l.diff(A5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new dS({z2:J(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=A5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?WS(r,{z2:J(a,0),shape:{points:i.points}},t,e):r=new dS({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=A5(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),HC(e,UC(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:q(i.fill)?rm(i.fill,1):$.color.neutral99}),gx(e,r),px(e,null,null,r.get([`emphasis`,`disabled`])),Db(e).dataModel=t}),A5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(w5);function Tae(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=U(e&&e.dimensions,function(e){var n=t.getData();return V(V({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=U(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new LN(i,n)}else i=[{name:`value`,type:`float`}],r=new LN(i,n);var s=U(n.get(`data`),Au(Sae,t,e,n));e&&(s=Eu(s,Au(Cae,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return vO(a,i[r])}:function(e,t,n,r){return vO(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}var Eae=wae;function Dae(e){e.registerComponentModel(xae),e.registerComponentView(Eae),e.registerPreprocessor(function(e){u5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var Oae=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},F5=function(e){B(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.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),G(t)&&H(t,function(e,r){q(e)&&(e={type:e}),t[r]=vu(e,Oae(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&y_(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=X();this._data=Eu(U(r,function(e){return(q(e)||Mu(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new mw(e,this,this.ecModel))},this),function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;H(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&xu(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(tE),I5=Au,L5=H,R5=tg,kae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new R5),this.group.add(this._selectorGroup=new R5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=GT(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=HT(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=HT(bu({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=W6(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=X(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),L5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
86
|
-
`)){var p=new
|
|
87
|
-
`||r===``)){var i=e.isSelected(r);Z(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function Nae(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Au(W5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Au(W5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Au(W5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Au(W5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Au(W5,`unSelect`))}function K5(e){e.registerComponentModel(F5),e.registerComponentView(U5),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Mae),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),Nae(e)}var Pae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=XT(t);e.prototype.init.call(this,t,n,r),q5(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),q5(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=yw(F5.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),t}(F5);function q5(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,YT(t,n,{type:`box`,ignoreSize:!!i})}var Fae=Pae,J5=tg,Y5=[`width`,`height`],X5=[`x`,`y`],Iae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new J5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new J5)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=G(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Eb({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=bC(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:W(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=Y5[s],l=X5[s],u=Y5[1-s],d=X5[1-s];i&&RT(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=_u(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;RT(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),RT(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=J(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new sb({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&WS(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;H([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,q(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=Y5[i],o=X5[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=u?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(U5);function Lae(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function Rae(e){oN(K5),e.registerComponentModel(Fae),e.registerComponentView(Iae),Lae(e)}function zae(e){oN(K5),oN(Rae)}var Bae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=yw(T6.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(T6),Z5=E_();function Vae(e,t,n){Z5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function Hae(e,t){for(var n=Z5(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||Q5(n,o))}}}function Q5(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Uae(e,t){var n={model:t,containsPoint:Au(Gae,t),dispatchAction:Au(Wae,e),dataZoomInfoMap:null,controller:null},r=n.controller=new JH(e.getZr());return H([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function Wae(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function Gae(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Kae(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function qae(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Z5(t),r=n.coordSysRecordMap||=X();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){H(x6(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,Uae(t,n.model));(a.dataZoomInfoMap||=X()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){Q5(r,e);return}var s=Kae(a,e,t);n.enable(s.controlType,s.opt),Ck(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var Jae=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Vae(r,t,{pan:W($5.pan,this),zoom:W($5.zoom,this),scrollMove:W($5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Hae(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(D6),$5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=t7[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hY(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:e7(function(e,t,n,r,i,a){var o=t7[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:e7(function(e,t,n,r,i,a){return t7[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function e7(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(hY(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var t7={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},Yae=Jae;function n7(e){L6(e),e.registerComponentModel(Bae),e.registerComponentView(Yae),qae(e)}var Xae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=yw(T6.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:$.color.neutral00,borderColor:$.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(T6),r7=sb,Zae=1,i7=30,Qae=7,a7=`horizontal`,o7=`vertical`,$ae=5,eoe=[`line`,`bar`,`candlestick`,`scatter`],toe={easing:`cubicOut`,duration:100,delay:0},noe=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Ck(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wk(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new tg;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?Qae:0,r=GT(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===a7?{right:r.width-i.x-i.width,top:r.height-i7-a-n,width:i.width,height:i7}:{right:a,top:i.y,width:i7,height:i.height},s=XT(e.option);H([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=HT(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===o7&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===a7&&!i?{scaleY:o?1:-1,scaleX:1}:n===a7&&i?{scaleY:o?1:-1,scaleX:-1}:n===o7&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new r7({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new r7({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:W(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:vg(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new tg,r=new dS({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new mS({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){H(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&xu(eoe,e.get(`type`))<0)){var o=r.getComponent(y6(i),a).axis,s=roe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new r7({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new r7({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Zae,fill:$.color.transparent}})),H([0,1],function(t){var a=o.get(`handleIcon`);!SA[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a,process.env.NODE_ENV!==`production`&&Yg(`handleIcon now needs 'path://' prefix when using a path string`));var s=TA(a,-1,0,2,2,null,!0);s.attr({cursor:ioe(this._orient),draggable:!0,drift:W(this._onDragMove,this,t),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect();this._handleHeight=Q(o.get(`handleSize`),this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),fx(s);var l=o.get(`handleColor`);l!=null&&(s.style.fill=l),i.add(n[t]=s);var u=o.getModel(`textStyle`),d=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Eb({silent:!0,invisible:!d,style:WC(u,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:u.getTextColor(),font:u.getFont()}),z2:10}))},this);var d=u;if(l){var f=Q(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new sb({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=TA(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new sb({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:W(this._onDragMove,this,`all`),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[vg(e[0],[0,100],t,!0),vg(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];hY(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:vg(a.minSpan,o,i,!0),a.maxSpan==null?null:vg(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Sg([vg(r[0],i,o,!0),vg(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Sg(n.slice()),i=this._size;H([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new sb,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Sg(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=mC(n.handles[e].parent,this.group),o=gC(e===0?`right`:`left`,t),s=this._handleWidth/2+$ae,c=hC([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===a7?`middle`:o,align:i===a7?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return K(r)?r(e,a):q(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Zd(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=hC([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new ff(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();hY(0,a,r,0,o.minSpan==null?null:vg(o.minSpan,i,r,!0),o.maxSpan==null?null:vg(o.maxSpan,i,r,!0)),this._range=Sg([vg(a[0],r,i,!0),vg(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Zd(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new r7({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?toe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=x6(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(D6);function roe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function ioe(e){return e===`vertical`?`ns-resize`:`ew-resize`}var aoe=noe;function s7(e){e.registerComponentModel(Xae),e.registerComponentView(aoe),L6(e)}function ooe(e){oN(n7),oN(s7)}var soe={get:function(e,t,n){var r=_u((coe[e]||{})[t]);return n&&G(r)?r[r.length-1]:r}},coe={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.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]}},c7=soe,l7=CK.mapVisual,loe=CK.eachVisual,uoe=G,u7=H,doe=Sg,foe=vg,d7=function(e){B(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&&G8(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=W8(this.option.controller,t,e),this.targetVisuals=W8(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=M_(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){H(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||=[`<`,`>`],G(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(q(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(K(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=doe([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||={};vu(r,n),vu(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){uoe(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]={},u7(r,function(e,t){if(CK.isValidType(t)){var n=c7.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`;u7(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&_u(t)||(a?i:[i]),c.symbolSize??=n&&_u(n)||(a?s[0]:[s[0],s[0]]),c.symbol=l7(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;loe(l,function(e){e>u&&(u=e)}),c.symbolSize=l7(l,function(e){return foe(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:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(tE),f7=[20,140],poe=function(e){B(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]=f7[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=f7[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):G(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),H(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=Sg((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=J(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=p7(this,`outOfRange`,this.getExtent()),n=p7(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=yw(d7.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:$.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:$.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}}),t}(d7);function p7(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}var moe=poe,m7=function(e){B(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=fT(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new sb({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 H(CK.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),CK.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=GT(t,n).refContainer;KT(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(ck),h7=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function g7(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=h7[o],c=[0,null,10],l={},u=0;u<3;u++)l[h7[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=HT(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 _7(e,t){return H(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var v7=vg,hoe=H,y7=Math.min,b7=Math.max,goe=12,_oe=6,voe=function(e){B(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 Eb({style:WC(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=g7(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new tg;s.add(c),c.add(n.outOfRange=x7()),c.add(n.inRange=x7(null,a?C7(this._orient):null,W(this._dragHandle,this,`all`,!1),W(this._dragHandle,this,`all`,!0))),c.setClipPath(new sb({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=b7(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=Lh(e.get(`handleSize`),r[0]),l=TA(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=C7(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Zd(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(),_x(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Eb({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Zd(e.event)},ondragend:s,style:WC(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=Lh(e.get(`indicatorSize`),n[0]),o=TA(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 Qy){var c=o.style;o.useStyle(V({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 Eb({silent:!0,invisible:!0,style:WC(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:_oe)+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():S7(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=[v7(t[0],n,r,!0),v7(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]];hY(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[v7(r[0],i,a,!0),v7(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 OS(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 tg(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);hoe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=v7(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=hC(n.handleLabelPoints[l],mC(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=v7(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=hC(c.indicatorLabelPoint,mC(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]=y7(b7(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=y7(b7(i[0],e),i[1]);var o=yoe(n,a,i),s=[e-o,e+o],c=v7(e,i,a,!0),l=[v7(s[0],i,a,!0),v7(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||S7(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=w_(u,d);this._dispatchHighDown(`downplay`,_7(f[0],n)),this._dispatchHighDown(`highlight`,_7(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(hA(e.target,function(e){var n=Db(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`,_7(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=mC(t,r?null:this.group);return G(e)?hC(e,i,n):gC(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}(m7);function x7(e,t,n,r){return new dS({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Zd(e.event)},ondragend:r})}function yoe(e,t,n){var r=goe/2,i=e.get(`hoverLinkDataSize`);return i&&(r=v7(i,t,n,!0)/2),r}function S7(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function C7(e){return e===`vertical`?`ns-resize`:`ew-resize`}var boe=voe,xoe={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},Soe=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},Coe=[{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(Aie(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(woe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function woe(e,t,n,r){for(var i=t.targetVisuals[r],a=CK.prepareVisualTypes(i),o={color:uA(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}}var w7=H;function Toe(e){var t=e&&e.visualMap;G(t)||(t=t?[t]:[]),w7(t,function(e){if(e){T7(e,`splitList`)&&!T7(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&G(t)&&w7(t,function(e){Nu(e)&&(T7(e,`start`)&&!T7(e,`min`)&&(e.min=e.start),T7(e,`end`)&&!T7(e,`max`)&&(e.max=e.end))})}})}function T7(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var E7=!1;function D7(e){E7||(E7=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(xoe,Soe),H(Coe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Toe))}function O7(e){e.registerComponentModel(moe),e.registerComponentView(boe),D7(e)}var Eoe=function(e){B(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=[],Doe[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=_u(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=U(this._pieceList,function(e){return e=_u(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=CK.listVisualTypes(),i=this.isCategory();H(t.pieces,function(e){H(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),H(n,function(e,n){var r=!1;H(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&H(this.stateList,function(e){(t[e]||(t[e]={}))[n]=c7.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,H(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;H(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=_u(e)},t.prototype.getValueState=function(e){var t=CK.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){CK.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 H(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=yw(d7.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}(d7),Doe={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]}),Ig(e),H(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;H(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),k7(t,e)},pieces:function(e){var t=this.option;H(t.pieces,function(t,n){Nu(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),process.env.NODE_ENV!==`production`&&a[0]>a[1]&&console.warn(`Piece `+n+`is illegal: `+a+` lower bound should not greater then uppper bound.`),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=CK.retrieveVisuals(t),e.push(r)},this),k7(t,e),Ig(e),H(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 k7(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var Ooe=Eoe,koe=function(e){B(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=Bu(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),H(o.viewPieceList,function(o){var s=o.piece,u=new tg;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 Eb({style:WC(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:J(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),RT(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:_7(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return g7(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 tg,o=this.visualMapModel.textStyleModel;a.add(new Eb({style:WC(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=U(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=TA(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=_u(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,H(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}(m7);function A7(e){e.registerComponentModel(Ooe),e.registerComponentView(koe),D7(e)}function Aoe(e){oN(O7),oN(A7)}var joe=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:IC(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),Moe=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new joe(this);this._target=null,this.ecModel.eachSeries(function(e){sJ(e,null)}),this.shouldShow()&&sJ(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null,process.env.NODE_ENV!==`production`&&Jg(`series.`+e.subType+` is not supported in thumbnail.`,!0)):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(tE),Noe=function(e){B(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._api=n,this._model=e,this._coordSys||=new vW,!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=GT(e,n).refContainer,s=HT(zT(e,!0),o),c=a.lineWidth||0,l=this._contentRect=TC(s.clone(),c/2,!0,!0),u=new tg;r.add(u),u.setClipPath(new sb({shape:l.plain()}));var d=this._targetGroup=new tg;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new sb({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new sb({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),M7(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),M7(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(a.x,a.y,a.width,a.height);var o=HT({left:`center`,top:`center`,aspect:a.width/a.height},r);n.setViewRect(o.x,o.y,o.width,o.height),i.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=df([],e.targetTrans),n=sf([],this._coordSys.transform,t);this._transThisToTarget=df([],n);var r=e.viewportRect;r=r?r.clone():new Af(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(bu({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new JH(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,W(this._onPan,this)).on(`zoom`,W(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=xd([],[e.oldX,e.oldY],t),r=xd([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(j7(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=xd([],[e.originX,e.originY],t);this._api.dispatchAction(j7(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(ck);function j7(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,V(n,t),n}function M7(e,t){var n=FC(e);LC(t.group,n.z,n.zlevel)}function Poe(e){e.registerComponentModel(Moe),e.registerComponentView(Noe)}var Foe={label:{enabled:!0},decal:{show:!1}},N7=E_(),Ioe={};function Loe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=_u(Foe);vu(r.label,e.getLocaleModel().get(`aria`),!1),vu(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=X();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),N7(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(K(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=PE(t.ecModel,t.name,Ioe,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=N7(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=PE(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?V(V({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=bu(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=l>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?Eu(i.getValues(_),function(e,t){return xu(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(o(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function o(e,t){if(!q(e))return e;var n=e;return H(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function s(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function c(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function Roe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},H([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function zoe(e){e.registerPreprocessor(Roe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Loe)}var P7={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Boe=function(){function e(e){if((this._condVal=q(e)?new RegExp(e):Ru(e)?e:null)==null){var t=``;process.env.NODE_ENV!==`production`&&(t=Zg(`Illegal regexp`,e,`in`)),Qg(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return q(t)?this._condVal.test(e):Mu(t)?this._condVal.test(e+``):!1},e}(),Voe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Hoe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),Uoe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),Woe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Goe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function F7(e,t){if(e===!0||e===!1){var n=new Voe;return n.value=e,n}var r=``;return L7(e)||(process.env.NODE_ENV!==`production`&&(r=Zg(`Illegal config. Expect a plain object but actually`,e)),Qg(r)),e.and?I7(`and`,e,t):e.or?I7(`or`,e,t):e.not?Koe(e,t):qoe(e,t)}function I7(e,t,n){var r=t[e],i=``;process.env.NODE_ENV!==`production`&&(i=Zg('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.",`Illegal condition:`,t)),G(r)||Qg(i),r.length||Qg(i);var a=e===`and`?new Hoe:new Uoe;return a.children=U(r,function(e){return F7(e,n)}),a.children.length||Qg(i),a}function Koe(e,t){var n=e.not,r=``;process.env.NODE_ENV!==`production`&&(r=Zg('"not" condition should only be `not: {}`.',`Illegal condition:`,e)),L7(n)||Qg(r);var i=new Woe;return i.child=F7(n,t),i.child||Qg(r),i}function qoe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=Ou(e),o=e.parser,s=o?bO(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=Z(P7,l)?P7[l]:l,d=e[l],f=s?s(d):d,p=lne(u,f)||u===`reg`&&new Boe(f);p||(process.env.NODE_ENV!==`production`&&(n=Zg(`Illegal relational operation: "`+l+`" in condition:`,e)),Qg(n)),i.push(p)}}i.length||(process.env.NODE_ENV!==`production`&&(n=Zg(`Relational condition must have at least one operator.`,`Illegal condition:`,e)),Qg(n));var m=new Goe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function L7(e){return Nu(e)&&!wu(e)}var Joe=function(){function e(e,t){this._cond=F7(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Yoe(e,t){return new Joe(e,t)}var Xoe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=Yoe(e.config,{valueGetterAttrMap:X({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;Z(e,`dimension`)||(process.env.NODE_ENV!==`production`&&(n=Zg(`Relation condition must has prop "dimension" specified.`,`Illegal condition:`,e)),Qg(n));var i=t.getDimensionInfo(r);return i||(process.env.NODE_ENV!==`production`&&(n=Zg(`Can not find dimension info via: `+r+`.
|
|
85
|
+
`:`<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=Db(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=R8([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 YO;h.marker=g.makeTooltipMarker(`item`,yT(h.color),d);var _=mO(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?WO(y?V({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=Db(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(q(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=_u(a),a.content=Bd(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=R8(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new YO;this._showOrMove(d,function(){var n=_u(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(q(u)){var p=e.ecModel.get(`useUTC`),m=G(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Jw(m.axisValue,d,p)),d=gT(d,n,!0)}else if(K(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`||G(t))return{color:r||i};if(!G(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),K(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),G(t))n=Q(t[0],s),r=Q(t[1],c);else if(Nu(t)){var p=t;p.width=l[0],p.height=l[1];var m=HT(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(q(t)&&o){var h=Cie(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=xie(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=B8(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=B8(d)?l[1]/2:d===`bottom`?l[1]:0),O8(e)){var h=Sie(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&&H(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&H(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&&H(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&H(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){Ql.node||!t.getDom()||(Ck(this,`_updatePosition`),this._tooltipContent.dispose(),t2(`itemTooltip`,t))},t.type=`tooltip`,t}(sk);function R8(e,t,n){var r=t.ecModel,i;n?(i=new mw(n,r,r),i=new mw(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof mw&&(o=o.get(`tooltip`,!0)),q(o)&&(o={formatter:o}),o&&(i=new mw(o,i,r)))}return i}function z8(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function xie(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 Sie(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 Cie(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 B8(e){return e===`center`||e===`middle`}function wie(e,t,n){var r=k_(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=M_(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=Db(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}var Tie=bie;function Eie(e){aN(g2),e.registerComponentModel(oie),e.registerComponentView(Tie),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},td),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},td)}var Die=[`rect`,`polygon`,`keep`,`clear`];function Oie(e,t){var n=n_(e?e.brush:[]);if(n.length){var r=[];H(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;G(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),kie(s),t&&!s.length&&s.push.apply(s,Die)}}function kie(e){var t={};H(e,function(e){t[e]=1}),e.length=0,H(t,function(t,n){e.push(n)})}var V8=H;function H8(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function U8(e,t,n){var r={};return V8(t,function(t){var a=r[t]=i();V8(e[t],function(e,r){if(SK.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new SK(i),r===`opacity`&&(i=_u(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new SK(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function W8(e,t,n){var r;H(n,function(e){t.hasOwnProperty(e)&&H8(t[e])&&(r=!0)}),r&&H(n,function(n){t.hasOwnProperty(n)&&H8(t[n])?e[n]=_u(t[n]):delete e[n]})}function Aie(e,t,n,r,i,a){var o={};H(e,function(e){o[e]=SK.prepareVisualTypes(t[e])});var s;function c(e){return cA(n,s,e)}function l(e,t){uA(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function jie(e,t,n,r){var i={};return H(e,function(e){i[e]=SK.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return cA(a,l,e)}function c(e,t){uA(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)}}}}}function Mie(e){var t=e.brushType,n={point:function(r){return G8[t].point(r,n,e)},rect:function(r){return G8[t].rect(r,n,e)}};return n}var G8={lineX:K8(0),lineY:K8(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&jF(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(jF(r,i,a)||jF(r,i+o,a)||jF(r,i,a+s)||jF(r,i+o,a+s)||Af.create(e).contain(c[0],c[1])||xC(i,a,i+o,a,r)||xC(i,a,i,a+s,r)||xC(i+o,a,i+o,a+s,r)||xC(i,a+s,i+o,a+s,r))return!0}}};function K8(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return q8(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),q8(s[0],o)||q8(s[1],o)||q8(o[0],s)||q8(o[1],s)}}}}function q8(e,t){return t[0]<=e&&e<=t[1]}var J8=[`inBrush`,`outOfBrush`],Y8=`__ecBrushSelect`,X8=`__ecInBrushSelectEvent`;function Z8(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new T8(t.option,e)).setInputRanges(t.areas,e)})}function Nie(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),Z8(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:_u(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=U(t.areas,function(e){var t=Lie[e.brushType],n=bu({boundingRect:t?t(e):void 0},e);return n.selectors=Mie(n),n}),m=U8(t.option,J8,function(e){e.mappingMethod=`fixed`});G(c)&&H(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||Iie(t,r))&&(H(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){Q8(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return Q8(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&Aie(J8,m,i,a)})}),Pie(t,i,a,r,n)}function Pie(e,t,n,r,i){if(i){var a=e.getZr();a[X8]||(a[Y8]||(a[Y8]=Fie),Sk(a,Y8,n,t)(e,r))}}function Fie(e,t){if(!e.isDisposed()){var n=e.getZr();n[X8]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[X8]=!1}}function Q8(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function Iie(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(G(n)?xu(n,t)<0:t!==n)}var Lie={rect:function(e){return $8(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&$8(t)}};function $8(e){return new Af(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Rie=function(e){B(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){this.ecModel=e,this.api=t,this.model,(this._brushController=new OX(t.getZr())).on(`brush`,W(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){Z8(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:_u(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:_u(n),$from:t})},t.type=`brush`,t}(sk),zie=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&W8(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){process.env.NODE_ENV!==`production`&&(Y(G(e)),H(e,function(e){Y(e.brushType,`Illegal areas`)})),e&&(this.areas=U(e,function(e){return e5(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=e5(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(tE);function e5(e,t){return vu({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new mw(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Bie=zie,Vie=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],Hie=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,H(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return H(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:Vie.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(R6);function Uie(e){e.registerComponentView(Rie),e.registerComponentModel(Bie),e.registerPreprocessor(Oie),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Nie),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},td),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},td),B6(`brush`,Hie)}var Wie=function(e){B(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:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(tE),Gie=function(e){B(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=J(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Eb({style:WC(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Eb({style:WC(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(){bT(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){bT(p,`_`+e.get(`subtarget`))}),Db(c).eventData=Db(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 _=HT(g,GT(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 sb({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}(sk);function Kie(e){e.registerComponentModel(Wie),e.registerComponentView(Gie)}var t5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],H(t,function(e,t){var n=g_(a_(e),``),a;Nu(e)?(a=_u(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t,(this._data=new IN([{name:`value`,type:{category:`ordinal`,time:`time`,value:`number`}[n]||`number`}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(tE),n5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=yw(t5.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(t5);Cu(n5,pO.prototype);var qie=n5,Jie=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(sk),Yie=function(e){B(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(vI),r5=Math.PI,i5=E_(),Xie=function(e){B(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){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return BO(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},H([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=Qie(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:q(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:r5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*r5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=rf(),o=i.x,s=i.y+i.height;cf(a,a,[-o,-s]),lf(a,a,-r5/2),cf(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||q(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=Zie(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new Yie(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new tg;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new vS({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:V({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new vS({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:bu({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],H(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=a5(s,c,t,{x:o,y:0,onclick:W(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),fx(d);var f=Db(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],H(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new Eb({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:W(i._changeTimeline,i,o),silent:!1,style:WC(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=WC(l),d.ensureState(`progress`).style=WC(u),t.add(d),fx(d),i5(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,W(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,W(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,W(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=Lh(J(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=$ie(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),fx(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this;this._currentPointer=a5(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=W(s._handlePointerDrag,s),e.ondragend=W(s._handlePointerDragend,s),o5(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){o5(e,s._progressLine,a,n,r)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Sg(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return hC(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,i5(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(Jie);function Zie(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new bP({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case`time`:return new $P({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new CP}}function Qie(e,t){return HT(e.getBoxLayoutParams(),GT(e,t).refContainer,e.get(`padding`))}function $ie(e,t,n,r){var i=r.style,a=bC(e.get([`controlStyle`,t]),r||{},new Af(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function a5(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=wA(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=vu({rectHover:!0,z2:100},r,!0);var c=TA(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=EA(e.get(`symbolOffset`),c);return l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]),r.rotation=(e.get(`symbolRotate`)||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function o5(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}var eae=Xie;function tae(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),bu({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function nae(e){var t=e&&e.timeline;G(t)||(t=t?[t]:[]),H(t,function(e){e&&rae(e)})}function rae(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),s5(e),c5(e,`controlPosition`)){var r=e.controlStyle||={};c5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!c5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}H(e.data||[],function(e){Nu(e)&&!G(e)&&(!c5(e,`value`)&&c5(e,`name`)&&(e.value=e.name),s5(e))})}function s5(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};H(r,function(e,t){!a[t]&&!c5(i,t)&&(i[t]=e)}),n.label&&!c5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function c5(e,t){return e.hasOwnProperty(t)}function iae(e){e.registerComponentModel(qie),e.registerComponentView(eae),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),tae(e),e.registerPreprocessor(nae)}function l5(e,t){if(!e)return!1;for(var n=G(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function u5(e){r_(e,`label`,[`show`])}var d5=E_(),f5=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){if(process.env.NODE_ENV!==`production`&&this.type===`marker`)throw Error(`Marker component is abstract component. Use markLine, markPoint, markArea instead.`);this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ql.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=d5(e)[i];if(!n||!n.data){d5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&u5(n),H(n.data,function(e){e instanceof Array?(u5(e[0]),u5(e[1])):u5(e)}),a=this.createMarkerModelFromSeries(n,this,t),V(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),d5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return BO(`section`,{header:this.name,blocks:[BO(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=pO.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return d5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(tE);Cu(f5,pO.prototype);var p5=f5,aae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markPoint`,t.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(p5);function m5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function oae(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function h5(e,t,n,r,i,a,o){var s=[],c=qN(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=x5(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=Cg(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var g5={min:Au(h5,`min`),max:Au(h5,`max`),average:Au(h5,`average`),median:Au(h5,`median`)};function _5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!oae(t)&&!G(t.coord)&&G(i)){var a=v5(t,n,r,e);if(t=_u(t),t.type&&g5[t.type]&&a.baseAxis&&a.valueAxis){var o=xu(i,a.baseAxis.dim),s=xu(i,a.valueAxis.dim),c=g5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!G(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&g5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=x5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)g5[d[f]]&&(d[f]=x5(n,n.mapDimension(i[f]),d[f]));return t}}function v5(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(sae(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function sae(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function y5(e,t){return e&&e.containData&&t.coord&&!m5(t)?e.containData(t.coord):!0}function cae(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!m5(t)&&!m5(n)?e.containZone(t.coord,n.coord):!0}function b5(e,t){return e?function(e,n,r,i){return vO(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return vO(e.value,t[i])}}function x5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[n===`max`?1:0]}var S5=E_(),lae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=X()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){S5(e).keep=!1}),t.eachSeries(function(e){var i=p5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!S5(e).keep&&r.group.remove(e.group)}),uae(t,i,this.type)},t.prototype.markKeep=function(e){S5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;H(e,function(e){var r=p5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?nx(e):rx(e))})})},t.type=`marker`,t}(sk);function uae(e,t,n){e.eachSeries(function(e){var r=p5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=FC(r),o=a.z,s=a.zlevel;LC(i.group,o,s)}})}var C5=lae;function w5(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=Q(s.get(`x`),l)+d,h=Q(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var dae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=p5.getMarkerModelFromSeries(e,`markPoint`);t&&(w5(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new hR),l=fae(i,e,t);t.setData(l),w5(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(K(r)||K(i)||K(a)||K(s)){var u=t.getRawValue(e),d=t.getDataParams(e);K(r)&&(r=r(u,d)),K(i)&&(i=i(u,d)),K(a)&&(a=a(u,d)),K(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=lA(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:J(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){Db(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(C5);function fae(e,t,n){var r=e?U(e&&e.dimensions,function(e){return V(V({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new IN(r,n),a=U(n.get(`data`),Au(_5,t));e&&(a=Eu(a,Au(y5,e)));var o=b5(!!e,r);return i.initData(a,null,o),i}var pae=dae;function mae(e){e.registerComponentModel(aae),e.registerComponentView(pae),e.registerPreprocessor(function(e){l5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var hae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(p5),T5=E_(),gae=function(e,t,n,r){var i=e.getData(),a;if(G(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=Bu(r.yAxis,r.xAxis);else{var l=v5(r,i,t,e);s=l.valueAxis,c=x5(i,JN(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=_u(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&Mu(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else process.env.NODE_ENV!==`production`&&gu(`Invalid markLine data.`),a=[]}var h=[_5(e,a[0]),_5(e,a[1]),V({},a[2])];return h[2].type=h[2].type||null,vu(h[2],h[0]),vu(h[2],h[1]),h};function E5(e){return!isNaN(e)&&!isFinite(e)}function D5(e,t,n,r){var i=1-e,a=r.dimensions[e];return E5(t[i])&&E5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function _ae(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(D5(1,n,r,e)||D5(0,n,r,e)))return!0}return y5(e,t[0])&&y5(e,t[1])}function O5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Q(o.get(`x`),i.getWidth()),l=Q(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(DR(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;E5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):E5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var vae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=p5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=T5(t).from,a=T5(t).to;i.each(function(t){O5(i,t,!0,e,n),O5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new Yq);this.group.add(c.group);var l=yae(i,e,t),u=l.from,d=l.to,f=l.line;T5(t).from=u,T5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);G(p)||(p=[p,p]),G(m)||(m=[m,m]),G(h)||(h=[h,h]),G(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:J(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){Db(e).dataModel=t,e.traverse(function(e){Db(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);O5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=lA(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:J(a.get(`symbolOffset`,!0),g[i?0:1]),symbolRotate:J(a.get(`symbolRotate`,!0),h[i?0:1]),symbolSize:J(a.get(`symbolSize`),m[i?0:1]),symbol:J(a.get(`symbol`,!0),p[i?0:1]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(C5);function yae(e,t,n){var r=e?U(e&&e.dimensions,function(e){return V(V({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new IN(r,n),a=new IN(r,n),o=new IN([],n),s=U(n.get(`data`),Au(gae,t,e,n));e&&(s=Eu(s,Au(_ae,e)));var c=b5(!!e,r);return i.initData(U(s,function(e){return e[0]}),null,c),a.initData(U(s,function(e){return e[1]}),null,c),o.initData(U(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}var bae=vae;function xae(e){e.registerComponentModel(hae),e.registerComponentView(bae),e.registerPreprocessor(function(e){l5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var Sae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(p5),k5=E_(),Cae=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=_5(e,i),s=_5(e,a),c=o.coord,l=s.coord;c[0]=Bu(c[0],-1/0),c[1]=Bu(c[1],-1/0),l[0]=Bu(l[0],1/0),l[1]=Bu(l[1],1/0);var u=yu([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function A5(e){return!isNaN(e)&&!isFinite(e)}function j5(e,t,n,r){var i=1-e;return A5(t[i])&&A5(n[i])}function wae(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return DR(e,`cartesian2d`)?n&&r&&(j5(1,n,r,e)||j5(0,n,r,e))?!0:cae(e,i,a):y5(e,i)||y5(e,a)}function M5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Q(o.get(n[0]),i.getWidth()),l=Q(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(DR(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);A5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):A5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var N5=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],Tae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=p5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=U(N5,function(i){return M5(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new tg});this.group.add(c.group),this.markKeep(c);var l=Eae(i,e,t);t.setData(l),l.each(function(t){var n=U(N5,function(n){return M5(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];Sg(d),Sg(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t),h=m.getModel(`itemStyle`).getItemStyle(),g=m.get(`z2`),_=lA(o,`color`);h.fill||(h.fill=_,q(h.fill)&&(h.fill=rm(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,J(g,0))}),l.diff(k5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new dS({z2:J(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=k5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?WS(r,{z2:J(a,0),shape:{points:i.points}},t,e):r=new dS({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=k5(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),HC(e,UC(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:q(i.fill)?rm(i.fill,1):$.color.neutral99}),gx(e,r),px(e,null,null,r.get([`emphasis`,`disabled`])),Db(e).dataModel=t}),k5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(C5);function Eae(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=U(e&&e.dimensions,function(e){var n=t.getData();return V(V({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=U(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new IN(i,n)}else i=[{name:`value`,type:`float`}],r=new IN(i,n);var s=U(n.get(`data`),Au(Cae,t,e,n));e&&(s=Eu(s,Au(wae,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return vO(a,i[r])}:function(e,t,n,r){return vO(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}var Dae=Tae;function Oae(e){e.registerComponentModel(Sae),e.registerComponentView(Dae),e.registerPreprocessor(function(e){l5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var kae=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},P5=function(e){B(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.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),G(t)&&H(t,function(e,r){q(e)&&(e={type:e}),t[r]=vu(e,kae(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&y_(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=X();this._data=Eu(U(r,function(e){return(q(e)||Mu(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new mw(e,this,this.ecModel))},this),function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;H(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&xu(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(tE),F5=Au,I5=H,L5=tg,Aae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new L5),this.group.add(this._selectorGroup=new L5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=GT(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=HT(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=HT(bu({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=U6(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=X(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),I5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
86
|
+
`)){var p=new L5;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,F5(R5,f,null,r,d)).on(`mouseover`,F5(B5,m.name,null,r,d)).on(`mouseout`,F5(V5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Db(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Xp(h.fill);_&&_[3]===0&&(_[3]=.2,h=V(V({},h),{fill:im(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,F5(R5,null,f,r,d)).on(`mouseover`,F5(B5,null,f,r,d)).on(`mouseout`,F5(V5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Db(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Db(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();I5(e,function(e){var r=e.type,i=new Eb({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),HC(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),fx(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=jae(c,r,o,s,d,m,u),y=new L5,b=r.getModel(`textStyle`);if(K(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(Mae({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;q(w)&&w?T=w.replace(`{name}`,t??``):K(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Eb({style:WC(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new sb({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&OC({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),fx(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();RT(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){RT(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(sk);function jae(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),I5(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:pj(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function Mae(e){var t=e.icon||`roundRect`,n=wA(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n}function R5(e,t,n,r){V5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),B5(e,t,n,r)}function z5(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function B5(e,t,n,r){z5(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function V5(e,t,n,r){z5(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}var H5=Aae;function Nae(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function U5(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),W5(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){H(i,function(t,n){e[t?`select`:`unSelect`](n)}),W5(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function W5(e,t){var n=t||{};return H(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
|
|
87
|
+
`||r===``)){var i=e.isSelected(r);Z(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function Pae(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Au(U5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Au(U5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Au(U5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Au(U5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Au(U5,`unSelect`))}function G5(e){e.registerComponentModel(P5),e.registerComponentView(H5),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Nae),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),Pae(e)}var Fae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=XT(t);e.prototype.init.call(this,t,n,r),K5(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),K5(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=yw(P5.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),t}(P5);function K5(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,YT(t,n,{type:`box`,ignoreSize:!!i})}var Iae=Fae,q5=tg,J5=[`width`,`height`],Y5=[`x`,`y`],Lae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new q5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new q5)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=G(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Eb({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=bC(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:W(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=J5[s],l=Y5[s],u=J5[1-s],d=Y5[1-s];i&&RT(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=_u(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;RT(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),RT(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=J(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new sb({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&WS(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;H([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,q(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=J5[i],o=Y5[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=u?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(H5);function Rae(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function zae(e){aN(G5),e.registerComponentModel(Iae),e.registerComponentView(Lae),Rae(e)}function Bae(e){aN(G5),aN(zae)}var Vae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=yw(w6.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(w6),X5=E_();function Hae(e,t,n){X5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function Uae(e,t){for(var n=X5(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||Z5(n,o))}}}function Z5(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Wae(e,t){var n={model:t,containsPoint:Au(Kae,t),dispatchAction:Au(Gae,e),dataZoomInfoMap:null,controller:null},r=n.controller=new qH(e.getZr());return H([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function Gae(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function Kae(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function qae(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function Jae(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=X5(t),r=n.coordSysRecordMap||=X();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){H(b6(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,Wae(t,n.model));(a.dataZoomInfoMap||=X()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){Z5(r,e);return}var s=qae(a,e,t);n.enable(s.controlType,s.opt),Sk(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var Yae=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Hae(r,t,{pan:W(Q5.pan,this),zoom:W(Q5.zoom,this),scrollMove:W(Q5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Uae(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(E6),Q5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=e7[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(mY(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:$5(function(e,t,n,r,i,a){var o=e7[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:$5(function(e,t,n,r,i,a){return e7[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function $5(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(mY(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var e7={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},Xae=Yae;function t7(e){I6(e),e.registerComponentModel(Vae),e.registerComponentView(Xae),Jae(e)}var Zae=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=yw(w6.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:$.color.neutral00,borderColor:$.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(w6),n7=sb,Qae=1,r7=30,$ae=7,i7=`horizontal`,a7=`vertical`,eoe=5,toe=[`line`,`bar`,`candlestick`,`scatter`],noe={easing:`cubicOut`,duration:100,delay:0},roe=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Sk(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ck(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new tg;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?$ae:0,r=GT(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===i7?{right:r.width-i.x-i.width,top:r.height-r7-a-n,width:i.width,height:r7}:{right:a,top:i.y,width:r7,height:i.height},s=XT(e.option);H([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=HT(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===a7&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===i7&&!i?{scaleY:o?1:-1,scaleX:1}:n===i7&&i?{scaleY:o?1:-1,scaleX:-1}:n===a7&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new n7({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new n7({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:W(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:vg(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new tg,r=new dS({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new mS({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){H(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&xu(toe,e.get(`type`))<0)){var o=r.getComponent(v6(i),a).axis,s=ioe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new n7({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new n7({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:Qae,fill:$.color.transparent}})),H([0,1],function(t){var a=o.get(`handleIcon`);!xA[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a,process.env.NODE_ENV!==`production`&&Yg(`handleIcon now needs 'path://' prefix when using a path string`));var s=wA(a,-1,0,2,2,null,!0);s.attr({cursor:aoe(this._orient),draggable:!0,drift:W(this._onDragMove,this,t),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect();this._handleHeight=Q(o.get(`handleSize`),this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),fx(s);var l=o.get(`handleColor`);l!=null&&(s.style.fill=l),i.add(n[t]=s);var u=o.getModel(`textStyle`),d=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Eb({silent:!0,invisible:!d,style:WC(u,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:u.getTextColor(),font:u.getFont()}),z2:10}))},this);var d=u;if(l){var f=Q(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new sb({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=wA(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new sb({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:W(this._onDragMove,this,`all`),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[vg(e[0],[0,100],t,!0),vg(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];mY(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:vg(a.minSpan,o,i,!0),a.maxSpan==null?null:vg(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Sg([vg(r[0],i,o,!0),vg(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Sg(n.slice()),i=this._size;H([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new sb,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Sg(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=mC(n.handles[e].parent,this.group),o=gC(e===0?`right`:`left`,t),s=this._handleWidth/2+eoe,c=hC([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===i7?`middle`:o,align:i===i7?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return K(r)?r(e,a):q(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Zd(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=hC([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new ff(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();mY(0,a,r,0,o.minSpan==null?null:vg(o.minSpan,i,r,!0),o.maxSpan==null?null:vg(o.maxSpan,i,r,!0)),this._range=Sg([vg(a[0],r,i,!0),vg(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Zd(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new n7({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?noe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=b6(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(E6);function ioe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function aoe(e){return e===`vertical`?`ns-resize`:`ew-resize`}var ooe=roe;function o7(e){e.registerComponentModel(Zae),e.registerComponentView(ooe),I6(e)}function soe(e){aN(t7),aN(o7)}var coe={get:function(e,t,n){var r=_u((loe[e]||{})[t]);return n&&G(r)?r[r.length-1]:r}},loe={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.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]}},s7=coe,c7=SK.mapVisual,uoe=SK.eachVisual,doe=G,l7=H,foe=Sg,poe=vg,u7=function(e){B(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&&W8(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=U8(this.option.controller,t,e),this.targetVisuals=U8(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=M_(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){H(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||=[`<`,`>`],G(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(q(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(K(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=foe([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||={};vu(r,n),vu(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){doe(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]={},l7(r,function(e,t){if(SK.isValidType(t)){var n=s7.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`;l7(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&_u(t)||(a?i:[i]),c.symbolSize??=n&&_u(n)||(a?s[0]:[s[0],s[0]]),c.symbol=c7(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;uoe(l,function(e){e>u&&(u=e)}),c.symbolSize=c7(l,function(e){return poe(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:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(tE),d7=[20,140],moe=function(e){B(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]=d7[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=d7[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):G(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),H(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=Sg((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=J(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=f7(this,`outOfRange`,this.getExtent()),n=f7(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=yw(u7.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:$.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:$.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}}),t}(u7);function f7(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}var hoe=moe,p7=function(e){B(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=fT(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new sb({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 H(SK.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),SK.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=GT(t,n).refContainer;KT(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(sk),m7=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function h7(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=m7[o],c=[0,null,10],l={},u=0;u<3;u++)l[m7[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=HT(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 g7(e,t){return H(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var _7=vg,goe=H,v7=Math.min,y7=Math.max,_oe=12,voe=6,yoe=function(e){B(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 Eb({style:WC(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=h7(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new tg;s.add(c),c.add(n.outOfRange=b7()),c.add(n.inRange=b7(null,a?S7(this._orient):null,W(this._dragHandle,this,`all`,!1),W(this._dragHandle,this,`all`,!0))),c.setClipPath(new sb({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=y7(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=Lh(e.get(`handleSize`),r[0]),l=wA(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=S7(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Zd(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(),_x(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Eb({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Zd(e.event)},ondragend:s,style:WC(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=Lh(e.get(`indicatorSize`),n[0]),o=wA(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 Qy){var c=o.style;o.useStyle(V({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 Eb({silent:!0,invisible:!0,style:WC(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:voe)+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():x7(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=[_7(t[0],n,r,!0),_7(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]];mY(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[_7(r[0],i,a,!0),_7(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 OS(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 tg(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);goe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=_7(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=hC(n.handleLabelPoints[l],mC(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=_7(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=hC(c.indicatorLabelPoint,mC(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]=v7(y7(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=v7(y7(i[0],e),i[1]);var o=boe(n,a,i),s=[e-o,e+o],c=_7(e,i,a,!0),l=[_7(s[0],i,a,!0),_7(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||x7(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=w_(u,d);this._dispatchHighDown(`downplay`,g7(f[0],n)),this._dispatchHighDown(`highlight`,g7(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(mA(e.target,function(e){var n=Db(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`,g7(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=mC(t,r?null:this.group);return G(e)?hC(e,i,n):gC(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}(p7);function b7(e,t,n,r){return new dS({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Zd(e.event)},ondragend:r})}function boe(e,t,n){var r=_oe/2,i=e.get(`hoverLinkDataSize`);return i&&(r=_7(i,t,n,!0)/2),r}function x7(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function S7(e){return e===`vertical`?`ns-resize`:`ew-resize`}var xoe=yoe,Soe={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},Coe=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},woe=[{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(jie(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(Toe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function Toe(e,t,n,r){for(var i=t.targetVisuals[r],a=SK.prepareVisualTypes(i),o={color:lA(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}}var C7=H;function Eoe(e){var t=e&&e.visualMap;G(t)||(t=t?[t]:[]),C7(t,function(e){if(e){w7(e,`splitList`)&&!w7(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&G(t)&&C7(t,function(e){Nu(e)&&(w7(e,`start`)&&!w7(e,`min`)&&(e.min=e.start),w7(e,`end`)&&!w7(e,`max`)&&(e.max=e.end))})}})}function w7(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var T7=!1;function E7(e){T7||(T7=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(Soe,Coe),H(woe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Eoe))}function D7(e){e.registerComponentModel(hoe),e.registerComponentView(xoe),E7(e)}var Doe=function(e){B(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=[],Ooe[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=_u(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=U(this._pieceList,function(e){return e=_u(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=SK.listVisualTypes(),i=this.isCategory();H(t.pieces,function(e){H(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),H(n,function(e,n){var r=!1;H(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&H(this.stateList,function(e){(t[e]||(t[e]={}))[n]=s7.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,H(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;H(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=_u(e)},t.prototype.getValueState=function(e){var t=SK.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){SK.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 H(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=yw(u7.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}(u7),Ooe={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]}),Ig(e),H(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;H(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),O7(t,e)},pieces:function(e){var t=this.option;H(t.pieces,function(t,n){Nu(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),process.env.NODE_ENV!==`production`&&a[0]>a[1]&&console.warn(`Piece `+n+`is illegal: `+a+` lower bound should not greater then uppper bound.`),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=SK.retrieveVisuals(t),e.push(r)},this),O7(t,e),Ig(e),H(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 O7(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var koe=Doe,Aoe=function(e){B(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=Bu(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),H(o.viewPieceList,function(o){var s=o.piece,u=new tg;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 Eb({style:WC(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:J(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),RT(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:g7(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return h7(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 tg,o=this.visualMapModel.textStyleModel;a.add(new Eb({style:WC(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=U(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=wA(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=_u(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,H(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}(p7);function k7(e){e.registerComponentModel(koe),e.registerComponentView(Aoe),E7(e)}function joe(e){aN(D7),aN(k7)}var Moe=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:IC(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),Noe=function(e){B(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new Moe(this);this._target=null,this.ecModel.eachSeries(function(e){oJ(e,null)}),this.shouldShow()&&oJ(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null,process.env.NODE_ENV!==`production`&&Jg(`series.`+e.subType+` is not supported in thumbnail.`,!0)):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(tE),Poe=function(e){B(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._api=n,this._model=e,this._coordSys||=new _W,!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=GT(e,n).refContainer,s=HT(zT(e,!0),o),c=a.lineWidth||0,l=this._contentRect=TC(s.clone(),c/2,!0,!0),u=new tg;r.add(u),u.setClipPath(new sb({shape:l.plain()}));var d=this._targetGroup=new tg;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new sb({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new sb({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),j7(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),j7(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(a.x,a.y,a.width,a.height);var o=HT({left:`center`,top:`center`,aspect:a.width/a.height},r);n.setViewRect(o.x,o.y,o.width,o.height),i.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=df([],e.targetTrans),n=sf([],this._coordSys.transform,t);this._transThisToTarget=df([],n);var r=e.viewportRect;r=r?r.clone():new Af(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(bu({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new qH(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,W(this._onPan,this)).on(`zoom`,W(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=xd([],[e.oldX,e.oldY],t),r=xd([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(A7(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=xd([],[e.originX,e.originY],t);this._api.dispatchAction(A7(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(sk);function A7(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,V(n,t),n}function j7(e,t){var n=FC(e);LC(t.group,n.z,n.zlevel)}function Foe(e){e.registerComponentModel(Noe),e.registerComponentView(Poe)}var Ioe={label:{enabled:!0},decal:{show:!1}},M7=E_(),Loe={};function Roe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=_u(Ioe);vu(r.label,e.getLocaleModel().get(`aria`),!1),vu(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=X();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),M7(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(K(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=PE(t.ecModel,t.name,Loe,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=M7(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=PE(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?V(V({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=bu(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=l>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?Eu(i.getValues(_),function(e,t){return xu(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(o(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function o(e,t){if(!q(e))return e;var n=e;return H(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function s(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function c(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function zoe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},H([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Boe(e){e.registerPreprocessor(zoe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Roe)}var N7={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Voe=function(){function e(e){if((this._condVal=q(e)?new RegExp(e):Ru(e)?e:null)==null){var t=``;process.env.NODE_ENV!==`production`&&(t=Zg(`Illegal regexp`,e,`in`)),Qg(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return q(t)?this._condVal.test(e):Mu(t)?this._condVal.test(e+``):!1},e}(),Hoe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Uoe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),Woe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),Goe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Koe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function P7(e,t){if(e===!0||e===!1){var n=new Hoe;return n.value=e,n}var r=``;return I7(e)||(process.env.NODE_ENV!==`production`&&(r=Zg(`Illegal config. Expect a plain object but actually`,e)),Qg(r)),e.and?F7(`and`,e,t):e.or?F7(`or`,e,t):e.not?qoe(e,t):Joe(e,t)}function F7(e,t,n){var r=t[e],i=``;process.env.NODE_ENV!==`production`&&(i=Zg('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.",`Illegal condition:`,t)),G(r)||Qg(i),r.length||Qg(i);var a=e===`and`?new Uoe:new Woe;return a.children=U(r,function(e){return P7(e,n)}),a.children.length||Qg(i),a}function qoe(e,t){var n=e.not,r=``;process.env.NODE_ENV!==`production`&&(r=Zg('"not" condition should only be `not: {}`.',`Illegal condition:`,e)),I7(n)||Qg(r);var i=new Goe;return i.child=P7(n,t),i.child||Qg(r),i}function Joe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=Ou(e),o=e.parser,s=o?bO(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=Z(N7,l)?N7[l]:l,d=e[l],f=s?s(d):d,p=lne(u,f)||u===`reg`&&new Voe(f);p||(process.env.NODE_ENV!==`production`&&(n=Zg(`Illegal relational operation: "`+l+`" in condition:`,e)),Qg(n)),i.push(p)}}i.length||(process.env.NODE_ENV!==`production`&&(n=Zg(`Relational condition must have at least one operator.`,`Illegal condition:`,e)),Qg(n));var m=new Koe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function I7(e){return Nu(e)&&!wu(e)}var Yoe=function(){function e(e,t){this._cond=P7(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Xoe(e,t){return new Yoe(e,t)}var Zoe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=Xoe(e.config,{valueGetterAttrMap:X({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;Z(e,`dimension`)||(process.env.NODE_ENV!==`production`&&(n=Zg(`Relation condition must has prop "dimension" specified.`,`Illegal condition:`,e)),Qg(n));var i=t.getDimensionInfo(r);return i||(process.env.NODE_ENV!==`production`&&(n=Zg(`Can not find dimension info via: `+r+`.
|
|
88
88
|
`,`Existing dimensions: `,t.cloneAllDimensionInfo(),`.
|
|
89
89
|
`,`Illegal condition:`,e,`.
|
|
90
|
-
`)),Qg(n)),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},
|
|
90
|
+
`)),Qg(n)),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},L7=``;process.env.NODE_ENV!==`production`&&(L7=[`Valid config is like:`,`{ dimension: "age", order: "asc" }`,`or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]`].join(` `));var Qoe={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=n_(n);i.length||(process.env.NODE_ENV!==`production`&&(r="Empty `config` in sort transform."),Qg(r));var a=[];H(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;if(n??(process.env.NODE_ENV!==`production`&&(r=`Sort transform config must has "dimension" specified.`+L7),Qg(r)),i!==`asc`&&i!==`desc`&&(process.env.NODE_ENV!==`production`&&(r=`Sort transform config must has "order" specified.`+L7),Qg(r)),s&&s!==`min`&&s!==`max`){var c=``;process.env.NODE_ENV!==`production`&&(c=`incomparable must be "min" or "max" rather than "`+s+`".`),Qg(c)}if(i!==`asc`&&i!==`desc`){var l=``;process.env.NODE_ENV!==`production`&&(l=`order must be "asc" or "desc" rather than "`+i+`".`),Qg(l)}var u=t.getDimensionInfo(n);u||(process.env.NODE_ENV!==`production`&&(r=Zg(`Can not find dimension info via: `+n+`.
|
|
91
91
|
`,`Existing dimensions: `,t.cloneAllDimensionInfo(),`.
|
|
92
92
|
`,`Illegal config:`,e,`.
|
|
93
93
|
`)),Qg(r));var d=o?bO(o):null;o&&!d&&(process.env.NODE_ENV!==`production`&&(r=Zg(`Invalid parser name `+o+`.
|
|
94
94
|
`,`Illegal config:`,e,`.
|
|
95
|
-
`)),Qg(r)),a.push({dimIdx:u.index,parser:d,comparator:new SO(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&(process.env.NODE_ENV!==`production`&&(r=`sourceFormat "`+o+`" is not supported yet`),Qg(r));for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function Qoe(e){e.registerTransform(Xoe),e.registerTransform(Zoe)}var $oe=function(e){B(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 PO(this),FO(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),FO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:vE},t}(tE),ese=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(ck);function tse(e){e.registerComponentModel($oe),e.registerComponentView(ese)}var z7=yy.CMD;function B7(e,t){return Math.abs(e-t)<1e-5}function V7(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){B7(e,n)&&B7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===z7.L||_===z7.C||_===z7.Q)&&(i=[s,c])),_){case z7.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case z7.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case z7.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case z7.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case z7.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case z7.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case z7.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function H7(e,t,n,r,i,a,o,s,c,l){if(B7(e,n)&&B7(t,r)&&B7(i,o)&&B7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];xp(e,n,i,o,.5,T),xp(t,r,a,s,.5,E),H7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),H7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function nse(e,t){var n=V7(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];H7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function U7(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function W7(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=U7([c,l],u?0:1,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function rse(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=U7([r,i],a?0:1,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function G7(e,t,n,r){return e*r-n*t}function ise(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=G7(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=G7(e-i,t-a,u,d)/f;return p<0||p>1?null:new ff(p*c+e,p*l+t)}function ase(e,t,n){var r=new ff;ff.sub(r,n,t),r.normalize();var i=new ff;return ff.sub(i,e,t),i.dot(r)}function K7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ose(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=ise(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:ase(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)K7(m,e[a].slice());K7(m,p),K7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)K7(h,e[a%r].slice());return K7(h,f),K7(h,p),[{points:m},{points:h}]}function q7(e){var t=e.points,n=[],r=[];Jv(t,n,r);var i=new Af(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new ff,u=new ff;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),ose(t,l,u)}function J7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);J7(e,a[0],i,r),J7(e,a[1],n-i,r)}return r}function sse(e,t){for(var n=[],r=0;r<t;r++)n.push(Lx(e));return n}function cse(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function lse(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function use(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:rse(r,t,n),i=sb;break;case`sector`:W7(r,t,n),i=iS;break;case`circle`:W7({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=iS;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=U(nse(e.getUpdatedPathProxy(),o),function(e){return lse(e)}),c=s.length;if(c===0)J7(q7,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=U(s,function(e){var t=[],n=[];Jv(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(J7(q7,{points:p.poly},m,n),f-=m)}}i=dS;break}if(!i)return sse(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),cse(e,g),h.push(g)}return h}function dse(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;xp(m,g,v,b,w,i),xp(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function Y7(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function fse(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=dse(c,l),u=n[0],d=n[1],r=u,i=d):(d=Y7(i||c,c),u=c):(u=Y7(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function X7(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function pse(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function mse(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function hse(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=X7(s),u=X7(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=mse(s));for(var _=pse(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,N=j-D;T+=M*M+N*N}if(T<m){m=T,p=S;for(var P=0;P<h.length;P++)f[P]=h[P]}}else for(var F=0;F<g;F+=2)f[F]=c[F]-u[0],f[F+1]=c[F+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function Z7(e){return e.__isCombineMorphing}var Q7=`__mOriginal_`;function $7(e,t,n){var r=Q7+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function e9(e,t){var n=Q7+t;e[n]&&(e[t]=e[n],e[n]=null)}function t9(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function n9(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=fse(V7(n),V7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&t9(a,s),c&&t9(o,c),$7(t,`updateTransform`,{replace:l}),t.transform=null;var u=hse(a,o,10,Math.PI),d=[];$7(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);bd(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function r9(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;n9(e,t),t.__morphT=0;function a(){e9(t,`buildPath`),e9(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},bu({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function gse(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function i9(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return U(U(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:gse(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function a9(e){return use(e.path,e.count)}function o9(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _se(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];Z7(n)?i(n.childrenRef()):n instanceof Wy&&r.push(n)}}i(e);var a=r.length;if(!a)return o9();var o=(n.dividePath||a9)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),o9();r=i9(r),o=i9(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Th,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||n9(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}$7(t,`addSelfToZr`,{after:function(e){m(e)}}),$7(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,e9(t,`addSelfToZr`),e9(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?bu({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;r9(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},bu({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)e9(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function vse(e,t,n){var r=t.length,i=[],a=n.dividePath||a9;function o(e){for(var t=0;t<e.length;t++){var n=e[t];Z7(n)?o(n.childrenRef()):n instanceof Wy&&i.push(n)}}if(Z7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(Lx(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),o9()}i=i9(i),t=i9(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?bu({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;r9(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function s9(e){return G(e[0])}function c9(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var yse={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=Lx(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function l9(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=HS(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;s9(e)&&(l=e,u=t),s9(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(Z7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?bu({delay:s(r,i)},c):c;r9(f,p,m),a(f,p,f,p,m)}}else for(var h=bu({dividePath:yse[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?_se(l,u,h):vse(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?bu({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?c9(u,l):c9(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function u9(e){if(!e)return[];if(G(e)){for(var t=[],n=0;n<e.length;n++)t.push(u9(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Wy&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var d9=1e4,bse=0,f9=1,p9=2,xse=E_();function Sse(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function Cse(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function m9(e,t,n,r){var i=Sse(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return Cse(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function h9(e){var t=[];return H(e,function(e){var n=e.data,r=e.dataGroupId;if(n.count()>d9){process.env.NODE_ENV!==`production`&&qg(`Universal transition is disabled on large data > 10k.`);return}for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:m9(n,a,r,!1),childGroupId:m9(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function g9(e,t,n){e.traverse(function(e){e instanceof Wy&&GS(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function _9(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function v9(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function wse(e,t,n){var r=HS(`update`,n,t);r&&e.traverse(function(e){if(e instanceof zv){var t=ZS(e);t&&e.animateFrom({style:t},r)}})}function Tse(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function y9(e,t,n){var r=h9(e),i=h9(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?V(V({},n.style),e.style):e.style},i)}var o=!1,s=bse,c=X(),l=X();r.forEach(function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=f9;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=p9;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===f9?n.childGroupId:n.groupId:s===p9?n.childGroupId:n.groupId}}var m=Tse(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&wse(u,s.dataIndex,c);return}l&&h[l.id]||u&&(v9(u),l?(v9(l),_9(l),o=!0,l9(u9(l),u9(u),s.divide,c,e,a)):g9(u,c,e))}new lN(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=Eu(U(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(v9(l),u.length?(H(u,function(e){v9(e),_9(e)}),o=!0,l9(u9(u),u9(l),n.divide,c,e,a)):g9(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=Eu(U(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(H(c,function(e){return v9(e)}),s?(v9(s),_9(s),o=!0,l9(u9(s),u9(c),n.divide,l,e[0],a)):H(c,function(t){return g9(t,l,e[0])}))}}).updateManyToMany(function(e,t){new lN(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&H(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=HS(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Wy&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function b9(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function x9(e){return G(e)?e.sort().join(`,`):e}function S9(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function Ese(e,t){var n=X(),r=X(),i=X();H(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=b9(t),c=x9(s);r.set(c,{dataGroupId:a,data:o}),G(s)&&H(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})});function a(e){n.get(e)&&qg(`Duplicated seriesKey in universalTransition `+e)}return H(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),o=e.getData(),s=b9(e),c=x9(s),l=r.get(c);if(l)process.env.NODE_ENV!==`production`&&a(c),n.set(c,{oldSeries:[{dataGroupId:l.dataGroupId,divide:S9(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:S9(o),data:o}]});else if(G(s)){process.env.NODE_ENV!==`production`&&a(c);var u=[];H(s,function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:S9(t.data),data:t.data})}),u.length&&n.set(c,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:S9(o)}]})}else{var d=i.get(s);if(d){var f=n.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:S9(d.data)}],newSeries:[]},n.set(d.key,f)),f.newSeries.push({dataGroupId:t,data:o,divide:S9(o)})}}}}),n}function C9(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function Dse(e,t,n,r){var i=[],a=[];H(n_(e.from),function(e){var n=C9(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:S9(t.oldData[n]),groupIdDim:e.dimension})}),H(n_(e.to),function(e){var r=C9(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:S9(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&y9(i,a,r)}function Ose(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){H(n_(n.seriesTransition),function(e){H(n_(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][$O]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=xse(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)H(n_(i),function(e){Dse(e,r,n,t)});else{var a=Ese(r,n);H(a.keys(),function(e){var n=a.get(e);y9(n.oldSeries,n.newSeries,t)})}H(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[$O]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<d9&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var kse=function(){function e(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return e.prototype.setBreaks=function(e){this.breaks=e.breaks},e.prototype.update=function(e){jse(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<e&&e<r.vmax){var i=t(e,r.vmax);return process.env.NODE_ENV!==`production`&&Y(i>=0&&Math.round(i)===i),i}}return 0},e.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},e.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},e.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},e.prototype.elapse=function(e){for(var t=w9,n=T9,r=!0,i=0;i<this.breaks.length;i++){var a=this.breaks[i];if(e<=a.vmax){e>a.vmin?t+=a.vmin-n+(e-a.vmin)/(a.vmax-a.vmin)*a.gapReal:t+=e-n,n=a.vmax,r=!1;break}t+=a.vmin-n+a.gapReal,n=a.vmax}return r&&(t+=e-n),t},e.prototype.unelapse=function(e){for(var t=w9,n=T9,r=!0,i=0,a=0;a<this.breaks.length;a++){var o=this.breaks[a],s=t+o.vmin-n,c=s+o.gapReal;if(e<=c){i=e>s?o.vmin+(e-s)/(c-s)*(o.vmax-o.vmin):n+e-t,n=o.vmax,r=!1;break}t=c,n=o.vmax}return r&&(i=n+e-t),i},e}();function Ase(){return new kse}var w9=0,T9=0;function jse(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};H(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=E9(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));H(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Math.max(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function Mse(e,t,n,r,i,a){e!==`no`&&H(n,function(n){var o=E9(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&l<o.vmax+u&&(e!==`preserve_extent_bound`||l!==a[0]&&l!==a[1])&&t.splice(s,1)}})}function Nse(e,t,n,r){H(t,function(t){var i=E9(t,n);i&&(e.push({value:i.vmin,break:{type:`vmin`,parsedBreak:i},time:r?r(i):void 0}),e.push({value:i.vmax,break:{type:`vmax`,parsedBreak:i},time:r?r(i):void 0}))}),t.length&&e.sort(function(e,t){return e.value-t.value})}function E9(e,t){var n=Math.max(e.vmin,t[0]),r=Math.min(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function D9(e,t,n){var r=[];if(!e)return{breaks:r};function i(e,t){return e>=0&&e<.99999?!0:(process.env.NODE_ENV!==`production`&&Jg(t+` must be >= 0 and < 1, rather than `+e+` .`),!1)}H(e,function(e){if(!e||e.start==null||e.end==null){process.env.NODE_ENV!==`production`&&Jg(`The input axis breaks start/end should not be empty.`);return}if(!e.isExpanded){var a={breakOption:_u(e),vmin:t(e.start),vmax:t(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(q(e.gap)){var s=Wu(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t(e.gap);(!isFinite(l)||l<0)&&(process.env.NODE_ENV!==`production`&&Jg(`Axis breaks gap must positive finite rather than (`+e.gap+`).`),l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&H([`vmin`,`vmax`],function(e){a[e]<0&&(process.env.NODE_ENV!==`production`&&Jg(`Axis break.`+e+` must not be negative.`),a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return H(r,function(e,t){a>e.vmin&&(process.env.NODE_ENV!==`production`&&Jg(`Axis breaks must not overlap.`),r[t]=null),a=e.vmax}),{breaks:r.filter(function(e){return!!e})}}function O9(e,t){return k9(t)===k9(e)}function k9(e){return e.start+`_\0_`+e.end}function Pse(e,t,n){var r=[];H(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),H(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=Du(r,function(n){return O9(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return H(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function Fse(e,t,n,r){var i,a;if(e.break){var o=e.break.parsedBreak,s=Du(n,function(t){return O9(t.breakOption,e.break.parsedBreak.breakOption)}),c=r(t**+o.vmin,s.vmin),l=r(t**+o.vmax,s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type===`tpAbs`?xg(t**+(o.vmin+o.gapParsed.val))-c:o.gapParsed.val};i={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:c,vmax:l,gapParsed:u,gapReal:o.gapReal}},a=s[e.break.type]}return{brkRoundingCriterion:a,vBreak:i}}function Ise(e,t,n){var r={noNegative:!0},i=D9(e,n,r),a=D9(e,n,r),o=Math.log(t);return a.breaks=U(a.breaks,function(e){var t=Math.log(e.vmin)/o;return{vmin:t,vmax:Math.log(e.vmax)/o,gapParsed:{type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?Math.log(e.vmin+e.gapParsed.val)/o-t:e.gapParsed.val},gapReal:e.gapReal,breakOption:e.breakOption}}),{parsedOriginal:i,parsedLogged:a}}var Lse={vmin:`start`,vmax:`end`};function Rse(e,t){return t&&(e||={},e.break={type:Lse[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function zse(){Nw({createScaleBreakContext:Ase,pruneTicksByBreak:Mse,addBreaksToTicks:Nse,parseAxisBreakOption:D9,identifyAxisBreak:O9,serializeAxisBreakIdentifier:k9,retrieveAxisBreakPairs:Pse,getTicksLogTransformBreak:Fse,logarithmicParseBreaksFromOption:Ise,makeAxisLabelFormatterParamBreak:Rse})}var A9=E_();function Bse(e,t){var n=Du(e,function(e){return Pw().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function Vse(e){H(e,function(e){return e.shouldRemove=!0})}function Hse(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function Use(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!Pw())return;var o=Pw().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new tg({ignoreModelZ:!0}),y=a.isHorizontal(),b=A9(t).visualList||(A9(t).visualList=[]);Vse(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=Bse(b,t);s.shouldRemove=!1;var c=new tg;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:OB,breaks:[{start:t.breakOption.start,end:t.breakOption.end}]};e[a.dim+`AxisIndex`]=n.componentIndex,i.dispatchAction(e)}),c.silent=!d,v.add(c)},S=0;S<o.length;S++)x(S);e.add(v),Hse(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=a?0:1,v=1-d,y=r[eC[v]]+r[tC[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[eC[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return tb(i,i,{lineWidth:1}),t[0]=i.x1,t[1]=i.y1,t[d]}n=b(n),i=b(i);for(var x=[],S=[],C=!0,w=r[eC[v]],T=0;;T++){var E=w===r[eC[v]],D=w>=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(T<e.length?A=e[T]:(A=Math.random(),e.push(A)),w+=A*(u-l)+l,C=!C,D)break}var j=Pw().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new mS({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new mS({anid:`break_b_`+j,shape:{points:S},style:s,z:f}));var M=S.slice();M.reverse();var N=x.concat(M);t.add(new dS({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function Wse(e,t,n,r){var i=e.axis,a=n.transform;Y(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=U(Pw().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1),function(e){var t=e[0].break.parsedBreak,n=[i.dataToCoord(t.vmin,!0),i.dataToCoord(t.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:Pw().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u<s.length;u++){var d=s[u],f=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);c<=f&&m(c,f,l,d),c=p,l=d}c<=o[1]&&m(c,o[1],l,null);function m(e,n,i,o){function s(e,t){a&&(xd(e,e,a),xd(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};tb(n,n,r.style),e[0]=n.x1,e[1]=n.y1,t[0]=n.x2,t[1]=n.y2}var l=[e,0],u=[n,0],d=[e,5],f=[n,5];s(l,d),c(l,d),s(u,f),c(u,f),c(l,u);var p=new vS(V({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]}},r));t.add(p),p.anid=`breakLine_`+(i?i.brkId:`\0`)+`_\0_`+(o?o.brkId:`\0`)}}function Gse(e,t,n){if(Du(n,function(e){return!e}))return;var r=new ff;if(!tL(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=rf();lf(i,i,-t);var a=U(n,function(e){return e.transform?sf(rf(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new ff(t[tC[e]]*a[0][0],t[tC[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=U(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new ff;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),d=(c[0].x+c[1].x+(u.x>=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new ff,h=new ff;ff.scale(m,r,-s),ff.scale(h,r,1-s),XI(n[0],m),XI(n[1],h)}function Kse(e,t){var n={breaks:[]};return H(t.breaks,function(r){if(r){var i=Du(e.get(`breaks`,!0),function(e){return Pw().identifyAxisBreak(e,r)});if(!i){process.env.NODE_ENV!==`production`&&qg(`Can not find axis break by start: `+r.start+`, end: `+r.end);return}var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}),n}function qse(){yB({adjustBreakLabelPair:Gse,buildAxisBreakLine:Wse,rectCoordBuildBreakAxis:Use,updateModelAxisBreak:Kse})}function Jse(e){IB(e),zse(),qse()}function Yse(){MV(Xse)}function Xse(e,t){H(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=Zse(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function Zse(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof xP?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=yF(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Af(e.x,e.y,a,o)}}oN([jre]),oN([Ere]),oN([ZR,Nz,nB,gH,jH,jW,DG,tq,vJ,OJ,FJ,UJ,UX,bZ,RZ,pQ,vQ,NQ,VQ,g$,T$,H$,C0]),oN(v2),oN(s4),oN(AW),oN(A4),oN(HX),oN(z4),oN(Z3),oN(h6),oN(iie),oN(Tie),oN(_2),oN(Hie),oN(Gie),oN(rae),oN(pae),oN(bae),oN(Dae),oN(zae),oN(ooe),oN(n7),oN(s7),oN(Aoe),oN(O7),oN(A7),oN(Poe),oN(zoe),oN(Qoe),oN(tse),oN(Ose),oN(Wne),oN(Jse),oN(Yse),oN(_H);var Qse=f({__name:`index`,props:{options:{type:Object,required:!0,default:()=>({})},width:{type:[String,Number],default:`100%`},height:{type:[String,Number],default:`100%`},theme:{type:[String,Object],default:`light`},autoResize:{type:Boolean,default:!0},renderMode:{type:String,default:`svg`}},emits:[`chartfinished`],setup(e,{expose:n,emit:r}){let i=e,a=(0,t.ref)(null),o=(0,t.ref)(null),s=null,c=(0,t.computed)(()=>({width:typeof i.width==`number`?`${i.width}px`:i.width,height:typeof i.height==`number`?`${i.height}px`:i.height})),l=e=>{try{return o.value&&o.value.dispose(),o.value=(0,t.markRaw)(BM(e,i.theme,{devicePixelRatio:window.devicePixelRatio,renderer:i.renderMode})),o.value.setOption(i.options),o.value}catch(e){return console.error(`ECharts初始化失败:`,e),null}},u=null,d=()=>{clearTimeout(u),u=setTimeout(()=>{o.value?.resize()},300)};return(0,t.onMounted)(()=>{a.value&&(o.value=l(a.value),setTimeout(()=>{i.autoResize&&o.value&&(s=new ResizeObserver(d),s.observe(a.value))},1200))}),(0,t.onUnmounted)(()=>{o.value&&=(o.value.dispose(),null),s&&=(s.disconnect(),null)}),(0,t.watch)(()=>i.options,e=>{o.value&&o.value.setOption(e)},{deep:!0}),(0,t.watch)(()=>i.theme,()=>{console.log(`theme`),a.value&&(o.value=l(a.value))}),n({chartInstance:o}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`chartRef`,ref:a,style:(0,t.normalizeStyle)(c.value),class:`echarts-container`},null,4))}},[[`__scopeId`,`data-v-80e0b5bd`]]),$se=`data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e`,ece={class:`wx_empty`},tce=[`src`],nce=f({__name:`index`,props:{img:{type:String,default:()=>$se},imgSize:{type:String,default:()=>`120px`},showText:{type:Boolean,default:()=>!0},text:{type:String,default:()=>`暂无数据`},textStyle:{type:String,default:()=>({})}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ece,[(0,t.createElementVNode)(`div`,{class:`wx_empty_img_box`,style:(0,t.normalizeStyle)({width:e.imgSize})},[(0,t.renderSlot)(n.$slots,`img`,{},()=>[(0,t.createElementVNode)(`img`,{src:e.img,alt:``,class:`wx_empty_img`},null,8,tce)],!0)],4),e.showText?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`wx_empty_text`,style:(0,t.normalizeStyle)(e.textStyle)},[(0,t.renderSlot)(n.$slots,`text`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],!0)],4)):(0,t.createCommentVNode)(``,!0)]))}},[[`__scopeId`,`data-v-e0f8c317`]]),rce={key:0,class:`item-icon`},ice=[`viewBox`],ace=[`d`],oce={class:`item-content`},sce={key:0,class:`item-content-inline`},cce={key:1},lce={key:1,class:`item-actions`},uce=[`onClick`],j9=f({__name:`index`,props:{item:{type:Object,default:()=>({})},label:{type:String,default:``},value:{type:[String,Number,Boolean,Object],default:``},span:{type:Number,default:1,validator:e=>e>0},labelAlign:{type:String,default:null,validator:e=>e===null||[`left`,`center`,`right`].includes(e)},contentAlign:{type:String,default:null,validator:e=>e===null||[`left`,`center`,`right`].includes(e)},hasDivider:{type:Boolean,default:!1}},emits:[`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>!r.label&&!r.value&&r.item&&Object.keys(r.item).length>0),o=(0,t.computed)(()=>{let e={};return r.span>1&&(e.gridColumn=`span ${r.span}`),e}),s=(e,t)=>{try{typeof e.callback==`function`&&e.callback(t),i(`action`,{action:e,item:t})}catch(e){console.error(`处理操作时出错:`,e)}};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`description-item`,{"has-divider":e.hasDivider}]),style:(0,t.normalizeStyle)(o.value)},[e.item.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rce,[typeof e.item.icon==`string`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{key:0,viewBox:e.item.iconViewBox||`0 0 16 16`,fill:`currentColor`},[(0,t.createElementVNode)(`path`,{d:e.item.icon},null,8,ace)],8,ice)):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.item.icon),{key:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,oce,[a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sce,[e.label||e.item.label?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`item-label`,style:(0,t.normalizeStyle)({textAlign:e.labelAlign||`left`})},(0,t.toDisplayString)(e.label||e.item.label)+`:`,5)):(0,t.createCommentVNode)(``,!0),n.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],4)):e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.value),5)):e.item.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.item.value),5)):(0,t.createCommentVNode)(``,!0)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cce,[e.label||e.item.label?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`item-label`,style:(0,t.normalizeStyle)({textAlign:e.labelAlign||`left`})},(0,t.toDisplayString)(e.label||e.item.label),5)):(0,t.createCommentVNode)(``,!0),n.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],4)):e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.value),5)):e.item.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.item.value),5)):(0,t.createCommentVNode)(``,!0)]))]),e.item.actions?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.item.actions,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:r,class:(0,t.normalizeClass)([`action-btn`,n.type||`default`]),onClick:t=>s(n,e.item)},(0,t.toDisplayString)(n.text),11,uce))),128))])):(0,t.createCommentVNode)(``,!0)],6))}},[[`__scopeId`,`data-v-f84ae34f`]]),dce={key:0,class:`description-header`},fce={key:0,class:`description-title`},pce={key:1,class:`description-extra`},mce={class:`description-body`},hce={key:0,class:`empty-state`},gce=f({__name:`index`,props:{title:{type:String,default:``},showTitle:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},direction:{type:String,default:`horizontal`,validator:e=>[`horizontal`,`vertical`].includes(e)},column:{type:Number,default:3,validator:e=>e>0},border:{type:Boolean,default:!1},size:{type:String,default:`default`,validator:e=>[`default`,`small`].includes(e)},extra:{type:String,default:``},align:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},labelAlign:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},contentAlign:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},emptyText:{type:String,default:`暂无数据`},customClass:{type:String,default:``}},emits:[`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>({"my-description":!0,"is-bordered":r.border,"is-small":r.size===`small`,"is-horizontal":r.direction===`horizontal`,"is-vertical":r.direction===`vertical`,[r.customClass]:!!r.customClass})),o=(0,t.computed)(()=>r.direction===`horizontal`?{gridTemplateColumns:`repeat(${r.column}, 1fr)`}:{}),s=e=>{try{let{action:t,item:n}=e;typeof t.callback==`function`&&t.callback(n),i(`action`,e)}catch(e){console.error(`处理操作时出错:`,e)}};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`my-description`,a.value])},[e.title||e.extra?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,dce,[e.title&&e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fce,[(0,t.createElementVNode)(`h3`,null,(0,t.toDisplayString)(e.title),1),r[0]||=(0,t.createElementVNode)(`div`,{class:`title-line`},null,-1)])):(0,t.createCommentVNode)(``,!0),e.extra?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pce,(0,t.toDisplayString)(e.extra),1)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,mce,[(0,t.createElementVNode)(`div`,{class:`description-list`,style:(0,t.normalizeStyle)(o.value)},[(0,t.renderSlot)(n.$slots,`default`,{},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(j9,{key:n.key||r,item:n,"has-divider":r<e.items.length-1&&e.direction!==`vertical`,"label-align":n.labelAlign||e.labelAlign,"content-align":n.contentAlign||e.contentAlign,span:n.span||1,onAction:s},null,8,[`item`,`has-divider`,`label-align`,`content-align`,`span`]))),128))],!0),e.items.length===0&&n.$slots.default===void 0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hce,[(0,t.renderSlot)(n.$slots,`empty`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.emptyText),1)],!0)])):(0,t.createCommentVNode)(``,!0)],4)])],2))}},[[`__scopeId`,`data-v-43d5daef`]]),_ce=[`disabled`],vce={key:0,class:`pagination-item pagination-ellipsis`,disabled:``},yce=[`disabled`,`onClick`],bce=[`disabled`],xce=f({__name:`index`,props:{current:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},disabled:{type:Boolean,default:!1},showSize:{type:Number,default:5,validator:e=>e%2==1&&e>=3}},emits:[`update:current`,`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>Math.ceil(r.total/r.pageSize)),o=(0,t.computed)({get:()=>r.current,set:e=>i(`update:current`,e)}),s=(0,t.computed)(()=>{let e=[],t=r.showSize,n=Math.floor(t/2);if(console.log(a.value),a.value<=t){for(let t=1;t<=a.value;t++)e.push(t);return console.log(e),e}let i=o.value-n,s=o.value+n;i<1&&(i=1,s=t),s>a.value&&(s=a.value,i=a.value-t+1),i>1&&(e.push(1),i>2&&e.push(`...`));for(let t=i;t<=s;t++)e.push(t);return s<a.value&&(s<a.value-1&&e.push(`...`),e.push(a.value)),e}),c=e=>{e<1||e>a.value||e===o.value||(o.value=e,i(`change`,e))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`pagination-container`,{"pagination-disabled":e.disabled}])},[(0,t.createElementVNode)(`button`,{class:`pagination-item pagination-prev`,disabled:o.value===1||e.disabled,onClick:r[0]||=e=>c(o.value-1)},` < `,8,_ce),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[n===`...`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,vce,(0,t.toDisplayString)(n),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:(0,t.normalizeClass)([`pagination-item`,{active:n===o.value}]),disabled:e.disabled,onClick:e=>c(n)},(0,t.toDisplayString)(n),11,yce))],64))),128)),(0,t.createElementVNode)(`button`,{class:`pagination-item pagination-next`,disabled:o.value===a.value||e.disabled,onClick:r[1]||=e=>c(o.value+1)},` > `,8,bce)],2))}},[[`__scopeId`,`data-v-71f2626c`]]),Sce={class:`my-radio-box`},Cce=[`onClick`],wce=f({__name:`index`,props:(0,t.mergeModels)({options:{type:Object,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let r=(0,t.useModel)(e,`modelValue`),i=e,a=n,o=e=>{r.value=e,a(`change`,e)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Sce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`item`,{active:e.value===r.value}]),key:n,onClick:t=>o(e.value)},(0,t.toDisplayString)(e.label),11,Cce))),128))]))}},[[`__scopeId`,`data-v-56421a98`]]);function M9(e,t){let n=0;return function(...r){let i=Date.now();i-n>=e&&(n=i,t.apply(this,r))}}function Tce(){return`xxxxxxxxxxxxaxxxyxxxxxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var N9=()=>Tce().replaceAll(`-`,``);function P9(e){let t=new Set,n=new Set;return e.forEach(e=>{t.has(e.id)?n.add(e):t.add(e.id)}),n.size>0&&e.forEach(e=>{e.id=N9()}),e}function F9(e){return e.map((e,t)=>({id:N9(),index:t,data:e}))}var I9=(0,t.defineComponent)({name:`VerticalScroll`,emits:[`offset`,`count`],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:`cubic-bezier(0.03, 0.76, 1, 0.16)`},direction:{type:String,default:`up`},delay:{type:Number,default:0}},setup(e,{expose:n,emit:r}){let i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)([]),s=(0,t.ref)(0),c=(0,t.ref)(!1),l=(0,t.ref)(e.direction),u=(0,t.computed)(()=>e.hover?!c.value&&e.modelValue:e.modelValue),d=(0,t.ref)([]),f=F9(e.list),p=(0,t.ref)(e.visibleCount===void 0?0:e.visibleCount),m=0,h=0,g=0,_=[],v=0,y=0,b=-1,x=0,S=null,C=!1,w=0,T=0,E=!1,D=()=>{cancelAnimationFrame(S),S=null},O=()=>{let e=b+y;if(e>=f.length){let t=e-f.length;o.value=[`splice`,[0,y],[b],[0,t]],b=t>f.length?f.length:t}else o.value=[`splice`,[0,y],[b,e]],b=e},k=()=>{let e=Array.from(i.value.children);_=(l.value===`up`?e.slice(0,y):e.slice(F.value.length-y,F.value.length)).map(e=>e.offsetHeight),v=_.reduce((e,t)=>e+t,0)},A=(n,i)=>{if(D(),!E)return;let a=()=>{let t=_[0],i=!1;w>=t&&(i=!0),i&&(_.shift(),w=0,h+=1),h===m&&(g+=1,r(`count`,g),h=0),e.singleLine&&i?(C=!0,setTimeout(()=>{C=!1,n||A(!1,e.step)},e.singleWaitTime)):n||A(!1,e.step)};(u.value&&!C||n)&&(S=requestAnimationFrame(()=>{T+=i,w+=i,l.value===`up`?s.value+=i:s.value-=i,T>v?(r(`offset`,y,f),O(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,k(),a()})):a()}))},j=()=>{c.value=!0},M=()=>{c.value=!1,e.hover&&A(!1,e.step)},N=M9(30,e=>{A(!0,10)}),P=t=>{e.hover&&e.wheel&&(N(t),t.preventDefault(),t.stopPropagation())},F=(0,t.computed)(()=>{let e=[];return o.value.length===0?e=f.slice(0,p.value):o.value[0]===`splice`?(e=l.value===`up`?F.value:F.value.reverse(),e.splice(...o.value[1]),o.value.slice(2).forEach(t=>{e.push(...f.slice(...t))})):o.value.slice(1).forEach(t=>{e.push(...f.slice(...t))}),l.value!==`up`&&e.reverse(),P9(e)}),I=()=>{if(b=p.value+y,b>=f.length){let e=b-f.length,t=[`slice`,[0,b],[0,e]];return b=e>f.length?f.length:e,t}else return[`slice`,[0,b]]},ee=()=>Array.from(i.value.children).map(e=>e.offsetHeight).reduce((e,t)=>e+t,0),L=n=>{e.visibleCount===void 0?(d.value=F9([e.list[0]]),(0,t.nextTick)(()=>{p.value=Math.ceil(x/a.value.offsetHeight)+2,d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()})})):(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()}))};(0,t.onMounted)(()=>{i.value&&(i.value.parentElement.addEventListener(`mouseenter`,j),i.value.parentElement.addEventListener(`mouseleave`,M),i.value.parentElement.addEventListener(`wheel`,P),x=i.value.parentElement.offsetHeight,e.list.length>0&&L(()=>{a.value.offsetHeight>x?(y=te(),o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,k(),E=!0,setTimeout(()=>{A(!1,e.step)},e.delay)})):R(),d.value=[]})),m=f.length});let R=()=>{h=0,g=0,E=!1,y=0,o.value=[],(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,w=0})},te=()=>{let e=f.length-p.value;return e=Math.max(1,e),e=Math.min(5,e),e};return n({add:(n,r,i)=>{if(r&&r.length>0){n>f.length&&(n=f.length),n<0&&(n=0);let i=[];r.length===1&&F.value.forEach((e,t)=>{e.index===n&&i.push(t)});let c=[];r.forEach(e=>{c.push({id:N9(),data:e})}),f.splice(n,0,...c),f.forEach((e,t)=>{e.index=t});let u=te();if(E)n<b&&(b+=1,b>f.length&&(b=0)),r.length===1&&i.length>0&&i.forEach(e=>{F.value[e]=c[0]}),u!==y&&(y=u);else{let n=()=>{a.value.offsetHeight>x?(y=u,o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,w=0,k(),E=!0,A(!1,e.step)})):(e.visibleCount===void 0&&(p.value=0),R()),d.value=[]};p.value===0&&e.visibleCount===void 0?L(()=>{n()}):(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()}))}}i&&typeof i==`function`&&i(f),m=f.length},remove:(e,n=1,r)=>{e>=0&&e<f.length&&(f.splice(e,n),E?(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{if(a.value.offsetHeight>x){let e=te();e!==y&&(y=e),o.value=I()}else R();d.value=[]})):R()),r&&typeof r==`function`&&r(f),m=f.length},update:(e,t,n)=>{if(e>=0&&e<f.length){let n=[];F.value.forEach((t,r)=>{t.index===e&&n.push(r)});let r={id:N9(),index:e,data:t};f[e]=r,n.length>0&&n.forEach(e=>{F.value[e]=r})}n&&typeof n==`function`&&n(f)},reset:()=>{(0,t.nextTick)(()=>{d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{a.value.offsetHeight>x?o.value[0]===`splice`?(O(),(0,t.nextTick)(()=>{k()})):(o.value=I(),(0,t.nextTick)(()=>{k()})):R()})})}}),(0,t.watch)(()=>e.modelValue,t=>{t&&A(!1,e.step)}),(0,t.onUnmounted)(()=>{cancelAnimationFrame(S),i.value&&(i.value.parentElement.removeEventListener(`mouseenter`,j),i.value.parentElement.removeEventListener(`mouseleave`,M),i.value.parentElement.removeEventListener(`wheel`,P))}),{realWrapperRef:i,visibleItems:F,offset:s,testList:d,realWrapperHiddenRef:a}}}),Ece={style:{position:`absolute !important`,top:`-999999px !important`},ref:`realWrapperHiddenRef`};function Dce(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:`vue3-seamless-vertical-wrapper`,ref:`realWrapperRef`,style:(0,t.normalizeStyle)({transition:`transform ${e.ease}`,transform:`translateY(-${e.offset}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleItems,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],4),(0,t.createElementVNode)(`div`,Ece,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.testList,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],512)],64)}function L9(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}L9(`
|
|
95
|
+
`)),Qg(r)),a.push({dimIdx:u.index,parser:d,comparator:new SO(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&(process.env.NODE_ENV!==`production`&&(r=`sourceFormat "`+o+`" is not supported yet`),Qg(r));for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function $oe(e){e.registerTransform(Zoe),e.registerTransform(Qoe)}var ese=function(e){B(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 PO(this),FO(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),FO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:vE},t}(tE),tse=function(e){B(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(sk);function nse(e){e.registerComponentModel(ese),e.registerComponentView(tse)}var R7=yy.CMD;function z7(e,t){return Math.abs(e-t)<1e-5}function B7(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){z7(e,n)&&z7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===R7.L||_===R7.C||_===R7.Q)&&(i=[s,c])),_){case R7.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case R7.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case R7.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case R7.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case R7.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case R7.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case R7.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function V7(e,t,n,r,i,a,o,s,c,l){if(z7(e,n)&&z7(t,r)&&z7(i,o)&&z7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];xp(e,n,i,o,.5,T),xp(t,r,a,s,.5,E),V7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),V7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function rse(e,t){var n=B7(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];V7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function H7(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function U7(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=H7([c,l],u?0:1,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function ise(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=H7([r,i],a?0:1,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function W7(e,t,n,r){return e*r-n*t}function ase(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=W7(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=W7(e-i,t-a,u,d)/f;return p<0||p>1?null:new ff(p*c+e,p*l+t)}function ose(e,t,n){var r=new ff;ff.sub(r,n,t),r.normalize();var i=new ff;return ff.sub(i,e,t),i.dot(r)}function G7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function sse(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=ase(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:ose(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)G7(m,e[a].slice());G7(m,p),G7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)G7(h,e[a%r].slice());return G7(h,f),G7(h,p),[{points:m},{points:h}]}function K7(e){var t=e.points,n=[],r=[];Jv(t,n,r);var i=new Af(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new ff,u=new ff;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),sse(t,l,u)}function q7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);q7(e,a[0],i,r),q7(e,a[1],n-i,r)}return r}function cse(e,t){for(var n=[],r=0;r<t;r++)n.push(Lx(e));return n}function lse(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function use(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function dse(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:ise(r,t,n),i=sb;break;case`sector`:U7(r,t,n),i=iS;break;case`circle`:U7({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=iS;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=U(rse(e.getUpdatedPathProxy(),o),function(e){return use(e)}),c=s.length;if(c===0)q7(K7,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=U(s,function(e){var t=[],n=[];Jv(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(q7(K7,{points:p.poly},m,n),f-=m)}}i=dS;break}if(!i)return cse(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),lse(e,g),h.push(g)}return h}function fse(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;xp(m,g,v,b,w,i),xp(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function J7(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function pse(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=fse(c,l),u=n[0],d=n[1],r=u,i=d):(d=J7(i||c,c),u=c):(u=J7(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function Y7(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function mse(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function hse(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function gse(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=Y7(s),u=Y7(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=hse(s));for(var _=mse(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,N=j-D;T+=M*M+N*N}if(T<m){m=T,p=S;for(var P=0;P<h.length;P++)f[P]=h[P]}}else for(var F=0;F<g;F+=2)f[F]=c[F]-u[0],f[F+1]=c[F+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function X7(e){return e.__isCombineMorphing}var Z7=`__mOriginal_`;function Q7(e,t,n){var r=Z7+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function $7(e,t){var n=Z7+t;e[n]&&(e[t]=e[n],e[n]=null)}function e9(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function t9(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=pse(B7(n),B7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&e9(a,s),c&&e9(o,c),Q7(t,`updateTransform`,{replace:l}),t.transform=null;var u=gse(a,o,10,Math.PI),d=[];Q7(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);bd(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function n9(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;t9(e,t),t.__morphT=0;function a(){$7(t,`buildPath`),$7(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},bu({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function _se(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function r9(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return U(U(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:_se(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function i9(e){return dse(e.path,e.count)}function a9(){return{fromIndividuals:[],toIndividuals:[],count:0}}function vse(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];X7(n)?i(n.childrenRef()):n instanceof Wy&&r.push(n)}}i(e);var a=r.length;if(!a)return a9();var o=(n.dividePath||i9)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),a9();r=r9(r),o=r9(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Th,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||t9(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}Q7(t,`addSelfToZr`,{after:function(e){m(e)}}),Q7(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,$7(t,`addSelfToZr`),$7(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?bu({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;n9(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},bu({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)$7(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function yse(e,t,n){var r=t.length,i=[],a=n.dividePath||i9;function o(e){for(var t=0;t<e.length;t++){var n=e[t];X7(n)?o(n.childrenRef()):n instanceof Wy&&i.push(n)}}if(X7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(Lx(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),a9()}i=r9(i),t=r9(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?bu({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;n9(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function o9(e){return G(e[0])}function s9(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var bse={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=Lx(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function c9(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=HS(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;o9(e)&&(l=e,u=t),o9(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(X7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?bu({delay:s(r,i)},c):c;n9(f,p,m),a(f,p,f,p,m)}}else for(var h=bu({dividePath:bse[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?vse(l,u,h):yse(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?bu({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?s9(u,l):s9(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function l9(e){if(!e)return[];if(G(e)){for(var t=[],n=0;n<e.length;n++)t.push(l9(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Wy&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var u9=1e4,xse=0,d9=1,f9=2,Sse=E_();function Cse(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function wse(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function p9(e,t,n,r){var i=Cse(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return wse(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function m9(e){var t=[];return H(e,function(e){var n=e.data,r=e.dataGroupId;if(n.count()>u9){process.env.NODE_ENV!==`production`&&qg(`Universal transition is disabled on large data > 10k.`);return}for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:p9(n,a,r,!1),childGroupId:p9(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function h9(e,t,n){e.traverse(function(e){e instanceof Wy&&GS(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function g9(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function _9(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function Tse(e,t,n){var r=HS(`update`,n,t);r&&e.traverse(function(e){if(e instanceof zv){var t=ZS(e);t&&e.animateFrom({style:t},r)}})}function Ese(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function v9(e,t,n){var r=m9(e),i=m9(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?V(V({},n.style),e.style):e.style},i)}var o=!1,s=xse,c=X(),l=X();r.forEach(function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=d9;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=f9;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===d9?n.childGroupId:n.groupId:s===f9?n.childGroupId:n.groupId}}var m=Ese(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&Tse(u,s.dataIndex,c);return}l&&h[l.id]||u&&(_9(u),l?(_9(l),g9(l),o=!0,c9(l9(l),l9(u),s.divide,c,e,a)):h9(u,c,e))}new cN(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=Eu(U(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(_9(l),u.length?(H(u,function(e){_9(e),g9(e)}),o=!0,c9(l9(u),l9(l),n.divide,c,e,a)):h9(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=Eu(U(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(H(c,function(e){return _9(e)}),s?(_9(s),g9(s),o=!0,c9(l9(s),l9(c),n.divide,l,e[0],a)):H(c,function(t){return h9(t,l,e[0])}))}}).updateManyToMany(function(e,t){new cN(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&H(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=HS(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Wy&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function y9(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function b9(e){return G(e)?e.sort().join(`,`):e}function x9(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function Dse(e,t){var n=X(),r=X(),i=X();H(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=y9(t),c=b9(s);r.set(c,{dataGroupId:a,data:o}),G(s)&&H(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})});function a(e){n.get(e)&&qg(`Duplicated seriesKey in universalTransition `+e)}return H(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),o=e.getData(),s=y9(e),c=b9(s),l=r.get(c);if(l)process.env.NODE_ENV!==`production`&&a(c),n.set(c,{oldSeries:[{dataGroupId:l.dataGroupId,divide:x9(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:x9(o),data:o}]});else if(G(s)){process.env.NODE_ENV!==`production`&&a(c);var u=[];H(s,function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:x9(t.data),data:t.data})}),u.length&&n.set(c,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:x9(o)}]})}else{var d=i.get(s);if(d){var f=n.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:x9(d.data)}],newSeries:[]},n.set(d.key,f)),f.newSeries.push({dataGroupId:t,data:o,divide:x9(o)})}}}}),n}function S9(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function Ose(e,t,n,r){var i=[],a=[];H(n_(e.from),function(e){var n=S9(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:x9(t.oldData[n]),groupIdDim:e.dimension})}),H(n_(e.to),function(e){var r=S9(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:x9(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&v9(i,a,r)}function kse(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){H(n_(n.seriesTransition),function(e){H(n_(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][$O]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=Sse(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)H(n_(i),function(e){Ose(e,r,n,t)});else{var a=Dse(r,n);H(a.keys(),function(e){var n=a.get(e);v9(n.oldSeries,n.newSeries,t)})}H(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[$O]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<u9&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var Ase=function(){function e(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return e.prototype.setBreaks=function(e){this.breaks=e.breaks},e.prototype.update=function(e){Mse(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<e&&e<r.vmax){var i=t(e,r.vmax);return process.env.NODE_ENV!==`production`&&Y(i>=0&&Math.round(i)===i),i}}return 0},e.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},e.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},e.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},e.prototype.elapse=function(e){for(var t=C9,n=w9,r=!0,i=0;i<this.breaks.length;i++){var a=this.breaks[i];if(e<=a.vmax){e>a.vmin?t+=a.vmin-n+(e-a.vmin)/(a.vmax-a.vmin)*a.gapReal:t+=e-n,n=a.vmax,r=!1;break}t+=a.vmin-n+a.gapReal,n=a.vmax}return r&&(t+=e-n),t},e.prototype.unelapse=function(e){for(var t=C9,n=w9,r=!0,i=0,a=0;a<this.breaks.length;a++){var o=this.breaks[a],s=t+o.vmin-n,c=s+o.gapReal;if(e<=c){i=e>s?o.vmin+(e-s)/(c-s)*(o.vmax-o.vmin):n+e-t,n=o.vmax,r=!1;break}t=c,n=o.vmax}return r&&(i=n+e-t),i},e}();function jse(){return new Ase}var C9=0,w9=0;function Mse(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};H(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=T9(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));H(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Math.max(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function Nse(e,t,n,r,i,a){e!==`no`&&H(n,function(n){var o=T9(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&l<o.vmax+u&&(e!==`preserve_extent_bound`||l!==a[0]&&l!==a[1])&&t.splice(s,1)}})}function Pse(e,t,n,r){H(t,function(t){var i=T9(t,n);i&&(e.push({value:i.vmin,break:{type:`vmin`,parsedBreak:i},time:r?r(i):void 0}),e.push({value:i.vmax,break:{type:`vmax`,parsedBreak:i},time:r?r(i):void 0}))}),t.length&&e.sort(function(e,t){return e.value-t.value})}function T9(e,t){var n=Math.max(e.vmin,t[0]),r=Math.min(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function E9(e,t,n){var r=[];if(!e)return{breaks:r};function i(e,t){return e>=0&&e<.99999?!0:(process.env.NODE_ENV!==`production`&&Jg(t+` must be >= 0 and < 1, rather than `+e+` .`),!1)}H(e,function(e){if(!e||e.start==null||e.end==null){process.env.NODE_ENV!==`production`&&Jg(`The input axis breaks start/end should not be empty.`);return}if(!e.isExpanded){var a={breakOption:_u(e),vmin:t(e.start),vmax:t(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(q(e.gap)){var s=Wu(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t(e.gap);(!isFinite(l)||l<0)&&(process.env.NODE_ENV!==`production`&&Jg(`Axis breaks gap must positive finite rather than (`+e.gap+`).`),l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&H([`vmin`,`vmax`],function(e){a[e]<0&&(process.env.NODE_ENV!==`production`&&Jg(`Axis break.`+e+` must not be negative.`),a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return H(r,function(e,t){a>e.vmin&&(process.env.NODE_ENV!==`production`&&Jg(`Axis breaks must not overlap.`),r[t]=null),a=e.vmax}),{breaks:r.filter(function(e){return!!e})}}function D9(e,t){return O9(t)===O9(e)}function O9(e){return e.start+`_\0_`+e.end}function Fse(e,t,n){var r=[];H(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),H(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=Du(r,function(n){return D9(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return H(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function Ise(e,t,n,r){var i,a;if(e.break){var o=e.break.parsedBreak,s=Du(n,function(t){return D9(t.breakOption,e.break.parsedBreak.breakOption)}),c=r(t**+o.vmin,s.vmin),l=r(t**+o.vmax,s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type===`tpAbs`?xg(t**+(o.vmin+o.gapParsed.val))-c:o.gapParsed.val};i={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:c,vmax:l,gapParsed:u,gapReal:o.gapReal}},a=s[e.break.type]}return{brkRoundingCriterion:a,vBreak:i}}function Lse(e,t,n){var r={noNegative:!0},i=E9(e,n,r),a=E9(e,n,r),o=Math.log(t);return a.breaks=U(a.breaks,function(e){var t=Math.log(e.vmin)/o;return{vmin:t,vmax:Math.log(e.vmax)/o,gapParsed:{type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?Math.log(e.vmin+e.gapParsed.val)/o-t:e.gapParsed.val},gapReal:e.gapReal,breakOption:e.breakOption}}),{parsedOriginal:i,parsedLogged:a}}var Rse={vmin:`start`,vmax:`end`};function zse(e,t){return t&&(e||={},e.break={type:Rse[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function Bse(){Nw({createScaleBreakContext:jse,pruneTicksByBreak:Nse,addBreaksToTicks:Pse,parseAxisBreakOption:E9,identifyAxisBreak:D9,serializeAxisBreakIdentifier:O9,retrieveAxisBreakPairs:Fse,getTicksLogTransformBreak:Ise,logarithmicParseBreaksFromOption:Lse,makeAxisLabelFormatterParamBreak:zse})}var k9=E_();function Vse(e,t){var n=Du(e,function(e){return Pw().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function Hse(e){H(e,function(e){return e.shouldRemove=!0})}function Use(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function Wse(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!Pw())return;var o=Pw().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new tg({ignoreModelZ:!0}),y=a.isHorizontal(),b=k9(t).visualList||(k9(t).visualList=[]);Hse(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=Vse(b,t);s.shouldRemove=!1;var c=new tg;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:DB,breaks:[{start:t.breakOption.start,end:t.breakOption.end}]};e[a.dim+`AxisIndex`]=n.componentIndex,i.dispatchAction(e)}),c.silent=!d,v.add(c)},S=0;S<o.length;S++)x(S);e.add(v),Use(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=a?0:1,v=1-d,y=r[eC[v]]+r[tC[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[eC[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return tb(i,i,{lineWidth:1}),t[0]=i.x1,t[1]=i.y1,t[d]}n=b(n),i=b(i);for(var x=[],S=[],C=!0,w=r[eC[v]],T=0;;T++){var E=w===r[eC[v]],D=w>=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(T<e.length?A=e[T]:(A=Math.random(),e.push(A)),w+=A*(u-l)+l,C=!C,D)break}var j=Pw().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new mS({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new mS({anid:`break_b_`+j,shape:{points:S},style:s,z:f}));var M=S.slice();M.reverse();var N=x.concat(M);t.add(new dS({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function Gse(e,t,n,r){var i=e.axis,a=n.transform;Y(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=U(Pw().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1),function(e){var t=e[0].break.parsedBreak,n=[i.dataToCoord(t.vmin,!0),i.dataToCoord(t.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:Pw().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u<s.length;u++){var d=s[u],f=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);c<=f&&m(c,f,l,d),c=p,l=d}c<=o[1]&&m(c,o[1],l,null);function m(e,n,i,o){function s(e,t){a&&(xd(e,e,a),xd(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};tb(n,n,r.style),e[0]=n.x1,e[1]=n.y1,t[0]=n.x2,t[1]=n.y2}var l=[e,0],u=[n,0],d=[e,5],f=[n,5];s(l,d),c(l,d),s(u,f),c(u,f),c(l,u);var p=new vS(V({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]}},r));t.add(p),p.anid=`breakLine_`+(i?i.brkId:`\0`)+`_\0_`+(o?o.brkId:`\0`)}}function Kse(e,t,n){if(Du(n,function(e){return!e}))return;var r=new ff;if(!eL(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=rf();lf(i,i,-t);var a=U(n,function(e){return e.transform?sf(rf(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new ff(t[tC[e]]*a[0][0],t[tC[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=U(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new ff;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),d=(c[0].x+c[1].x+(u.x>=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new ff,h=new ff;ff.scale(m,r,-s),ff.scale(h,r,1-s),YI(n[0],m),YI(n[1],h)}function qse(e,t){var n={breaks:[]};return H(t.breaks,function(r){if(r){var i=Du(e.get(`breaks`,!0),function(e){return Pw().identifyAxisBreak(e,r)});if(!i){process.env.NODE_ENV!==`production`&&qg(`Can not find axis break by start: `+r.start+`, end: `+r.end);return}var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}),n}function Jse(){vB({adjustBreakLabelPair:Kse,buildAxisBreakLine:Gse,rectCoordBuildBreakAxis:Wse,updateModelAxisBreak:qse})}function Yse(e){FB(e),Bse(),Jse()}function Xse(){jV(Zse)}function Zse(e,t){H(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=Qse(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function Qse(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof bP?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=vF(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Af(e.x,e.y,a,o)}}aN([Mre]),aN([Dre]),aN([XR,Mz,tB,hH,AH,AW,EG,eq,_J,DJ,PJ,HJ,HX,yZ,LZ,fQ,_Q,MQ,BQ,h$,w$,V$,S0]),aN(_2),aN(o4),aN(kW),aN(k4),aN(VX),aN(R4),aN(X3),aN(m6),aN(aie),aN(Eie),aN(g2),aN(Uie),aN(Kie),aN(iae),aN(mae),aN(xae),aN(Oae),aN(Bae),aN(soe),aN(t7),aN(o7),aN(joe),aN(D7),aN(k7),aN(Foe),aN(Boe),aN($oe),aN(nse),aN(kse),aN(Gne),aN(Yse),aN(Xse),aN(gH);var $se=f({__name:`index`,props:{options:{type:Object,required:!0,default:()=>({})},width:{type:[String,Number],default:`100%`},height:{type:[String,Number],default:`100%`},theme:{type:[String,Object],default:`light`},autoResize:{type:Boolean,default:!0},renderMode:{type:String,default:`svg`}},emits:[`chartfinished`],setup(e,{expose:n,emit:r}){let i=e,a=(0,t.ref)(null),o=(0,t.ref)(null),s=null,c=(0,t.computed)(()=>({width:typeof i.width==`number`?`${i.width}px`:i.width,height:typeof i.height==`number`?`${i.height}px`:i.height})),l=e=>{try{return o.value&&o.value.dispose(),o.value=(0,t.markRaw)(zM(e,i.theme,{devicePixelRatio:window.devicePixelRatio,renderer:i.renderMode})),o.value.setOption(i.options),o.value}catch(e){return console.error(`ECharts初始化失败:`,e),null}},u=null,d=()=>{clearTimeout(u),u=setTimeout(()=>{o.value?.resize()},300)};return(0,t.onMounted)(()=>{a.value&&(o.value=l(a.value),setTimeout(()=>{i.autoResize&&o.value&&(s=new ResizeObserver(d),s.observe(a.value))},1200))}),(0,t.onUnmounted)(()=>{o.value&&=(o.value.dispose(),null),s&&=(s.disconnect(),null)}),(0,t.watch)(()=>i.options,e=>{o.value&&o.value.setOption(e)},{deep:!0}),(0,t.watch)(()=>i.theme,()=>{console.log(`theme`),a.value&&(o.value=l(a.value))}),n({chartInstance:o}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`chartRef`,ref:a,style:(0,t.normalizeStyle)(c.value),class:`echarts-container`},null,4))}},[[`__scopeId`,`data-v-80e0b5bd`]]),ece=`data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e`,tce={class:`wx_empty`},nce=[`src`],rce=f({__name:`index`,props:{img:{type:String,default:()=>ece},imgSize:{type:String,default:()=>`120px`},showText:{type:Boolean,default:()=>!0},text:{type:String,default:()=>`暂无数据`},textStyle:{type:Object,default:()=>({})}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,tce,[(0,t.createElementVNode)(`div`,{class:`wx_empty_img_box`,style:(0,t.normalizeStyle)({width:e.imgSize})},[(0,t.renderSlot)(n.$slots,`img`,{},()=>[(0,t.createElementVNode)(`img`,{src:e.img,alt:``,class:`wx_empty_img`},null,8,nce)],!0)],4),e.showText?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`wx_empty_text`,style:(0,t.normalizeStyle)(e.textStyle)},[(0,t.renderSlot)(n.$slots,`text`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],!0)],4)):(0,t.createCommentVNode)(``,!0)]))}},[[`__scopeId`,`data-v-3895cb60`]]),ice={key:0,class:`item-icon`},ace=[`viewBox`],oce=[`d`],sce={class:`item-content`},cce={key:0,class:`item-content-inline`},lce={key:1},uce={key:1,class:`item-actions`},dce=[`onClick`],A9=f({__name:`index`,props:{item:{type:Object,default:()=>({})},label:{type:String,default:``},value:{type:[String,Number,Boolean,Object],default:``},span:{type:Number,default:1,validator:e=>e>0},labelAlign:{type:String,default:null,validator:e=>e===null||[`left`,`center`,`right`].includes(e)},contentAlign:{type:String,default:null,validator:e=>e===null||[`left`,`center`,`right`].includes(e)},hasDivider:{type:Boolean,default:!1}},emits:[`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>!r.label&&!r.value&&r.item&&Object.keys(r.item).length>0),o=(0,t.computed)(()=>{let e={};return r.span>1&&(e.gridColumn=`span ${r.span}`),e}),s=(e,t)=>{try{typeof e.callback==`function`&&e.callback(t),i(`action`,{action:e,item:t})}catch(e){console.error(`处理操作时出错:`,e)}};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`description-item`,{"has-divider":e.hasDivider}]),style:(0,t.normalizeStyle)(o.value)},[e.item.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ice,[typeof e.item.icon==`string`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{key:0,viewBox:e.item.iconViewBox||`0 0 16 16`,fill:`currentColor`},[(0,t.createElementVNode)(`path`,{d:e.item.icon},null,8,oce)],8,ace)):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.item.icon),{key:1}))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,sce,[a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cce,[e.label||e.item.label?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`item-label`,style:(0,t.normalizeStyle)({textAlign:e.labelAlign||`left`})},(0,t.toDisplayString)(e.label||e.item.label)+`:`,5)):(0,t.createCommentVNode)(``,!0),n.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],4)):e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.value),5)):e.item.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.item.value),5)):(0,t.createCommentVNode)(``,!0)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lce,[e.label||e.item.label?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`item-label`,style:(0,t.normalizeStyle)({textAlign:e.labelAlign||`left`})},(0,t.toDisplayString)(e.label||e.item.label),5)):(0,t.createCommentVNode)(``,!0),n.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],4)):e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.value),5)):e.item.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`item-value`,style:(0,t.normalizeStyle)({textAlign:e.contentAlign||`left`})},(0,t.toDisplayString)(e.item.value),5)):(0,t.createCommentVNode)(``,!0)]))]),e.item.actions?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.item.actions,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:r,class:(0,t.normalizeClass)([`action-btn`,n.type||`default`]),onClick:t=>s(n,e.item)},(0,t.toDisplayString)(n.text),11,dce))),128))])):(0,t.createCommentVNode)(``,!0)],6))}},[[`__scopeId`,`data-v-f84ae34f`]]),fce={key:0,class:`description-header`},pce={key:0,class:`description-title`},mce={key:1,class:`description-extra`},hce={class:`description-body`},gce={key:0,class:`empty-state`},_ce=f({__name:`index`,props:{title:{type:String,default:``},showTitle:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},direction:{type:String,default:`horizontal`,validator:e=>[`horizontal`,`vertical`].includes(e)},column:{type:Number,default:3,validator:e=>e>0},border:{type:Boolean,default:!1},size:{type:String,default:`default`,validator:e=>[`default`,`small`].includes(e)},extra:{type:String,default:``},align:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},labelAlign:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},contentAlign:{type:String,default:`left`,validator:e=>[`left`,`center`,`right`].includes(e)},emptyText:{type:String,default:`暂无数据`},customClass:{type:String,default:``}},emits:[`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>({"my-description":!0,"is-bordered":r.border,"is-small":r.size===`small`,"is-horizontal":r.direction===`horizontal`,"is-vertical":r.direction===`vertical`,[r.customClass]:!!r.customClass})),o=(0,t.computed)(()=>r.direction===`horizontal`?{gridTemplateColumns:`repeat(${r.column}, 1fr)`}:{}),s=e=>{try{let{action:t,item:n}=e;typeof t.callback==`function`&&t.callback(n),i(`action`,e)}catch(e){console.error(`处理操作时出错:`,e)}};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`my-description`,a.value])},[e.title||e.extra?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fce,[e.title&&e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pce,[(0,t.createElementVNode)(`h3`,null,(0,t.toDisplayString)(e.title),1),r[0]||=(0,t.createElementVNode)(`div`,{class:`title-line`},null,-1)])):(0,t.createCommentVNode)(``,!0),e.extra?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mce,(0,t.toDisplayString)(e.extra),1)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,hce,[(0,t.createElementVNode)(`div`,{class:`description-list`,style:(0,t.normalizeStyle)(o.value)},[(0,t.renderSlot)(n.$slots,`default`,{},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(A9,{key:n.key||r,item:n,"has-divider":r<e.items.length-1&&e.direction!==`vertical`,"label-align":n.labelAlign||e.labelAlign,"content-align":n.contentAlign||e.contentAlign,span:n.span||1,onAction:s},null,8,[`item`,`has-divider`,`label-align`,`content-align`,`span`]))),128))],!0),e.items.length===0&&n.$slots.default===void 0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gce,[(0,t.renderSlot)(n.$slots,`empty`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.emptyText),1)],!0)])):(0,t.createCommentVNode)(``,!0)],4)])],2))}},[[`__scopeId`,`data-v-43d5daef`]]),vce=[`disabled`],yce={key:0,class:`pagination-item pagination-ellipsis`,disabled:``},bce=[`disabled`,`onClick`],xce=[`disabled`],Sce=f({__name:`index`,props:{current:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},disabled:{type:Boolean,default:!1},showSize:{type:Number,default:5,validator:e=>e%2==1&&e>=3}},emits:[`update:current`,`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>Math.ceil(r.total/r.pageSize)),o=(0,t.computed)({get:()=>r.current,set:e=>i(`update:current`,e)}),s=(0,t.computed)(()=>{let e=[],t=r.showSize,n=Math.floor(t/2);if(a.value<=t){for(let t=1;t<=a.value;t++)e.push(t);return e}let i=o.value-n,s=o.value+n;i<1&&(i=1,s=t),s>a.value&&(s=a.value,i=a.value-t+1),i>1&&(e.push(1),i>2&&e.push(`...`));for(let t=i;t<=s;t++)e.push(t);return s<a.value&&(s<a.value-1&&e.push(`...`),e.push(a.value)),e}),c=e=>{e<1||e>a.value||e===o.value||(o.value=e,i(`change`,e))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`pagination-container`,{"pagination-disabled":e.disabled}])},[(0,t.createElementVNode)(`button`,{class:`pagination-item pagination-prev`,disabled:o.value===1||e.disabled,onClick:r[0]||=e=>c(o.value-1)},` < `,8,vce),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[n===`...`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,yce,(0,t.toDisplayString)(n),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,class:(0,t.normalizeClass)([`pagination-item`,{active:n===o.value}]),disabled:e.disabled,onClick:e=>c(n)},(0,t.toDisplayString)(n),11,bce))],64))),128)),(0,t.createElementVNode)(`button`,{class:`pagination-item pagination-next`,disabled:o.value===a.value||e.disabled,onClick:r[1]||=e=>c(o.value+1)},` > `,8,xce)],2))}},[[`__scopeId`,`data-v-1028d67a`]]),Cce={class:`my-radio-box`},wce=[`onClick`],Tce=f({__name:`index`,props:(0,t.mergeModels)({options:{type:Object,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`],[`update:modelValue`]),setup(e,{emit:n}){let r=(0,t.useModel)(e,`modelValue`),i=e,a=n,o=e=>{r.value=e,a(`change`,e)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`item`,{active:e.value===r.value}]),key:n,onClick:t=>o(e.value)},(0,t.toDisplayString)(e.label),11,wce))),128))]))}},[[`__scopeId`,`data-v-56421a98`]]),Ece=[`value`,`placeholder`,`disabled`],Dce={key:0,class:`wx-select__dropdown`},Oce={class:`wx-select__options`},kce={key:0,class:`wx-select__loading`},Ace={key:1},jce=[`onClick`,`onMouseenter`],Mce={key:0,class:`wx-select__empty`},Nce=f({__name:`index`,props:{modelValue:{type:[String,Number,Boolean],default:``},options:{type:Array,default:()=>[]},placeholder:{type:String,default:`请选择`},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`update:modelValue`,`change`,`filter-change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=(0,t.ref)(-1),c=(0,t.ref)(null),l=(0,t.ref)(null),u=(0,t.ref)(``),d=(0,t.computed)(()=>{if(!r.modelValue)return``;let e=r.options.find(e=>e.value===r.modelValue);return e?e.label:``}),f=(0,t.computed)(()=>{if(r.remote||!u.value)return r.options;let e=u.value.toLowerCase();return r.options.filter(t=>t.label.toLowerCase().includes(e))}),p=e=>{e&&e.stopPropagation(),!r.disabled&&(a.value=!a.value,a.value&&(u.value=``,s.value=r.options.findIndex(e=>e.value===r.modelValue),setTimeout(()=>{c.value?.focus()},0)))},m=e=>{r.disabled||(i(`update:modelValue`,e.value),i(`change`,e.value),a.value=!1,o.value=!0)},h=()=>{r.disabled||(i(`update:modelValue`,``),i(`change`,``),a.value=!1,o.value=!0)},g=e=>{r.filterable&&(u.value=e.target.value,s.value=-1,r.remote&&i(`filter-change`,u.value))},_=()=>{a.value=!1,u.value=``},v=()=>{r.disabled||(o.value=!0)},y=()=>{r.disabled||(o.value=!1,setTimeout(()=>{a.value=!1},200))},b=()=>{r.disabled||(a.value&&s.value>=0&&s.value<f.value.length?m(f.value[s.value]):p())},x=()=>{r.disabled||(a.value?f.value.length>0&&(s.value=(s.value+1)%f.value.length,s.value<0&&(s.value=f.value.length-1)):p())},S=()=>{r.disabled||(a.value?f.value.length>0&&(s.value=(s.value-1)%f.value.length,s.value<0&&(s.value=f.value.length-1)):p())},C=e=>{l.value&&!l.value.contains(e.target)&&(a.value=!1)};return(0,t.onMounted)(()=>{document.addEventListener(`click`,C)}),(0,t.onUnmounted)(()=>{document.removeEventListener(`click`,C)}),(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`selectRef`,ref:l,class:(0,t.normalizeClass)([`wx-select`,{"is-open":a.value,"is-disabled":e.disabled}])},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`wx-select__input-wrapper`,{"is-focus":o.value}]),onClick:p},[(0,t.createElementVNode)(`input`,{ref_key:`inputRef`,ref:c,type:`text`,class:`wx-select__input`,value:a.value?u.value:d.value,placeholder:e.placeholder,disabled:e.disabled,onFocus:v,onBlur:y,onInput:g,onKeydown:[(0,t.withKeys)(b,[`enter`]),(0,t.withKeys)(x,[`down`]),(0,t.withKeys)(S,[`up`]),(0,t.withKeys)(_,[`esc`])]},null,40,Ece),(e.modelValue||u.value)&&!e.disabled&&e.clearable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`wx-select__clear`,onClick:(0,t.withModifiers)(h,[`stop`])},` × `)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`wx-select__caret`,{"is-reverse":a.value}])},null,2)],2),a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Dce,[(0,t.createElementVNode)(`div`,Oce,[r.loading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kce,`加载中...`)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ace,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:r,class:(0,t.normalizeClass)([`wx-select__option`,{"is-selected":n.value===e.modelValue,"is-highlighted":s.value===r}]),onClick:(0,t.withModifiers)(e=>m(n),[`stop`]),onMouseenter:e=>s.value=r},(0,t.toDisplayString)(n.label),43,jce))),128)),f.value.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Mce,`无匹配选项`)):(0,t.createCommentVNode)(``,!0)]))])])):(0,t.createCommentVNode)(``,!0)],2))}},[[`__scopeId`,`data-v-682e88e7`]]);function j9(e,t){let n=0;return function(...r){let i=Date.now();i-n>=e&&(n=i,t.apply(this,r))}}function Pce(){return`xxxxxxxxxxxxaxxxyxxxxxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var M9=()=>Pce().replaceAll(`-`,``);function N9(e){let t=new Set,n=new Set;return e.forEach(e=>{t.has(e.id)?n.add(e):t.add(e.id)}),n.size>0&&e.forEach(e=>{e.id=M9()}),e}function P9(e){return e.map((e,t)=>({id:M9(),index:t,data:e}))}var F9=(0,t.defineComponent)({name:`VerticalScroll`,emits:[`offset`,`count`],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:`cubic-bezier(0.03, 0.76, 1, 0.16)`},direction:{type:String,default:`up`},delay:{type:Number,default:0}},setup(e,{expose:n,emit:r}){let i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)([]),s=(0,t.ref)(0),c=(0,t.ref)(!1),l=(0,t.ref)(e.direction),u=(0,t.computed)(()=>e.hover?!c.value&&e.modelValue:e.modelValue),d=(0,t.ref)([]),f=P9(e.list),p=(0,t.ref)(e.visibleCount===void 0?0:e.visibleCount),m=0,h=0,g=0,_=[],v=0,y=0,b=-1,x=0,S=null,C=!1,w=0,T=0,E=!1,D=()=>{cancelAnimationFrame(S),S=null},O=()=>{let e=b+y;if(e>=f.length){let t=e-f.length;o.value=[`splice`,[0,y],[b],[0,t]],b=t>f.length?f.length:t}else o.value=[`splice`,[0,y],[b,e]],b=e},k=()=>{let e=Array.from(i.value.children);_=(l.value===`up`?e.slice(0,y):e.slice(F.value.length-y,F.value.length)).map(e=>e.offsetHeight),v=_.reduce((e,t)=>e+t,0)},A=(n,i)=>{if(D(),!E)return;let a=()=>{let t=_[0],i=!1;w>=t&&(i=!0),i&&(_.shift(),w=0,h+=1),h===m&&(g+=1,r(`count`,g),h=0),e.singleLine&&i?(C=!0,setTimeout(()=>{C=!1,n||A(!1,e.step)},e.singleWaitTime)):n||A(!1,e.step)};(u.value&&!C||n)&&(S=requestAnimationFrame(()=>{T+=i,w+=i,l.value===`up`?s.value+=i:s.value-=i,T>v?(r(`offset`,y,f),O(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,k(),a()})):a()}))},j=()=>{c.value=!0},M=()=>{c.value=!1,e.hover&&A(!1,e.step)},N=j9(30,e=>{A(!0,10)}),P=t=>{e.hover&&e.wheel&&(N(t),t.preventDefault(),t.stopPropagation())},F=(0,t.computed)(()=>{let e=[];return o.value.length===0?e=f.slice(0,p.value):o.value[0]===`splice`?(e=l.value===`up`?F.value:F.value.reverse(),e.splice(...o.value[1]),o.value.slice(2).forEach(t=>{e.push(...f.slice(...t))})):o.value.slice(1).forEach(t=>{e.push(...f.slice(...t))}),l.value!==`up`&&e.reverse(),N9(e)}),I=()=>{if(b=p.value+y,b>=f.length){let e=b-f.length,t=[`slice`,[0,b],[0,e]];return b=e>f.length?f.length:e,t}else return[`slice`,[0,b]]},ee=()=>Array.from(i.value.children).map(e=>e.offsetHeight).reduce((e,t)=>e+t,0),L=n=>{e.visibleCount===void 0?(d.value=P9([e.list[0]]),(0,t.nextTick)(()=>{p.value=Math.ceil(x/a.value.offsetHeight)+2,d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()})})):(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()}))};(0,t.onMounted)(()=>{i.value&&(i.value.parentElement.addEventListener(`mouseenter`,j),i.value.parentElement.addEventListener(`mouseleave`,M),i.value.parentElement.addEventListener(`wheel`,P),x=i.value.parentElement.offsetHeight,e.list.length>0&&L(()=>{a.value.offsetHeight>x?(y=te(),o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,k(),E=!0,setTimeout(()=>{A(!1,e.step)},e.delay)})):R(),d.value=[]})),m=f.length});let R=()=>{h=0,g=0,E=!1,y=0,o.value=[],(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,w=0})},te=()=>{let e=f.length-p.value;return e=Math.max(1,e),e=Math.min(5,e),e};return n({add:(n,r,i)=>{if(r&&r.length>0){n>f.length&&(n=f.length),n<0&&(n=0);let i=[];r.length===1&&F.value.forEach((e,t)=>{e.index===n&&i.push(t)});let c=[];r.forEach(e=>{c.push({id:M9(),data:e})}),f.splice(n,0,...c),f.forEach((e,t)=>{e.index=t});let u=te();if(E)n<b&&(b+=1,b>f.length&&(b=0)),r.length===1&&i.length>0&&i.forEach(e=>{F.value[e]=c[0]}),u!==y&&(y=u);else{let n=()=>{a.value.offsetHeight>x?(y=u,o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`up`?0:ee()-x,T=0,w=0,k(),E=!0,A(!1,e.step)})):(e.visibleCount===void 0&&(p.value=0),R()),d.value=[]};p.value===0&&e.visibleCount===void 0?L(()=>{n()}):(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{n()}))}}i&&typeof i==`function`&&i(f),m=f.length},remove:(e,n=1,r)=>{e>=0&&e<f.length&&(f.splice(e,n),E?(d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{if(a.value.offsetHeight>x){let e=te();e!==y&&(y=e),o.value=I()}else R();d.value=[]})):R()),r&&typeof r==`function`&&r(f),m=f.length},update:(e,t,n)=>{if(e>=0&&e<f.length){let n=[];F.value.forEach((t,r)=>{t.index===e&&n.push(r)});let r={id:M9(),index:e,data:t};f[e]=r,n.length>0&&n.forEach(e=>{F.value[e]=r})}n&&typeof n==`function`&&n(f)},reset:()=>{(0,t.nextTick)(()=>{d.value=f.slice(0,p.value),(0,t.nextTick)(()=>{a.value.offsetHeight>x?o.value[0]===`splice`?(O(),(0,t.nextTick)(()=>{k()})):(o.value=I(),(0,t.nextTick)(()=>{k()})):R()})})}}),(0,t.watch)(()=>e.modelValue,t=>{t&&A(!1,e.step)}),(0,t.onUnmounted)(()=>{cancelAnimationFrame(S),i.value&&(i.value.parentElement.removeEventListener(`mouseenter`,j),i.value.parentElement.removeEventListener(`mouseleave`,M),i.value.parentElement.removeEventListener(`wheel`,P))}),{realWrapperRef:i,visibleItems:F,offset:s,testList:d,realWrapperHiddenRef:a}}}),Fce={style:{position:`absolute !important`,top:`-999999px !important`},ref:`realWrapperHiddenRef`};function Ice(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:`vue3-seamless-vertical-wrapper`,ref:`realWrapperRef`,style:(0,t.normalizeStyle)({transition:`transform ${e.ease}`,transform:`translateY(-${e.offset}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleItems,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],4),(0,t.createElementVNode)(`div`,Fce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.testList,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],512)],64)}function I9(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}I9(`
|
|
96
96
|
.vue3-seamless-vertical-wrapper[data-v-70134dc7] {\r
|
|
97
97
|
width: 100%;
|
|
98
98
|
}\r
|
|
99
|
-
`),
|
|
99
|
+
`),F9.render=Ice,F9.__scopeId=`data-v-70134dc7`,F9.__file=`packages/VerticalScroll.vue`;var L9=(0,t.defineComponent)({name:`HorizontalScroll`,emits:[`offset`,`count`],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:`cubic-bezier(0.03, 0.76, 1, 0.16)`},direction:{type:String,default:`left`},delay:{type:Number,default:0}},setup(e,{emit:n,expose:r}){let i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)([]),s=(0,t.ref)(0),c=(0,t.ref)(!1),l=(0,t.ref)(e.direction),u=(0,t.computed)(()=>e.hover?!c.value&&e.modelValue:e.modelValue),d=(0,t.ref)([]),f=(0,t.ref)(e.visibleCount===void 0?0:e.visibleCount),p=P9(e.list),m=0,h=0,g=0,_=[],v=0,y=0,b=-1,x=0,S=null,C=!1,w=0,T=0,E=!1,D=()=>{cancelAnimationFrame(S),S=null},O=()=>{let e=b+y;if(e>=p.length){let t=e-p.length;o.value=[`splice`,[0,y],[b],[0,t]],b=t>p.length?p.length:t}else o.value=[`splice`,[0,y],[b,e]],b=e},k=()=>{let e=Array.from(i.value.children);_=(l.value===`left`?e.slice(0,y):e.slice(F.value.length-y,F.value.length)).map(e=>e.offsetWidth),v=_.reduce((e,t)=>e+t,0)},A=(r,i)=>{if(D(),!E)return;let a=()=>{let t=_[0],i=!1;w>=t&&(i=!0),i&&(_.shift(),w=0,h+=1),h===m&&(g+=1,n(`count`,g),h=0),e.singleLine&&i?(C=!0,setTimeout(()=>{C=!1,r||A(!1,e.step)},e.singleWaitTime)):r||A(!1,e.step)};(u.value&&!C||r)&&(S=requestAnimationFrame(()=>{T+=i,w+=i,e?s.value+=i:s.value-=i,T>v?(n(`offset`,y,p),O(),(0,t.nextTick)(()=>{s.value=l.value===`left`?0:ee()-x,T=0,k(),a()})):a()}))},j=()=>{c.value=!0},M=()=>{c.value=!1,e.hover&&A(!1,e.step)},N=j9(30,e=>{A(!0,10)}),P=t=>{e.hover&&e.wheel&&(N(t),t.preventDefault(),t.stopPropagation())},F=(0,t.computed)(()=>{let e=[];return o.value.length===0?e=p.slice(0,f.value):o.value[0]===`splice`?(e=l.value===`left`?F.value:F.value.reverse(),e.splice(...o.value[1]),o.value.slice(2).forEach(t=>{e.push(...p.slice(...t))})):o.value.slice(1).forEach(t=>{e.push(...p.slice(...t))}),l.value!==`left`&&e.reverse(),N9(e)}),I=()=>{if(b=f.value+y,b>=p.length){let e=b-p.length,t=[`slice`,[0,b],[0,e]];return b=e>p.length?p.length:e,t}else return[`slice`,[0,b]]},ee=()=>Array.from(i.value.children).map(e=>e.offsetWidth).reduce((e,t)=>e+t,0),L=n=>{e.visibleCount===void 0?(d.value=P9([e.list[0]]),(0,t.nextTick)(()=>{f.value=Math.ceil(x/a.value.offsetWidth)+2,d.value=p.slice(0,f.value),(0,t.nextTick)(()=>{n()})})):(d.value=p.slice(0,f.value),(0,t.nextTick)(()=>{n()}))};(0,t.onMounted)(()=>{i.value&&(i.value.parentElement.addEventListener(`mouseenter`,j),i.value.parentElement.addEventListener(`mouseleave`,M),i.value.parentElement.addEventListener(`wheel`,P),x=i.value.parentElement.offsetWidth,e.list.length>0&&L(()=>{a.value.offsetWidth>x?(y=te(),o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`left`?0:ee()-x,k(),E=!0,setTimeout(()=>{A(!1,e.step)},e.delay)})):R(),d.value=[]})),m=p.length});let R=()=>{h=0,g=0,E=!1,y=0,o.value=[],(0,t.nextTick)(()=>{s.value=l.value===`left`?0:ee()-x,T=0,w=0})},te=()=>{let e=p.length-f.value;return e=Math.max(1,e),e=Math.min(5,e),e};return r({add:(n,r,i)=>{if(r&&r.length>0){n>p.length&&(n=p.length),n<0&&(n=0);let i=[];r.length===1&&F.value.forEach((e,t)=>{e.index===n&&i.push(t)});let c=[];r.forEach(e=>{c.push({id:M9(),data:e})}),p.splice(n,0,...c),p.forEach((e,t)=>{e.index=t});let u=te();if(E)n<b&&(b+=1,b>p.length&&(b=0)),r.length===1&&i.forEach(e=>{F.value[e]=c[0]}),u!==y&&(y=u);else{let n=()=>{a.value.offsetWidth>x?(y=u,o.value=I(),(0,t.nextTick)(()=>{s.value=l.value===`left`?0:ee()-x,T=0,w=0,k(),E=!0,A(!1,e.step)})):(e.visibleCount===void 0&&(f.value=0),R()),d.value=[]};f.value===0&&e.visibleCount===void 0?L(()=>{n()}):(d.value=p.slice(0,f.value),(0,t.nextTick)(()=>{n()}))}}i&&typeof i==`function`&&i(p),m=p.length},remove:(e,n=1,r)=>{e>=0&&e<p.length&&(p.splice(e,n),E?(d.value=p.slice(0,f.value),(0,t.nextTick)(()=>{if(a.value.offsetWidth>x){let e=te();e!==y&&(y=e),o.value=I()}else R();d.value=[]})):R()),r&&typeof r==`function`&&r(p),m=p.length},update:(e,t,n)=>{if(e>=0&&e<p.length){let n=[];F.value.forEach((t,r)=>{t.index===e&&n.push(r)});let r={id:M9(),index:e,data:t};p[e]=r,n.length>0&&n.forEach(e=>{F[e]=r})}n&&typeof n==`function`&&n(p)},reset:()=>{(0,t.nextTick)(()=>{d.value=p.slice(0,f.value),(0,t.nextTick)(()=>{a.value.offsetWidth>x?o.value[0]===`splice`?(O(),(0,t.nextTick)(()=>{k()})):(o.value=I(),(0,t.nextTick)(()=>{k()})):R()})})}}),(0,t.watch)(()=>e.modelValue,t=>{t&&A(!1,e.step)}),(0,t.onUnmounted)(()=>{cancelAnimationFrame(S),i.value&&(i.value.parentElement.removeEventListener(`mouseenter`,j),i.value.parentElement.removeEventListener(`mouseleave`,M),i.value.parentElement.removeEventListener(`wheel`,P))}),{visibleItems:F,offset:s,testList:d,realWrapperRef:i,realWrapperHiddenRef:a}}});function Lce(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:`vue3-seamless-horizontal-wrapper`,ref:`realWrapperRef`,style:{transition:`transform ${e.ease}`,transform:`translateX(-${e.offset}px)`}},e.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleItems,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index,style:`color: brown;`})),128))],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({style:{position:`absolute !important`,top:`-999999px !important`},ref:`realWrapperHiddenRef`},e.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.testList,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],16)],64)}I9(`
|
|
100
100
|
.vue3-seamless-horizontal-wrapper[data-v-530d6df5] {
|
|
101
101
|
height: 100%;
|
|
102
102
|
}
|
|
103
|
-
`),
|
|
103
|
+
`),L9.render=Lce,L9.__scopeId=`data-v-530d6df5`,L9.__file=`packages/HorizontalScroll.vue`;var R9=(0,t.defineComponent)({name:`Vue3SeamlessScroll`,emits:[`offset`,`count`],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:`cubic-bezier(0.03, 0.76, 1, 0.16)`},direction:{type:String,default:`up`},delay:{type:Number,default:0}},setup(e,{expose:n,emit:r}){let i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)([]),c=(0,t.ref)(0),l=(0,t.ref)(!1),u=(0,t.ref)(e.direction),d=(0,t.computed)(()=>e.hover?!l.value&&e.modelValue:e.modelValue),f=(0,t.ref)([]),p=(0,t.ref)(e.visibleCount===void 0?0:e.visibleCount),m=P9(e.list),h=0,g=0,_=0,v=[],y=0,b=0,x=-1,S=0,C=null,w=!1,T=0,E=0,D=!1,O=(0,t.computed)(()=>u.value===`up`||u.value===`down`?`translateY(-${c.value}px)`:`translateX(-${c.value}px)`),k=()=>{cancelAnimationFrame(C),C=null},A=()=>{let e=x+b;if(e>=m.length){let t=e-m.length;s.value=[`splice`,[0,b],[x],[0,t]],x=t>m.length?m.length:t}else s.value=[`splice`,[0,b],[x,e]],x=e},j=()=>{let e=Array.from(a.value.children);v=(u.value===`up`||u.value===`left`?e.slice(0,b):e.slice(L.value.length-b,L.value.length)).map(e=>u.value===`left`||u.value===`right`?e.offsetWidth:e.offsetHeight),y=v.reduce((e,t)=>e+t,0)},M=()=>{u.value===`up`||u.value===`left`?c.value=0:c.value=te()-S},N=(n,i)=>{if(k(),!D)return;let a=()=>{let t=v[0],i=!1;T>=t&&(i=!0),i&&(v.shift(),T=0,g+=1),g===h&&(_+=1,r(`count`,_),g=0),e.singleLine&&i?(w=!0,setTimeout(()=>{w=!1,n||N(!1,e.step)},e.singleWaitTime)):n||N(!1,e.step)};(d.value&&!w||n)&&(C=requestAnimationFrame(()=>{E+=i,T+=i,u.value===`up`||u.value===`left`?c.value+=i:c.value-=i,E>y?(r(`offset`,b,m),A(),(0,t.nextTick)(()=>{M(),E=0,j(),a()})):a()}))},P=()=>{l.value=!0},F=()=>{l.value=!1,e.hover&&N(!1,e.step)},I=j9(30,e=>{N(!0,10)}),ee=t=>{e.hover&&e.wheel&&(I(t),t.preventDefault(),t.stopPropagation())},L=(0,t.computed)(()=>{let e=[];return s.value.length===0?e=m.slice(0,p.value):s.value[0]===`splice`?(e=u.value===`up`||u.value===`left`?L.value:L.value.reverse(),e.splice(...s.value[1]),s.value.slice(2).forEach(t=>{e.push(...m.slice(...t))})):s.value.slice(1).forEach(t=>{e.push(...m.slice(...t))}),u.value===`up`||u.value===`left`||e.reverse(),N9(e)}),R=()=>{if(x=p.value+b,x>=m.length){let e=x-m.length,t=[`slice`,[0,x],[0,e]];return x=e>m.length?m.length:e,t}else return[`slice`,[0,x]]},te=()=>Array.from(a.value.children).map(e=>u.value===`left`||u.value===`right`?e.offsetWidth:e.offsetHeight).reduce((e,t)=>e+t,0),ne=n=>{e.visibleCount===void 0?(f.value=P9([e.list[0]]),(0,t.nextTick)(()=>{u.value===`left`||u.value===`right`?p.value=Math.ceil(S/o.value.offsetWidth)+2:p.value=Math.ceil(S/o.value.offsetHeight)+2,f.value=m.slice(0,p.value),(0,t.nextTick)(()=>{n()})})):(f.value=m.slice(0,p.value),(0,t.nextTick)(()=>{n()}))};(0,t.onMounted)(()=>{a.value&&(a.value.parentElement.addEventListener(`mouseenter`,P),a.value.parentElement.addEventListener(`mouseleave`,F),a.value.parentElement.addEventListener(`wheel`,ee),S=a.value.parentElement.offsetHeight,(u.value===`left`||u.value===`right`)&&(S=a.value.parentElement.offsetWidth),ne(()=>{let n=o.value.offsetHeight>S;(u.value===`left`||u.value===`right`)&&(n=o.value.offsetWidth>S),n?(b=ie(),s.value=R(),(0,t.nextTick)(()=>{M(),j(),D=!0,setTimeout(()=>{N(!1,e.step)},e.delay)})):re(),f.value=[]})),h=m.length});let re=()=>{g=0,_=0,D=!1,b=0,s.value=[],(0,t.nextTick)(()=>{M(),E=0,T=0})},ie=()=>{let e=m.length-p.value;return e=Math.max(1,e),e=Math.min(5,e),e};return n({add:(n,r,i)=>{if(r&&r.length>0){n>m.length&&(n=m.length),n<0&&(n=0);let i=[];r.length===1&&L.value.forEach((e,t)=>{e.index===n&&i.push(t)});let a=[];r.forEach(e=>{a.push({id:M9(),data:e})}),m.splice(n,0,...a),m.forEach((e,t)=>{e.index=t});let c=ie();if(D)n<x&&(x+=1,x>m.length&&(x=0)),r.length===1&&i.length>0&&i.forEach(e=>{L[e]=a[0]}),c!==b&&(b=c);else{let n=()=>{let n=o.value.offsetHeight>S;(u.value===`left`||u.value===`right`)&&(n=o.value.offsetWidth>S),n?(b=c,s.value=R(),(0,t.nextTick)(()=>{M(),E=0,T=0,j(),D=!0,N(!1,e.step)})):(e.visibleCount===void 0&&(p.value=0),re()),f.value=[]};p.value===0&&e.visibleCount===void 0?ne(()=>{n()}):(f.value=m.slice(0,p.value),(0,t.nextTick)(()=>{n()}))}}i&&typeof i==`function`&&i(m),h=m.length},remove:(e,n=1,r)=>{e>=0&&e<m.length&&(m.splice(e,n),D?(f.value=m.slice(0,p.value),(0,t.nextTick)(()=>{let e=o.value.offsetHeight>S;if((u.value===`left`||u.value===`right`)&&(e=o.value.offsetWidth>S),e){let e=ie();e!==b&&(b=e),s.value=R()}else re();f.value=[]})):re()),r&&typeof r==`function`&&r(m),h=m.length},update:(e,t,n)=>{if(e>=0&&e<m.length){let n=[];L.value.forEach((t,r)=>{t.index===e&&n.push(r)});let r={id:M9(),index:e,data:t};m[e]=r,n.length>0&&n.forEach(e=>{L[e]=r})}n&&typeof n==`function`&&n(m)},reset:()=>{(0,t.nextTick)(()=>{f.value=m.slice(0,p.value),(0,t.nextTick)(()=>{let e=o.value.offsetHeight>S;(u.value===`left`||u.value===`right`)&&(e=o.value.offsetWidth>S),e?s.value[0]===`splice`?(A(),(0,t.nextTick)(()=>{j()})):(s.value=R(),(0,t.nextTick)(()=>{j()})):re()})})}}),(0,t.watch)(()=>e.modelValue,t=>{t&&N(!1,e.step)}),(0,t.onUnmounted)(()=>{cancelAnimationFrame(C),a.value&&(a.value.parentElement.removeEventListener(`mouseenter`,P),a.value.parentElement.removeEventListener(`mouseleave`,F),a.value.parentElement.removeEventListener(`wheel`,ee))}),{realBoxRef:i,realWrapperRef:a,visibleItems:L,offset:c,testList:f,realWrapperHiddenRef:o,transform:O}}});function Rce(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:`vue3-seamless-wrapper`,ref:`realWrapperRef`,style:{transition:`transform ${e.ease}`,transform:e.transform}},e.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleItems,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({style:{position:`absolute !important`,left:`-999999px !important`},ref:`realWrapperHiddenRef`},e.$attrs),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.testList,n=>(0,t.renderSlot)(e.$slots,`default`,{key:n.id,data:n.data,index:n.index})),128))],16)],64)}I9(`
|
|
104
104
|
.vue3-seamless-wrapper[data-v-b156a416] {\r
|
|
105
105
|
width: 100%;\r
|
|
106
106
|
height: 100%;
|
|
107
107
|
}\r
|
|
108
|
-
`),z9.render=kce,z9.__scopeId=`data-v-b156a416`,z9.__file=`packages/Vue3SeamlessScroll.vue`;var Ace={class:`my-table-box`},jce={class:`head-box`},Mce={class:`data-box`},Nce=[`onClick`],Pce=[`title`],Fce={key:1,class:`no-data`},Ice=f({__name:`index`,props:{columns:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},step:{type:Number,default:.5}},emits:[`row-click`],setup(e,{emit:n}){let r=e,i=n,a=(e,t)=>{i(`row-click`,e,t)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ace,[(0,t.createElementVNode)(`div`,jce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.columns,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`head-item`,key:`head_`+n,style:(0,t.normalizeStyle)({textAlign:e.align||`left`,width:e.width,flex:e.width?`0 0 auto`:`1`,minWidth:e.width?`auto`:`0`,whiteSpace:e.ellipsis?`nowrap`:`normal`,overflow:e.ellipsis?`hidden`:`visible`,textOverflow:e.ellipsis?`ellipsis`:`clip`})},(0,t.toDisplayString)(e.label),5))),128))]),(0,t.createElementVNode)(`div`,Mce,[e.tableData.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(z9),{key:0,list:e.tableData,hover:``,step:e.tableData.length>4?e.step:0},{default:(0,t.withCtx)(({data:e,index:i})=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`data-row`,`data-row_${i}`]),onClick:t=>a(e,i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.columns,(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`data_row_`+a,class:(0,t.normalizeClass)([`head-item`,`data-item`,`data_column_${a}`]),title:e[r.prop],style:(0,t.normalizeStyle)({textAlign:r.align||`left`,width:r.width,flex:r.width?`0 0 auto`:`1`,minWidth:r.width?`auto`:`0`,whiteSpace:r.ellipsis?`nowrap`:`normal`,overflow:r.ellipsis?`hidden`:`visible`,textOverflow:r.ellipsis?`ellipsis`:`clip`})},[(0,t.renderSlot)(n.$slots,`column-${r.prop}`,{row:e,index:i},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e[r.prop]),1)],!0)],14,Pce))),128))],10,Nce)]),_:3},8,[`list`,`step`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Fce,[...i[0]||=[(0,t.createElementVNode)(`img`,{src:`data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e`,alt:``,class:`no-data-img`},null,-1)]]))])]))}},[[`__scopeId`,`data-v-c2bdd967`]]),Lce=0,Rce={name:`MyMessage`,setup(){let e=(0,t.ref)([]),n=(t,n,i=3e3)=>{let a=Lce++,o={id:a,type:t,content:n,duration:i};return e.value.push(o),t!==`loading`&&i>0&&setTimeout(()=>{r(a)},i),()=>{r(a)}},r=t=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value.splice(n,1)};return{messages:e,addMessage:n,removeMessage:r,clearAll:()=>{e.value=[]}}}},zce={class:`message-container`},B9={key:0,viewBox:`0 0 16 16`,fill:`currentColor`},Bce={key:1,viewBox:`0 0 16 16`,fill:`currentColor`},Vce={key:2,viewBox:`0 0 16 16`,fill:`currentColor`},Hce={key:3,viewBox:`0 0 16 16`,fill:`currentColor`},Uce={key:4,viewBox:`0 0 16 16`,fill:`currentColor`},Wce={class:`message-content`},Gce=[`onClick`];function Kce(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,zce,[(0,t.createVNode)(t.TransitionGroup,{name:`message-fade`,tag:`div`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.messages,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`message-item`,`message-${e.type}`])},[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`message-icon`,`icon-${e.type}`])},[e.type===`success`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,B9,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M6.5 10L3 6.5l1-1 2.5 2.5 5-5 1 1-6 6z`},null,-1)]])):e.type===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Bce,[...n[1]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zM5 5h6v6H5V5z`},null,-1)]])):e.type===`warning`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Vce,[...n[2]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm0-8a1 1 0 100 2 1 1 0 000-2zm0 6a1 1 0 001-1V7a1 1 0 00-2 0v4a1 1 0 001 1z`},null,-1)]])):e.type===`loading`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Hce,[...n[3]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12z`,opacity:`0.3`},null,-1),(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 017 7h-1a6 6 0 00-6-6V1z`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Uce,[...n[4]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm1-9H7v5h2V5z`},null,-1)]]))],2),(0,t.createElementVNode)(`div`,Wce,(0,t.toDisplayString)(e.content),1),e.type===`loading`?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`message-close`,onClick:t=>i.removeMessage(e.id)},[...n[5]||=[(0,t.createElementVNode)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`},[(0,t.createElementVNode)(`path`,{d:`M9.414 8l3.293-3.293a1 1 0 10-1.414-1.414L8 6.586 4.707 3.293a1 1 0 00-1.414 1.414L6.586 8l-3.293 3.293a1 1 0 001.414 1.414L8 9.414l3.293 3.293a1 1 0 001.414-1.414L9.414 8z`})],-1)]],8,Gce))],2))),128))]),_:1})])}var qce=f(Rce,[[`render`,Kce],[`__scopeId`,`data-v-b307ec24`]]),V9=null,H9=null,Jce=()=>V9||(H9=document.createElement(`div`),document.body.appendChild(H9),V9=(0,t.createApp)(qce).mount(H9),V9),U9=()=>V9||Jce(),Yce={success:(e,t)=>U9().addMessage(`success`,e,t),error:(e,t)=>U9().addMessage(`error`,e,t),warning:(e,t)=>U9().addMessage(`warning`,e,t),info:(e,t)=>U9().addMessage(`info`,e,t),loading:(e=`加载中...`)=>U9().addMessage(`loading`,e,0),clear:()=>{V9&&V9.clearAll()}},W9=p,G9=Yl,K9=Qse,q9=nce,J9=gce,Y9=j9,X9=xce,Z9=wce,Q9=Ice,$9=Yce,Xce={WxVideoFromFlv:W9,WxVideoFromHls:G9,WxEcharts:K9,WxEmpty:q9,WxDescription:J9,WxDescriptionItem:Y9,WxPagination:X9,WxRadio:Z9,WxTable:Q9};e.WxDescription=J9,e.WxDescriptionItem=Y9,e.WxEcharts=K9,e.WxEmpty=q9,e.WxMessage=$9,e.WxPagination=X9,e.WxRadio=Z9,e.WxTable=Q9,e.WxVideoFromFlv=W9,e.WxVideoFromHls=G9,e.default={install:e=>{for(let[t,n]of Object.entries(Xce))e.component(t,n);e.config.globalProperties.$message=$9}}});
|
|
108
|
+
`),R9.render=Rce,R9.__scopeId=`data-v-b156a416`,R9.__file=`packages/Vue3SeamlessScroll.vue`;var zce={class:`my-table-box`},Bce={class:`head-box`},Vce={class:`data-box`},Hce=[`onClick`],Uce=[`title`],Wce={key:1,class:`no-data`},Gce=f({__name:`index`,props:{columns:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},step:{type:Number,default:.5}},emits:[`row-click`],setup(e,{emit:n}){let r=e,i=n,a=(e,t)=>{i(`row-click`,e,t)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zce,[(0,t.createElementVNode)(`div`,Bce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.columns,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`head-item`,key:`head_`+n,style:(0,t.normalizeStyle)({textAlign:e.align||`left`,width:e.width,flex:e.width?`0 0 auto`:`1`,minWidth:e.width?`auto`:`0`,whiteSpace:e.ellipsis?`nowrap`:`normal`,overflow:e.ellipsis?`hidden`:`visible`,textOverflow:e.ellipsis?`ellipsis`:`clip`})},(0,t.toDisplayString)(e.label),5))),128))]),(0,t.createElementVNode)(`div`,Vce,[e.tableData.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(R9),{key:0,list:e.tableData,hover:``,step:e.tableData.length>4?e.step:0},{default:(0,t.withCtx)(({data:e,index:i})=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`data-row`,`data-row_${i}`]),onClick:t=>a(e,i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.columns,(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`data_row_`+a,class:(0,t.normalizeClass)([`head-item`,`data-item`,`data_column_${a}`]),title:e[r.prop],style:(0,t.normalizeStyle)({textAlign:r.align||`left`,width:r.width,flex:r.width?`0 0 auto`:`1`,minWidth:r.width?`auto`:`0`,whiteSpace:r.ellipsis?`nowrap`:`normal`,overflow:r.ellipsis?`hidden`:`visible`,textOverflow:r.ellipsis?`ellipsis`:`clip`})},[(0,t.renderSlot)(n.$slots,`column-${r.prop}`,{row:e,index:i},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e[r.prop]),1)],!0)],14,Uce))),128))],10,Hce)]),_:3},8,[`list`,`step`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wce,[...i[0]||=[(0,t.createElementVNode)(`img`,{src:`data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e`,alt:``,class:`no-data-img`},null,-1)]]))])]))}},[[`__scopeId`,`data-v-c2bdd967`]]),Kce=0,qce={name:`MyMessage`,setup(){let e=(0,t.ref)([]),n=(t,n,i=3e3)=>{let a=Kce++,o={id:a,type:t,content:n,duration:i};return e.value.push(o),t!==`loading`&&i>0&&setTimeout(()=>{r(a)},i),()=>{r(a)}},r=t=>{let n=e.value.findIndex(e=>e.id===t);n!==-1&&e.value.splice(n,1)};return{messages:e,addMessage:n,removeMessage:r,clearAll:()=>{e.value=[]}}}},z9={class:`message-container`},Jce={key:0,viewBox:`0 0 16 16`,fill:`currentColor`},Yce={key:1,viewBox:`0 0 16 16`,fill:`currentColor`},Xce={key:2,viewBox:`0 0 16 16`,fill:`currentColor`},Zce={key:3,viewBox:`0 0 16 16`,fill:`currentColor`},Qce={key:4,viewBox:`0 0 16 16`,fill:`currentColor`},$ce={class:`message-content`},ele=[`onClick`];function tle(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,z9,[(0,t.createVNode)(t.TransitionGroup,{name:`message-fade`,tag:`div`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.messages,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`message-item`,`message-${e.type}`])},[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`message-icon`,`icon-${e.type}`])},[e.type===`success`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Jce,[...n[0]||=[(0,t.createElementVNode)(`path`,{d:`M6.5 10L3 6.5l1-1 2.5 2.5 5-5 1 1-6 6z`},null,-1)]])):e.type===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Yce,[...n[1]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zM5 5h6v6H5V5z`},null,-1)]])):e.type===`warning`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Xce,[...n[2]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm0-8a1 1 0 100 2 1 1 0 000-2zm0 6a1 1 0 001-1V7a1 1 0 00-2 0v4a1 1 0 001 1z`},null,-1)]])):e.type===`loading`?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Zce,[...n[3]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12z`,opacity:`0.3`},null,-1),(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 017 7h-1a6 6 0 00-6-6V1z`},null,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,Qce,[...n[4]||=[(0,t.createElementVNode)(`path`,{d:`M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm1-9H7v5h2V5z`},null,-1)]]))],2),(0,t.createElementVNode)(`div`,$ce,(0,t.toDisplayString)(e.content),1),e.type===`loading`?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`message-close`,onClick:t=>i.removeMessage(e.id)},[...n[5]||=[(0,t.createElementVNode)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`},[(0,t.createElementVNode)(`path`,{d:`M9.414 8l3.293-3.293a1 1 0 10-1.414-1.414L8 6.586 4.707 3.293a1 1 0 00-1.414 1.414L6.586 8l-3.293 3.293a1 1 0 001.414 1.414L8 9.414l3.293 3.293a1 1 0 001.414-1.414L9.414 8z`})],-1)]],8,ele))],2))),128))]),_:1})])}var nle=f(qce,[[`render`,tle],[`__scopeId`,`data-v-b307ec24`]]),B9=null,V9=null,rle=()=>B9||(V9=document.createElement(`div`),document.body.appendChild(V9),B9=(0,t.createApp)(nle).mount(V9),B9),H9=()=>B9||rle(),ile={success:(e,t)=>H9().addMessage(`success`,e,t),error:(e,t)=>H9().addMessage(`error`,e,t),warning:(e,t)=>H9().addMessage(`warning`,e,t),info:(e,t)=>H9().addMessage(`info`,e,t),loading:(e=`加载中...`)=>H9().addMessage(`loading`,e,0),clear:()=>{B9&&B9.clearAll()}},U9=p,W9=Yl,G9=$se,K9=rce,q9=_ce,J9=A9,Y9=Sce,X9=Tce,Z9=Nce,Q9=Gce,$9=ile,ale={WxVideoFromFlv:U9,WxVideoFromHls:W9,WxEcharts:G9,WxEmpty:K9,WxDescription:q9,WxDescriptionItem:J9,WxPagination:Y9,WxRadio:X9,WxSelect:Z9,WxTable:Q9};e.WxDescription=q9,e.WxDescriptionItem=J9,e.WxEcharts=G9,e.WxEmpty=K9,e.WxMessage=$9,e.WxPagination=Y9,e.WxRadio=X9,e.WxSelect=Z9,e.WxTable=Q9,e.WxVideoFromFlv=U9,e.WxVideoFromHls=W9,e.default={install:e=>{for(let[t,n]of Object.entries(ale))e.component(t,n);e.config.globalProperties.$message=$9}}});
|